@colior115/all-connected-be-sdk 1.0.34 → 1.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/types.ts +20 -3
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -135,10 +135,19 @@ export type NextPaymentDTO = {
|
|
|
135
135
|
milestone?: string;
|
|
136
136
|
};
|
|
137
137
|
|
|
138
|
+
export type ProjectCustomerDTO = {
|
|
139
|
+
id: string;
|
|
140
|
+
name: string;
|
|
141
|
+
individual: boolean;
|
|
142
|
+
address?: string;
|
|
143
|
+
phone?: string;
|
|
144
|
+
email?: string;
|
|
145
|
+
};
|
|
146
|
+
|
|
138
147
|
export type ProjectDTO = {
|
|
139
148
|
id: string;
|
|
140
149
|
businessId: string;
|
|
141
|
-
|
|
150
|
+
customer: ProjectCustomerDTO;
|
|
142
151
|
totalContractAmount: number;
|
|
143
152
|
totalPaidAmount?: number;
|
|
144
153
|
currency: string;
|
|
@@ -153,5 +162,13 @@ export type ProjectListResponseDTO = {
|
|
|
153
162
|
limit: number;
|
|
154
163
|
};
|
|
155
164
|
|
|
156
|
-
export type CreateProjectInputDTO =
|
|
157
|
-
|
|
165
|
+
export type CreateProjectInputDTO = {
|
|
166
|
+
businessId: string;
|
|
167
|
+
customerId: string;
|
|
168
|
+
totalContractAmount: number;
|
|
169
|
+
currency: string;
|
|
170
|
+
totalPaidAmount?: number;
|
|
171
|
+
toBePaidAmount?: number;
|
|
172
|
+
nextPayment?: NextPaymentDTO;
|
|
173
|
+
};
|
|
174
|
+
export type UpdateProjectInputDTO = Partial<CreateProjectInputDTO>;
|