@claimscore/event-schemas 1.0.0 → 1.0.1

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.
@@ -0,0 +1,282 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.11.8
4
+ // protoc unknown
5
+ // source: file/v1/upload_completed.proto
6
+ /* eslint-disable */
7
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
+ export const protobufPackage = "file.v1";
9
+ function createBaseUploadCompleted() {
10
+ return {
11
+ fileId: "",
12
+ caseId: "",
13
+ fileName: "",
14
+ uploadedAt: "",
15
+ uploadedBy: undefined,
16
+ claimsAmount: 0,
17
+ delimiter: "",
18
+ headers: "",
19
+ adminIdHeaderIndex: 0,
20
+ containsHeader: false,
21
+ skipHeaders: false,
22
+ escapeChar: undefined,
23
+ };
24
+ }
25
+ export const UploadCompleted = {
26
+ encode(message, writer = new BinaryWriter()) {
27
+ if (message.fileId !== "") {
28
+ writer.uint32(10).string(message.fileId);
29
+ }
30
+ if (message.caseId !== "") {
31
+ writer.uint32(18).string(message.caseId);
32
+ }
33
+ if (message.fileName !== "") {
34
+ writer.uint32(26).string(message.fileName);
35
+ }
36
+ if (message.uploadedAt !== "") {
37
+ writer.uint32(34).string(message.uploadedAt);
38
+ }
39
+ if (message.uploadedBy !== undefined) {
40
+ writer.uint32(42).string(message.uploadedBy);
41
+ }
42
+ if (message.claimsAmount !== 0) {
43
+ writer.uint32(48).int32(message.claimsAmount);
44
+ }
45
+ if (message.delimiter !== "") {
46
+ writer.uint32(58).string(message.delimiter);
47
+ }
48
+ if (message.headers !== "") {
49
+ writer.uint32(66).string(message.headers);
50
+ }
51
+ if (message.adminIdHeaderIndex !== 0) {
52
+ writer.uint32(72).int32(message.adminIdHeaderIndex);
53
+ }
54
+ if (message.containsHeader !== false) {
55
+ writer.uint32(80).bool(message.containsHeader);
56
+ }
57
+ if (message.skipHeaders !== false) {
58
+ writer.uint32(88).bool(message.skipHeaders);
59
+ }
60
+ if (message.escapeChar !== undefined) {
61
+ writer.uint32(98).string(message.escapeChar);
62
+ }
63
+ return writer;
64
+ },
65
+ decode(input, length) {
66
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
67
+ const end = length === undefined ? reader.len : reader.pos + length;
68
+ const message = createBaseUploadCompleted();
69
+ while (reader.pos < end) {
70
+ const tag = reader.uint32();
71
+ switch (tag >>> 3) {
72
+ case 1: {
73
+ if (tag !== 10) {
74
+ break;
75
+ }
76
+ message.fileId = reader.string();
77
+ continue;
78
+ }
79
+ case 2: {
80
+ if (tag !== 18) {
81
+ break;
82
+ }
83
+ message.caseId = reader.string();
84
+ continue;
85
+ }
86
+ case 3: {
87
+ if (tag !== 26) {
88
+ break;
89
+ }
90
+ message.fileName = reader.string();
91
+ continue;
92
+ }
93
+ case 4: {
94
+ if (tag !== 34) {
95
+ break;
96
+ }
97
+ message.uploadedAt = reader.string();
98
+ continue;
99
+ }
100
+ case 5: {
101
+ if (tag !== 42) {
102
+ break;
103
+ }
104
+ message.uploadedBy = reader.string();
105
+ continue;
106
+ }
107
+ case 6: {
108
+ if (tag !== 48) {
109
+ break;
110
+ }
111
+ message.claimsAmount = reader.int32();
112
+ continue;
113
+ }
114
+ case 7: {
115
+ if (tag !== 58) {
116
+ break;
117
+ }
118
+ message.delimiter = reader.string();
119
+ continue;
120
+ }
121
+ case 8: {
122
+ if (tag !== 66) {
123
+ break;
124
+ }
125
+ message.headers = reader.string();
126
+ continue;
127
+ }
128
+ case 9: {
129
+ if (tag !== 72) {
130
+ break;
131
+ }
132
+ message.adminIdHeaderIndex = reader.int32();
133
+ continue;
134
+ }
135
+ case 10: {
136
+ if (tag !== 80) {
137
+ break;
138
+ }
139
+ message.containsHeader = reader.bool();
140
+ continue;
141
+ }
142
+ case 11: {
143
+ if (tag !== 88) {
144
+ break;
145
+ }
146
+ message.skipHeaders = reader.bool();
147
+ continue;
148
+ }
149
+ case 12: {
150
+ if (tag !== 98) {
151
+ break;
152
+ }
153
+ message.escapeChar = reader.string();
154
+ continue;
155
+ }
156
+ }
157
+ if ((tag & 7) === 4 || tag === 0) {
158
+ break;
159
+ }
160
+ reader.skip(tag & 7);
161
+ }
162
+ return message;
163
+ },
164
+ fromJSON(object) {
165
+ return {
166
+ fileId: isSet(object.fileId)
167
+ ? globalThis.String(object.fileId)
168
+ : isSet(object.file_id)
169
+ ? globalThis.String(object.file_id)
170
+ : "",
171
+ caseId: isSet(object.caseId)
172
+ ? globalThis.String(object.caseId)
173
+ : isSet(object.case_id)
174
+ ? globalThis.String(object.case_id)
175
+ : "",
176
+ fileName: isSet(object.fileName)
177
+ ? globalThis.String(object.fileName)
178
+ : isSet(object.file_name)
179
+ ? globalThis.String(object.file_name)
180
+ : "",
181
+ uploadedAt: isSet(object.uploadedAt)
182
+ ? globalThis.String(object.uploadedAt)
183
+ : isSet(object.uploaded_at)
184
+ ? globalThis.String(object.uploaded_at)
185
+ : "",
186
+ uploadedBy: isSet(object.uploadedBy)
187
+ ? globalThis.String(object.uploadedBy)
188
+ : isSet(object.uploaded_by)
189
+ ? globalThis.String(object.uploaded_by)
190
+ : undefined,
191
+ claimsAmount: isSet(object.claimsAmount)
192
+ ? globalThis.Number(object.claimsAmount)
193
+ : isSet(object.claims_amount)
194
+ ? globalThis.Number(object.claims_amount)
195
+ : 0,
196
+ delimiter: isSet(object.delimiter) ? globalThis.String(object.delimiter) : "",
197
+ headers: isSet(object.headers) ? globalThis.String(object.headers) : "",
198
+ adminIdHeaderIndex: isSet(object.adminIdHeaderIndex)
199
+ ? globalThis.Number(object.adminIdHeaderIndex)
200
+ : isSet(object.admin_id_header_index)
201
+ ? globalThis.Number(object.admin_id_header_index)
202
+ : 0,
203
+ containsHeader: isSet(object.containsHeader)
204
+ ? globalThis.Boolean(object.containsHeader)
205
+ : isSet(object.contains_header)
206
+ ? globalThis.Boolean(object.contains_header)
207
+ : false,
208
+ skipHeaders: isSet(object.skipHeaders)
209
+ ? globalThis.Boolean(object.skipHeaders)
210
+ : isSet(object.skip_headers)
211
+ ? globalThis.Boolean(object.skip_headers)
212
+ : false,
213
+ escapeChar: isSet(object.escapeChar)
214
+ ? globalThis.String(object.escapeChar)
215
+ : isSet(object.escape_char)
216
+ ? globalThis.String(object.escape_char)
217
+ : undefined,
218
+ };
219
+ },
220
+ toJSON(message) {
221
+ const obj = {};
222
+ if (message.fileId !== "") {
223
+ obj.fileId = message.fileId;
224
+ }
225
+ if (message.caseId !== "") {
226
+ obj.caseId = message.caseId;
227
+ }
228
+ if (message.fileName !== "") {
229
+ obj.fileName = message.fileName;
230
+ }
231
+ if (message.uploadedAt !== "") {
232
+ obj.uploadedAt = message.uploadedAt;
233
+ }
234
+ if (message.uploadedBy !== undefined) {
235
+ obj.uploadedBy = message.uploadedBy;
236
+ }
237
+ if (message.claimsAmount !== 0) {
238
+ obj.claimsAmount = Math.round(message.claimsAmount);
239
+ }
240
+ if (message.delimiter !== "") {
241
+ obj.delimiter = message.delimiter;
242
+ }
243
+ if (message.headers !== "") {
244
+ obj.headers = message.headers;
245
+ }
246
+ if (message.adminIdHeaderIndex !== 0) {
247
+ obj.adminIdHeaderIndex = Math.round(message.adminIdHeaderIndex);
248
+ }
249
+ if (message.containsHeader !== false) {
250
+ obj.containsHeader = message.containsHeader;
251
+ }
252
+ if (message.skipHeaders !== false) {
253
+ obj.skipHeaders = message.skipHeaders;
254
+ }
255
+ if (message.escapeChar !== undefined) {
256
+ obj.escapeChar = message.escapeChar;
257
+ }
258
+ return obj;
259
+ },
260
+ create(base) {
261
+ return UploadCompleted.fromPartial(base ?? {});
262
+ },
263
+ fromPartial(object) {
264
+ const message = createBaseUploadCompleted();
265
+ message.fileId = object.fileId ?? "";
266
+ message.caseId = object.caseId ?? "";
267
+ message.fileName = object.fileName ?? "";
268
+ message.uploadedAt = object.uploadedAt ?? "";
269
+ message.uploadedBy = object.uploadedBy ?? undefined;
270
+ message.claimsAmount = object.claimsAmount ?? 0;
271
+ message.delimiter = object.delimiter ?? "";
272
+ message.headers = object.headers ?? "";
273
+ message.adminIdHeaderIndex = object.adminIdHeaderIndex ?? 0;
274
+ message.containsHeader = object.containsHeader ?? false;
275
+ message.skipHeaders = object.skipHeaders ?? false;
276
+ message.escapeChar = object.escapeChar ?? undefined;
277
+ return message;
278
+ },
279
+ };
280
+ function isSet(value) {
281
+ return value !== null && value !== undefined;
282
+ }
@@ -2,11 +2,13 @@ export { AccountActivated } from './account/v1/activated';
2
2
  export { CaseCreated } from './case/v1/created';
