@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/types.ts +20 -3
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "type": "git",
8
8
  "url": "https://github.com/colior115/allConnectedBE.git"
9
9
  },
10
- "version": "1.0.34",
10
+ "version": "1.0.36",
11
11
  "type": "module",
12
12
  "main": "src/index.ts",
13
13
  "types": "src/index.ts",
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
- customerId: string;
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 = Omit<ProjectDTO, "id">;
157
- export type UpdateProjectInputDTO = Partial<Omit<ProjectDTO, "id">>;
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>;