@ikonintegration/module-contractor-api 1.0.2 → 1.0.4
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/Api.ts +742 -477
- package/package.json +1 -1
- package/dist/Api.d.ts +0 -1463
- package/dist/Api.js +0 -891
- package/dist/Api.js.map +0 -1
package/Api.ts
CHANGED
|
@@ -17,15 +17,9 @@ export interface ErrorResponse {
|
|
|
17
17
|
errCode: string
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export interface
|
|
21
|
-
/**
|
|
22
|
-
|
|
23
|
-
* @minLength 1
|
|
24
|
-
* @maxLength 50
|
|
25
|
-
* @pattern ^[a-zA-Z0-9]+$
|
|
26
|
-
* @example "ACC001"
|
|
27
|
-
*/
|
|
28
|
-
codeID: string
|
|
20
|
+
export interface CreateCodeSchema {
|
|
21
|
+
/** Unique code identifier (1-50 alphanumeric characters) */
|
|
22
|
+
codeID: CodeIDSchema
|
|
29
23
|
/**
|
|
30
24
|
* ID of the department this code belongs to
|
|
31
25
|
* @minLength 1
|
|
@@ -41,7 +35,26 @@ export interface InputEbucity1Z4 {
|
|
|
41
35
|
description: string
|
|
42
36
|
}
|
|
43
37
|
|
|
44
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Unique code identifier (1-50 alphanumeric characters)
|
|
40
|
+
* @minLength 1
|
|
41
|
+
* @maxLength 50
|
|
42
|
+
* @pattern ^[a-zA-Z0-9]+$
|
|
43
|
+
* @example "ACC001"
|
|
44
|
+
*/
|
|
45
|
+
export type CodeIDSchema = string
|
|
46
|
+
|
|
47
|
+
/** Created code */
|
|
48
|
+
export interface PostCodeResponseSchema {
|
|
49
|
+
/** Code identifier */
|
|
50
|
+
codeID: string
|
|
51
|
+
/** Associated department ID */
|
|
52
|
+
departmentID: string
|
|
53
|
+
/** Code description */
|
|
54
|
+
description: string
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface UpdateCodeSchema {
|
|
45
58
|
/**
|
|
46
59
|
* Updated description of the code (1-255 characters)
|
|
47
60
|
* @minLength 1
|
|
@@ -51,7 +64,26 @@ export interface InputLrvyo8663G {
|
|
|
51
64
|
description: string
|
|
52
65
|
}
|
|
53
66
|
|
|
54
|
-
|
|
67
|
+
/** Updated code */
|
|
68
|
+
export interface PutCodeResponseSchema {
|
|
69
|
+
/** Code identifier */
|
|
70
|
+
codeID: string
|
|
71
|
+
/** Associated department ID */
|
|
72
|
+
departmentID: string
|
|
73
|
+
/** Updated code description */
|
|
74
|
+
description: string
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** Code deletion result (empty body) */
|
|
78
|
+
export type DeleteCodeResponseSchema = object
|
|
79
|
+
|
|
80
|
+
/** Codes list */
|
|
81
|
+
export interface GetCodesResponseSchema {
|
|
82
|
+
/** List of codes */
|
|
83
|
+
codes: any[]
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface CreateContractorSchema {
|
|
55
87
|
/**
|
|
56
88
|
* Full name of the contractor
|
|
57
89
|
* @minLength 1
|
|
@@ -73,24 +105,52 @@ export interface InputX0At7Jc9N {
|
|
|
73
105
|
* List of hourly job rates (at least one required)
|
|
74
106
|
* @minItems 1
|
|
75
107
|
*/
|
|
76
|
-
jobRates:
|
|
77
|
-
/**
|
|
78
|
-
* Description of the job rate
|
|
79
|
-
* @minLength 1
|
|
80
|
-
* @example "Senior Instructor"
|
|
81
|
-
*/
|
|
82
|
-
description: string
|
|
83
|
-
/**
|
|
84
|
-
* Hourly rate value in dollars (must be greater than zero)
|
|
85
|
-
* @min 0
|
|
86
|
-
* @exclusiveMin true
|
|
87
|
-
* @example 75
|
|
88
|
-
*/
|
|
89
|
-
hourlyValue: number
|
|
90
|
-
}[]
|
|
108
|
+
jobRates: JobRateSchema[]
|
|
91
109
|
}
|
|
92
110
|
|
|
93
|
-
export interface
|
|
111
|
+
export interface JobRateSchema {
|
|
112
|
+
/**
|
|
113
|
+
* Description of the job rate
|
|
114
|
+
* @minLength 1
|
|
115
|
+
* @example "Senior Instructor"
|
|
116
|
+
*/
|
|
117
|
+
description: string
|
|
118
|
+
/**
|
|
119
|
+
* Hourly rate value in dollars (must be greater than zero)
|
|
120
|
+
* @min 0
|
|
121
|
+
* @exclusiveMin true
|
|
122
|
+
* @example 75
|
|
123
|
+
*/
|
|
124
|
+
hourlyValue: number
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/** Created contractor */
|
|
128
|
+
export interface PostContractorResponseSchema {
|
|
129
|
+
/** Created contractor user ID */
|
|
130
|
+
userID: string
|
|
131
|
+
/** Contractor name */
|
|
132
|
+
name: string
|
|
133
|
+
/** Contractor email */
|
|
134
|
+
email: string
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/** Contractor profile */
|
|
138
|
+
export interface GetContractorResponseSchema {
|
|
139
|
+
/** Contractor user ID */
|
|
140
|
+
userID: string
|
|
141
|
+
/** Contractor name */
|
|
142
|
+
name: string
|
|
143
|
+
/** Contractor email */
|
|
144
|
+
email: string
|
|
145
|
+
/** Contractor job rates */
|
|
146
|
+
jobRates?: any[]
|
|
147
|
+
/** Per-contractor rate overrides */
|
|
148
|
+
maximums?: Record<string, number>
|
|
149
|
+
/** Resolved effective rates (self-view) */
|
|
150
|
+
effectiveRates?: Record<string, number>
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export interface UpdateContractorRatesSchema {
|
|
94
154
|
/**
|
|
95
155
|
* Maximum nightly accommodation amount (positive, up to two decimal places)
|
|
96
156
|
* @min 0
|
|
@@ -128,15 +188,49 @@ export interface InputO4N90Uymjl {
|
|
|
128
188
|
transportationMax?: number
|
|
129
189
|
}
|
|
130
190
|
|
|
131
|
-
|
|
191
|
+
/** Updated contractor rates */
|
|
192
|
+
export interface PutContractorRatesResponseSchema {
|
|
193
|
+
/** Contractor user ID */
|
|
194
|
+
userID: string
|
|
195
|
+
/** Updated rate maximums */
|
|
196
|
+
maximums: Record<string, number>
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/** Password reset result */
|
|
200
|
+
export interface PostResetPasswordResponseSchema {
|
|
201
|
+
/** Success message */
|
|
202
|
+
message: string
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export interface UpdateContractorStatusSchema {
|
|
132
206
|
/**
|
|
133
207
|
* The contractor's local status. Set to 'active' to enable or 'disabled' to disable the account.
|
|
134
208
|
* @example "active"
|
|
135
209
|
*/
|
|
136
|
-
status:
|
|
210
|
+
status: UpdateContractorStatusSchemaStatusEnum
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/** Updated contractor status */
|
|
214
|
+
export interface PutContractorStatusResponseSchema {
|
|
215
|
+
/** Contractor user ID */
|
|
216
|
+
userID: string
|
|
217
|
+
/** Updated local account status */
|
|
218
|
+
localStatus: string
|
|
137
219
|
}
|
|
138
220
|
|
|
139
|
-
|
|
221
|
+
/** List of contractors */
|
|
222
|
+
export type GetContractorsResponseSchema = {
|
|
223
|
+
/** Contractor user ID */
|
|
224
|
+
userID: string
|
|
225
|
+
/** Contractor name */
|
|
226
|
+
name: string
|
|
227
|
+
/** Contractor email */
|
|
228
|
+
email: string
|
|
229
|
+
/** Local account status */
|
|
230
|
+
localStatus?: string
|
|
231
|
+
}[]
|
|
232
|
+
|
|
233
|
+
export interface CreateDepartmentSchema {
|
|
140
234
|
/**
|
|
141
235
|
* Name of the department (1-150 characters)
|
|
142
236
|
* @minLength 1
|
|
@@ -153,7 +247,17 @@ export interface InputD79Au0K6W5 {
|
|
|
153
247
|
contactEmails: string[]
|
|
154
248
|
}
|
|
155
249
|
|
|
156
|
-
|
|
250
|
+
/** Created department */
|
|
251
|
+
export interface PostDepartmentResponseSchema {
|
|
252
|
+
/** Created department ID */
|
|
253
|
+
departmentID: string
|
|
254
|
+
/** Department name */
|
|
255
|
+
name: string
|
|
256
|
+
/** Contact email addresses */
|
|
257
|
+
contactEmails: string[]
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export interface UpdateDepartmentSchema {
|
|
157
261
|
/**
|
|
158
262
|
* Updated name of the department (1-150 characters)
|
|
159
263
|
* @minLength 1
|
|
@@ -170,7 +274,27 @@ export interface InputTktzkj8J4D {
|
|
|
170
274
|
contactEmails?: string[]
|
|
171
275
|
}
|
|
172
276
|
|
|
173
|
-
|
|
277
|
+
/** Updated department */
|
|
278
|
+
export interface PutDepartmentResponseSchema {
|
|
279
|
+
/** Department ID */
|
|
280
|
+
departmentID: string
|
|
281
|
+
/** Department name */
|
|
282
|
+
name: string
|
|
283
|
+
/** Contact email addresses */
|
|
284
|
+
contactEmails: string[]
|
|
285
|
+
/** Associated administrator user IDs */
|
|
286
|
+
adminUserIDs: string[]
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/** Department deletion result */
|
|
290
|
+
export interface DeleteDepartmentResponseSchema {
|
|
291
|
+
/** Deleted department ID */
|
|
292
|
+
departmentID: string
|
|
293
|
+
/** Deletion confirmation */
|
|
294
|
+
deleted: DeleteDepartmentResponseSchemaDeletedEnum
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export interface AssociateAdminSchema {
|
|
174
298
|
/**
|
|
175
299
|
* The user ID of the administrator to associate with the department
|
|
176
300
|
* @minLength 1
|
|
@@ -179,7 +303,55 @@ export interface InputGxh0Yjattn {
|
|
|
179
303
|
userID: string
|
|
180
304
|
}
|
|
181
305
|
|
|
182
|
-
|
|
306
|
+
/** Admin association result */
|
|
307
|
+
export interface PostDepartmentAdminResponseSchema {
|
|
308
|
+
/** Department ID */
|
|
309
|
+
departmentID: string
|
|
310
|
+
/** Associated administrator user ID */
|
|
311
|
+
userID: string
|
|
312
|
+
/** Optional message if already associated */
|
|
313
|
+
message?: string
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/** Admin removal result */
|
|
317
|
+
export interface DeleteDepartmentAdminResponseSchema {
|
|
318
|
+
/** Department ID */
|
|
319
|
+
departmentID: string
|
|
320
|
+
/** Removed administrator user ID */
|
|
321
|
+
userID: string
|
|
322
|
+
/** Removal confirmation */
|
|
323
|
+
removed: DeleteDepartmentAdminResponseSchemaRemovedEnum
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/** List of departments (public fields) */
|
|
327
|
+
export type GetDepartmentsResponseSchema = {
|
|
328
|
+
/** Department unique identifier */
|
|
329
|
+
departmentID: string
|
|
330
|
+
/** Department name */
|
|
331
|
+
name: string
|
|
332
|
+
}[]
|
|
333
|
+
|
|
334
|
+
/** System settings */
|
|
335
|
+
export interface GetSettingsResponseSchema {
|
|
336
|
+
/** System-wide mileage rate per kilometre */
|
|
337
|
+
mileageRate: number
|
|
338
|
+
/** Accommodation nightly maximum */
|
|
339
|
+
accommodationNightly: number
|
|
340
|
+
/** Breakfast meal maximum */
|
|
341
|
+
mealBreakfast: number
|
|
342
|
+
/** Lunch meal maximum */
|
|
343
|
+
mealLunch: number
|
|
344
|
+
/** Dinner meal maximum */
|
|
345
|
+
mealDinner: number
|
|
346
|
+
/** Transportation maximum */
|
|
347
|
+
transportationMax: number
|
|
348
|
+
/** Days between reminder emails */
|
|
349
|
+
reminderIntervalDays: number
|
|
350
|
+
/** Default department for RSA submissions */
|
|
351
|
+
rsaDepartmentID?: string
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export interface UpdateRatesSchema {
|
|
183
355
|
/**
|
|
184
356
|
* Mileage rate in dollars per kilometre (positive, up to two decimal places)
|
|
185
357
|
* @min 0
|
|
@@ -189,7 +361,13 @@ export interface InputEh0Dqq1G7Q {
|
|
|
189
361
|
mileageRate: number
|
|
190
362
|
}
|
|
191
363
|
|
|
192
|
-
|
|
364
|
+
/** Updated mileage rate */
|
|
365
|
+
export interface PutSettingsRatesResponseSchema {
|
|
366
|
+
/** Updated mileage rate */
|
|
367
|
+
mileageRate: number
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
export interface UpdateMaximumsSchema {
|
|
193
371
|
/**
|
|
194
372
|
* Maximum nightly accommodation amount (positive, up to two decimal places)
|
|
195
373
|
* @min 0
|
|
@@ -227,7 +405,21 @@ export interface InputTiewwv56Cc {
|
|
|
227
405
|
transportationMax: number
|
|
228
406
|
}
|
|
229
407
|
|
|
230
|
-
|
|
408
|
+
/** Updated expense maximums */
|
|
409
|
+
export interface PutSettingsMaximumsResponseSchema {
|
|
410
|
+
/** Accommodation nightly maximum */
|
|
411
|
+
accommodationNightly: number
|
|
412
|
+
/** Breakfast meal maximum */
|
|
413
|
+
mealBreakfast: number
|
|
414
|
+
/** Lunch meal maximum */
|
|
415
|
+
mealLunch: number
|
|
416
|
+
/** Dinner meal maximum */
|
|
417
|
+
mealDinner: number
|
|
418
|
+
/** Transportation maximum */
|
|
419
|
+
transportationMax: number
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
export interface UpdateRemindersSchema {
|
|
231
423
|
/**
|
|
232
424
|
* Number of days between reminder emails (positive integer)
|
|
233
425
|
* @min 0
|
|
@@ -237,8 +429,14 @@ export interface InputBt0Uuj40Knj {
|
|
|
237
429
|
reminderIntervalDays: number
|
|
238
430
|
}
|
|
239
431
|
|
|
432
|
+
/** Updated reminder interval */
|
|
433
|
+
export interface PutSettingsRemindersResponseSchema {
|
|
434
|
+
/** Updated reminder interval in days */
|
|
435
|
+
reminderIntervalDays: number
|
|
436
|
+
}
|
|
437
|
+
|
|
240
438
|
/** Create a new draft submission */
|
|
241
|
-
export interface
|
|
439
|
+
export interface CreateSubmissionSchema {
|
|
242
440
|
/**
|
|
243
441
|
* Department ID
|
|
244
442
|
* @minLength 1
|
|
@@ -260,7 +458,7 @@ export interface InputIjeu6D8I3B {
|
|
|
260
458
|
* Submission type
|
|
261
459
|
* @example "Submission"
|
|
262
460
|
*/
|
|
263
|
-
type:
|
|
461
|
+
type: CreateSubmissionSchemaTypeEnum
|
|
264
462
|
/**
|
|
265
463
|
* Invoice number or "N/A"
|
|
266
464
|
* @minLength 1
|
|
@@ -282,165 +480,185 @@ export interface InputIjeu6D8I3B {
|
|
|
282
480
|
* Service invoice line items
|
|
283
481
|
* @default []
|
|
284
482
|
*/
|
|
285
|
-
invoices?:
|
|
286
|
-
/**
|
|
287
|
-
* Invoice description
|
|
288
|
-
* @minLength 1
|
|
289
|
-
* @example "Consulting services"
|
|
290
|
-
*/
|
|
291
|
-
description: string
|
|
292
|
-
/**
|
|
293
|
-
* Time worked in hours
|
|
294
|
-
* @min 0
|
|
295
|
-
* @exclusiveMin true
|
|
296
|
-
* @example 8
|
|
297
|
-
*/
|
|
298
|
-
timeInHours: number
|
|
299
|
-
/**
|
|
300
|
-
* Hourly rate from contractor profile
|
|
301
|
-
* @min 0
|
|
302
|
-
* @exclusiveMin true
|
|
303
|
-
* @example 75
|
|
304
|
-
*/
|
|
305
|
-
hourlyRate: number
|
|
306
|
-
/**
|
|
307
|
-
* Tax amount
|
|
308
|
-
* @min 0
|
|
309
|
-
* @default 0
|
|
310
|
-
* @example 30
|
|
311
|
-
*/
|
|
312
|
-
taxAmount?: number
|
|
313
|
-
/**
|
|
314
|
-
* PO number for this invoice
|
|
315
|
-
* @example "PO-1234"
|
|
316
|
-
*/
|
|
317
|
-
poNumber?: string
|
|
318
|
-
/**
|
|
319
|
-
* File attachments for this invoice
|
|
320
|
-
* @default []
|
|
321
|
-
*/
|
|
322
|
-
attachments?: {
|
|
323
|
-
/**
|
|
324
|
-
* Unique file identifier
|
|
325
|
-
* @example "file-abc123"
|
|
326
|
-
*/
|
|
327
|
-
fileID: string
|
|
328
|
-
/**
|
|
329
|
-
* Original file name
|
|
330
|
-
* @example "invoice.pdf"
|
|
331
|
-
*/
|
|
332
|
-
fileName: string
|
|
333
|
-
/**
|
|
334
|
-
* MIME content type
|
|
335
|
-
* @example "application/pdf"
|
|
336
|
-
*/
|
|
337
|
-
contentType: string
|
|
338
|
-
/**
|
|
339
|
-
* File size in bytes
|
|
340
|
-
* @example 102400
|
|
341
|
-
*/
|
|
342
|
-
size: number
|
|
343
|
-
/**
|
|
344
|
-
* Upload timestamp (epoch ms)
|
|
345
|
-
* @example 1700000000000
|
|
346
|
-
*/
|
|
347
|
-
uploadedOn: number
|
|
348
|
-
}[]
|
|
349
|
-
}[]
|
|
483
|
+
invoices?: InvoiceInputSchema[]
|
|
350
484
|
/**
|
|
351
485
|
* Expense reimbursement line items
|
|
352
486
|
* @default []
|
|
353
487
|
*/
|
|
354
|
-
expenses?:
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
488
|
+
expenses?: ExpenseInputSchema[]
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
export interface InvoiceInputSchema {
|
|
492
|
+
/**
|
|
493
|
+
* Invoice description
|
|
494
|
+
* @minLength 1
|
|
495
|
+
* @example "Consulting services"
|
|
496
|
+
*/
|
|
497
|
+
description: string
|
|
498
|
+
/**
|
|
499
|
+
* Time worked in hours
|
|
500
|
+
* @min 0
|
|
501
|
+
* @exclusiveMin true
|
|
502
|
+
* @example 8
|
|
503
|
+
*/
|
|
504
|
+
timeInHours: number
|
|
505
|
+
/**
|
|
506
|
+
* Hourly rate from contractor profile
|
|
507
|
+
* @min 0
|
|
508
|
+
* @exclusiveMin true
|
|
509
|
+
* @example 75
|
|
510
|
+
*/
|
|
511
|
+
hourlyRate: number
|
|
512
|
+
/**
|
|
513
|
+
* Tax amount
|
|
514
|
+
* @min 0
|
|
515
|
+
* @default 0
|
|
516
|
+
* @example 30
|
|
517
|
+
*/
|
|
518
|
+
taxAmount?: number
|
|
519
|
+
/**
|
|
520
|
+
* PO number for this invoice
|
|
521
|
+
* @example "PO-1234"
|
|
522
|
+
*/
|
|
523
|
+
poNumber?: string
|
|
524
|
+
/**
|
|
525
|
+
* File attachments for this invoice
|
|
526
|
+
* @default []
|
|
527
|
+
*/
|
|
528
|
+
attachments?: AttachmentSchema[]
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
export interface AttachmentSchema {
|
|
532
|
+
/**
|
|
533
|
+
* Unique file identifier
|
|
534
|
+
* @example "file-abc123"
|
|
535
|
+
*/
|
|
536
|
+
fileID: string
|
|
537
|
+
/**
|
|
538
|
+
* Original file name
|
|
539
|
+
* @example "invoice.pdf"
|
|
540
|
+
*/
|
|
541
|
+
fileName: string
|
|
542
|
+
/**
|
|
543
|
+
* MIME content type
|
|
544
|
+
* @example "application/pdf"
|
|
545
|
+
*/
|
|
546
|
+
contentType: string
|
|
547
|
+
/**
|
|
548
|
+
* File size in bytes
|
|
549
|
+
* @example 102400
|
|
550
|
+
*/
|
|
551
|
+
size: number
|
|
552
|
+
/**
|
|
553
|
+
* Upload timestamp (epoch ms)
|
|
554
|
+
* @example 1700000000000
|
|
555
|
+
*/
|
|
556
|
+
uploadedOn: number
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
export interface ExpenseInputSchema {
|
|
560
|
+
/**
|
|
561
|
+
* Expense description
|
|
562
|
+
* @minLength 1
|
|
563
|
+
* @example "Hotel stay"
|
|
564
|
+
*/
|
|
565
|
+
description: string
|
|
566
|
+
/**
|
|
567
|
+
* Expense date (epoch ms)
|
|
568
|
+
* @example 1700000000000
|
|
569
|
+
*/
|
|
570
|
+
date: number
|
|
571
|
+
/**
|
|
572
|
+
* Expense type
|
|
573
|
+
* @example "Accommodation"
|
|
574
|
+
*/
|
|
575
|
+
type: ExpenseInputSchemaTypeEnum
|
|
576
|
+
/**
|
|
577
|
+
* Pre-tax amount
|
|
578
|
+
* @min 0
|
|
579
|
+
* @example 150
|
|
580
|
+
*/
|
|
581
|
+
preTaxAmount: number
|
|
582
|
+
/**
|
|
583
|
+
* Tax amount
|
|
584
|
+
* @min 0
|
|
585
|
+
* @default 0
|
|
586
|
+
* @example 7.5
|
|
587
|
+
*/
|
|
588
|
+
taxAmount?: number
|
|
589
|
+
/**
|
|
590
|
+
* Number of nights (Accommodation)
|
|
591
|
+
* @min 0
|
|
592
|
+
* @exclusiveMin true
|
|
593
|
+
* @example 2
|
|
594
|
+
*/
|
|
595
|
+
nights?: number
|
|
596
|
+
/**
|
|
597
|
+
* Meal type (Meal expenses)
|
|
598
|
+
* @example "Lunch"
|
|
599
|
+
*/
|
|
600
|
+
mealType?: ExpenseInputSchemaMealTypeEnum
|
|
601
|
+
/**
|
|
602
|
+
* Number of kilometres (Mileage)
|
|
603
|
+
* @min 0
|
|
604
|
+
* @exclusiveMin true
|
|
605
|
+
* @example 100
|
|
606
|
+
*/
|
|
607
|
+
numKilometres?: number
|
|
608
|
+
/**
|
|
609
|
+
* Transportation type (Transportation expenses)
|
|
610
|
+
* @example "Taxi"
|
|
611
|
+
*/
|
|
612
|
+
transportationType?: ExpenseInputSchemaTransportationTypeEnum
|
|
613
|
+
/**
|
|
614
|
+
* File attachments for this expense
|
|
615
|
+
* @default []
|
|
616
|
+
*/
|
|
617
|
+
attachments?: AttachmentSchema[]
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
/** Created submission with calculated totals */
|
|
621
|
+
export interface PostSubmissionResponseSchema {
|
|
622
|
+
/** Created submission ID */
|
|
623
|
+
submissionID: string
|
|
624
|
+
/** Submission status */
|
|
625
|
+
status: string
|
|
626
|
+
/** Total pre-tax amount */
|
|
627
|
+
preTaxAmount: number
|
|
628
|
+
/** Total tax amount */
|
|
629
|
+
taxAmount: number
|
|
630
|
+
/** Total amount including tax */
|
|
631
|
+
totalAmount: number
|
|
632
|
+
/** Created invoices */
|
|
633
|
+
invoices: {
|
|
634
|
+
/** Invoice ID */
|
|
635
|
+
invoiceID: string
|
|
636
|
+
/** Invoice pre-tax amount */
|
|
376
637
|
preTaxAmount: number
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* Number of nights (Accommodation)
|
|
386
|
-
* @min 0
|
|
387
|
-
* @exclusiveMin true
|
|
388
|
-
* @example 2
|
|
389
|
-
*/
|
|
390
|
-
nights?: number
|
|
391
|
-
/**
|
|
392
|
-
* Meal type (Meal expenses)
|
|
393
|
-
* @example "Lunch"
|
|
394
|
-
*/
|
|
395
|
-
mealType?: InputIjeu6D8I3BMealTypeEnum
|
|
396
|
-
/**
|
|
397
|
-
* Number of kilometres (Mileage)
|
|
398
|
-
* @min 0
|
|
399
|
-
* @exclusiveMin true
|
|
400
|
-
* @example 100
|
|
401
|
-
*/
|
|
402
|
-
numKilometres?: number
|
|
403
|
-
/**
|
|
404
|
-
* Transportation type (Transportation expenses)
|
|
405
|
-
* @example "Taxi"
|
|
406
|
-
*/
|
|
407
|
-
transportationType?: InputIjeu6D8I3BTransportationTypeEnum
|
|
408
|
-
/**
|
|
409
|
-
* File attachments for this expense
|
|
410
|
-
* @default []
|
|
411
|
-
*/
|
|
412
|
-
attachments?: {
|
|
413
|
-
/**
|
|
414
|
-
* Unique file identifier
|
|
415
|
-
* @example "file-abc123"
|
|
416
|
-
*/
|
|
417
|
-
fileID: string
|
|
418
|
-
/**
|
|
419
|
-
* Original file name
|
|
420
|
-
* @example "invoice.pdf"
|
|
421
|
-
*/
|
|
422
|
-
fileName: string
|
|
423
|
-
/**
|
|
424
|
-
* MIME content type
|
|
425
|
-
* @example "application/pdf"
|
|
426
|
-
*/
|
|
427
|
-
contentType: string
|
|
428
|
-
/**
|
|
429
|
-
* File size in bytes
|
|
430
|
-
* @example 102400
|
|
431
|
-
*/
|
|
432
|
-
size: number
|
|
433
|
-
/**
|
|
434
|
-
* Upload timestamp (epoch ms)
|
|
435
|
-
* @example 1700000000000
|
|
436
|
-
*/
|
|
437
|
-
uploadedOn: number
|
|
438
|
-
}[]
|
|
638
|
+
}[]
|
|
639
|
+
/** Created expenses with warning flags */
|
|
640
|
+
expenses: {
|
|
641
|
+
/** Expense ID */
|
|
642
|
+
expenseID: string
|
|
643
|
+
/** Whether expense exceeds configured maximum */
|
|
644
|
+
warningExceeded: boolean
|
|
439
645
|
}[]
|
|
440
646
|
}
|
|
441
647
|
|
|
648
|
+
/** Submission detail with all related entities */
|
|
649
|
+
export interface GetSubmissionResponseSchema {
|
|
650
|
+
/** Submission record */
|
|
651
|
+
submission?: any
|
|
652
|
+
/** Associated invoices */
|
|
653
|
+
invoices: any[]
|
|
654
|
+
/** Associated expenses */
|
|
655
|
+
expenses: any[]
|
|
656
|
+
/** Assigned billing codes */
|
|
657
|
+
codes: any[]
|
|
658
|
+
}
|
|
659
|
+
|
|
442
660
|
/** Update an existing submission */
|
|
443
|
-
export interface
|
|
661
|
+
export interface UpdateSubmissionSchema {
|
|
444
662
|
/**
|
|
445
663
|
* Submission description
|
|
446
664
|
* @minLength 1
|
|
@@ -449,7 +667,7 @@ export interface InputKvk7Y9Qob6 {
|
|
|
449
667
|
/** Submission date (epoch ms) */
|
|
450
668
|
date?: number
|
|
451
669
|
/** Submission type */
|
|
452
|
-
type?:
|
|
670
|
+
type?: UpdateSubmissionSchemaTypeEnum
|
|
453
671
|
/**
|
|
454
672
|
* Invoice number or "N/A"
|
|
455
673
|
* @minLength 1
|
|
@@ -468,182 +686,94 @@ export interface InputKvk7Y9Qob6 {
|
|
|
468
686
|
*/
|
|
469
687
|
departmentID?: string
|
|
470
688
|
/** Updated service invoice line items */
|
|
689
|
+
invoices?: InvoiceInputSchema[]
|
|
690
|
+
/** Updated expense reimbursement line items */
|
|
691
|
+
expenses?: ExpenseInputSchema[]
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
/** Updated submission */
|
|
695
|
+
export interface PutSubmissionResponseSchema {
|
|
696
|
+
/** Submission ID */
|
|
697
|
+
submissionID: string
|
|
698
|
+
/** Current submission status */
|
|
699
|
+
status: string
|
|
700
|
+
/** Recalculated pre-tax amount */
|
|
701
|
+
preTaxAmount?: number
|
|
702
|
+
/** Recalculated tax amount */
|
|
703
|
+
taxAmount?: number
|
|
704
|
+
/** Recalculated total amount */
|
|
705
|
+
totalAmount?: number
|
|
706
|
+
/** Recreated invoices (if line items changed) */
|
|
471
707
|
invoices?: {
|
|
472
|
-
/**
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
*/
|
|
477
|
-
description: string
|
|
478
|
-
/**
|
|
479
|
-
* Time worked in hours
|
|
480
|
-
* @min 0
|
|
481
|
-
* @exclusiveMin true
|
|
482
|
-
* @example 8
|
|
483
|
-
*/
|
|
484
|
-
timeInHours: number
|
|
485
|
-
/**
|
|
486
|
-
* Hourly rate from contractor profile
|
|
487
|
-
* @min 0
|
|
488
|
-
* @exclusiveMin true
|
|
489
|
-
* @example 75
|
|
490
|
-
*/
|
|
491
|
-
hourlyRate: number
|
|
492
|
-
/**
|
|
493
|
-
* Tax amount
|
|
494
|
-
* @min 0
|
|
495
|
-
* @default 0
|
|
496
|
-
* @example 30
|
|
497
|
-
*/
|
|
498
|
-
taxAmount?: number
|
|
499
|
-
/**
|
|
500
|
-
* PO number for this invoice
|
|
501
|
-
* @example "PO-1234"
|
|
502
|
-
*/
|
|
503
|
-
poNumber?: string
|
|
504
|
-
/**
|
|
505
|
-
* File attachments for this invoice
|
|
506
|
-
* @default []
|
|
507
|
-
*/
|
|
508
|
-
attachments?: {
|
|
509
|
-
/**
|
|
510
|
-
* Unique file identifier
|
|
511
|
-
* @example "file-abc123"
|
|
512
|
-
*/
|
|
513
|
-
fileID: string
|
|
514
|
-
/**
|
|
515
|
-
* Original file name
|
|
516
|
-
* @example "invoice.pdf"
|
|
517
|
-
*/
|
|
518
|
-
fileName: string
|
|
519
|
-
/**
|
|
520
|
-
* MIME content type
|
|
521
|
-
* @example "application/pdf"
|
|
522
|
-
*/
|
|
523
|
-
contentType: string
|
|
524
|
-
/**
|
|
525
|
-
* File size in bytes
|
|
526
|
-
* @example 102400
|
|
527
|
-
*/
|
|
528
|
-
size: number
|
|
529
|
-
/**
|
|
530
|
-
* Upload timestamp (epoch ms)
|
|
531
|
-
* @example 1700000000000
|
|
532
|
-
*/
|
|
533
|
-
uploadedOn: number
|
|
534
|
-
}[]
|
|
708
|
+
/** Invoice ID */
|
|
709
|
+
invoiceID: string
|
|
710
|
+
/** Invoice pre-tax amount */
|
|
711
|
+
preTaxAmount: number
|
|
535
712
|
}[]
|
|
536
|
-
/**
|
|
713
|
+
/** Recreated expenses (if line items changed) */
|
|
537
714
|
expenses?: {
|
|
538
|
-
/**
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
*/
|
|
543
|
-
description: string
|
|
544
|
-
/**
|
|
545
|
-
* Expense date (epoch ms)
|
|
546
|
-
* @example 1700000000000
|
|
547
|
-
*/
|
|
548
|
-
date: number
|
|
549
|
-
/**
|
|
550
|
-
* Expense type
|
|
551
|
-
* @example "Accommodation"
|
|
552
|
-
*/
|
|
553
|
-
type: InputKvk7Y9Qob6TypeEnum1
|
|
554
|
-
/**
|
|
555
|
-
* Pre-tax amount
|
|
556
|
-
* @min 0
|
|
557
|
-
* @example 150
|
|
558
|
-
*/
|
|
559
|
-
preTaxAmount: number
|
|
560
|
-
/**
|
|
561
|
-
* Tax amount
|
|
562
|
-
* @min 0
|
|
563
|
-
* @default 0
|
|
564
|
-
* @example 7.5
|
|
565
|
-
*/
|
|
566
|
-
taxAmount?: number
|
|
567
|
-
/**
|
|
568
|
-
* Number of nights (Accommodation)
|
|
569
|
-
* @min 0
|
|
570
|
-
* @exclusiveMin true
|
|
571
|
-
* @example 2
|
|
572
|
-
*/
|
|
573
|
-
nights?: number
|
|
574
|
-
/**
|
|
575
|
-
* Meal type (Meal expenses)
|
|
576
|
-
* @example "Lunch"
|
|
577
|
-
*/
|
|
578
|
-
mealType?: InputKvk7Y9Qob6MealTypeEnum
|
|
579
|
-
/**
|
|
580
|
-
* Number of kilometres (Mileage)
|
|
581
|
-
* @min 0
|
|
582
|
-
* @exclusiveMin true
|
|
583
|
-
* @example 100
|
|
584
|
-
*/
|
|
585
|
-
numKilometres?: number
|
|
586
|
-
/**
|
|
587
|
-
* Transportation type (Transportation expenses)
|
|
588
|
-
* @example "Taxi"
|
|
589
|
-
*/
|
|
590
|
-
transportationType?: InputKvk7Y9Qob6TransportationTypeEnum
|
|
591
|
-
/**
|
|
592
|
-
* File attachments for this expense
|
|
593
|
-
* @default []
|
|
594
|
-
*/
|
|
595
|
-
attachments?: {
|
|
596
|
-
/**
|
|
597
|
-
* Unique file identifier
|
|
598
|
-
* @example "file-abc123"
|
|
599
|
-
*/
|
|
600
|
-
fileID: string
|
|
601
|
-
/**
|
|
602
|
-
* Original file name
|
|
603
|
-
* @example "invoice.pdf"
|
|
604
|
-
*/
|
|
605
|
-
fileName: string
|
|
606
|
-
/**
|
|
607
|
-
* MIME content type
|
|
608
|
-
* @example "application/pdf"
|
|
609
|
-
*/
|
|
610
|
-
contentType: string
|
|
611
|
-
/**
|
|
612
|
-
* File size in bytes
|
|
613
|
-
* @example 102400
|
|
614
|
-
*/
|
|
615
|
-
size: number
|
|
616
|
-
/**
|
|
617
|
-
* Upload timestamp (epoch ms)
|
|
618
|
-
* @example 1700000000000
|
|
619
|
-
*/
|
|
620
|
-
uploadedOn: number
|
|
621
|
-
}[]
|
|
715
|
+
/** Expense ID */
|
|
716
|
+
expenseID: string
|
|
717
|
+
/** Whether expense exceeds configured maximum */
|
|
718
|
+
warningExceeded: boolean
|
|
622
719
|
}[]
|
|
623
720
|
}
|
|
624
721
|
|
|
625
|
-
|
|
722
|
+
/** Submission deletion result */
|
|
723
|
+
export interface DeleteSubmissionResponseSchema {
|
|
724
|
+
/** Deleted submission ID */
|
|
725
|
+
submissionID: string
|
|
726
|
+
/** Deletion confirmation */
|
|
727
|
+
deleted: DeleteSubmissionResponseSchemaDeletedEnum
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
/** Approval result */
|
|
731
|
+
export interface PostApproveResponseSchema {
|
|
732
|
+
/** Submission ID */
|
|
733
|
+
submissionID: string
|
|
734
|
+
/** New submission status after approval */
|
|
735
|
+
status: string
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
export interface PutSubmissionCodesSchema {
|
|
626
739
|
/** Array of codes to assign to the submission sections */
|
|
740
|
+
codes: SubmissionCodeItemSchema[]
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
export interface SubmissionCodeItemSchema {
|
|
744
|
+
/** The section to assign the code to */
|
|
745
|
+
section: SubmissionCodeItemSchemaSectionEnum
|
|
746
|
+
/**
|
|
747
|
+
* The code ID to assign
|
|
748
|
+
* @minLength 1
|
|
749
|
+
* @example "CODE-abc123"
|
|
750
|
+
*/
|
|
751
|
+
codeID: string
|
|
752
|
+
/**
|
|
753
|
+
* Optional note for this code assignment (max 500 chars)
|
|
754
|
+
* @maxLength 500
|
|
755
|
+
* @example "Consulting fees"
|
|
756
|
+
*/
|
|
757
|
+
note?: string
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/** Code assignment result */
|
|
761
|
+
export interface PutSubmissionCodesResponseSchema {
|
|
762
|
+
/** Submission ID */
|
|
763
|
+
submissionID: string
|
|
764
|
+
/** Assigned codes */
|
|
627
765
|
codes: {
|
|
628
|
-
/**
|
|
629
|
-
section:
|
|
630
|
-
/**
|
|
631
|
-
* The code ID to assign
|
|
632
|
-
* @minLength 1
|
|
633
|
-
* @example "CODE-abc123"
|
|
634
|
-
*/
|
|
766
|
+
/** Section (Service or Reimbursement) */
|
|
767
|
+
section: string
|
|
768
|
+
/** Billing code ID */
|
|
635
769
|
codeID: string
|
|
636
|
-
/**
|
|
637
|
-
|
|
638
|
-
* @maxLength 500
|
|
639
|
-
* @example "Consulting fees"
|
|
640
|
-
*/
|
|
641
|
-
note?: string
|
|
770
|
+
/** Optional note */
|
|
771
|
+
note: string | null
|
|
642
772
|
}[]
|
|
643
773
|
}
|
|
644
774
|
|
|
645
775
|
/** Request a presigned upload URL for a file attachment */
|
|
646
|
-
export interface
|
|
776
|
+
export interface FileUploadRequestSchema {
|
|
647
777
|
/**
|
|
648
778
|
* ID of the invoice or expense line item
|
|
649
779
|
* @minLength 1
|
|
@@ -671,7 +801,47 @@ export interface InputKn0Y6Bn1Yz {
|
|
|
671
801
|
fileName: string
|
|
672
802
|
}
|
|
673
803
|
|
|
674
|
-
|
|
804
|
+
/** File upload presigned URL */
|
|
805
|
+
export interface PostFileResponseSchema {
|
|
806
|
+
/** Presigned upload URL */
|
|
807
|
+
url: string
|
|
808
|
+
/** Generated file ID */
|
|
809
|
+
fileID: string
|
|
810
|
+
/** Original file name */
|
|
811
|
+
fileName: string
|
|
812
|
+
/** File content type */
|
|
813
|
+
contentType: string
|
|
814
|
+
/** File size in bytes */
|
|
815
|
+
contentLength: number
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
/** File download presigned URL */
|
|
819
|
+
export interface GetFileResponseSchema {
|
|
820
|
+
/** Presigned download URL */
|
|
821
|
+
url: string
|
|
822
|
+
/** File ID */
|
|
823
|
+
fileID: string
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/** Mark paid result */
|
|
827
|
+
export interface PostPaidResponseSchema {
|
|
828
|
+
/** Submission ID */
|
|
829
|
+
submissionID: string
|
|
830
|
+
/** New submission status (Paid) */
|
|
831
|
+
status: string
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
/** Generated PDF */
|
|
835
|
+
export interface GetPDFResponseSchema {
|
|
836
|
+
/** Base64-encoded PDF content */
|
|
837
|
+
pdf: string
|
|
838
|
+
/** Content type */
|
|
839
|
+
contentType: GetPdfResponseSchemaContentTypeEnum
|
|
840
|
+
/** Suggested file name */
|
|
841
|
+
fileName: string
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
export interface UpdatePOSchema {
|
|
675
845
|
/**
|
|
676
846
|
* PO number to set on the submission
|
|
677
847
|
* @example "PO-5678"
|
|
@@ -679,7 +849,15 @@ export interface Input4Tvfg8Mse4 {
|
|
|
679
849
|
poNumber: string
|
|
680
850
|
}
|
|
681
851
|
|
|
682
|
-
|
|
852
|
+
/** PO number update result */
|
|
853
|
+
export interface PutPOResponseSchema {
|
|
854
|
+
/** Submission ID */
|
|
855
|
+
submissionID: string
|
|
856
|
+
/** Updated PO number */
|
|
857
|
+
poNumber: string
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
export interface ReassignSubmissionSchema {
|
|
683
861
|
/**
|
|
684
862
|
* The ID of the new department to reassign to
|
|
685
863
|
* @minLength 1
|
|
@@ -688,7 +866,33 @@ export interface InputWmkkwhx1Bo {
|
|
|
688
866
|
departmentID: string
|
|
689
867
|
}
|
|
690
868
|
|
|
691
|
-
|
|
869
|
+
/** Reassignment result */
|
|
870
|
+
export interface PostReassignResponseSchema {
|
|
871
|
+
/** Submission ID */
|
|
872
|
+
submissionID: string
|
|
873
|
+
/** New department ID */
|
|
874
|
+
departmentID: string
|
|
875
|
+
/** Reassignment confirmation */
|
|
876
|
+
reassigned: PostReassignResponseSchemaReassignedEnum
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
/** Rejection result */
|
|
880
|
+
export interface PostRejectResponseSchema {
|
|
881
|
+
/** Submission ID */
|
|
882
|
+
submissionID: string
|
|
883
|
+
/** New submission status after rejection */
|
|
884
|
+
status: string
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
/** Submission status transition result */
|
|
888
|
+
export interface PostSubmitResponseSchema {
|
|
889
|
+
/** Submission ID */
|
|
890
|
+
submissionID: string
|
|
891
|
+
/** New submission status */
|
|
892
|
+
status: string
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
export interface GuestSubmissionRequestSchema {
|
|
692
896
|
/**
|
|
693
897
|
* Google reCAPTCHA verification token
|
|
694
898
|
* @example "03AGdBq26..."
|
|
@@ -744,50 +948,93 @@ export interface InputJiuwxuwhbyj {
|
|
|
744
948
|
*/
|
|
745
949
|
taxAmount?: number
|
|
746
950
|
/** Single PDF attachment (max 1 MB). Optional — if omitted, the frontend should upload the file separately via POST /submission/{submissionID}/file after submission creation. */
|
|
747
|
-
attachment?:
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
951
|
+
attachment?: GuestAttachmentSchema
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
/** Single PDF attachment (max 1 MB). Optional — if omitted, the frontend should upload the file separately via POST /submission/{submissionID}/file after submission creation. */
|
|
955
|
+
export interface GuestAttachmentSchema {
|
|
956
|
+
/**
|
|
957
|
+
* Unique file identifier
|
|
958
|
+
* @example "file-abc123"
|
|
959
|
+
*/
|
|
960
|
+
fileID: string
|
|
961
|
+
/**
|
|
962
|
+
* Original file name
|
|
963
|
+
* @example "invoice.pdf"
|
|
964
|
+
*/
|
|
965
|
+
fileName: string
|
|
966
|
+
/**
|
|
967
|
+
* Content type (must be application/pdf for guest)
|
|
968
|
+
* @example "application/pdf"
|
|
969
|
+
*/
|
|
970
|
+
contentType: GuestAttachmentSchemaContentTypeEnum
|
|
971
|
+
/**
|
|
972
|
+
* File size in bytes (max 1 MB)
|
|
973
|
+
* @max 1048576
|
|
974
|
+
* @example 51200
|
|
975
|
+
*/
|
|
976
|
+
size: number
|
|
977
|
+
/**
|
|
978
|
+
* Upload timestamp
|
|
979
|
+
* @example 1700000000000
|
|
980
|
+
*/
|
|
981
|
+
uploadedOn: number
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
/** Guest submission result */
|
|
985
|
+
export interface PostGuestSubmissionResponseSchema {
|
|
986
|
+
/** Created submission ID */
|
|
987
|
+
submissionID: string
|
|
988
|
+
/** Created invoice ID */
|
|
989
|
+
invoiceID?: string
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
/** Paginated submissions list */
|
|
993
|
+
export interface GetSubmissionsResponseSchema {
|
|
994
|
+
/** Submissions matching search criteria */
|
|
995
|
+
data: any[]
|
|
996
|
+
/** Pagination cursor for next page */
|
|
997
|
+
cursor: string | null
|
|
998
|
+
/** Number of results in this page */
|
|
999
|
+
count: number
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
/** Exported submissions Excel file */
|
|
1003
|
+
export interface GetSubmissionsExportResponseSchema {
|
|
1004
|
+
/** Base64-encoded Excel file content */
|
|
1005
|
+
file: string
|
|
1006
|
+
/** Suggested file name */
|
|
1007
|
+
filename: string
|
|
1008
|
+
/** Content type (application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) */
|
|
1009
|
+
contentType: string
|
|
1010
|
+
/** Number of rows exported */
|
|
1011
|
+
rowCount: number
|
|
775
1012
|
}
|
|
776
1013
|
|
|
777
1014
|
/**
|
|
778
1015
|
* The contractor's local status. Set to 'active' to enable or 'disabled' to disable the account.
|
|
779
1016
|
* @example "active"
|
|
780
1017
|
*/
|
|
781
|
-
export enum
|
|
1018
|
+
export enum UpdateContractorStatusSchemaStatusEnum {
|
|
782
1019
|
Active = 'active',
|
|
783
1020
|
Disabled = 'disabled',
|
|
784
1021
|
}
|
|
785
1022
|
|
|
1023
|
+
/** Deletion confirmation */
|
|
1024
|
+
export enum DeleteDepartmentResponseSchemaDeletedEnum {
|
|
1025
|
+
True = true,
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
/** Removal confirmation */
|
|
1029
|
+
export enum DeleteDepartmentAdminResponseSchemaRemovedEnum {
|
|
1030
|
+
True = true,
|
|
1031
|
+
}
|
|
1032
|
+
|
|
786
1033
|
/**
|
|
787
1034
|
* Submission type
|
|
788
1035
|
* @example "Submission"
|
|
789
1036
|
*/
|
|
790
|
-
export enum
|
|
1037
|
+
export enum CreateSubmissionSchemaTypeEnum {
|
|
791
1038
|
Submission = 'Submission',
|
|
792
1039
|
Reimbursement = 'Reimbursement',
|
|
793
1040
|
}
|
|
@@ -796,7 +1043,7 @@ export enum InputIjeu6D8I3BTypeEnum {
|
|
|
796
1043
|
* Expense type
|
|
797
1044
|
* @example "Accommodation"
|
|
798
1045
|
*/
|
|
799
|
-
export enum
|
|
1046
|
+
export enum ExpenseInputSchemaTypeEnum {
|
|
800
1047
|
Accommodation = 'Accommodation',
|
|
801
1048
|
Meal = 'Meal',
|
|
802
1049
|
Mileage = 'Mileage',
|
|
@@ -808,7 +1055,7 @@ export enum InputIjeu6D8I3BTypeEnum1 {
|
|
|
808
1055
|
* Meal type (Meal expenses)
|
|
809
1056
|
* @example "Lunch"
|
|
810
1057
|
*/
|
|
811
|
-
export enum
|
|
1058
|
+
export enum ExpenseInputSchemaMealTypeEnum {
|
|
812
1059
|
Breakfast = 'Breakfast',
|
|
813
1060
|
Lunch = 'Lunch',
|
|
814
1061
|
Dinner = 'Dinner',
|
|
@@ -818,7 +1065,7 @@ export enum InputIjeu6D8I3BMealTypeEnum {
|
|
|
818
1065
|
* Transportation type (Transportation expenses)
|
|
819
1066
|
* @example "Taxi"
|
|
820
1067
|
*/
|
|
821
|
-
export enum
|
|
1068
|
+
export enum ExpenseInputSchemaTransportationTypeEnum {
|
|
822
1069
|
AirTravel = 'Air travel',
|
|
823
1070
|
Taxi = 'Taxi',
|
|
824
1071
|
Ferry = 'Ferry',
|
|
@@ -827,92 +1074,73 @@ export enum InputIjeu6D8I3BTransportationTypeEnum {
|
|
|
827
1074
|
}
|
|
828
1075
|
|
|
829
1076
|
/** Submission type */
|
|
830
|
-
export enum
|
|
1077
|
+
export enum UpdateSubmissionSchemaTypeEnum {
|
|
831
1078
|
Submission = 'Submission',
|
|
832
1079
|
Reimbursement = 'Reimbursement',
|
|
833
1080
|
}
|
|
834
1081
|
|
|
835
|
-
/**
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
*/
|
|
839
|
-
export enum InputKvk7Y9Qob6TypeEnum1 {
|
|
840
|
-
Accommodation = 'Accommodation',
|
|
841
|
-
Meal = 'Meal',
|
|
842
|
-
Mileage = 'Mileage',
|
|
843
|
-
Transportation = 'Transportation',
|
|
844
|
-
Other = 'Other',
|
|
1082
|
+
/** Deletion confirmation */
|
|
1083
|
+
export enum DeleteSubmissionResponseSchemaDeletedEnum {
|
|
1084
|
+
True = true,
|
|
845
1085
|
}
|
|
846
1086
|
|
|
847
|
-
/**
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
export enum InputKvk7Y9Qob6MealTypeEnum {
|
|
852
|
-
Breakfast = 'Breakfast',
|
|
853
|
-
Lunch = 'Lunch',
|
|
854
|
-
Dinner = 'Dinner',
|
|
1087
|
+
/** The section to assign the code to */
|
|
1088
|
+
export enum SubmissionCodeItemSchemaSectionEnum {
|
|
1089
|
+
Service = 'Service',
|
|
1090
|
+
Reimbursement = 'Reimbursement',
|
|
855
1091
|
}
|
|
856
1092
|
|
|
857
|
-
/**
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
*/
|
|
861
|
-
export enum InputKvk7Y9Qob6TransportationTypeEnum {
|
|
862
|
-
AirTravel = 'Air travel',
|
|
863
|
-
Taxi = 'Taxi',
|
|
864
|
-
Ferry = 'Ferry',
|
|
865
|
-
Rental = 'Rental',
|
|
866
|
-
Other = 'Other',
|
|
1093
|
+
/** Content type */
|
|
1094
|
+
export enum GetPdfResponseSchemaContentTypeEnum {
|
|
1095
|
+
ApplicationPdf = 'application/pdf',
|
|
867
1096
|
}
|
|
868
1097
|
|
|
869
|
-
/**
|
|
870
|
-
export enum
|
|
871
|
-
|
|
872
|
-
Reimbursement = 'Reimbursement',
|
|
1098
|
+
/** Reassignment confirmation */
|
|
1099
|
+
export enum PostReassignResponseSchemaReassignedEnum {
|
|
1100
|
+
True = true,
|
|
873
1101
|
}
|
|
874
1102
|
|
|
875
1103
|
/**
|
|
876
1104
|
* Content type (must be application/pdf for guest)
|
|
877
1105
|
* @example "application/pdf"
|
|
878
1106
|
*/
|
|
879
|
-
export enum
|
|
1107
|
+
export enum GuestAttachmentSchemaContentTypeEnum {
|
|
880
1108
|
ApplicationPdf = 'application/pdf',
|
|
881
1109
|
}
|
|
882
1110
|
|
|
883
|
-
export type CreateCodeData =
|
|
1111
|
+
export type CreateCodeData = PostCodeResponseSchema
|
|
884
1112
|
|
|
885
1113
|
export type CreateCodeError = ErrorResponse
|
|
886
1114
|
|
|
887
|
-
export type UpdateCodeData =
|
|
1115
|
+
export type UpdateCodeData = PutCodeResponseSchema
|
|
888
1116
|
|
|
889
1117
|
export type UpdateCodeError = ErrorResponse
|
|
890
1118
|
|
|
891
|
-
export type DeleteCodeData =
|
|
1119
|
+
export type DeleteCodeData = DeleteCodeResponseSchema
|
|
892
1120
|
|
|
893
1121
|
export type DeleteCodeError = ErrorResponse
|
|
894
1122
|
|
|
895
|
-
export type ListCodesData =
|
|
1123
|
+
export type ListCodesData = GetCodesResponseSchema
|
|
896
1124
|
|
|
897
1125
|
export type ListCodesError = ErrorResponse
|
|
898
1126
|
|
|
899
|
-
export type CreateContractorData =
|
|
1127
|
+
export type CreateContractorData = PostContractorResponseSchema
|
|
900
1128
|
|
|
901
1129
|
export type CreateContractorError = ErrorResponse
|
|
902
1130
|
|
|
903
|
-
export type GetContractorData =
|
|
1131
|
+
export type GetContractorData = GetContractorResponseSchema
|
|
904
1132
|
|
|
905
1133
|
export type GetContractorError = ErrorResponse
|
|
906
1134
|
|
|
907
|
-
export type UpdateRatesData =
|
|
1135
|
+
export type UpdateRatesData = PutContractorRatesResponseSchema
|
|
908
1136
|
|
|
909
1137
|
export type UpdateRatesError = ErrorResponse
|
|
910
1138
|
|
|
911
|
-
export type CreateResetPasswordData =
|
|
1139
|
+
export type CreateResetPasswordData = PostResetPasswordResponseSchema
|
|
912
1140
|
|
|
913
1141
|
export type CreateResetPasswordError = ErrorResponse
|
|
914
1142
|
|
|
915
|
-
export type UpdateStatusData =
|
|
1143
|
+
export type UpdateStatusData = PutContractorStatusResponseSchema
|
|
916
1144
|
|
|
917
1145
|
export type UpdateStatusError = ErrorResponse
|
|
918
1146
|
|
|
@@ -939,7 +1167,7 @@ export enum TypeEnum {
|
|
|
939
1167
|
Email = 'email',
|
|
940
1168
|
}
|
|
941
1169
|
|
|
942
|
-
export type ListContractorsData =
|
|
1170
|
+
export type ListContractorsData = GetContractorsResponseSchema
|
|
943
1171
|
|
|
944
1172
|
export type ListContractorsError = ErrorResponse
|
|
945
1173
|
|
|
@@ -952,103 +1180,103 @@ export enum ListContractorsParams1TypeEnum {
|
|
|
952
1180
|
Email = 'email',
|
|
953
1181
|
}
|
|
954
1182
|
|
|
955
|
-
export type CreateDepartmentData =
|
|
1183
|
+
export type CreateDepartmentData = PostDepartmentResponseSchema
|
|
956
1184
|
|
|
957
1185
|
export type CreateDepartmentError = ErrorResponse
|
|
958
1186
|
|
|
959
|
-
export type UpdateDepartmentData =
|
|
1187
|
+
export type UpdateDepartmentData = PutDepartmentResponseSchema
|
|
960
1188
|
|
|
961
1189
|
export type UpdateDepartmentError = ErrorResponse
|
|
962
1190
|
|
|
963
|
-
export type DeleteDepartmentData =
|
|
1191
|
+
export type DeleteDepartmentData = DeleteDepartmentResponseSchema
|
|
964
1192
|
|
|
965
1193
|
export type DeleteDepartmentError = ErrorResponse
|
|
966
1194
|
|
|
967
|
-
export type CreateAdminData =
|
|
1195
|
+
export type CreateAdminData = PostDepartmentAdminResponseSchema
|
|
968
1196
|
|
|
969
1197
|
export type CreateAdminError = ErrorResponse
|
|
970
1198
|
|
|
971
|
-
export type DeleteAdminData =
|
|
1199
|
+
export type DeleteAdminData = DeleteDepartmentAdminResponseSchema
|
|
972
1200
|
|
|
973
1201
|
export type DeleteAdminError = ErrorResponse
|
|
974
1202
|
|
|
975
|
-
export type ListDepartmentsData =
|
|
1203
|
+
export type ListDepartmentsData = GetDepartmentsResponseSchema
|
|
976
1204
|
|
|
977
1205
|
export type ListDepartmentsError = ErrorResponse
|
|
978
1206
|
|
|
979
|
-
export type ListSettingsData =
|
|
1207
|
+
export type ListSettingsData = GetSettingsResponseSchema
|
|
980
1208
|
|
|
981
1209
|
export type ListSettingsError = ErrorResponse
|
|
982
1210
|
|
|
983
|
-
export type UpdateRatesResult =
|
|
1211
|
+
export type UpdateRatesResult = PutSettingsRatesResponseSchema
|
|
984
1212
|
|
|
985
1213
|
export type UpdateRatesFail = ErrorResponse
|
|
986
1214
|
|
|
987
|
-
export type UpdateMaximumsData =
|
|
1215
|
+
export type UpdateMaximumsData = PutSettingsMaximumsResponseSchema
|
|
988
1216
|
|
|
989
1217
|
export type UpdateMaximumsError = ErrorResponse
|
|
990
1218
|
|
|
991
|
-
export type UpdateRemindersData =
|
|
1219
|
+
export type UpdateRemindersData = PutSettingsRemindersResponseSchema
|
|
992
1220
|
|
|
993
1221
|
export type UpdateRemindersError = ErrorResponse
|
|
994
1222
|
|
|
995
|
-
export type CreateSubmissionData =
|
|
1223
|
+
export type CreateSubmissionData = PostSubmissionResponseSchema
|
|
996
1224
|
|
|
997
1225
|
export type CreateSubmissionError = ErrorResponse
|
|
998
1226
|
|
|
999
|
-
export type GetSubmissionData =
|
|
1227
|
+
export type GetSubmissionData = GetSubmissionResponseSchema
|
|
1000
1228
|
|
|
1001
1229
|
export type GetSubmissionError = ErrorResponse
|
|
1002
1230
|
|
|
1003
|
-
export type UpdateSubmissionData =
|
|
1231
|
+
export type UpdateSubmissionData = PutSubmissionResponseSchema
|
|
1004
1232
|
|
|
1005
1233
|
export type UpdateSubmissionError = ErrorResponse
|
|
1006
1234
|
|
|
1007
|
-
export type DeleteSubmissionData =
|
|
1235
|
+
export type DeleteSubmissionData = DeleteSubmissionResponseSchema
|
|
1008
1236
|
|
|
1009
1237
|
export type DeleteSubmissionError = ErrorResponse
|
|
1010
1238
|
|
|
1011
|
-
export type CreateApproveData =
|
|
1239
|
+
export type CreateApproveData = PostApproveResponseSchema
|
|
1012
1240
|
|
|
1013
1241
|
export type CreateApproveError = ErrorResponse
|
|
1014
1242
|
|
|
1015
|
-
export type UpdateCodesData =
|
|
1243
|
+
export type UpdateCodesData = PutSubmissionCodesResponseSchema
|
|
1016
1244
|
|
|
1017
1245
|
export type UpdateCodesError = ErrorResponse
|
|
1018
1246
|
|
|
1019
|
-
export type CreateFileData =
|
|
1247
|
+
export type CreateFileData = PostFileResponseSchema
|
|
1020
1248
|
|
|
1021
1249
|
export type CreateFileError = ErrorResponse
|
|
1022
1250
|
|
|
1023
|
-
export type GetFileData =
|
|
1251
|
+
export type GetFileData = GetFileResponseSchema
|
|
1024
1252
|
|
|
1025
1253
|
export type GetFileError = ErrorResponse
|
|
1026
1254
|
|
|
1027
|
-
export type CreatePaidData =
|
|
1255
|
+
export type CreatePaidData = PostPaidResponseSchema
|
|
1028
1256
|
|
|
1029
1257
|
export type CreatePaidError = ErrorResponse
|
|
1030
1258
|
|
|
1031
|
-
export type GetPdfData =
|
|
1259
|
+
export type GetPdfData = GetPDFResponseSchema
|
|
1032
1260
|
|
|
1033
1261
|
export type GetPdfError = ErrorResponse
|
|
1034
1262
|
|
|
1035
|
-
export type PutSubmissionData =
|
|
1263
|
+
export type PutSubmissionData = PutPOResponseSchema
|
|
1036
1264
|
|
|
1037
1265
|
export type PutSubmissionError = ErrorResponse
|
|
1038
1266
|
|
|
1039
|
-
export type CreateReassignData =
|
|
1267
|
+
export type CreateReassignData = PostReassignResponseSchema
|
|
1040
1268
|
|
|
1041
1269
|
export type CreateReassignError = ErrorResponse
|
|
1042
1270
|
|
|
1043
|
-
export type CreateRejectData =
|
|
1271
|
+
export type CreateRejectData = PostRejectResponseSchema
|
|
1044
1272
|
|
|
1045
1273
|
export type CreateRejectError = ErrorResponse
|
|
1046
1274
|
|
|
1047
|
-
export type CreateSubmitData =
|
|
1275
|
+
export type CreateSubmitData = PostSubmitResponseSchema
|
|
1048
1276
|
|
|
1049
1277
|
export type CreateSubmitError = ErrorResponse
|
|
1050
1278
|
|
|
1051
|
-
export type CreateGuestData =
|
|
1279
|
+
export type CreateGuestData = PostGuestSubmissionResponseSchema
|
|
1052
1280
|
|
|
1053
1281
|
export type CreateGuestError = ErrorResponse
|
|
1054
1282
|
|
|
@@ -1117,7 +1345,7 @@ export enum TypeEnum1 {
|
|
|
1117
1345
|
Reimbursement = 'Reimbursement',
|
|
1118
1346
|
}
|
|
1119
1347
|
|
|
1120
|
-
export type ListSubmissionsData =
|
|
1348
|
+
export type ListSubmissionsData = GetSubmissionsResponseSchema
|
|
1121
1349
|
|
|
1122
1350
|
export type ListSubmissionsError = ErrorResponse
|
|
1123
1351
|
|
|
@@ -1143,7 +1371,7 @@ export enum ListSubmissionsParams1TypeEnum {
|
|
|
1143
1371
|
Reimbursement = 'Reimbursement',
|
|
1144
1372
|
}
|
|
1145
1373
|
|
|
1146
|
-
export type ListExportData =
|
|
1374
|
+
export type ListExportData = GetSubmissionsExportResponseSchema
|
|
1147
1375
|
|
|
1148
1376
|
export type ListExportError = ErrorResponse
|
|
1149
1377
|
|
|
@@ -1285,7 +1513,7 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
1285
1513
|
|
|
1286
1514
|
/**
|
|
1287
1515
|
* @title Contractor Module API
|
|
1288
|
-
* @version 1.0.
|
|
1516
|
+
* @version 1.0.4
|
|
1289
1517
|
* @baseUrl http://localhost:8080
|
|
1290
1518
|
* @contact Ikon Integration <ikon@ikonintegration.com> (http://example.com)
|
|
1291
1519
|
*/
|
|
@@ -1300,13 +1528,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1300
1528
|
* @request POST:/code
|
|
1301
1529
|
* @secure
|
|
1302
1530
|
*/
|
|
1303
|
-
createCode: (data:
|
|
1531
|
+
createCode: (data: CreateCodeSchema, params: RequestParams = {}) =>
|
|
1304
1532
|
this.request<CreateCodeData, CreateCodeError>({
|
|
1305
1533
|
path: `/code`,
|
|
1306
1534
|
method: 'POST',
|
|
1307
1535
|
body: data,
|
|
1308
1536
|
secure: true,
|
|
1309
1537
|
type: ContentType.Json,
|
|
1538
|
+
format: 'json',
|
|
1310
1539
|
...params,
|
|
1311
1540
|
}),
|
|
1312
1541
|
|
|
@@ -1319,13 +1548,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1319
1548
|
* @request PUT:/code/{codeID}
|
|
1320
1549
|
* @secure
|
|
1321
1550
|
*/
|
|
1322
|
-
updateCode: (codeId: string, data:
|
|
1551
|
+
updateCode: (codeId: string, data: UpdateCodeSchema, params: RequestParams = {}) =>
|
|
1323
1552
|
this.request<UpdateCodeData, UpdateCodeError>({
|
|
1324
1553
|
path: `/code/${codeId}`,
|
|
1325
1554
|
method: 'PUT',
|
|
1326
1555
|
body: data,
|
|
1327
1556
|
secure: true,
|
|
1328
1557
|
type: ContentType.Json,
|
|
1558
|
+
format: 'json',
|
|
1329
1559
|
...params,
|
|
1330
1560
|
}),
|
|
1331
1561
|
|
|
@@ -1343,6 +1573,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1343
1573
|
path: `/code/${codeId}`,
|
|
1344
1574
|
method: 'DELETE',
|
|
1345
1575
|
secure: true,
|
|
1576
|
+
format: 'json',
|
|
1346
1577
|
...params,
|
|
1347
1578
|
}),
|
|
1348
1579
|
}
|
|
@@ -1361,6 +1592,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1361
1592
|
path: `/codes`,
|
|
1362
1593
|
method: 'GET',
|
|
1363
1594
|
secure: true,
|
|
1595
|
+
format: 'json',
|
|
1364
1596
|
...params,
|
|
1365
1597
|
}),
|
|
1366
1598
|
}
|
|
@@ -1374,13 +1606,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1374
1606
|
* @request POST:/contractor
|
|
1375
1607
|
* @secure
|
|
1376
1608
|
*/
|
|
1377
|
-
createContractor: (data:
|
|
1609
|
+
createContractor: (data: CreateContractorSchema, params: RequestParams = {}) =>
|
|
1378
1610
|
this.request<CreateContractorData, CreateContractorError>({
|
|
1379
1611
|
path: `/contractor`,
|
|
1380
1612
|
method: 'POST',
|
|
1381
1613
|
body: data,
|
|
1382
1614
|
secure: true,
|
|
1383
1615
|
type: ContentType.Json,
|
|
1616
|
+
format: 'json',
|
|
1384
1617
|
...params,
|
|
1385
1618
|
}),
|
|
1386
1619
|
|
|
@@ -1398,6 +1631,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1398
1631
|
path: `/contractor/${userId}`,
|
|
1399
1632
|
method: 'GET',
|
|
1400
1633
|
secure: true,
|
|
1634
|
+
format: 'json',
|
|
1401
1635
|
...params,
|
|
1402
1636
|
}),
|
|
1403
1637
|
|
|
@@ -1410,13 +1644,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1410
1644
|
* @request PUT:/contractor/{userID}/rates
|
|
1411
1645
|
* @secure
|
|
1412
1646
|
*/
|
|
1413
|
-
updateRates: (userId: string, data:
|
|
1647
|
+
updateRates: (userId: string, data: UpdateContractorRatesSchema, params: RequestParams = {}) =>
|
|
1414
1648
|
this.request<UpdateRatesData, UpdateRatesError>({
|
|
1415
1649
|
path: `/contractor/${userId}/rates`,
|
|
1416
1650
|
method: 'PUT',
|
|
1417
1651
|
body: data,
|
|
1418
1652
|
secure: true,
|
|
1419
1653
|
type: ContentType.Json,
|
|
1654
|
+
format: 'json',
|
|
1420
1655
|
...params,
|
|
1421
1656
|
}),
|
|
1422
1657
|
|
|
@@ -1434,6 +1669,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1434
1669
|
path: `/contractor/${userId}/reset-password`,
|
|
1435
1670
|
method: 'POST',
|
|
1436
1671
|
secure: true,
|
|
1672
|
+
format: 'json',
|
|
1437
1673
|
...params,
|
|
1438
1674
|
}),
|
|
1439
1675
|
|
|
@@ -1446,13 +1682,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1446
1682
|
* @request PUT:/contractor/{userID}/status
|
|
1447
1683
|
* @secure
|
|
1448
1684
|
*/
|
|
1449
|
-
updateStatus: (userId: string, data:
|
|
1685
|
+
updateStatus: (userId: string, data: UpdateContractorStatusSchema, params: RequestParams = {}) =>
|
|
1450
1686
|
this.request<UpdateStatusData, UpdateStatusError>({
|
|
1451
1687
|
path: `/contractor/${userId}/status`,
|
|
1452
1688
|
method: 'PUT',
|
|
1453
1689
|
body: data,
|
|
1454
1690
|
secure: true,
|
|
1455
1691
|
type: ContentType.Json,
|
|
1692
|
+
format: 'json',
|
|
1456
1693
|
...params,
|
|
1457
1694
|
}),
|
|
1458
1695
|
}
|
|
@@ -1472,6 +1709,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1472
1709
|
method: 'GET',
|
|
1473
1710
|
query: query,
|
|
1474
1711
|
secure: true,
|
|
1712
|
+
format: 'json',
|
|
1475
1713
|
...params,
|
|
1476
1714
|
}),
|
|
1477
1715
|
}
|
|
@@ -1485,13 +1723,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1485
1723
|
* @request POST:/department
|
|
1486
1724
|
* @secure
|
|
1487
1725
|
*/
|
|
1488
|
-
createDepartment: (data:
|
|
1726
|
+
createDepartment: (data: CreateDepartmentSchema, params: RequestParams = {}) =>
|
|
1489
1727
|
this.request<CreateDepartmentData, CreateDepartmentError>({
|
|
1490
1728
|
path: `/department`,
|
|
1491
1729
|
method: 'POST',
|
|
1492
1730
|
body: data,
|
|
1493
1731
|
secure: true,
|
|
1494
1732
|
type: ContentType.Json,
|
|
1733
|
+
format: 'json',
|
|
1495
1734
|
...params,
|
|
1496
1735
|
}),
|
|
1497
1736
|
|
|
@@ -1504,13 +1743,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1504
1743
|
* @request PUT:/department/{departmentID}
|
|
1505
1744
|
* @secure
|
|
1506
1745
|
*/
|
|
1507
|
-
updateDepartment: (departmentId: string, data:
|
|
1746
|
+
updateDepartment: (departmentId: string, data: UpdateDepartmentSchema, params: RequestParams = {}) =>
|
|
1508
1747
|
this.request<UpdateDepartmentData, UpdateDepartmentError>({
|
|
1509
1748
|
path: `/department/${departmentId}`,
|
|
1510
1749
|
method: 'PUT',
|
|
1511
1750
|
body: data,
|
|
1512
1751
|
secure: true,
|
|
1513
1752
|
type: ContentType.Json,
|
|
1753
|
+
format: 'json',
|
|
1514
1754
|
...params,
|
|
1515
1755
|
}),
|
|
1516
1756
|
|
|
@@ -1528,6 +1768,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1528
1768
|
path: `/department/${departmentId}`,
|
|
1529
1769
|
method: 'DELETE',
|
|
1530
1770
|
secure: true,
|
|
1771
|
+
format: 'json',
|
|
1531
1772
|
...params,
|
|
1532
1773
|
}),
|
|
1533
1774
|
|
|
@@ -1540,13 +1781,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1540
1781
|
* @request POST:/department/{departmentID}/admin
|
|
1541
1782
|
* @secure
|
|
1542
1783
|
*/
|
|
1543
|
-
createAdmin: (departmentId: string, data:
|
|
1784
|
+
createAdmin: (departmentId: string, data: AssociateAdminSchema, params: RequestParams = {}) =>
|
|
1544
1785
|
this.request<CreateAdminData, CreateAdminError>({
|
|
1545
1786
|
path: `/department/${departmentId}/admin`,
|
|
1546
1787
|
method: 'POST',
|
|
1547
1788
|
body: data,
|
|
1548
1789
|
secure: true,
|
|
1549
1790
|
type: ContentType.Json,
|
|
1791
|
+
format: 'json',
|
|
1550
1792
|
...params,
|
|
1551
1793
|
}),
|
|
1552
1794
|
|
|
@@ -1564,6 +1806,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1564
1806
|
path: `/department/${departmentId}/admin/${userId}`,
|
|
1565
1807
|
method: 'DELETE',
|
|
1566
1808
|
secure: true,
|
|
1809
|
+
format: 'json',
|
|
1567
1810
|
...params,
|
|
1568
1811
|
}),
|
|
1569
1812
|
}
|
|
@@ -1582,6 +1825,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1582
1825
|
path: `/departments`,
|
|
1583
1826
|
method: 'GET',
|
|
1584
1827
|
secure: true,
|
|
1828
|
+
format: 'json',
|
|
1585
1829
|
...params,
|
|
1586
1830
|
}),
|
|
1587
1831
|
}
|
|
@@ -1600,6 +1844,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1600
1844
|
path: `/settings`,
|
|
1601
1845
|
method: 'GET',
|
|
1602
1846
|
secure: true,
|
|
1847
|
+
format: 'json',
|
|
1603
1848
|
...params,
|
|
1604
1849
|
}),
|
|
1605
1850
|
|
|
@@ -1612,13 +1857,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1612
1857
|
* @request PUT:/settings/rates
|
|
1613
1858
|
* @secure
|
|
1614
1859
|
*/
|
|
1615
|
-
updateRates: (data:
|
|
1860
|
+
updateRates: (data: UpdateRatesSchema, params: RequestParams = {}) =>
|
|
1616
1861
|
this.request<UpdateRatesResult, UpdateRatesFail>({
|
|
1617
1862
|
path: `/settings/rates`,
|
|
1618
1863
|
method: 'PUT',
|
|
1619
1864
|
body: data,
|
|
1620
1865
|
secure: true,
|
|
1621
1866
|
type: ContentType.Json,
|
|
1867
|
+
format: 'json',
|
|
1622
1868
|
...params,
|
|
1623
1869
|
}),
|
|
1624
1870
|
|
|
@@ -1631,13 +1877,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1631
1877
|
* @request PUT:/settings/maximums
|
|
1632
1878
|
* @secure
|
|
1633
1879
|
*/
|
|
1634
|
-
updateMaximums: (data:
|
|
1880
|
+
updateMaximums: (data: UpdateMaximumsSchema, params: RequestParams = {}) =>
|
|
1635
1881
|
this.request<UpdateMaximumsData, UpdateMaximumsError>({
|
|
1636
1882
|
path: `/settings/maximums`,
|
|
1637
1883
|
method: 'PUT',
|
|
1638
1884
|
body: data,
|
|
1639
1885
|
secure: true,
|
|
1640
1886
|
type: ContentType.Json,
|
|
1887
|
+
format: 'json',
|
|
1641
1888
|
...params,
|
|
1642
1889
|
}),
|
|
1643
1890
|
|
|
@@ -1650,13 +1897,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1650
1897
|
* @request PUT:/settings/reminders
|
|
1651
1898
|
* @secure
|
|
1652
1899
|
*/
|
|
1653
|
-
updateReminders: (data:
|
|
1900
|
+
updateReminders: (data: UpdateRemindersSchema, params: RequestParams = {}) =>
|
|
1654
1901
|
this.request<UpdateRemindersData, UpdateRemindersError>({
|
|
1655
1902
|
path: `/settings/reminders`,
|
|
1656
1903
|
method: 'PUT',
|
|
1657
1904
|
body: data,
|
|
1658
1905
|
secure: true,
|
|
1659
1906
|
type: ContentType.Json,
|
|
1907
|
+
format: 'json',
|
|
1660
1908
|
...params,
|
|
1661
1909
|
}),
|
|
1662
1910
|
}
|
|
@@ -1670,13 +1918,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1670
1918
|
* @request POST:/submission
|
|
1671
1919
|
* @secure
|
|
1672
1920
|
*/
|
|
1673
|
-
createSubmission: (data:
|
|
1921
|
+
createSubmission: (data: CreateSubmissionSchema, params: RequestParams = {}) =>
|
|
1674
1922
|
this.request<CreateSubmissionData, CreateSubmissionError>({
|
|
1675
1923
|
path: `/submission`,
|
|
1676
1924
|
method: 'POST',
|
|
1677
1925
|
body: data,
|
|
1678
1926
|
secure: true,
|
|
1679
1927
|
type: ContentType.Json,
|
|
1928
|
+
format: 'json',
|
|
1680
1929
|
...params,
|
|
1681
1930
|
}),
|
|
1682
1931
|
|
|
@@ -1694,6 +1943,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1694
1943
|
path: `/submission/${submissionId}`,
|
|
1695
1944
|
method: 'GET',
|
|
1696
1945
|
secure: true,
|
|
1946
|
+
format: 'json',
|
|
1697
1947
|
...params,
|
|
1698
1948
|
}),
|
|
1699
1949
|
|
|
@@ -1706,13 +1956,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1706
1956
|
* @request PUT:/submission/{submissionID}
|
|
1707
1957
|
* @secure
|
|
1708
1958
|
*/
|
|
1709
|
-
updateSubmission: (submissionId: string, data:
|
|
1959
|
+
updateSubmission: (submissionId: string, data: UpdateSubmissionSchema, params: RequestParams = {}) =>
|
|
1710
1960
|
this.request<UpdateSubmissionData, UpdateSubmissionError>({
|
|
1711
1961
|
path: `/submission/${submissionId}`,
|
|
1712
1962
|
method: 'PUT',
|
|
1713
1963
|
body: data,
|
|
1714
1964
|
secure: true,
|
|
1715
1965
|
type: ContentType.Json,
|
|
1966
|
+
format: 'json',
|
|
1716
1967
|
...params,
|
|
1717
1968
|
}),
|
|
1718
1969
|
|
|
@@ -1730,6 +1981,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1730
1981
|
path: `/submission/${submissionId}`,
|
|
1731
1982
|
method: 'DELETE',
|
|
1732
1983
|
secure: true,
|
|
1984
|
+
format: 'json',
|
|
1733
1985
|
...params,
|
|
1734
1986
|
}),
|
|
1735
1987
|
|
|
@@ -1747,6 +1999,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1747
1999
|
path: `/submission/${submissionId}/approve`,
|
|
1748
2000
|
method: 'POST',
|
|
1749
2001
|
secure: true,
|
|
2002
|
+
format: 'json',
|
|
1750
2003
|
...params,
|
|
1751
2004
|
}),
|
|
1752
2005
|
|
|
@@ -1759,13 +2012,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1759
2012
|
* @request PUT:/submission/{submissionID}/codes
|
|
1760
2013
|
* @secure
|
|
1761
2014
|
*/
|
|
1762
|
-
updateCodes: (submissionId: string, data:
|
|
2015
|
+
updateCodes: (submissionId: string, data: PutSubmissionCodesSchema, params: RequestParams = {}) =>
|
|
1763
2016
|
this.request<UpdateCodesData, UpdateCodesError>({
|
|
1764
2017
|
path: `/submission/${submissionId}/codes`,
|
|
1765
2018
|
method: 'PUT',
|
|
1766
2019
|
body: data,
|
|
1767
2020
|
secure: true,
|
|
1768
2021
|
type: ContentType.Json,
|
|
2022
|
+
format: 'json',
|
|
1769
2023
|
...params,
|
|
1770
2024
|
}),
|
|
1771
2025
|
|
|
@@ -1778,13 +2032,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1778
2032
|
* @request POST:/submission/{submissionID}/file
|
|
1779
2033
|
* @secure
|
|
1780
2034
|
*/
|
|
1781
|
-
createFile: (submissionId: string, data:
|
|
2035
|
+
createFile: (submissionId: string, data: FileUploadRequestSchema, params: RequestParams = {}) =>
|
|
1782
2036
|
this.request<CreateFileData, CreateFileError>({
|
|
1783
2037
|
path: `/submission/${submissionId}/file`,
|
|
1784
2038
|
method: 'POST',
|
|
1785
2039
|
body: data,
|
|
1786
2040
|
secure: true,
|
|
1787
2041
|
type: ContentType.Json,
|
|
2042
|
+
format: 'json',
|
|
1788
2043
|
...params,
|
|
1789
2044
|
}),
|
|
1790
2045
|
|
|
@@ -1802,6 +2057,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1802
2057
|
path: `/submission/${submissionId}/file/${fileId}`,
|
|
1803
2058
|
method: 'GET',
|
|
1804
2059
|
secure: true,
|
|
2060
|
+
format: 'json',
|
|
1805
2061
|
...params,
|
|
1806
2062
|
}),
|
|
1807
2063
|
|
|
@@ -1819,6 +2075,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1819
2075
|
path: `/submission/${submissionId}/paid`,
|
|
1820
2076
|
method: 'POST',
|
|
1821
2077
|
secure: true,
|
|
2078
|
+
format: 'json',
|
|
1822
2079
|
...params,
|
|
1823
2080
|
}),
|
|
1824
2081
|
|
|
@@ -1836,6 +2093,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1836
2093
|
path: `/submission/${submissionId}/pdf`,
|
|
1837
2094
|
method: 'GET',
|
|
1838
2095
|
secure: true,
|
|
2096
|
+
format: 'json',
|
|
1839
2097
|
...params,
|
|
1840
2098
|
}),
|
|
1841
2099
|
|
|
@@ -1848,13 +2106,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1848
2106
|
* @request PUT:/submission/{submissionID}/po
|
|
1849
2107
|
* @secure
|
|
1850
2108
|
*/
|
|
1851
|
-
putSubmission: (submissionId: string, data:
|
|
2109
|
+
putSubmission: (submissionId: string, data: UpdatePOSchema, params: RequestParams = {}) =>
|
|
1852
2110
|
this.request<PutSubmissionData, PutSubmissionError>({
|
|
1853
2111
|
path: `/submission/${submissionId}/po`,
|
|
1854
2112
|
method: 'PUT',
|
|
1855
2113
|
body: data,
|
|
1856
2114
|
secure: true,
|
|
1857
2115
|
type: ContentType.Json,
|
|
2116
|
+
format: 'json',
|
|
1858
2117
|
...params,
|
|
1859
2118
|
}),
|
|
1860
2119
|
|
|
@@ -1867,13 +2126,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1867
2126
|
* @request POST:/submission/{submissionID}/reassign
|
|
1868
2127
|
* @secure
|
|
1869
2128
|
*/
|
|
1870
|
-
createReassign: (submissionId: string, data:
|
|
2129
|
+
createReassign: (submissionId: string, data: ReassignSubmissionSchema, params: RequestParams = {}) =>
|
|
1871
2130
|
this.request<CreateReassignData, CreateReassignError>({
|
|
1872
2131
|
path: `/submission/${submissionId}/reassign`,
|
|
1873
2132
|
method: 'POST',
|
|
1874
2133
|
body: data,
|
|
1875
2134
|
secure: true,
|
|
1876
2135
|
type: ContentType.Json,
|
|
2136
|
+
format: 'json',
|
|
1877
2137
|
...params,
|
|
1878
2138
|
}),
|
|
1879
2139
|
|
|
@@ -1891,6 +2151,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1891
2151
|
path: `/submission/${submissionId}/reject`,
|
|
1892
2152
|
method: 'POST',
|
|
1893
2153
|
secure: true,
|
|
2154
|
+
format: 'json',
|
|
1894
2155
|
...params,
|
|
1895
2156
|
}),
|
|
1896
2157
|
|
|
@@ -1908,6 +2169,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1908
2169
|
path: `/submission/${submissionId}/submit`,
|
|
1909
2170
|
method: 'POST',
|
|
1910
2171
|
secure: true,
|
|
2172
|
+
format: 'json',
|
|
1911
2173
|
...params,
|
|
1912
2174
|
}),
|
|
1913
2175
|
|
|
@@ -1920,13 +2182,14 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1920
2182
|
* @request POST:/submission/guest
|
|
1921
2183
|
* @secure
|
|
1922
2184
|
*/
|
|
1923
|
-
createGuest: (data:
|
|
2185
|
+
createGuest: (data: GuestSubmissionRequestSchema, params: RequestParams = {}) =>
|
|
1924
2186
|
this.request<CreateGuestData, CreateGuestError>({
|
|
1925
2187
|
path: `/submission/guest`,
|
|
1926
2188
|
method: 'POST',
|
|
1927
2189
|
body: data,
|
|
1928
2190
|
secure: true,
|
|
1929
2191
|
type: ContentType.Json,
|
|
2192
|
+
format: 'json',
|
|
1930
2193
|
...params,
|
|
1931
2194
|
}),
|
|
1932
2195
|
}
|
|
@@ -1946,6 +2209,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1946
2209
|
method: 'GET',
|
|
1947
2210
|
query: query,
|
|
1948
2211
|
secure: true,
|
|
2212
|
+
format: 'json',
|
|
1949
2213
|
...params,
|
|
1950
2214
|
}),
|
|
1951
2215
|
|
|
@@ -1963,6 +2227,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1963
2227
|
path: `/submissions/export`,
|
|
1964
2228
|
method: 'GET',
|
|
1965
2229
|
secure: true,
|
|
2230
|
+
format: 'json',
|
|
1966
2231
|
...params,
|
|
1967
2232
|
}),
|
|
1968
2233
|
}
|