3
3
  export { AnalysisRequested } from './file/v1/analysis_requested';
4
4
  export { PreprocessCompleted } from './file/v1/preprocess_completed';
5
+ export { ProcessingCompleted } from './file/v1/processing_completed';
6
+ export { UploadCompleted } from './file/v1/upload_completed';
5
7
  export { InvitationApproved } from './invitation/v1/approved';
6
- export { CasePermission, InvitationCreated } from './invitation/v1/created';
8
+ export { InvitationCreated } from './invitation/v1/created';
7
9
  export { InvitationVerificationResent } from './invitation/v1/verification_resent';
8
10
  export { PermissionCreated } from './permission/v1/created';
9
11
  export { PermissionDeleted } from './permission/v1/deleted';
10
12
  export { PermissionUpdated } from './permission/v1/updated';
11
- export { FileType, DeliveryType, Attachment, ReportGenerated } from './report/v1/generated';
13
+ export { ReportGenerated } from './report/v1/generated';
12
14
  export { Topics } from './topics';
package/dist/esm/index.js CHANGED
@@ -3,11 +3,13 @@ export { AccountActivated } from './account/v1/activated';
3
3
  export { CaseCreated } from './case/v1/created';
4
4
  export { AnalysisRequested } from './file/v1/analysis_requested';
