@ikonintegration/module-contractor-api 1.0.1 → 1.0.2
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 +65 -65
- package/dist/Api.d.ts +65 -65
- package/dist/Api.js +74 -74
- package/dist/Api.js.map +1 -1
- package/package.json +1 -1
package/dist/Api.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export interface ErrorResponse {
|
|
|
5
5
|
/** Error code */
|
|
6
6
|
errCode: string;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface InputEbucity1Z4 {
|
|
9
9
|
/**
|
|
10
10
|
* Unique code identifier (1-50 alphanumeric characters)
|
|
11
11
|
* @minLength 1
|
|
@@ -28,7 +28,7 @@ export interface Input5Sa03P3Swr {
|
|
|
28
28
|
*/
|
|
29
29
|
description: string;
|
|
30
30
|
}
|
|
31
|
-
export interface
|
|
31
|
+
export interface InputLrvyo8663G {
|
|
32
32
|
/**
|
|
33
33
|
* Updated description of the code (1-255 characters)
|
|
34
34
|
* @minLength 1
|
|
@@ -37,7 +37,7 @@ export interface Input6Szg153Vfz {
|
|
|
37
37
|
*/
|
|
38
38
|
description: string;
|
|
39
39
|
}
|
|
40
|
-
export interface
|
|
40
|
+
export interface InputX0At7Jc9N {
|
|
41
41
|
/**
|
|
42
42
|
* Full name of the contractor
|
|
43
43
|
* @minLength 1
|
|
@@ -75,7 +75,7 @@ export interface InputWt47Z10Aoc {
|
|
|
75
75
|
hourlyValue: number;
|
|
76
76
|
}[];
|
|
77
77
|
}
|
|
78
|
-
export interface
|
|
78
|
+
export interface InputO4N90Uymjl {
|
|
79
79
|
/**
|
|
80
80
|
* Maximum nightly accommodation amount (positive, up to two decimal places)
|
|
81
81
|
* @min 0
|
|
@@ -112,14 +112,14 @@ export interface InputZ2Opzvmwkr {
|
|
|
112
112
|
*/
|
|
113
113
|
transportationMax?: number;
|
|
114
114
|
}
|
|
115
|
-
export interface
|
|
115
|
+
export interface Input4M0Lv5Ahsw {
|
|
116
116
|
/**
|
|
117
117
|
* The contractor's local status. Set to 'active' to enable or 'disabled' to disable the account.
|
|
118
118
|
* @example "active"
|
|
119
119
|
*/
|
|
120
|
-
status:
|
|
120
|
+
status: Input4M0Lv5AhswStatusEnum;
|
|
121
121
|
}
|
|
122
|
-
export interface
|
|
122
|
+
export interface InputD79Au0K6W5 {
|
|
123
123
|
/**
|
|
124
124
|
* Name of the department (1-150 characters)
|
|
125
125
|
* @minLength 1
|
|
@@ -135,7 +135,7 @@ export interface InputNzq8Jtcdc2 {
|
|
|
135
135
|
*/
|
|
136
136
|
contactEmails: string[];
|
|
137
137
|
}
|
|
138
|
-
export interface
|
|
138
|
+
export interface InputTktzkj8J4D {
|
|
139
139
|
/**
|
|
140
140
|
* Updated name of the department (1-150 characters)
|
|
141
141
|
* @minLength 1
|
|
@@ -151,7 +151,7 @@ export interface InputLxhfu0Cggl {
|
|
|
151
151
|
*/
|
|
152
152
|
contactEmails?: string[];
|
|
153
153
|
}
|
|
154
|
-
export interface
|
|
154
|
+
export interface InputGxh0Yjattn {
|
|
155
155
|
/**
|
|
156
156
|
* The user ID of the administrator to associate with the department
|
|
157
157
|
* @minLength 1
|
|
@@ -159,7 +159,7 @@ export interface InputSfun2X2Orx {
|
|
|
159
159
|
*/
|
|
160
160
|
userID: string;
|
|
161
161
|
}
|
|
162
|
-
export interface
|
|
162
|
+
export interface InputEh0Dqq1G7Q {
|
|
163
163
|
/**
|
|
164
164
|
* Mileage rate in dollars per kilometre (positive, up to two decimal places)
|
|
165
165
|
* @min 0
|
|
@@ -168,7 +168,7 @@ export interface InputJ71Z8Sh3A4 {
|
|
|
168
168
|
*/
|
|
169
169
|
mileageRate: number;
|
|
170
170
|
}
|
|
171
|
-
export interface
|
|
171
|
+
export interface InputTiewwv56Cc {
|
|
172
172
|
/**
|
|
173
173
|
* Maximum nightly accommodation amount (positive, up to two decimal places)
|
|
174
174
|
* @min 0
|
|
@@ -205,7 +205,7 @@ export interface InputR2Nacgh1Y4 {
|
|
|
205
205
|
*/
|
|
206
206
|
transportationMax: number;
|
|
207
207
|
}
|
|
208
|
-
export interface
|
|
208
|
+
export interface InputBt0Uuj40Knj {
|
|
209
209
|
/**
|
|
210
210
|
* Number of days between reminder emails (positive integer)
|
|
211
211
|
* @min 0
|
|
@@ -215,7 +215,7 @@ export interface Input3Q3Xamu93G {
|
|
|
215
215
|
reminderIntervalDays: number;
|
|
216
216
|
}
|
|
217
217
|
/** Create a new draft submission */
|
|
218
|
-
export interface
|
|
218
|
+
export interface InputIjeu6D8I3B {
|
|
219
219
|
/**
|
|
220
220
|
* Department ID
|
|
221
221
|
* @minLength 1
|
|
@@ -237,7 +237,7 @@ export interface InputVdrvfe8Erz {
|
|
|
237
237
|
* Submission type
|
|
238
238
|
* @example "Submission"
|
|
239
239
|
*/
|
|
240
|
-
type:
|
|
240
|
+
type: InputIjeu6D8I3BTypeEnum;
|
|
241
241
|
/**
|
|
242
242
|
* Invoice number or "N/A"
|
|
243
243
|
* @minLength 1
|
|
@@ -344,7 +344,7 @@ export interface InputVdrvfe8Erz {
|
|
|
344
344
|
* Expense type
|
|
345
345
|
* @example "Accommodation"
|
|
346
346
|
*/
|
|
347
|
-
type:
|
|
347
|
+
type: InputIjeu6D8I3BTypeEnum1;
|
|
348
348
|
/**
|
|
349
349
|
* Pre-tax amount
|
|
350
350
|
* @min 0
|
|
@@ -369,7 +369,7 @@ export interface InputVdrvfe8Erz {
|
|
|
369
369
|
* Meal type (Meal expenses)
|
|
370
370
|
* @example "Lunch"
|
|
371
371
|
*/
|
|
372
|
-
mealType?:
|
|
372
|
+
mealType?: InputIjeu6D8I3BMealTypeEnum;
|
|
373
373
|
/**
|
|
374
374
|
* Number of kilometres (Mileage)
|
|
375
375
|
* @min 0
|
|
@@ -381,7 +381,7 @@ export interface InputVdrvfe8Erz {
|
|
|
381
381
|
* Transportation type (Transportation expenses)
|
|
382
382
|
* @example "Taxi"
|
|
383
383
|
*/
|
|
384
|
-
transportationType?:
|
|
384
|
+
transportationType?: InputIjeu6D8I3BTransportationTypeEnum;
|
|
385
385
|
/**
|
|
386
386
|
* File attachments for this expense
|
|
387
387
|
* @default []
|
|
@@ -416,7 +416,7 @@ export interface InputVdrvfe8Erz {
|
|
|
416
416
|
}[];
|
|
417
417
|
}
|
|
418
418
|
/** Update an existing submission */
|
|
419
|
-
export interface
|
|
419
|
+
export interface InputKvk7Y9Qob6 {
|
|
420
420
|
/**
|
|
421
421
|
* Submission description
|
|
422
422
|
* @minLength 1
|
|
@@ -425,7 +425,7 @@ export interface InputY4A9Ylrb3A {
|
|
|
425
425
|
/** Submission date (epoch ms) */
|
|
426
426
|
date?: number;
|
|
427
427
|
/** Submission type */
|
|
428
|
-
type?:
|
|
428
|
+
type?: InputKvk7Y9Qob6TypeEnum;
|
|
429
429
|
/**
|
|
430
430
|
* Invoice number or "N/A"
|
|
431
431
|
* @minLength 1
|
|
@@ -526,7 +526,7 @@ export interface InputY4A9Ylrb3A {
|
|
|
526
526
|
* Expense type
|
|
527
527
|
* @example "Accommodation"
|
|
528
528
|
*/
|
|
529
|
-
type:
|
|
529
|
+
type: InputKvk7Y9Qob6TypeEnum1;
|
|
530
530
|
/**
|
|
531
531
|
* Pre-tax amount
|
|
532
532
|
* @min 0
|
|
@@ -551,7 +551,7 @@ export interface InputY4A9Ylrb3A {
|
|
|
551
551
|
* Meal type (Meal expenses)
|
|
552
552
|
* @example "Lunch"
|
|
553
553
|
*/
|
|
554
|
-
mealType?:
|
|
554
|
+
mealType?: InputKvk7Y9Qob6MealTypeEnum;
|
|
555
555
|
/**
|
|
556
556
|
* Number of kilometres (Mileage)
|
|
557
557
|
* @min 0
|
|
@@ -563,7 +563,7 @@ export interface InputY4A9Ylrb3A {
|
|
|
563
563
|
* Transportation type (Transportation expenses)
|
|
564
564
|
* @example "Taxi"
|
|
565
565
|
*/
|
|
566
|
-
transportationType?:
|
|
566
|
+
transportationType?: InputKvk7Y9Qob6TransportationTypeEnum;
|
|
567
567
|
/**
|
|
568
568
|
* File attachments for this expense
|
|
569
569
|
* @default []
|
|
@@ -597,11 +597,11 @@ export interface InputY4A9Ylrb3A {
|
|
|
597
597
|
}[];
|
|
598
598
|
}[];
|
|
599
599
|
}
|
|
600
|
-
export interface
|
|
600
|
+
export interface InputZuufi5Flop {
|
|
601
601
|
/** Array of codes to assign to the submission sections */
|
|
602
602
|
codes: {
|
|
603
603
|
/** The section to assign the code to */
|
|
604
|
-
section:
|
|
604
|
+
section: InputZuufi5FlopSectionEnum;
|
|
605
605
|
/**
|
|
606
606
|
* The code ID to assign
|
|
607
607
|
* @minLength 1
|
|
@@ -617,7 +617,7 @@ export interface Input723Ap5Bsp6G {
|
|
|
617
617
|
}[];
|
|
618
618
|
}
|
|
619
619
|
/** Request a presigned upload URL for a file attachment */
|
|
620
|
-
export interface
|
|
620
|
+
export interface InputKn0Y6Bn1Yz {
|
|
621
621
|
/**
|
|
622
622
|
* ID of the invoice or expense line item
|
|
623
623
|
* @minLength 1
|
|
@@ -644,14 +644,14 @@ export interface InputSfhiwjjmi4 {
|
|
|
644
644
|
*/
|
|
645
645
|
fileName: string;
|
|
646
646
|
}
|
|
647
|
-
export interface
|
|
647
|
+
export interface Input4Tvfg8Mse4 {
|
|
648
648
|
/**
|
|
649
649
|
* PO number to set on the submission
|
|
650
650
|
* @example "PO-5678"
|
|
651
651
|
*/
|
|
652
652
|
poNumber: string;
|
|
653
653
|
}
|
|
654
|
-
export interface
|
|
654
|
+
export interface InputWmkkwhx1Bo {
|
|
655
655
|
/**
|
|
656
656
|
* The ID of the new department to reassign to
|
|
657
657
|
* @minLength 1
|
|
@@ -659,7 +659,7 @@ export interface InputPqfe8Di61L {
|
|
|
659
659
|
*/
|
|
660
660
|
departmentID: string;
|
|
661
661
|
}
|
|
662
|
-
export interface
|
|
662
|
+
export interface InputJiuwxuwhbyj {
|
|
663
663
|
/**
|
|
664
664
|
* Google reCAPTCHA verification token
|
|
665
665
|
* @example "03AGdBq26..."
|
|
@@ -714,8 +714,8 @@ export interface InputX2Sjifbplw {
|
|
|
714
714
|
* @example 25
|
|
715
715
|
*/
|
|
716
716
|
taxAmount?: number;
|
|
717
|
-
/** Single PDF attachment (max 1 MB) */
|
|
718
|
-
attachment
|
|
717
|
+
/** Single PDF attachment (max 1 MB). Optional — if omitted, the frontend should upload the file separately via POST /submission/{submissionID}/file after submission creation. */
|
|
718
|
+
attachment?: {
|
|
719
719
|
/**
|
|
720
720
|
* Unique file identifier
|
|
721
721
|
* @example "file-abc123"
|
|
@@ -730,7 +730,7 @@ export interface InputX2Sjifbplw {
|
|
|
730
730
|
* Content type (must be application/pdf for guest)
|
|
731
731
|
* @example "application/pdf"
|
|
732
732
|
*/
|
|
733
|
-
contentType:
|
|
733
|
+
contentType: InputJiuwxuwhbyjContentTypeEnum;
|
|
734
734
|
/**
|
|
735
735
|
* File size in bytes (max 1 MB)
|
|
736
736
|
* @max 1048576
|
|
@@ -748,7 +748,7 @@ export interface InputX2Sjifbplw {
|
|
|
748
748
|
* The contractor's local status. Set to 'active' to enable or 'disabled' to disable the account.
|
|
749
749
|
* @example "active"
|
|
750
750
|
*/
|
|
751
|
-
export declare enum
|
|
751
|
+
export declare enum Input4M0Lv5AhswStatusEnum {
|
|
752
752
|
Active = "active",
|
|
753
753
|
Disabled = "disabled"
|
|
754
754
|
}
|
|
@@ -756,7 +756,7 @@ export declare enum InputKfp90IvmguStatusEnum {
|
|
|
756
756
|
* Submission type
|
|
757
757
|
* @example "Submission"
|
|
758
758
|
*/
|
|
759
|
-
export declare enum
|
|
759
|
+
export declare enum InputIjeu6D8I3BTypeEnum {
|
|
760
760
|
Submission = "Submission",
|
|
761
761
|
Reimbursement = "Reimbursement"
|
|
762
762
|
}
|
|
@@ -764,7 +764,7 @@ export declare enum InputVdrvfe8ErzTypeEnum {
|
|
|
764
764
|
* Expense type
|
|
765
765
|
* @example "Accommodation"
|
|
766
766
|
*/
|
|
767
|
-
export declare enum
|
|
767
|
+
export declare enum InputIjeu6D8I3BTypeEnum1 {
|
|
768
768
|
Accommodation = "Accommodation",
|
|
769
769
|
Meal = "Meal",
|
|
770
770
|
Mileage = "Mileage",
|
|
@@ -775,7 +775,7 @@ export declare enum InputVdrvfe8ErzTypeEnum1 {
|
|
|
775
775
|
* Meal type (Meal expenses)
|
|
776
776
|
* @example "Lunch"
|
|
777
777
|
*/
|
|
778
|
-
export declare enum
|
|
778
|
+
export declare enum InputIjeu6D8I3BMealTypeEnum {
|
|
779
779
|
Breakfast = "Breakfast",
|
|
780
780
|
Lunch = "Lunch",
|
|
781
781
|
Dinner = "Dinner"
|
|
@@ -784,7 +784,7 @@ export declare enum InputVdrvfe8ErzMealTypeEnum {
|
|
|
784
784
|
* Transportation type (Transportation expenses)
|
|
785
785
|
* @example "Taxi"
|
|
786
786
|
*/
|
|
787
|
-
export declare enum
|
|
787
|
+
export declare enum InputIjeu6D8I3BTransportationTypeEnum {
|
|
788
788
|
AirTravel = "Air travel",
|
|
789
789
|
Taxi = "Taxi",
|
|
790
790
|
Ferry = "Ferry",
|
|
@@ -792,7 +792,7 @@ export declare enum InputVdrvfe8ErzTransportationTypeEnum {
|
|
|
792
792
|
Other = "Other"
|
|
793
793
|
}
|
|
794
794
|
/** Submission type */
|
|
795
|
-
export declare enum
|
|
795
|
+
export declare enum InputKvk7Y9Qob6TypeEnum {
|
|
796
796
|
Submission = "Submission",
|
|
797
797
|
Reimbursement = "Reimbursement"
|
|
798
798
|
}
|
|
@@ -800,7 +800,7 @@ export declare enum InputY4A9Ylrb3ATypeEnum {
|
|
|
800
800
|
* Expense type
|
|
801
801
|
* @example "Accommodation"
|
|
802
802
|
*/
|
|
803
|
-
export declare enum
|
|
803
|
+
export declare enum InputKvk7Y9Qob6TypeEnum1 {
|
|
804
804
|
Accommodation = "Accommodation",
|
|
805
805
|
Meal = "Meal",
|
|
806
806
|
Mileage = "Mileage",
|
|
@@ -811,7 +811,7 @@ export declare enum InputY4A9Ylrb3ATypeEnum1 {
|
|
|
811
811
|
* Meal type (Meal expenses)
|
|
812
812
|
* @example "Lunch"
|
|
813
813
|
*/
|
|
814
|
-
export declare enum
|
|
814
|
+
export declare enum InputKvk7Y9Qob6MealTypeEnum {
|
|
815
815
|
Breakfast = "Breakfast",
|
|
816
816
|
Lunch = "Lunch",
|
|
817
817
|
Dinner = "Dinner"
|
|
@@ -820,7 +820,7 @@ export declare enum InputY4A9Ylrb3AMealTypeEnum {
|
|
|
820
820
|
* Transportation type (Transportation expenses)
|
|
821
821
|
* @example "Taxi"
|
|
822
822
|
*/
|
|
823
|
-
export declare enum
|
|
823
|
+
export declare enum InputKvk7Y9Qob6TransportationTypeEnum {
|
|
824
824
|
AirTravel = "Air travel",
|
|
825
825
|
Taxi = "Taxi",
|
|
826
826
|
Ferry = "Ferry",
|
|
@@ -828,7 +828,7 @@ export declare enum InputY4A9Ylrb3ATransportationTypeEnum {
|
|
|
828
828
|
Other = "Other"
|
|
829
829
|
}
|
|
830
830
|
/** The section to assign the code to */
|
|
831
|
-
export declare enum
|
|
831
|
+
export declare enum InputZuufi5FlopSectionEnum {
|
|
832
832
|
Service = "Service",
|
|
833
833
|
Reimbursement = "Reimbursement"
|
|
834
834
|
}
|
|
@@ -836,7 +836,7 @@ export declare enum Input723Ap5Bsp6GSectionEnum {
|
|
|
836
836
|
* Content type (must be application/pdf for guest)
|
|
837
837
|
* @example "application/pdf"
|
|
838
838
|
*/
|
|
839
|
-
export declare enum
|
|
839
|
+
export declare enum InputJiuwxuwhbyjContentTypeEnum {
|
|
840
840
|
ApplicationPdf = "application/pdf"
|
|
841
841
|
}
|
|
842
842
|
export type CreateCodeData = any;
|
|
@@ -1067,7 +1067,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
1067
1067
|
}
|
|
1068
1068
|
/**
|
|
1069
1069
|
* @title Contractor Module API
|
|
1070
|
-
* @version 1.0.
|
|
1070
|
+
* @version 1.0.2
|
|
1071
1071
|
* @baseUrl http://localhost:8080
|
|
1072
1072
|
* @contact Ikon Integration <ikon@ikonintegration.com> (http://example.com)
|
|
1073
1073
|
*/
|
|
@@ -1082,7 +1082,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1082
1082
|
* @request POST:/code
|
|
1083
1083
|
* @secure
|
|
1084
1084
|
*/
|
|
1085
|
-
createCode: (data:
|
|
1085
|
+
createCode: (data: InputEbucity1Z4, params?: RequestParams) => Promise<any>;
|
|
1086
1086
|
/**
|
|
1087
1087
|
* @description Updates an existing charging code description. Only Super Administrators can update codes.
|
|
1088
1088
|
*
|
|
@@ -1092,7 +1092,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1092
1092
|
* @request PUT:/code/{codeID}
|
|
1093
1093
|
* @secure
|
|
1094
1094
|
*/
|
|
1095
|
-
updateCode: (codeId: string, data:
|
|
1095
|
+
updateCode: (codeId: string, data: InputLrvyo8663G, params?: RequestParams) => Promise<any>;
|
|
1096
1096
|
/**
|
|
1097
1097
|
* @description Deletes a charging code. Prevents deletion if the code is referenced by existing submissions. Only Super Administrators can delete codes.
|
|
1098
1098
|
*
|
|
@@ -1126,7 +1126,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1126
1126
|
* @request POST:/contractor
|
|
1127
1127
|
* @secure
|
|
1128
1128
|
*/
|
|
1129
|
-
createContractor: (data:
|
|
1129
|
+
createContractor: (data: InputX0At7Jc9N, params?: RequestParams) => Promise<any>;
|
|
1130
1130
|
/**
|
|
1131
1131
|
* @description View a contractor profile. Contractors can view their own profile (includes effective rates). Administrators can view any contractor profile.
|
|
1132
1132
|
*
|
|
@@ -1146,7 +1146,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1146
1146
|
* @request PUT:/contractor/{userID}/rates
|
|
1147
1147
|
* @secure
|
|
1148
1148
|
*/
|
|
1149
|
-
updateRates: (userId: string, data:
|
|
1149
|
+
updateRates: (userId: string, data: InputO4N90Uymjl, params?: RequestParams) => Promise<any>;
|
|
1150
1150
|
/**
|
|
1151
1151
|
* @description Triggers a password reset for the specified contractor. Only Administrators and Super Administrators can trigger password resets.
|
|
1152
1152
|
*
|
|
@@ -1166,7 +1166,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1166
1166
|
* @request PUT:/contractor/{userID}/status
|
|
1167
1167
|
* @secure
|
|
1168
1168
|
*/
|
|
1169
|
-
updateStatus: (userId: string, data:
|
|
1169
|
+
updateStatus: (userId: string, data: Input4M0Lv5Ahsw, params?: RequestParams) => Promise<any>;
|
|
1170
1170
|
};
|
|
1171
1171
|
contractors: {
|
|
1172
1172
|
/**
|
|
@@ -1190,7 +1190,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1190
1190
|
* @request POST:/department
|
|
1191
1191
|
* @secure
|
|
1192
1192
|
*/
|
|
1193
|
-
createDepartment: (data:
|
|
1193
|
+
createDepartment: (data: InputD79Au0K6W5, params?: RequestParams) => Promise<any>;
|
|
1194
1194
|
/**
|
|
1195
1195
|
* @description Updates an existing department name and/or contact emails. SYSADMIN only.
|
|
1196
1196
|
*
|
|
@@ -1200,7 +1200,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1200
1200
|
* @request PUT:/department/{departmentID}
|
|
1201
1201
|
* @secure
|
|
1202
1202
|
*/
|
|
1203
|
-
updateDepartment: (departmentId: string, data:
|
|
1203
|
+
updateDepartment: (departmentId: string, data: InputTktzkj8J4D, params?: RequestParams) => Promise<any>;
|
|
1204
1204
|
/**
|
|
1205
1205
|
* @description Deletes a department. Prevents deletion if department has active codes or associated administrators. SYSADMIN only.
|
|
1206
1206
|
*
|
|
@@ -1220,7 +1220,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1220
1220
|
* @request POST:/department/{departmentID}/admin
|
|
1221
1221
|
* @secure
|
|
1222
1222
|
*/
|
|
1223
|
-
createAdmin: (departmentId: string, data:
|
|
1223
|
+
createAdmin: (departmentId: string, data: InputGxh0Yjattn, params?: RequestParams) => Promise<any>;
|
|
1224
1224
|
/**
|
|
1225
1225
|
* @description Removes an administrator association from a department. SYSADMIN only.
|
|
1226
1226
|
*
|
|
@@ -1234,7 +1234,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1234
1234
|
};
|
|
1235
1235
|
departments: {
|
|
1236
1236
|
/**
|
|
1237
|
-
* @description Returns all departments.
|
|
1237
|
+
* @description Returns all departments. For ADMIN/SYSADMIN users returns full department data. For lower roles (USER, ACCOUNTANT, NONE) returns only departmentID and name.
|
|
1238
1238
|
*
|
|
1239
1239
|
* @tags Departments
|
|
1240
1240
|
* @name ListDepartments
|
|
@@ -1264,7 +1264,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1264
1264
|
* @request PUT:/settings/rates
|
|
1265
1265
|
* @secure
|
|
1266
1266
|
*/
|
|
1267
|
-
updateRates: (data:
|
|
1267
|
+
updateRates: (data: InputEh0Dqq1G7Q, params?: RequestParams) => Promise<any>;
|
|
1268
1268
|
/**
|
|
1269
1269
|
* @description Updates all system-wide expense maximums (accommodation, meals, transportation). Only Super Administrators can modify system settings.
|
|
1270
1270
|
*
|
|
@@ -1274,7 +1274,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1274
1274
|
* @request PUT:/settings/maximums
|
|
1275
1275
|
* @secure
|
|
1276
1276
|
*/
|
|
1277
|
-
updateMaximums: (data:
|
|
1277
|
+
updateMaximums: (data: InputTiewwv56Cc, params?: RequestParams) => Promise<any>;
|
|
1278
1278
|
/**
|
|
1279
1279
|
* @description Updates the reminder interval (in days) for pending submission notifications. Only Super Administrators can modify system settings.
|
|
1280
1280
|
*
|
|
@@ -1284,7 +1284,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1284
1284
|
* @request PUT:/settings/reminders
|
|
1285
1285
|
* @secure
|
|
1286
1286
|
*/
|
|
1287
|
-
updateReminders: (data:
|
|
1287
|
+
updateReminders: (data: InputBt0Uuj40Knj, params?: RequestParams) => Promise<any>;
|
|
1288
1288
|
};
|
|
1289
1289
|
submission: {
|
|
1290
1290
|
/**
|
|
@@ -1296,9 +1296,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1296
1296
|
* @request POST:/submission
|
|
1297
1297
|
* @secure
|
|
1298
1298
|
*/
|
|
1299
|
-
createSubmission: (data:
|
|
1299
|
+
createSubmission: (data: InputIjeu6D8I3B, params?: RequestParams) => Promise<any>;
|
|
1300
1300
|
/**
|
|
1301
|
-
* @description Returns a single submission with all invoices, expenses, and assigned codes. Access is scoped by role: contractors see only their own, admins see their department, accountants/superadmins see any.
|
|
1301
|
+
* @description Returns a single submission with all invoices, expenses, and assigned codes in a single DynamoDB query using an ElectroDB collection. Access is scoped by role: contractors see only their own, admins see their department, accountants/superadmins see any.
|
|
1302
1302
|
*
|
|
1303
1303
|
* @tags Submissions
|
|
1304
1304
|
* @name GetSubmission
|
|
@@ -1316,7 +1316,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1316
1316
|
* @request PUT:/submission/{submissionID}
|
|
1317
1317
|
* @secure
|
|
1318
1318
|
*/
|
|
1319
|
-
updateSubmission: (submissionId: string, data:
|
|
1319
|
+
updateSubmission: (submissionId: string, data: InputKvk7Y9Qob6, params?: RequestParams) => Promise<any>;
|
|
1320
1320
|
/**
|
|
1321
1321
|
* @description Deletes a submission and all related invoices, expenses, and codes. Admin/SuperAdmin only. Cannot delete paid submissions. Notifies the contractor and any reviewing accountant.
|
|
1322
1322
|
*
|
|
@@ -1346,9 +1346,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1346
1346
|
* @request PUT:/submission/{submissionID}/codes
|
|
1347
1347
|
* @secure
|
|
1348
1348
|
*/
|
|
1349
|
-
updateCodes: (submissionId: string, data:
|
|
1349
|
+
updateCodes: (submissionId: string, data: InputZuufi5Flop, params?: RequestParams) => Promise<any>;
|
|
1350
1350
|
/**
|
|
1351
|
-
* @description Validates file constraints (size, type, count) and returns a presigned S3 URL for uploading a file attachment to a submission line item.
|
|
1351
|
+
* @description Validates file constraints (size, type, count) and returns a presigned S3 URL for uploading a file attachment to a submission line item. Supports both authenticated users (max 10 MB, any type, max 5 files per line item) and guest submissions (PDF only, max 1 MB, max 1 file per line item).
|
|
1352
1352
|
*
|
|
1353
1353
|
* @tags Submissions
|
|
1354
1354
|
* @name CreateFile
|
|
@@ -1356,7 +1356,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1356
1356
|
* @request POST:/submission/{submissionID}/file
|
|
1357
1357
|
* @secure
|
|
1358
1358
|
*/
|
|
1359
|
-
createFile: (submissionId: string, data:
|
|
1359
|
+
createFile: (submissionId: string, data: InputKn0Y6Bn1Yz, params?: RequestParams) => Promise<any>;
|
|
1360
1360
|
/**
|
|
1361
1361
|
* @description Returns a presigned S3 URL for downloading a file attachment associated with a submission line item.
|
|
1362
1362
|
*
|
|
@@ -1396,7 +1396,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1396
1396
|
* @request PUT:/submission/{submissionID}/po
|
|
1397
1397
|
* @secure
|
|
1398
1398
|
*/
|
|
1399
|
-
putSubmission: (submissionId: string, data:
|
|
1399
|
+
putSubmission: (submissionId: string, data: Input4Tvfg8Mse4, params?: RequestParams) => Promise<any>;
|
|
1400
1400
|
/**
|
|
1401
1401
|
* @description Reassigns a submission to a new department. Removes all codes from the original department. Notifies new department admins and the contractor. Admin/SuperAdmin only.
|
|
1402
1402
|
*
|
|
@@ -1406,7 +1406,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1406
1406
|
* @request POST:/submission/{submissionID}/reassign
|
|
1407
1407
|
* @secure
|
|
1408
1408
|
*/
|
|
1409
|
-
createReassign: (submissionId: string, data:
|
|
1409
|
+
createReassign: (submissionId: string, data: InputWmkkwhx1Bo, params?: RequestParams) => Promise<any>;
|
|
1410
1410
|
/**
|
|
1411
1411
|
* @description Admin rejects a Submitted submission; Accountant rejects an Administrator_Approved submission. RSA-sourced submissions cannot be rejected. Notifies the contractor.
|
|
1412
1412
|
*
|
|
@@ -1428,7 +1428,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1428
1428
|
*/
|
|
1429
1429
|
createSubmit: (submissionId: string, params?: RequestParams) => Promise<any>;
|
|
1430
1430
|
/**
|
|
1431
|
-
* @description Public endpoint for guest contractors to submit a single invoice without authentication. Requires reCAPTCHA verification. The submission goes directly to Submitted status (no Draft).
|
|
1431
|
+
* @description Public endpoint for guest contractors to submit a single invoice without authentication. Requires reCAPTCHA verification. The submission goes directly to Submitted status (no Draft). The attachment field is optional — if omitted, the frontend should upload the file separately via POST /submission/{submissionID}/file after creation.
|
|
1432
1432
|
*
|
|
1433
1433
|
* @tags Submissions
|
|
1434
1434
|
* @name CreateGuest
|
|
@@ -1436,7 +1436,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1436
1436
|
* @request POST:/submission/guest
|
|
1437
1437
|
* @secure
|
|
1438
1438
|
*/
|
|
1439
|
-
createGuest: (data:
|
|
1439
|
+
createGuest: (data: InputJiuwxuwhbyj, params?: RequestParams) => Promise<any>;
|
|
1440
1440
|
};
|
|
1441
1441
|
submissions: {
|
|
1442
1442
|
/**
|