cityworks 1.0.4 → 1.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cityworks",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "A Cityworks API wrapper",
5
5
  "main": "dist/index.js",
6
6
  "umd:main": "dist/index.umd.js",
@@ -1,219 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActivityLinks = void 0;
4
- var error_1 = require("./error");
5
- var reversible_map_1 = require("reversible-map");
6
- var _ = require('lodash');
7
- /**
8
- * ActivityLinks implements the activity link functions via using the ActivityLink interface
9
- *
10
- */
11
- var ActivityLinks = /** @class */ (function () {
12
- /**
13
- * @hidden
14
- */
15
- function ActivityLinks(cw) {
16
- this.cw = cw;
17
- this.activityTypes = new reversible_map_1.default();
18
- this.activityTypes.set("null", 0);
19
- this.activityTypes.set("case", 1);
20
- this.activityTypes.set("inspection", 2);
21
- this.activityTypes.set("request", 3);
22
- this.activityTypes.set("workorder", 4);
23
- this.activityTypes.set("wipcase", 5);
24
- this.linkTypes = new reversible_map_1.default();
25
- this.linkTypes.set("null", 0);
26
- this.linkTypes.set("parent", 1);
27
- this.linkTypes.set("related", 2);
28
- }
29
- /**
30
- * Create a new activity link between two items.
31
- *
32
- * @param {string} source_type - Source type as string. Options:
33
- *
34
- * "null", "case", "inspection", "request", "workorder", "wipcase"
35
- *
36
- * @param {number} source_sid - Source SID (numeric ID) one wishes to remove a link between SID as source and a particular destination
37
- * @param {string} destination_type - Destination type as string
38
- *
39
- * "null", "case", "inspection", "request", "workorder", "wipcase"
40
- *
41
- * @param {number} destination_sid - Destination SID (numeric ID) one wishes to remove a link between SID as destination and a particular source
42
- * @param {string} link_type - The type of link which exists between provided source and destination. Defaults to `related`. Options:
43
- *
44
- * "null", "parent", "related"
45
- *
46
- * @return {Object} Returns Promise object that represents a
47
- */
48
- ActivityLinks.prototype.add = function (source_type, source_sid, destination_type, destination_sid, link_type) {
49
- var _this_1 = this;
50
- if (link_type === void 0) { link_type = 'related'; }
51
- return new Promise(function (resolve, reject) {
52
- if (!_this_1.activityTypes.has(source_type)) {
53
- reject(new error_1.CWError(1, 'Source type not found.', { 'provided': source_type, 'options': _this_1.activityTypes }));
54
- }
55
- if (!_this_1.activityTypes.has(destination_type)) {
56
- reject(new error_1.CWError(2, 'Destination type not found.', { 'provided': destination_type, 'options': _this_1.activityTypes }));
57
- }
58
- if (!_this_1.linkTypes.has(link_type)) {
59
- reject(new error_1.CWError(3, 'Link type not found.', { 'provided': link_type, 'options': _this_1.linkTypes }));
60
- }
61
- var data = {
62
- SourceType: _this_1.activityTypes.get(source_type),
63
- SourceSid: source_sid,
64
- DestType: _this_1.activityTypes.get(destination_type),
65
- DestSid: destination_sid,
66
- LinkType: _this_1.linkTypes.get(link_type)
67
- };
68
- var path = 'General/ActivityLink/Add';
69
- _this_1.cw.runRequest(path, data).then(function (response) {
70
- resolve(response.Value);
71
- }).catch(function (e) {
72
- reject(e);
73
- });
74
- });
75
- };
76
- /**
77
- * Get the links for a particular node type by ID.
78
- *
79
- * @param {string} type - Source type as string. Options:
80
- *
81
- * "null", "case", "inspection", "request", "workorder", "wipcase"
82
- *
83
- * @param {Array<number>} sids - Array of numeric (S)IDs you wish to get of the specified type
84
- * @return {Object} Returns Promise object that represents a collection
85
- */
86
- ActivityLinks.prototype.get = function (type, sids) {
87
- var _this_1 = this;
88
- return new Promise(function (resolve, reject) {
89
- if (!_this_1.activityTypes.has(type)) {
90
- reject(new error_1.CWError(4, 'Activity type not found.', { 'provided': type, 'options': _this_1.activityTypes }));
91
- }
92
- var data = {
93
- ActivityType: _this_1.activityTypes.get(type),
94
- ActivitySids: sids
95
- };
96
- var _this = _this_1;
97
- var path = 'General/ActivityLink/ByActivitySids';
98
- _this_1.cw.runRequest(path, data).then(function (response) {
99
- var return_data = new Array();
100
- _.forEach(response.Value, function (link, key) {
101
- link.DestType = _this.activityTypes.get(link.DestType);
102
- link.SourceType = _this.activityTypes.get(link.SourceType);
103
- link.LinkType = _this.linkTypes.get(link.LinkType);
104
- return_data.push(link);
105
- });
106
- resolve(return_data);
107
- }).catch(function (e) {
108
- reject(e);
109
- });
110
- });
111
- };
112
- /**
113
- * Clone a current activity link.
114
- *
115
- * @param {string} source_type - Source type as string. Options:
116
- *
117
- * "null", "case", "inspection", "request", "workorder", "wipcase"
118
- *
119
- * @param {number} source_sid - Source SID (numeric ID) one wishes to clone a link between SID as source and a particular destination
120
- * @param {string} destination_type - Destination type as string
121
- *
122
- * "null", "case", "inspection", "request", "workorder", "wipcase"
123
- *
124
- * @param {number} destination_sid - Destination SID (numeric ID) one wishes to clone a link between SID as destination and a particular source
125
- * @return {Object} Returns Promise object that represents a
126
- */
127
- ActivityLinks.prototype.clone = function (source_type, source_sid, destination_type, destination_sid) {
128
- var _this_1 = this;
129
- return new Promise(function (resolve, reject) {
130
- if (!_this_1.activityTypes.has(source_type)) {
131
- reject(new error_1.CWError(1, 'Source type not found.', { 'provided': source_type, 'options': _this_1.activityTypes }));
132
- }
133
- if (!_this_1.activityTypes.has(destination_type)) {
134
- reject(new error_1.CWError(2, 'Destination type not found.', { 'provided': destination_type, 'options': _this_1.activityTypes }));
135
- }
136
- var data = {
137
- SourceActivityType: _this_1.activityTypes.get(source_type),
138
- SourceActivitySid: source_sid,
139
- DestinationActivityType: _this_1.activityTypes.get(destination_type),
140
- DestinationActivitySid: destination_sid
141
- };
142
- var path = 'General/ActivityLink/CloneByActivitySid';
143
- _this_1.cw.runRequest(path, data).then(function (response) {
144
- resolve(response.Value);
145
- }).catch(function (e) {
146
- reject(e);
147
- });
148
- });
149
- };
150
- /**
151
- * Delete an activity link by ID
152
- *
153
- * @param {number} activity_link_id - The ID of the activity link one wishes to delete
154
- * @return {Object} Returns Promise object that represents a
155
- */
156
- ActivityLinks.prototype.delete = function (activity_link_id) {
157
- var _this_1 = this;
158
- return new Promise(function (resolve, reject) {
159
- var data = {
160
- ActivityLinkId: activity_link_id
161
- };
162
- var path = 'General/ActivityLink/Delete';
163
- _this_1.cw.runRequest(path, data).then(function (response) {
164
- resolve(response.Value);
165
- }).catch(function (e) {
166
- reject(e);
167
- });
168
- });
169
- };
170
- /**
171
- * Remove a link by specifying everything.
172
- *
173
- * @param {string} source_type - Source type as string. Options:
174
- *
175
- * "null", "case", "inspection", "request", "workorder", "wipcase"
176
- *
177
- * @param {number} source_sid - Source SID (numeric ID) one wishes to remove a link between SID as source and a particular destination
178
- * @param {string} destination_type - Destination type as string
179
- *
180
- * "null", "case", "inspection", "request", "workorder", "wipcase"
181
- *
182
- * @param {number} destination_sid - Destination SID (numeric ID) one wishes to remove a link between SID as destination and a particular source
183
- * @param {string} link_type - The type of link which exists between provided source and destination. Defaults to `related`. Options:
184
- *
185
- * "null", "parent", "related"
186
- *
187
- * @return {Object} Returns Promise object that represents a
188
- */
189
- ActivityLinks.prototype.remove = function (source_type, source_sid, destination_type, destination_sid, link_type) {
190
- var _this_1 = this;
191
- if (link_type === void 0) { link_type = 'related'; }
192
- return new Promise(function (resolve, reject) {
193
- if (!_this_1.activityTypes.has(source_type)) {
194
- reject(new error_1.CWError(1, 'Source type not found.', { 'provided': source_type, 'options': _this_1.activityTypes }));
195
- }
196
- if (!_this_1.activityTypes.has(destination_type)) {
197
- reject(new error_1.CWError(1, 'Destination type not found.', { 'provided': destination_type, 'options': _this_1.activityTypes }));
198
- }
199
- if (!_this_1.linkTypes.has(link_type)) {
200
- reject(new error_1.CWError(1, 'Link type not found.', { 'provided': link_type, 'options': _this_1.linkTypes }));
201
- }
202
- var data = {
203
- SourceType: _this_1.activityTypes.get(source_type),
204
- SourceSid: source_sid,
205
- DestType: _this_1.activityTypes.get(destination_type),
206
- DestSid: destination_sid,
207
- LinkType: _this_1.linkTypes.get(link_type)
208
- };
209
- var path = 'General/ActivityLink/Remove';
210
- _this_1.cw.runRequest(path, data).then(function (response) {
211
- resolve(response.Value);
212
- }).catch(function (e) {
213
- reject(e);
214
- });
215
- });
216
- };
217
- return ActivityLinks;
218
- }());
219
- exports.ActivityLinks = ActivityLinks;
package/dist/briefcase.js DELETED
@@ -1,327 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Briefcase = void 0;
4
- var error_1 = require("./error");
5
- var _ = require('lodash');
6
- var Briefcase = /** @class */ (function () {
7
- /**
8
- * @hidden
9
- */
10
- function Briefcase(cw) {
11
- this.cw = cw;
12
- }
13
- /**
14
- * Create new case
15
- *
16
- * @category Cases
17
- * @param {number} caseTypeId - The case Type ID
18
- * @param {number} subTypeId - The case subType ID
19
- * @param {Object} [options] - See /{subdirectory}/apidocs/#/data-type-info;dataType=CaObjectItemBase
20
- * @return {Object} Returns Promise that represents an object describing the newly-created case
21
- */
22
- Briefcase.prototype.create = function (caseTypeId, subTypeId, options) {
23
- var _this = this;
24
- return new Promise(function (resolve, reject) {
25
- var data_init = {
26
- CaseTypeId: caseTypeId,
27
- SubTypeId: subTypeId
28
- };
29
- var data = _.merge(data_init, options);
30
- _this.cw.runRequest('Pll/Case/Create', data).then(function (r) {
31
- resolve(r.Value);
32
- }).catch(function (e) {
33
- reject(e);
34
- });
35
- });
36
- };
37
- /**
38
- * Create a child case
39
- *
40
- * @category Cases
41
- * @param {number} busCaseId - The case Type ID
42
- * @param {number} parentCaObjectId - The case subType ID
43
- * @param {Object} [options] - See /{subdirectory}/apidocs/#/data-type-info;dataType=CaObjectItemBase
44
- * @return {Object} Returns Promise that represents an object describing the newly-created case
45
- */
46
- Briefcase.prototype.createChild = function (busCaseId, parentCaObjectId, options) {
47
- var _this = this;
48
- return new Promise(function (resolve, reject) {
49
- var data_init = {
50
- BusCaseId: busCaseId,
51
- ParentCaObjectId: parentCaObjectId
52
- };
53
- var data = _.merge(data_init, options);
54
- _this.cw.runRequest('Pll/Case/CreateChild', data).then(function (r) {
55
- resolve(r.Value);
56
- }).catch(function (e) {
57
- reject(e);
58
- });
59
- });
60
- };
61
- /**
62
- * Create a case from a Service Request
63
- *
64
- * @category Cases
65
- * @param {number} caseTypeId - The case Type ID
66
- * @param {number} subTypeId - The case subType ID
67
- * @param {number} requestId - The service request ID
68
- * @param {Object} [options] - See /{subdirectory}/apidocs/#/data-type-info;dataType=CaObjectItemBase
69
- * @return {Object} Returns Promise that represents an object describing the newly-created case
70
- */
71
- Briefcase.prototype.createFromRequest = function (caseTypeId, subTypeId, requestId, options) {
72
- var _this = this;
73
- return new Promise(function (resolve, reject) {
74
- var data_init = {
75
- CaseTypeId: caseTypeId,
76
- SubTypeId: subTypeId,
77
- ServiceRequestId: requestId
78
- };
79
- var data = _.merge(data_init, options);
80
- _this.cw.runRequest('Pll/CaseObject/CreateCaseFromServiceRequest', data).then(function (r) {
81
- resolve(r.Value);
82
- }).catch(function (e) {
83
- reject(e);
84
- });
85
- });
86
- };
87
- /**
88
- * Update a case
89
- *
90
- * @category Cases
91
- * @param {number} caObjectId - The case Object ID to update
92
- * @param {Object} [options] - See /{subdirectory}/apidocs/#/data-type-info;dataType=CaObjectItemBase
93
- * @return {Object} Returns Promise that represents an object describing the updated case
94
- */
95
- Briefcase.prototype.update = function (caObjectId, options) {
96
- var _this = this;
97
- return new Promise(function (resolve, reject) {
98
- var data_init = {
99
- CaObjectId: caObjectId
100
- };
101
- var data = _.merge(data_init, options);
102
- _this.cw.runRequest('Pll/CaseObject/Update', data).then(function (r) {
103
- resolve(r.Value);
104
- }).catch(function (e) {
105
- reject(e);
106
- });
107
- });
108
- };
109
- /**
110
- * Get cases by IDs
111
- *
112
- * @category Cases
113
- * @param {Array<number>} caObjectIds - The case Object ID to update
114
- * @return {Object} Returns Promise that represents a collection of objects describing the cases
115
- */
116
- Briefcase.prototype.getByIds = function (caObjectIds) {
117
- var _this = this;
118
- return new Promise(function (resolve, reject) {
119
- var data = {
120
- CaObjectIds: caObjectIds
121
- };
122
- _this.cw.runRequest('Pll/CaseObject/ByIds', data).then(function (r) {
123
- resolve(r.Value);
124
- }).catch(function (e) {
125
- reject(e);
126
- });
127
- });
128
- };
129
- /**
130
- * Search for Cases. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
131
- *
132
- * @category Cases
133
- * @param {Object} filters - The parameter(s) to search by
134
- * @return {Object} Returns Promise that represents an Array of case Object IDs
135
- */
136
- Briefcase.prototype.search = function (filters) {
137
- var _this = this;
138
- return new Promise(function (resolve, reject) {
139
- var data = filters;
140
- _this.cw.runRequest('Pll/CaseObject/Search', data).then(function (r) {
141
- resolve(r.Value);
142
- }).catch(function (e) {
143
- reject(e);
144
- });
145
- });
146
- };
147
- /**
148
- * Move a Case point
149
- *
150
- * @category Cases
151
- * @param {string} caObjectId
152
- * @param {number} x
153
- * @param {number} y
154
- * @param {Object} projection - Should include at least WKT _or_ WKID attribute. Can also include VcsWKID attribute.
155
- * @param {number} [z] - Optional Z coordinate
156
- * @return {Object} Returns Promise that represents an object describing the updated GISPoint
157
- */
158
- Briefcase.prototype.move = function (caObjectId, x, y, projection, z) {
159
- var _this = this;
160
- return new Promise(function (resolve, reject) {
161
- if (!_.has(projection, 'WKID') && !_.has(projection, 'WKT')) {
162
- // Throw error
163
- reject(new error_1.CWError(1, 'You must provide either the WKID or WKT for the x/y coordinates.', { 'projection': projection }));
164
- }
165
- var data_init = {
166
- CaObjectId: caObjectId,
167
- X: x,
168
- Y: y
169
- };
170
- if (typeof (z) != 'undefined') {
171
- _.set(data_init, 'Z', z);
172
- }
173
- var data = _.merge(data_init, projection);
174
- _this.cw.runRequest('Pll/CaseObject/Move', data).then(function (r) {
175
- resolve(r.Value);
176
- }).catch(function (e) {
177
- reject(e);
178
- });
179
- });
180
- };
181
- /**
182
- * Delete case
183
- *
184
- * @category Cases
185
- * @param {number} caObjectId - The case Object ID
186
- * @return {Object} Returns Promise that represents an object describing the deleted case
187
- */
188
- Briefcase.prototype.delete = function (caObjectId) {
189
- var _this = this;
190
- return new Promise(function (resolve, reject) {
191
- var data = {
192
- CaObjectId: caObjectId
193
- };
194
- _this.cw.runRequest('Pll/CaseObject/DeleteCase', data).then(function (r) {
195
- resolve(r.Value);
196
- }).catch(function (e) {
197
- reject(e);
198
- });
199
- });
200
- };
201
- /**
202
- * Get Map Layer Fields
203
- *
204
- * @category Cases
205
- * @param {number} caObjectId - The case object ID to get the map layer fields for.
206
- * @return {Object} Returns Promise that represents a collection of Objects describing the case object map layer fields
207
- */
208
- Briefcase.prototype.getMLFs = function (caObjectId) {
209
- var _this = this;
210
- return new Promise(function (resolve, reject) {
211
- var data = {
212
- CaObjectId: caObjectId
213
- };
214
- var path = 'Ams/TemplateMapLayer/CaseInstanceMapLayersByCaObjectId';
215
- _this.cw.runRequest(path, data).then(function (r) {
216
- resolve(r.Value);
217
- }).catch(function (e) {
218
- reject(e);
219
- });
220
- });
221
- };
222
- /**
223
- * Update Map Layer Fields
224
- *
225
- * @category Cases
226
- * @param {number} caObjectId - The case object ID to get the map layer fields for.
227
- * @param {number} x
228
- * @param {number} y
229
- * @param {number} domainId - The domain ID for the case in question
230
- * @param {number} [z] - Optional Z coordinate
231
- * @return {Object} Returns Promise that represents a collection of Objects describing the case object map layer fields
232
- */
233
- Briefcase.prototype.updateMLFs = function (caObjectId, x, y, domainId, z) {
234
- var _this = this;
235
- return new Promise(function (resolve, reject) {
236
- var data = {
237
- CaObjectId: caObjectId
238
- };
239
- var path = 'Ams/TemplateMapLayer/UpdateCaseInstanceMapLayers';
240
- if (_.isNumber(x)) {
241
- _.set(data, 'X', x);
242
- }
243
- if (_.isNumber(y)) {
244
- _.set(data, 'Y', y);
245
- }
246
- if (_.isNumber(z)) {
247
- _.set(data, 'Z', z);
248
- }
249
- if (_.isNumber(domainId)) {
250
- _.set(data, 'DomainId', domainId);
251
- }
252
- _this.cw.runRequest(path, data).then(function (r) {
253
- resolve(r.Value);
254
- }).catch(function (e) {
255
- reject(e);
256
- });
257
- });
258
- };
259
- /**
260
- * Delete Map Layer Fields
261
- *
262
- * @category Cases
263
- * @param {number} caObjectId - The case object ID to delete the map layer fields for.
264
- * @return {Object} Returns Promise that represents a collection of Objects describing the case object map layer fields deleted
265
- */
266
- Briefcase.prototype.deleteMLFs = function (caObjectId) {
267
- var _this = this;
268
- return new Promise(function (resolve, reject) {
269
- var data = {
270
- CaObjectId: caObjectId
271
- };
272
- var path = 'Ams/TemplateMapLayer/DeleteCaseInstanceMapLayersByCaObjectId';
273
- _this.cw.runRequest(path, data).then(function (r) {
274
- resolve(r.Value);
275
- }).catch(function (e) {
276
- reject(e);
277
- });
278
- });
279
- };
280
- /**
281
- * Reports available for Case
282
- *
283
- * @category Cases
284
- * @param {number} caObjectId - The case object ID to get the report (print template) list for
285
- * @return {Object} Returns Promise that represents a collection of Objects describing the reports (print templates) available for this case
286
- */
287
- Briefcase.prototype.getPrintTemplates = function (caObjectId) {
288
- var _this = this;
289
- return new Promise(function (resolve, reject) {
290
- var data = {
291
- CaObjectId: caObjectId
292
- };
293
- var path = 'Pll/BusinessCaseReports/ByCaObjectId';
294
- _this.cw.runRequest(path, data).then(function (r) {
295
- resolve(r.Value);
296
- }).catch(function (e) {
297
- reject(e);
298
- });
299
- });
300
- };
301
- /**
302
- * Print Case
303
- *
304
- * @category Cases
305
- * @param {number} caObjectId - The case object ID to delete the map layer fields for.
306
- * @param {string} fileName - the filename of the report from the getPrintTemplates method, but w/out the extension
307
- * @return {Object} Returns Promise that represents a collection of Objects describing the case object map layer fields deleted
308
- */
309
- Briefcase.prototype.print = function (caObjectId, fileName) {
310
- var _this = this;
311
- return new Promise(function (resolve, reject) {
312
- var data = {
313
- CaObjectId: caObjectId,
314
- FileName: fileName
315
- };
316
- var path = 'Pll/BusinessCaseReports/Download';
317
- // TODO: test the Filename to make sure it's in the File list from getPrintTemplates (or let the API just error?)
318
- _this.cw.runRequest(path, data).then(function (r) {
319
- resolve(r.Value);
320
- }).catch(function (e) {
321
- reject(e);
322
- });
323
- });
324
- };
325
- return Briefcase;
326
- }());
327
- exports.Briefcase = Briefcase;
package/dist/case.d.ts DELETED
@@ -1,114 +0,0 @@
1
- export declare class Case {
2
- /**
3
- * @hidden
4
- */
5
- cw: any;
6
- /**
7
- * Data Detail methods
8
- */
9
- data?: Object;
10
- /**
11
- * Asset (Address) methods
12
- */
13
- asset?: Object;
14
- /**
15
- * Workflow & task methods
16
- */
17
- workflow?: Object;
18
- /**
19
- * Payment, Receipt, & Fee methods
20
- */
21
- financial?: Object;
22
- /**
23
- * Commenting methods
24
- */
25
- comment?: Object;
26
- /**
27
- * PLL Administration methods
28
- */
29
- admin?: Object;
30
- /**
31
- * @hidden
32
- */
33
- constructor(cw: any);
34
- /**
35
- * Create new case
36
- *
37
- * @category Cases
38
- * @param {number} caseTypeId - The case Type ID
39
- * @param {number} subTypeId - The case subType ID
40
- * @param {Object} [options] - See /{subdirectory}/apidocs/#/data-type-info;dataType=CaObjectItemBase
41
- * @return {Object} Returns Promise that represents an object describing the newly-created case
42
- */
43
- create(caseTypeId: number, subTypeId: number, options?: Object): Promise<unknown>;
44
- /**
45
- * Create a child case
46
- *
47
- * @category Cases
48
- * @param {number} busCaseId - The case Type ID
49
- * @param {number} parentCaObjectId - The case subType ID
50
- * @param {Object} [options] - See /{subdirectory}/apidocs/#/data-type-info;dataType=CaObjectItemBase
51
- * @return {Object} Returns Promise that represents an object describing the newly-created case
52
- */
53
- createChild(busCaseId: number, parentCaObjectId: number, options?: Object): Promise<unknown>;
54
- /**
55
- * Create a case from a Service Request
56
- *
57
- * @category Cases
58
- * @param {number} caseTypeId - The case Type ID
59
- * @param {number} subTypeId - The case subType ID
60
- * @param {number} requestId - The service request ID
61
- * @param {Object} [options] - See /{subdirectory}/apidocs/#/data-type-info;dataType=CaObjectItemBase
62
- * @return {Object} Returns Promise that represents an object describing the newly-created case
63
- */
64
- createFromRequest(caseTypeId: number, subTypeId: number, requestId: number, options?: Object): Promise<unknown>;
65
- /**
66
- * Update a case
67
- *
68
- * @category Cases
69
- * @param {number} caObjectId - The case Object ID to update
70
- * @param {Object} [options] - See /{subdirectory}/apidocs/#/data-type-info;dataType=CaObjectItemBase
71
- * @return {Object} Returns Promise that represents an object describing the updated case
72
- */
73
- update(caObjectId: number, options?: Object): Promise<unknown>;
74
- /**
75
- * Get cases by IDs
76
- *
77
- * @category Cases
78
- * @param {Array<number>} caObjectIds - The case Object ID to update
79
- * @return {Object} Returns Promise that represents a collection of objects describing the cases
80
- */
81
- getByIds(caObjectIds: Array<number>): Promise<unknown>;
82
- /**
83
- * Search for Cases. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
84
- *
85
- * @category Cases
86
- * @param {Object} filters - The parameter(s) to search by
87
- * @return {Object} Returns Promise that represents an Array of case Object IDs
88
- */
89
- search(filters: Object): Promise<unknown>;
90
- /**
91
- * Move a Case point
92
- *
93
- * @category Cases
94
- * @param {string} caObjectId
95
- * @param {number} x
96
- * @param {number} y
97
- * @param {Object} projection - Should include at least WKT _or_ WKID attribute. Can also include VcsWKID attribute.
98
- * @param {number} [z] - Optional Z coordinate
99
- * @return {Object} Returns Promise that represents an object describing the updated GISPoint
100
- */
101
- move(caObjectId: number, x: number, y: number, projection: {
102
- WKID?: string;
103
- WKT?: string;
104
- VcsWKID?: string;
105
- }, z?: number): Promise<unknown>;
106
- /**
107
- * Delete case
108
- *
109
- * @category Cases
110
- * @param {number} caObjectId - The case Object ID
111
- * @return {Object} Returns Promise that represents an object describing the deleted case
112
- */
113
- delete(caObjectId: number): Promise<unknown>;
114
- }