5
5
  export { PreprocessCompleted } from './file/v1/preprocess_completed';
6
+ export { ProcessingCompleted } from './file/v1/processing_completed';
7
+ export { UploadCompleted } from './file/v1/upload_completed';
6
8
  export { InvitationApproved } from './invitation/v1/approved';
7
- export { CasePermission, InvitationCreated } from './invitation/v1/created';
9
+ export { InvitationCreated } from './invitation/v1/created';
8
10
  export { InvitationVerificationResent } from './invitation/v1/verification_resent';
9
11
  export { PermissionCreated } from './permission/v1/created';
10
12
  export { PermissionDeleted } from './permission/v1/deleted';
11
13
  export { PermissionUpdated } from './permission/v1/updated';
12
- export { FileType, DeliveryType, Attachment, ReportGenerated } from './report/v1/generated';
14
+ export { ReportGenerated } from './report/v1/generated';
13
15
  export { Topics } from './topics';
@@ -1,9 +1,5 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  export declare const protobufPackage = "invitation.v1";
3
- export interface CasePermission {
4
- caseId: string;
5
- roleName: string;
6
- }
7
3
  export interface InvitationCreated {
8
4
  invitationId: string;
9
5
  organizationId: string;
@@ -13,10 +9,14 @@ export interface InvitationCreated {
13
9
  firstName: string;
14
10
  lastName: string;
15
11
  roleName: string;
16
- casePermissions: CasePermission[];
12
+ casePermissions: InvitationCreated_CasePermission[];
13
+ }
14
+ export interface InvitationCreated_CasePermission {
15
+ caseId: string;
16
+ roleName: string;
17
17
  }
18
- export declare const CasePermission: MessageFns<CasePermission>;
19
18
  export declare const InvitationCreated: MessageFns<InvitationCreated>;
19
+ export declare const InvitationCreated_CasePermission: MessageFns<InvitationCreated_CasePermission>;
20
20
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
21
21
  export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
22
22
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -6,82 +6,6 @@
6
6
  /* eslint-disable */
7
7
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
8
  export const protobufPackage = "invitation.v1";
9
- function createBaseCasePermission() {
10
- return { caseId: "", roleName: "" };
11
- }
12
- export const CasePermission = {
13
- encode(message, writer = new BinaryWriter()) {
14
- if (message.caseId !== "") {
15
- writer.uint32(10).string(message.caseId);
16
- }
17
- if (message.roleName !== "") {
18
- writer.uint32(18).string(message.roleName);
19
- }
20
- return writer;
21
- },
22
- decode(input, length) {
23
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
24
- const end = length === undefined ? reader.len : reader.pos + length;
25
- const message = createBaseCasePermission();
26
- while (reader.pos < end) {
27
- const tag = reader.uint32();
28
- switch (tag >>> 3) {
29
- case 1: {
30
- if (tag !== 10) {
31
- break;
32
- }
33
- message.caseId = reader.string();
34
- continue;
35
- }
36
- case 2: {
37
- if (tag !== 18) {
38
- break;
39
- }
40
- message.roleName = reader.string();
41
- continue;
42
- }
43
- }
44
- if ((tag & 7) === 4 || tag === 0) {
45
- break;
46
- }
47
- reader.skip(tag & 7);
48
- }
49
- return message;
50
- },
51
- fromJSON(object) {
52
- return {
53
- caseId: isSet(object.caseId)
54
- ? globalThis.String(object.caseId)
55
- : isSet(object.case_id)
56
- ? globalThis.String(object.case_id)
57
- : "",
58
- roleName: isSet(object.roleName)
59
- ? globalThis.String(object.roleName)
60
- : isSet(object.role_name)
61
- ? globalThis.String(object.role_name)
62
- : "",
63
- };
64
- },
65
- toJSON(message) {
66
- const obj = {};
67
- if (message.caseId !== "") {
68
- obj.caseId = message.caseId;
69
- }
70
- if (message.roleName !== "") {
71
- obj.roleName = message.roleName;
72
- }
73
- return obj;
74
- },
75
- create(base) {
76
- return CasePermission.fromPartial(base ?? {});
77
- },
78
- fromPartial(object) {
79
- const message = createBaseCasePermission();
80
- message.caseId = object.caseId ?? "";
81
- message.roleName = object.roleName ?? "";
82
- return message;
83
- },
84
- };
85
9
  function createBaseInvitationCreated() {
86
10
  return {
87
11
  invitationId: "",
@@ -122,7 +46,7 @@ export const InvitationCreated = {
122
46
  writer.uint32(66).string(message.roleName);
123
47
  }
124
48
  for (const v of message.casePermissions) {
125
- CasePermission.encode(v, writer.uint32(74).fork()).join();
49
+ InvitationCreated_CasePermission.encode(v, writer.uint32(74).fork()).join();
126
50
  }
127
51
  return writer;
128
52
  },
@@ -193,7 +117,7 @@ export const InvitationCreated = {
193
117
  if (tag !== 74) {
194
118
  break;
195
119
  }
196
- message.casePermissions.push(CasePermission.decode(reader, reader.uint32()));
120
+ message.casePermissions.push(InvitationCreated_CasePermission.decode(reader, reader.uint32()));
197
121
  continue;
198
122
  }
199
123
  }
@@ -243,9 +167,9 @@ export const InvitationCreated = {
243
167
  ? globalThis.String(object.role_name)
244
168
  : "",
245
169
  casePermissions: globalThis.Array.isArray(object?.casePermissions)
246
- ? object.casePermissions.map((e) => CasePermission.fromJSON(e))
170
+ ? object.casePermissions.map((e) => InvitationCreated_CasePermission.fromJSON(e))
247
171
  : globalThis.Array.isArray(object?.case_permissions)
248
- ? object.case_permissions.map((e) => CasePermission.fromJSON(e))
172
+ ? object.case_permissions.map((e) => InvitationCreated_CasePermission.fromJSON(e))
249
173
  : [],
250
174
  };
251
175
  },
