cityworks 1.0.6 → 2.1.0

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.
@@ -1,241 +1,274 @@
1
- export interface Briefcase {
2
- TempTableName: string;
3
- AnonymousFlag: string;
4
- RegisteredFlag: string;
5
- CreatedByLoginId: string;
6
- TableName: string;
7
- ModifiedByLoginId: number;
8
- AcceptedByLoginId: number;
9
- EnteredByLoginid: number;
10
- WorkOrderId: string;
11
- WorkOrderDesc: string;
12
- WorkOrderStatus: string;
13
- ServiceRequestId: number;
14
- ServiceRequestDesc: string;
15
- ServiceRequestStatus: string;
16
- CloneCaseRelation: any | null;
17
- PendingFlag: any | null;
18
- CaseGroup: any | null;
19
- ParentCaObjectId: number | null;
20
- AmountDue: number | null;
21
- GetViewColumns: Array<string>;
22
- CaObjectId: number;
23
- OrgId: number;
24
- CaseTypeId: number;
25
- CaseType: string;
26
- CaseTypeDesc: string;
27
- BusCaseDesc: string | null;
28
- SubTypeId: number | null;
29
- SubType: string | null;
30
- SubTypeDesc: string | null;
31
- CreatedBy: number;
32
- DateAccepted: Date | null;
33
- DateCreated: Date;
34
- DateEntered: Date;
35
- DateExpiration: Date | null;
36
- DateIssued: Date | null;
37
- DateModified: Date | null;
38
- EnteredBy: number;
39
- ExpiredFlag: string | null;
40
- IssuedBy: number | null;
41
- IssuedFlag: string | null;
42
- ModifiedBy: number | null;
43
- SubTypeDefaultText: string | null;
44
- CaseNumber: string;
45
- CaseStatusId: number;
46
- CaseStatus: string;
47
- ProjectSid: number | null;
48
- ProjectId: string | null;
49
- ProjectCode: string | null;
50
- ProjectDesc: string | null;
51
- PriorityLevel: string | null;
52
- StatusCode: string;
53
- CaseName: string;
54
- AcceptedBy: number;
55
- BLicenseFlag: string | null;
56
- BusinessName: string | null;
57
- BusCaseId: number | null;
58
- BusinessOrgType: string | null;
59
- BusinessCategory: string | null;
60
- StateTaxId: string | null;
61
- FedTaxId: string | null;
62
- Location: string | null;
63
- PACaseFlag: string | null;
64
- ActiveFlag: string | null;
65
- CX: number | null;
66
- CY: number | null;
67
- CZ: number | null;
68
- AssignedTo: number | null;
69
- AssignedToLoginId: string | null;
70
- AssignedToFirstName: string | null;
71
- AssignedToLastName: string | null;
72
- Facility_Id: string | number | null;
73
- Level_Id: string | number | null;
74
- }
75
- export declare class Briefcase {
76
- /**
77
- * @hidden
78
- */
79
- cw: any;
80
- /**
81
- * @hidden
82
- */
83
- current_case: number;
84
- /**
85
- * Data Detail methods
86
- */
87
- data?: any;
88
- /**
89
- * Asset (Address) methods
90
- */
91
- asset?: any;
92
- /**
93
- * Asset (Address) methods
94
- */
95
- attachments?: any;
96
- /**
97
- * Workflow & task methods
98
- */
99
- workflow?: any;
100
- /**
101
- * Payment, Receipt, & Fee methods
102
- */
103
- financial?: any;
104
- /**
105
- * Commenting methods
106
- */
107
- comment?: any;
108
- /**
109
- * PLL Administration methods
110
- */
111
- admin?: any;
112
- /**
113
- * @hidden
114
- */
115
- constructor(cw: any);
116
- /**
117
- * Create new case
118
- *
119
- * @category Cases
120
- * @param {number} caseTypeId - The case Type ID
121
- * @param {number} subTypeId - The case subType ID
122
- * @param {Object} [options] - See /{subdirectory}/apidocs/#/data-type-info;dataType=CaObjectItemBase
123
- * @return {Object} Returns Promise that represents an object describing the newly-created case
124
- */
125
- create(caseTypeId: number, subTypeId: number, options?: Object): Promise<Briefcase>;
126
- /**
127
- * Create a child case
128
- *
129
- * @category Cases
130
- * @param {number} busCaseId - The case Type ID
131
- * @param {number} parentCaObjectId - The case subType ID
132
- * @param {Object} [options] - See /{subdirectory}/apidocs/#/data-type-info;dataType=CaObjectItemBase
133
- * @return {Object} Returns Promise that represents an object describing the newly-created case
134
- */
135
- createChild(busCaseId: number, parentCaObjectId: number, options?: Object): Promise<Briefcase>;
136
- /**
137
- * Create a case from a Service Request
138
- *
139
- * @category Cases
140
- * @param {number} caseTypeId - The case Type ID
141
- * @param {number} subTypeId - The case subType ID
142
- * @param {number} requestId - The service request ID
143
- * @param {Object} [options] - See /{subdirectory}/apidocs/#/data-type-info;dataType=CaObjectItemBase
144
- * @return {Object} Returns Promise that represents an object describing the newly-created case
145
- */
146
- createFromRequest(caseTypeId: number, subTypeId: number, requestId: number, options?: Object): Promise<unknown>;
147
- /**
148
- * Update a case
149
- *
150
- * @category Cases
151
- * @param {number} caObjectId - The case Object ID to update
152
- * @param {Object} [options] - See /{subdirectory}/apidocs/#/data-type-info;dataType=CaObjectItemBase
153
- * @return {Object} Returns Promise that represents an object describing the updated case
154
- */
155
- update(caObjectId: number, options?: Object): Promise<Briefcase>;
156
- /**
157
- * Get cases by IDs
158
- *
159
- * @category Cases
160
- * @param {Array<number>} caObjectIds - The case Object ID to get
161
- * @return {Object} Returns Promise that represents a collection of objects describing the cases
162
- */
163
- getByIds(caObjectIds: Array<number>): Promise<Array<Briefcase>>;
164
- /**
165
- * Search for Cases. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
166
- *
167
- * @category Cases
168
- * @param {Object} filters - The parameter(s) to search by
169
- * @return {Object} Returns Promise that represents an Array of case Object IDs
170
- */
171
- search(filters: Object): Promise<Array<number>>;
172
- /**
173
- * Move a Case point
174
- *
175
- * @category Cases
176
- * @param {string} caObjectId
177
- * @param {number} x
178
- * @param {number} y
179
- * @param {Object} projection - Should include at least WKT _or_ WKID attribute. Can also include VcsWKID attribute.
180
- * @param {number} [z] - Optional Z coordinate
181
- * @return {Object} Returns Promise that represents an object describing the updated GISPoint
182
- */
183
- move(caObjectId: number, x: number, y: number, projection: {
184
- WKID?: string;
185
- WKT?: string;
186
- VcsWKID?: string;
187
- }, z?: number): Promise<unknown>;
188
- /**
189
- * Delete case
190
- *
191
- * @category Cases
192
- * @param {number} caObjectId - The case Object ID
193
- * @return {Object} Returns Promise that represents an object describing the deleted case
194
- */
195
- delete(caObjectId: number): Promise<unknown>;
196
- /**
197
- * Get Map Layer Fields
198
- *
199
- * @category Cases
200
- * @param {number} caObjectId - The case object ID to get the map layer fields for.
201
- * @return {Object} Returns Promise that represents a collection of Objects describing the case object map layer fields
202
- */
203
- getMLFs(caObjectId: number): Promise<unknown>;
204
- /**
205
- * Update Map Layer Fields
206
- *
207
- * @category Cases
208
- * @param {number} caObjectId - The case object ID to get the map layer fields for.
209
- * @param {number} x
210
- * @param {number} y
211
- * @param {number} domainId - The domain ID for the case in question
212
- * @param {number} [z] - Optional Z coordinate
213
- * @return {Object} Returns Promise that represents a collection of Objects describing the case object map layer fields
214
- */
215
- updateMLFs(caObjectId: number, x?: number, y?: number, domainId?: number, z?: number): Promise<unknown>;
216
- /**
217
- * Delete Map Layer Fields
218
- *
219
- * @category Cases
220
- * @param {number} caObjectId - The case object ID to delete the map layer fields for.
221
- * @return {Object} Returns Promise that represents a collection of Objects describing the case object map layer fields deleted
222
- */
223
- deleteMLFs(caObjectId: number): Promise<unknown>;
224
- /**
225
- * Reports available for Case
226
- *
227
- * @category Cases
228
- * @param {number} caObjectId - The case object ID to get the report (print template) list for
229
- * @return {Object} Returns Promise that represents a collection of Objects describing the reports (print templates) available for this case
230
- */
231
- getPrintTemplates(caObjectId: number): Promise<unknown>;
232
- /**
233
- * Print Case
234
- *
235
- * @category Cases
236
- * @param {number} caObjectId - The case object ID to delete the map layer fields for.
237
- * @param {string} fileName - the filename of the report from the getPrintTemplates method, but w/out the extension
238
- * @return {Object} Returns Promise that represents a collection of Objects describing the case object map layer fields deleted
239
- */
240
- print(caObjectId: number, fileName: string, callback: any): Promise<unknown>;
241
- }
1
+ export interface Briefcase {
2
+ TempTableName: string;
3
+ AnonymousFlag: string;
4
+ RegisteredFlag: string;
5
+ CreatedByLoginId: string;
6
+ TableName: string;
7
+ ModifiedByLoginId: number;
8
+ AcceptedByLoginId: number;
9
+ EnteredByLoginid: number;
10
+ WorkOrderId: string;
11
+ WorkOrderDesc: string;
12
+ WorkOrderStatus: string;
13
+ ServiceRequestId: number;
14
+ ServiceRequestDesc: string;
15
+ ServiceRequestStatus: string;
16
+ CloneCaseRelation: any | null;
17
+ PendingFlag: any | null;
18
+ CaseGroup: any | null;
19
+ ParentCaObjectId: number | null;
20
+ AmountDue: number | null;
21
+ GetViewColumns: Array<string>;
22
+ CaObjectId: number;
23
+ OrgId: number;
24
+ CaseTypeId: number;
25
+ CaseType: string;
26
+ CaseTypeDesc: string;
27
+ BusCaseDesc: string | null;
28
+ SubTypeId: number | null;
29
+ SubType: string | null;
30
+ SubTypeDesc: string | null;
31
+ CreatedBy: number;
32
+ DateAccepted: Date | null;
33
+ DateCreated: Date;
34
+ DateEntered: Date;
35
+ DateExpiration: Date | null;
36
+ DateIssued: Date | null;
37
+ DateModified: Date | null;
38
+ EnteredBy: number;
39
+ ExpiredFlag: string | null;
40
+ IssuedBy: number | null;
41
+ IssuedFlag: string | null;
42
+ ModifiedBy: number | null;
43
+ SubTypeDefaultText: string | null;
44
+ CaseNumber: string;
45
+ CaseStatusId: number;
46
+ CaseStatus: string;
47
+ ProjectSid: number | null;
48
+ ProjectId: string | null;
49
+ ProjectCode: string | null;
50
+ ProjectDesc: string | null;
51
+ PriorityLevel: string | null;
52
+ StatusCode: string;
53
+ CaseName: string;
54
+ AcceptedBy: number;
55
+ BLicenseFlag: string | null;
56
+ BusinessName: string | null;
57
+ BusCaseId: number | null;
58
+ BusinessOrgType: string | null;
59
+ BusinessCategory: string | null;
60
+ StateTaxId: string | null;
61
+ FedTaxId: string | null;
62
+ Location: string | null;
63
+ PACaseFlag: string | null;
64
+ ActiveFlag: string | null;
65
+ CX: number | null;
66
+ CY: number | null;
67
+ CZ: number | null;
68
+ AssignedTo: number | null;
69
+ AssignedToLoginId: string | null;
70
+ AssignedToFirstName: string | null;
71
+ AssignedToLastName: string | null;
72
+ Facility_Id: string | number | null;
73
+ Level_Id: string | number | null;
74
+ }
75
+ export declare class Briefcase {
76
+ /**
77
+ * @hidden
78
+ */
79
+ cw: any;
80
+ /**
81
+ * @hidden
82
+ */
83
+ current_case: number;
84
+ /**
85
+ * Data Detail methods
86
+ */
87
+ data?: any;
88
+ /**
89
+ * Asset (Address) methods
90
+ */
91
+ asset?: any;
92
+ /**
93
+ * Asset (Address) methods
94
+ */
95
+ attachments?: any;
96
+ /**
97
+ * Workflow & task methods
98
+ */
99
+ workflow?: any;
100
+ /**
101
+ * Payment, Receipt, & Fee methods
102
+ */
103
+ financial?: any;
104
+ /**
105
+ * Commenting methods
106
+ */
107
+ comment?: any;
108
+ /**
109
+ * Payment, Receipt, & Fee methods
110
+ */
111
+ people?: any;
112
+ /**
113
+ * PLL Administration methods
114
+ */
115
+ admin?: any;
116
+ /**
117
+ * @hidden
118
+ */
119
+ constructor(cw: any);
120
+ /**
121
+ * Get Required items for case by case template id (BusCaseId)
122
+ *
123
+ * @category Cases
124
+ * @param {number} busCaseId - The case tmeplate ID (BusCaseId)
125
+ * @return {Object} Returns Promise that represents a collection of objects describing the requirements of the case template
126
+ */
127
+ getRequirements(busCaseId: number): Promise<Briefcase>;
128
+ /**
129
+ * Create new case
130
+ *
131
+ * @category Cases
132
+ * @param {number} caseTypeId - The case Type ID
133
+ * @param {number} subTypeId - The case subType ID
134
+ * @param {Object} [options] - See /{subdirectory}/apidocs/#/data-type-info;dataType=CaObjectItemBase
135
+ * @return {Object} Returns Promise that represents an object describing the newly-created case
136
+ */
137
+ create(caseTypeId: number, subTypeId: number, options?: Object): Promise<Briefcase>;
138
+ /**
139
+ * Create a child case
140
+ *
141
+ * @category Cases
142
+ * @param {number} busCaseId - The case Type ID
143
+ * @param {number} parentCaObjectId - The case subType ID
144
+ * @param {Object} [options] - See /{subdirectory}/apidocs/#/data-type-info;dataType=CaObjectItemBase
145
+ * @return {Object} Returns Promise that represents an object describing the newly-created case
146
+ */
147
+ createChild(busCaseId: number, parentCaObjectId: number, options?: Object): Promise<Briefcase>;
148
+ /**
149
+ * Create a case from a Service Request
150
+ *
151
+ * @category Cases
152
+ * @param {number} caseTypeId - The case Type ID
153
+ * @param {number} subTypeId - The case subType ID
154
+ * @param {number} requestId - The service request ID
155
+ * @param {Object} [options] - See /{subdirectory}/apidocs/#/data-type-info;dataType=CaObjectItemBase
156
+ * @return {Object} Returns Promise that represents an object describing the newly-created case
157
+ */
158
+ createFromRequest(caseTypeId: number, subTypeId: number, requestId: number, options?: Object): Promise<unknown>;
159
+ /**
160
+ * Update a case
161
+ *
162
+ * @category Cases
163
+ * @param {number} caObjectId - The case Object ID to update
164
+ * @param {Object} [options] - See /{subdirectory}/apidocs/#/data-type-info;dataType=CaObjectItemBase
165
+ * @return {Object} Returns Promise that represents an object describing the updated case
166
+ */
167
+ update(caObjectId: number, options?: Object): Promise<Briefcase>;
168
+ /**
169
+ * Get cases by IDs
170
+ *
171
+ * @category Cases
172
+ * @param {Array<number>} caObjectIds - The case Object ID to get
173
+ * @return {Object} Returns Promise that represents a collection of objects describing the cases
174
+ */
175
+ getByIds(caObjectIds: Array<number>): Promise<Array<Briefcase>>;
176
+ /**
177
+ * Search for Cases. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
178
+ *
179
+ * @category Cases
180
+ * @param {Object} filters - The parameter(s) to search by
181
+ * @return {Object} Returns Promise that represents an Array of case Object IDs
182
+ */
183
+ search(filters: Object): Promise<Array<number>>;
184
+ /**
185
+ * Move a Case point
186
+ *
187
+ * @category Cases
188
+ * @param {string} caObjectId
189
+ * @param {number} x
190
+ * @param {number} y
191
+ * @param {Object} projection - Should include at least WKT _or_ WKID attribute. Can also include VcsWKID attribute.
192
+ * @param {number} [z] - Optional Z coordinate
193
+ * @return {Object} Returns Promise that represents an object describing the updated GISPoint
194
+ */
195
+ move(caObjectId: number, x: number, y: number, projection: {
196
+ WKID?: string;
197
+ WKT?: string;
198
+ VcsWKID?: string;
199
+ }, z?: number): Promise<unknown>;
200
+ /**
201
+ * Delete case
202
+ *
203
+ * @category Cases
204
+ * @param {number} caObjectId - The case Object ID
205
+ * @return {Object} Returns Promise that represents an object describing the deleted case
206
+ */
207
+ delete(caObjectId: number): Promise<unknown>;
208
+ /**
209
+ * Get Map Layer Fields
210
+ *
211
+ * @category Cases
212
+ * @param {number} caObjectId - The case object ID to get the map layer fields for.
213
+ * @return {Object} Returns Promise that represents a collection of Objects describing the case object map layer fields
214
+ */
215
+ getMLFs(caObjectId: number): Promise<unknown>;
216
+ /**
217
+ * Update Map Layer Fields
218
+ *
219
+ * @category Cases
220
+ * @param {number} caObjectId - The case object ID to get the map layer fields for.
221
+ * @param {number} x
222
+ * @param {number} y
223
+ * @param {number} domainId - The domain ID for the case in question
224
+ * @param {number} [z] - Optional Z coordinate
225
+ * @return {Object} Returns Promise that represents a collection of Objects describing the case object map layer fields
226
+ */
227
+ updateMLFs(caObjectId: number, x?: number, y?: number, domainId?: number, z?: number): Promise<unknown>;
228
+ /**
229
+ * Delete Map Layer Fields
230
+ *
231
+ * @category Cases
232
+ * @param {number} caObjectId - The case object ID to delete the map layer fields for.
233
+ * @return {Object} Returns Promise that represents a collection of Objects describing the case object map layer fields deleted
234
+ */
235
+ deleteMLFs(caObjectId: number): Promise<unknown>;
236
+ /**
237
+ * Reports available for Case
238
+ *
239
+ * @category Cases
240
+ * @param {number} caObjectId - The case object ID to get the report (print template) list for
241
+ * @return {Object} Returns Promise that represents a collection of Objects describing the reports (print templates) available for this case
242
+ */
243
+ getPrintTemplates(caObjectId: number): Promise<unknown>;
244
+ /**
245
+ * Print Case
246
+ *
247
+ * @category Cases
248
+ * @param {number} caObjectId - The case object ID to delete the map layer fields for.
249
+ * @param {string} fileName - the filename of the report from the getPrintTemplates method, but w/out the extension
250
+ * @return {Object} Returns Promise that represents a collection of Objects describing the case object map layer fields deleted
251
+ */
252
+ print(caObjectId: number, fileName: string, callback: any): Promise<unknown>;
253
+ /**
254
+ * Get the configured zip codes for the install
255
+ *
256
+ * @category Cases
257
+ * @return {Object} Returns Promise that represents a collection of zip codes configured for the install
258
+ */
259
+ getZips(): Promise<unknown>;
260
+ /**
261
+ * Get the configured states for the install
262
+ *
263
+ * @category Cases
264
+ * @return {Object} Returns Promise that represents a collection of states configured for the install
265
+ */
266
+ getStates(): Promise<unknown>;
267
+ /**
268
+ * Get the configured countries for the install
269
+ *
270
+ * @category Cases
271
+ * @return {Object} Returns Promise that represents a collection of countries configured for the install
272
+ */
273
+ getCountries(): Promise<unknown>;
274
+ }