@@ -276,7 +200,7 @@ export const InvitationCreated = {
276
200
  obj.roleName = message.roleName;
277
201
  }
278
202
  if (message.casePermissions?.length) {
279
- obj.casePermissions = message.casePermissions.map((e) => CasePermission.toJSON(e));
203
+ obj.casePermissions = message.casePermissions.map((e) => InvitationCreated_CasePermission.toJSON(e));
280
204
  }
281
205
  return obj;
282
206
  },
@@ -293,7 +217,83 @@ export const InvitationCreated = {
293
217
  message.firstName = object.firstName ?? "";
294
218
  message.lastName = object.lastName ?? "";
295
219
  message.roleName = object.roleName ?? "";
296
- message.casePermissions = object.casePermissions?.map((e) => CasePermission.fromPartial(e)) || [];
220
+ message.casePermissions = object.casePermissions?.map((e) => InvitationCreated_CasePermission.fromPartial(e)) || [];
221
+ return message;
222
+ },
223
+ };
224
+ function createBaseInvitationCreated_CasePermission() {
225
+ return { caseId: "", roleName: "" };
226
+ }
227
+ export const InvitationCreated_CasePermission = {
228
+ encode(message, writer = new BinaryWriter()) {
229
+ if (message.caseId !== "") {
230
+ writer.uint32(10).string(message.caseId);
231
+ }
232
+ if (message.roleName !== "") {
233
+ writer.uint32(18).string(message.roleName);
234
+ }
235
+ return writer;
236
+ },
237
+ decode(input, length) {
238
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
239
+ const end = length === undefined ? reader.len : reader.pos + length;
240
+ const message = createBaseInvitationCreated_CasePermission();
241
+ while (reader.pos < end) {
242
+ const tag = reader.uint32();
243
+ switch (tag >>> 3) {
244
+ case 1: {
245
+ if (tag !== 10) {
246
+ break;
247
+ }
248
+ message.caseId = reader.string();
249
+ continue;
250
+ }
251
+ case 2: {
252
+ if (tag !== 18) {
253
+ break;
254
+ }
255
+ message.roleName = reader.string();
256
+ continue;
257
+ }
258
+ }
259
+ if ((tag & 7) === 4 || tag === 0) {
260
+ break;
261
+ }
262
+ reader.skip(tag & 7);
263
+ }
264
+ return message;
265
+ },
266
+ fromJSON(object) {
267
+ return {
268
+ caseId: isSet(object.caseId)
269
+ ? globalThis.String(object.caseId)
270
+ : isSet(object.case_id)
271
+ ? globalThis.String(object.case_id)
272
+ : "",
273
+ roleName: isSet(object.roleName)
274
+ ? globalThis.String(object.roleName)
275
+ : isSet(object.role_name)
276
+ ? globalThis.String(object.role_name)
277
+ : "",
278
+ };
279
+ },
280
+ toJSON(message) {
281
+ const obj = {};
282
+ if (message.caseId !== "") {
283
+ obj.caseId = message.caseId;
284
+ }
285
+ if (message.roleName !== "") {
286
+ obj.roleName = message.roleName;
287
+ }
288
+ return obj;
289
+ },
290
+ create(base) {
291
+ return InvitationCreated_CasePermission.fromPartial(base ?? {});
292
+ },
293
+ fromPartial(object) {
294
+ const message = createBaseInvitationCreated_CasePermission();
295
+ message.caseId = object.caseId ?? "";
296
+ message.roleName = object.roleName ?? "";
297
297
  return message;
298
298
  },
299
299
  };
@@ -1,38 +1,38 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  export declare const protobufPackage = "report.v1";
3
- export declare enum FileType {
3
+ export interface ReportGenerated {
4
+ caseId: string;
5
+ caseName: string;
6
+ reportTitle: string;
7
+ urlRedirect: string;
8
+ fileType: ReportGenerated_FileType;
9
+ recipients: string[];
10
+ deliveryType: ReportGenerated_DeliveryType;
11
+ sendAt?: number | undefined;
12
+ attachment: ReportGenerated_Attachment | undefined;
13
+ }
14
+ export declare enum ReportGenerated_FileType {
4
15
  FILE_TYPE_UNSPECIFIED = 0,
5
16
  FILE_TYPE_PDF = 1,
6
17
  FILE_TYPE_CSV = 2,
7
18
  UNRECOGNIZED = -1
8
19
  }
9
- export declare function fileTypeFromJSON(object: any): FileType;
10
- export declare function fileTypeToJSON(object: FileType): string;
11
- export declare enum DeliveryType {
20
+ export declare function reportGenerated_FileTypeFromJSON(object: any): ReportGenerated_FileType;
21
+ export declare function reportGenerated_FileTypeToJSON(object: ReportGenerated_FileType): string;
22
+ export declare enum ReportGenerated_DeliveryType {
12
23
  DELIVERY_TYPE_UNSPECIFIED = 0,
13
24
  DELIVERY_TYPE_IMMEDIATE = 1,
14
25
  DELIVERY_TYPE_SCHEDULED = 2,
15
26
  UNRECOGNIZED = -1
16
27
  }
17
- export declare function deliveryTypeFromJSON(object: any): DeliveryType;
18
- export declare function deliveryTypeToJSON(object: DeliveryType): string;
19
- export interface Attachment {
28
+ export declare function reportGenerated_DeliveryTypeFromJSON(object: any): ReportGenerated_DeliveryType;
29
+ export declare function reportGenerated_DeliveryTypeToJSON(object: ReportGenerated_DeliveryType): string;
30
+ export interface ReportGenerated_Attachment {
20
31
  content: string;
21
32
  filename: string;
22
33
  }
23
- export interface ReportGenerated {
24
- caseId: string;
25
- caseName: string;
26
- reportTitle: string;
27
- urlRedirect: string;
28
- fileType: FileType;
29
- recipients: string[];
30
- deliveryType: DeliveryType;
31
- sendAt?: number | undefined;
32
- attachment: Attachment | undefined;
33
- }
34
- export declare const Attachment: MessageFns<Attachment>;
35
34
  export declare const ReportGenerated: MessageFns<ReportGenerated>;
35
+ export declare const ReportGenerated_Attachment: MessageFns<ReportGenerated_Attachment>;
36
36
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
37
37
  export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
38
38
  [K in keyof T]?: DeepPartial<T[K]>;