@claimscore/event-schemas 0.1.0-beta.2 → 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.
Files changed (51) hide show
  1. package/README.md +78 -19
  2. package/dist/{account/v1/account_activated.js → cjs/account/v1/activated.js} +2 -2
  3. package/dist/{case/v1/case_created.js → cjs/case/v1/created.js} +2 -2
  4. package/dist/{file → cjs/file}/v1/analysis_requested.js +1 -1
  5. package/dist/{file → cjs/file}/v1/preprocess_completed.js +1 -1
  6. package/dist/cjs/file/v1/processing_completed.js +153 -0
  7. package/dist/cjs/file/v1/upload_completed.js +285 -0
  8. package/dist/cjs/index.js +32 -0
  9. package/dist/{invitation/v1/invitation_approved.js → cjs/invitation/v1/approved.js} +2 -2
  10. package/dist/{organization/v1/invitation_created.js → cjs/invitation/v1/created.js} +86 -86
  11. package/dist/{invitation/v1/invitation_verification_resent.js → cjs/invitation/v1/verification_resent.js} +2 -2
  12. package/dist/cjs/package.json +3 -0
  13. package/dist/{case/v1/permission_created.js → cjs/permission/v1/created.js} +3 -3
  14. package/dist/{case/v1/permission_deleted.js → cjs/permission/v1/deleted.js} +3 -3
  15. package/dist/{case/v1/permission_updated.js → cjs/permission/v1/updated.js} +3 -3
  16. package/dist/{report/v1/report_generated.js → cjs/report/v1/generated.js} +120 -120
  17. package/dist/cjs/topics.js +22 -0
  18. package/dist/esm/account/v1/activated.js +186 -0
  19. package/dist/esm/case/v1/created.js +232 -0
  20. package/dist/esm/file/v1/analysis_requested.js +144 -0
  21. package/dist/esm/file/v1/preprocess_completed.js +144 -0
  22. package/dist/esm/file/v1/processing_completed.d.ts +29 -0
  23. package/dist/esm/file/v1/processing_completed.js +150 -0
  24. package/dist/esm/file/v1/upload_completed.d.ts +36 -0
  25. package/dist/esm/file/v1/upload_completed.js +282 -0
  26. package/dist/esm/index.d.ts +14 -0
  27. package/dist/esm/index.js +15 -0
  28. package/dist/esm/invitation/v1/approved.js +140 -0
  29. package/dist/{organization/v1/invitation_created.d.ts → esm/invitation/v1/created.d.ts} +7 -7
  30. package/dist/esm/invitation/v1/created.js +302 -0
  31. package/dist/esm/invitation/v1/verification_resent.js +186 -0
  32. package/dist/esm/package.json +3 -0
  33. package/dist/{case/v1/permission_created.d.ts → esm/permission/v1/created.d.ts} +1 -1
  34. package/dist/esm/permission/v1/created.js +206 -0
  35. package/dist/{case/v1/permission_deleted.d.ts → esm/permission/v1/deleted.d.ts} +1 -1
  36. package/dist/esm/permission/v1/deleted.js +206 -0
  37. package/dist/{case/v1/permission_updated.d.ts → esm/permission/v1/updated.d.ts} +1 -1
  38. package/dist/esm/permission/v1/updated.js +206 -0
  39. package/dist/{report/v1/report_generated.d.ts → esm/report/v1/generated.d.ts} +19 -19
  40. package/dist/esm/report/v1/generated.js +378 -0
  41. package/dist/esm/topics.d.ts +18 -0
  42. package/dist/esm/topics.js +19 -0
  43. package/package.json +20 -5
  44. package/dist/index.d.ts +0 -11
  45. package/dist/index.js +0 -29
  46. /package/dist/{account/v1/account_activated.d.ts → esm/account/v1/activated.d.ts} +0 -0
  47. /package/dist/{case/v1/case_created.d.ts → esm/case/v1/created.d.ts} +0 -0
  48. /package/dist/{file → esm/file}/v1/analysis_requested.d.ts +0 -0
  49. /package/dist/{file → esm/file}/v1/preprocess_completed.d.ts +0 -0
  50. /package/dist/{invitation/v1/invitation_approved.d.ts → esm/invitation/v1/approved.d.ts} +0 -0
  51. /package/dist/{invitation/v1/invitation_verification_resent.d.ts → esm/invitation/v1/verification_resent.d.ts} +0 -0
@@ -0,0 +1,186 @@
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: account/v1/activated.proto
6
+ /* eslint-disable */
7
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
+ export const protobufPackage = "account.v1";
9
+ function createBaseAccountActivated() {
10
+ return {
11
+ accountId: "",
12
+ email: "",
13
+ firstName: "",
14
+ lastName: "",
15
+ organizationId: "",
16
+ organizationName: "",
17
+ invitationId: "",
18
+ };
19
+ }
20
+ export const AccountActivated = {
21
+ encode(message, writer = new BinaryWriter()) {
22
+ if (message.accountId !== "") {
23
+ writer.uint32(10).string(message.accountId);
24
+ }
25
+ if (message.email !== "") {
26
+ writer.uint32(18).string(message.email);
27
+ }
28
+ if (message.firstName !== "") {
29
+ writer.uint32(26).string(message.firstName);
30
+ }
31
+ if (message.lastName !== "") {
32
+ writer.uint32(34).string(message.lastName);
33
+ }
34
+ if (message.organizationId !== "") {
35
+ writer.uint32(42).string(message.organizationId);
36
+ }
37
+ if (message.organizationName !== "") {
38
+ writer.uint32(50).string(message.organizationName);
39
+ }
40
+ if (message.invitationId !== "") {
41
+ writer.uint32(58).string(message.invitationId);
42
+ }
43
+ return writer;
44
+ },
45
+ decode(input, length) {
46
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
47
+ const end = length === undefined ? reader.len : reader.pos + length;
48
+ const message = createBaseAccountActivated();
49
+ while (reader.pos < end) {
50
+ const tag = reader.uint32();
51
+ switch (tag >>> 3) {
52
+ case 1: {
53
+ if (tag !== 10) {
54
+ break;
55
+ }
56
+ message.accountId = reader.string();
57
+ continue;
58
+ }
59
+ case 2: {
60
+ if (tag !== 18) {
61
+ break;
62
+ }
63
+ message.email = reader.string();
64
+ continue;
65
+ }
66
+ case 3: {
67
+ if (tag !== 26) {
68
+ break;
69
+ }
70
+ message.firstName = reader.string();
71
+ continue;
72
+ }
73
+ case 4: {
74
+ if (tag !== 34) {
75
+ break;
76
+ }
77
+ message.lastName = reader.string();
78
+ continue;
79
+ }
80
+ case 5: {
81
+ if (tag !== 42) {
82
+ break;
83
+ }
84
+ message.organizationId = reader.string();
85
+ continue;
86
+ }
87
+ case 6: {
88
+ if (tag !== 50) {
89
+ break;
90
+ }
91
+ message.organizationName = reader.string();
92
+ continue;
93
+ }
94
+ case 7: {
95
+ if (tag !== 58) {
96
+ break;
97
+ }
98
+ message.invitationId = reader.string();
99
+ continue;
100
+ }
101
+ }
102
+ if ((tag & 7) === 4 || tag === 0) {
103
+ break;
104
+ }
105
+ reader.skip(tag & 7);
106
+ }
107
+ return message;
108
+ },
109
+ fromJSON(object) {
110
+ return {
111
+ accountId: isSet(object.accountId)
112
+ ? globalThis.String(object.accountId)
113
+ : isSet(object.account_id)
114
+ ? globalThis.String(object.account_id)
115
+ : "",
116
+ email: isSet(object.email) ? globalThis.String(object.email) : "",
117
+ firstName: isSet(object.firstName)
118
+ ? globalThis.String(object.firstName)
119
+ : isSet(object.first_name)
120
+ ? globalThis.String(object.first_name)
121
+ : "",
122
+ lastName: isSet(object.lastName)
123
+ ? globalThis.String(object.lastName)
124
+ : isSet(object.last_name)
125
+ ? globalThis.String(object.last_name)
126
+ : "",
127
+ organizationId: isSet(object.organizationId)
128
+ ? globalThis.String(object.organizationId)
129
+ : isSet(object.organization_id)
130
+ ? globalThis.String(object.organization_id)
131
+ : "",
132
+ organizationName: isSet(object.organizationName)
133
+ ? globalThis.String(object.organizationName)
134
+ : isSet(object.organization_name)
135
+ ? globalThis.String(object.organization_name)
136
+ : "",
137
+ invitationId: isSet(object.invitationId)
138
+ ? globalThis.String(object.invitationId)
139
+ : isSet(object.invitation_id)
140
+ ? globalThis.String(object.invitation_id)
141
+ : "",
142
+ };
143
+ },
144
+ toJSON(message) {
145
+ const obj = {};
146
+ if (message.accountId !== "") {
147
+ obj.accountId = message.accountId;
148
+ }
149
+ if (message.email !== "") {
150
+ obj.email = message.email;
151
+ }
152
+ if (message.firstName !== "") {
153
+ obj.firstName = message.firstName;
154
+ }
155
+ if (message.lastName !== "") {
156
+ obj.lastName = message.lastName;
157
+ }
158
+ if (message.organizationId !== "") {
159
+ obj.organizationId = message.organizationId;
160
+ }
161
+ if (message.organizationName !== "") {
162
+ obj.organizationName = message.organizationName;
163
+ }
164
+ if (message.invitationId !== "") {
165
+ obj.invitationId = message.invitationId;
166
+ }
167
+ return obj;
168
+ },
169
+ create(base) {
170
+ return AccountActivated.fromPartial(base ?? {});
171
+ },
172
+ fromPartial(object) {
173
+ const message = createBaseAccountActivated();
174
+ message.accountId = object.accountId ?? "";
175
+ message.email = object.email ?? "";
176
+ message.firstName = object.firstName ?? "";
177
+ message.lastName = object.lastName ?? "";
178
+ message.organizationId = object.organizationId ?? "";
179
+ message.organizationName = object.organizationName ?? "";
180
+ message.invitationId = object.invitationId ?? "";
181
+ return message;
182
+ },
183
+ };
184
+ function isSet(value) {
185
+ return value !== null && value !== undefined;
186
+ }
@@ -0,0 +1,232 @@
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: case/v1/created.proto
6
+ /* eslint-disable */
7
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
+ export const protobufPackage = "case.v1";
9
+ function createBaseCaseCreated() {
10
+ return {
11
+ caseId: "",
12
+ caseName: "",
13
+ organizationId: "",
14
+ country: "",
15
+ createdBy: "",
16
+ timestamp: "",
17
+ caseNumber: "",
18
+ court: "",
19
+ jurisdiction: [],
20
+ timezone: undefined,
21
+ };
22
+ }
23
+ export const CaseCreated = {
24
+ encode(message, writer = new BinaryWriter()) {
25
+ if (message.caseId !== "") {
26
+ writer.uint32(10).string(message.caseId);
27
+ }
28
+ if (message.caseName !== "") {
29
+ writer.uint32(18).string(message.caseName);
30
+ }
31
+ if (message.organizationId !== "") {
32
+ writer.uint32(26).string(message.organizationId);
33
+ }
34
+ if (message.country !== "") {
35
+ writer.uint32(34).string(message.country);
36
+ }
37
+ if (message.createdBy !== "") {
38
+ writer.uint32(42).string(message.createdBy);
39
+ }
40
+ if (message.timestamp !== "") {
41
+ writer.uint32(50).string(message.timestamp);
42
+ }
43
+ if (message.caseNumber !== "") {
44
+ writer.uint32(58).string(message.caseNumber);
45
+ }
46
+ if (message.court !== "") {
47
+ writer.uint32(66).string(message.court);
48
+ }
49
+ for (const v of message.jurisdiction) {
50
+ writer.uint32(74).string(v);
51
+ }
52
+ if (message.timezone !== undefined) {
53
+ writer.uint32(82).string(message.timezone);
54
+ }
55
+ return writer;
56
+ },
57
+ decode(input, length) {
58
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
59
+ const end = length === undefined ? reader.len : reader.pos + length;
60
+ const message = createBaseCaseCreated();
61
+ while (reader.pos < end) {
62
+ const tag = reader.uint32();
63
+ switch (tag >>> 3) {
64
+ case 1: {
65
+ if (tag !== 10) {
66
+ break;
67
+ }
68
+ message.caseId = reader.string();
69
+ continue;
70
+ }
71
+ case 2: {
72
+ if (tag !== 18) {
73
+ break;
74
+ }
75
+ message.caseName = reader.string();
76
+ continue;
77
+ }
78
+ case 3: {
79
+ if (tag !== 26) {
80
+ break;
81
+ }
82
+ message.organizationId = reader.string();
83
+ continue;
84
+ }
85
+ case 4: {
86
+ if (tag !== 34) {
87
+ break;
88
+ }
89
+ message.country = reader.string();
90
+ continue;
91
+ }
92
+ case 5: {
93
+ if (tag !== 42) {
94
+ break;
95
+ }
96
+ message.createdBy = reader.string();
97
+ continue;
98
+ }
99
+ case 6: {
100
+ if (tag !== 50) {
101
+ break;
102
+ }
103
+ message.timestamp = reader.string();
104
+ continue;
105
+ }
106
+ case 7: {
107
+ if (tag !== 58) {
108
+ break;
109
+ }
110
+ message.caseNumber = reader.string();
111
+ continue;
112
+ }
113
+ case 8: {
114
+ if (tag !== 66) {
115
+ break;
116
+ }
117
+ message.court = reader.string();
118
+ continue;
119
+ }
120
+ case 9: {
121
+ if (tag !== 74) {
122
+ break;
123
+ }
124
+ message.jurisdiction.push(reader.string());
125
+ continue;
126
+ }
127
+ case 10: {
128
+ if (tag !== 82) {
129
+ break;
130
+ }
131
+ message.timezone = reader.string();
132
+ continue;
133
+ }
134
+ }
135
+ if ((tag & 7) === 4 || tag === 0) {
136
+ break;
137
+ }
138
+ reader.skip(tag & 7);
139
+ }
140
+ return message;
141
+ },
142
+ fromJSON(object) {
143
+ return {
144
+ caseId: isSet(object.caseId)
145
+ ? globalThis.String(object.caseId)
146
+ : isSet(object.case_id)
147
+ ? globalThis.String(object.case_id)
148
+ : "",
149
+ caseName: isSet(object.caseName)
150
+ ? globalThis.String(object.caseName)
151
+ : isSet(object.case_name)
152
+ ? globalThis.String(object.case_name)
153
+ : "",
154
+ organizationId: isSet(object.organizationId)
155
+ ? globalThis.String(object.organizationId)
156
+ : isSet(object.organization_id)
157
+ ? globalThis.String(object.organization_id)
158
+ : "",
159
+ country: isSet(object.country) ? globalThis.String(object.country) : "",
160
+ createdBy: isSet(object.createdBy)
161
+ ? globalThis.String(object.createdBy)
162
+ : isSet(object.created_by)
163
+ ? globalThis.String(object.created_by)
164
+ : "",
165
+ timestamp: isSet(object.timestamp) ? globalThis.String(object.timestamp) : "",
166
+ caseNumber: isSet(object.caseNumber)
167
+ ? globalThis.String(object.caseNumber)
168
+ : isSet(object.case_number)
169
+ ? globalThis.String(object.case_number)
170
+ : "",
171
+ court: isSet(object.court) ? globalThis.String(object.court) : "",
172
+ jurisdiction: globalThis.Array.isArray(object?.jurisdiction)
173
+ ? object.jurisdiction.map((e) => globalThis.String(e))
174
+ : [],
175
+ timezone: isSet(object.timezone) ? globalThis.String(object.timezone) : undefined,
176
+ };
177
+ },
178
+ toJSON(message) {
179
+ const obj = {};
180
+ if (message.caseId !== "") {
181
+ obj.caseId = message.caseId;
182
+ }
183
+ if (message.caseName !== "") {
184
+ obj.caseName = message.caseName;
185
+ }
186
+ if (message.organizationId !== "") {
187
+ obj.organizationId = message.organizationId;
188
+ }
189
+ if (message.country !== "") {
190
+ obj.country = message.country;
191
+ }
192
+ if (message.createdBy !== "") {
193
+ obj.createdBy = message.createdBy;
194
+ }
195
+ if (message.timestamp !== "") {
196
+ obj.timestamp = message.timestamp;
197
+ }
198
+ if (message.caseNumber !== "") {
199
+ obj.caseNumber = message.caseNumber;
200
+ }
201
+ if (message.court !== "") {
202
+ obj.court = message.court;
203
+ }
204
+ if (message.jurisdiction?.length) {
205
+ obj.jurisdiction = message.jurisdiction;
206
+ }
207
+ if (message.timezone !== undefined) {
208
+ obj.timezone = message.timezone;
209
+ }
210
+ return obj;
211
+ },
212
+ create(base) {
213
+ return CaseCreated.fromPartial(base ?? {});
214
+ },
215
+ fromPartial(object) {
216
+ const message = createBaseCaseCreated();
217
+ message.caseId = object.caseId ?? "";
218
+ message.caseName = object.caseName ?? "";
219
+ message.organizationId = object.organizationId ?? "";
220
+ message.country = object.country ?? "";
221
+ message.createdBy = object.createdBy ?? "";
222
+ message.timestamp = object.timestamp ?? "";
223
+ message.caseNumber = object.caseNumber ?? "";
224
+ message.court = object.court ?? "";
225
+ message.jurisdiction = object.jurisdiction?.map((e) => e) || [];
226
+ message.timezone = object.timezone ?? undefined;
227
+ return message;
228
+ },
229
+ };
230
+ function isSet(value) {
231
+ return value !== null && value !== undefined;
232
+ }
@@ -0,0 +1,144 @@
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/analysis_requested.proto
6
+ /* eslint-disable */
7
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
+ export const protobufPackage = "file.v1";
9
+ function createBaseAnalysisRequested() {
10
+ return { fileId: "", caseId: "", fileName: "", uploadedAt: "", uploadedBy: "" };
11
+ }
12
+ export const AnalysisRequested = {
13
+ encode(message, writer = new BinaryWriter()) {
14
+ if (message.fileId !== "") {
15
+ writer.uint32(10).string(message.fileId);
16
+ }
17
+ if (message.caseId !== "") {
18
+ writer.uint32(18).string(message.caseId);
19
+ }
20
+ if (message.fileName !== "") {
21
+ writer.uint32(26).string(message.fileName);
22
+ }
23
+ if (message.uploadedAt !== "") {
24
+ writer.uint32(34).string(message.uploadedAt);
25
+ }
26
+ if (message.uploadedBy !== "") {
27
+ writer.uint32(42).string(message.uploadedBy);
28
+ }
29
+ return writer;
30
+ },
31
+ decode(input, length) {
32
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
33
+ const end = length === undefined ? reader.len : reader.pos + length;
34
+ const message = createBaseAnalysisRequested();
35
+ while (reader.pos < end) {
36
+ const tag = reader.uint32();
37
+ switch (tag >>> 3) {
38
+ case 1: {
39
+ if (tag !== 10) {
40
+ break;
41
+ }
42
+ message.fileId = reader.string();
43
+ continue;
44
+ }
45
+ case 2: {
46
+ if (tag !== 18) {
47
+ break;
48
+ }
49
+ message.caseId = reader.string();
50
+ continue;
51
+ }
52
+ case 3: {
53
+ if (tag !== 26) {
54
+ break;
55
+ }
56
+ message.fileName = reader.string();
57
+ continue;
58
+ }
59
+ case 4: {
60
+ if (tag !== 34) {
61
+ break;
62
+ }
63
+ message.uploadedAt = reader.string();
64
+ continue;
65
+ }
66
+ case 5: {
67
+ if (tag !== 42) {
68
+ break;
69
+ }
70
+ message.uploadedBy = reader.string();
71
+ continue;
72
+ }
73
+ }
74
+ if ((tag & 7) === 4 || tag === 0) {
75
+ break;
76
+ }
77
+ reader.skip(tag & 7);
78
+ }
79
+ return message;
80
+ },
81
+ fromJSON(object) {
82
+ return {
83
+ fileId: isSet(object.fileId)
84
+ ? globalThis.String(object.fileId)
85
+ : isSet(object.file_id)
86
+ ? globalThis.String(object.file_id)
87
+ : "",
88
+ caseId: isSet(object.caseId)
89
+ ? globalThis.String(object.caseId)
90
+ : isSet(object.case_id)
91
+ ? globalThis.String(object.case_id)
92
+ : "",
93
+ fileName: isSet(object.fileName)
94
+ ? globalThis.String(object.fileName)
95
+ : isSet(object.file_name)
96
+ ? globalThis.String(object.file_name)
97
+ : "",
98
+ uploadedAt: isSet(object.uploadedAt)
99
+ ? globalThis.String(object.uploadedAt)
100
+ : isSet(object.uploaded_at)
101
+ ? globalThis.String(object.uploaded_at)
102
+ : "",
103
+ uploadedBy: isSet(object.uploadedBy)
104
+ ? globalThis.String(object.uploadedBy)
105
+ : isSet(object.uploaded_by)
106
+ ? globalThis.String(object.uploaded_by)
107
+ : "",
108
+ };
109
+ },
110
+ toJSON(message) {
111
+ const obj = {};
112
+ if (message.fileId !== "") {
113
+ obj.fileId = message.fileId;
114
+ }
115
+ if (message.caseId !== "") {
116
+ obj.caseId = message.caseId;
117
+ }
118
+ if (message.fileName !== "") {
119
+ obj.fileName = message.fileName;
120
+ }
121
+ if (message.uploadedAt !== "") {
122
+ obj.uploadedAt = message.uploadedAt;
123
+ }
124
+ if (message.uploadedBy !== "") {
125
+ obj.uploadedBy = message.uploadedBy;
126
+ }
127
+ return obj;
128
+ },
129
+ create(base) {
130
+ return AnalysisRequested.fromPartial(base ?? {});
131
+ },
132
+ fromPartial(object) {
133
+ const message = createBaseAnalysisRequested();
134
+ message.fileId = object.fileId ?? "";
135
+ message.caseId = object.caseId ?? "";
136
+ message.fileName = object.fileName ?? "";
137
+ message.uploadedAt = object.uploadedAt ?? "";
138
+ message.uploadedBy = object.uploadedBy ?? "";
139
+ return message;
140
+ },
141
+ };
142
+ function isSet(value) {
143
+ return value !== null && value !== undefined;
144
+ }
@@ -0,0 +1,144 @@
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/preprocess_completed.proto
6
+ /* eslint-disable */
7
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
+ export const protobufPackage = "file.v1";
9
+ function createBasePreprocessCompleted() {
10
+ return { fileId: "", caseId: "", fileName: "", uploadedAt: "", uploadedBy: "" };
11
+ }
12
+ export const PreprocessCompleted = {
13
+ encode(message, writer = new BinaryWriter()) {
14
+ if (message.fileId !== "") {
15
+ writer.uint32(10).string(message.fileId);
16
+ }
17
+ if (message.caseId !== "") {
18
+ writer.uint32(18).string(message.caseId);
19
+ }
20
+ if (message.fileName !== "") {
21
+ writer.uint32(26).string(message.fileName);
22
+ }
23
+ if (message.uploadedAt !== "") {
24
+ writer.uint32(34).string(message.uploadedAt);
25
+ }
26
+ if (message.uploadedBy !== "") {
27
+ writer.uint32(42).string(message.uploadedBy);
28
+ }
29
+ return writer;
30
+ },
31
+ decode(input, length) {
32
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
33
+ const end = length === undefined ? reader.len : reader.pos + length;
34
+ const message = createBasePreprocessCompleted();
35
+ while (reader.pos < end) {
36
+ const tag = reader.uint32();
37
+ switch (tag >>> 3) {
38
+ case 1: {
39
+ if (tag !== 10) {
40
+ break;
41
+ }
42
+ message.fileId = reader.string();
43
+ continue;
44
+ }
45
+ case 2: {
46
+ if (tag !== 18) {
47
+ break;
48
+ }
49
+ message.caseId = reader.string();
50
+ continue;
51
+ }
52
+ case 3: {
53
+ if (tag !== 26) {
54
+ break;
55
+ }
56
+ message.fileName = reader.string();
57
+ continue;
58
+ }
59
+ case 4: {
60
+ if (tag !== 34) {
61
+ break;
62
+ }
63
+ message.uploadedAt = reader.string();
64
+ continue;
65
+ }
66
+ case 5: {
67
+ if (tag !== 42) {
68
+ break;
69
+ }
70
+ message.uploadedBy = reader.string();
71
+ continue;
72
+ }
73
+ }
74
+ if ((tag & 7) === 4 || tag === 0) {
75
+ break;
76
+ }
77
+ reader.skip(tag & 7);
78
+ }
79
+ return message;
80
+ },
81
+ fromJSON(object) {
82
+ return {
83
+ fileId: isSet(object.fileId)
84
+ ? globalThis.String(object.fileId)
85
+ : isSet(object.file_id)
86
+ ? globalThis.String(object.file_id)
87
+ : "",
88
+ caseId: isSet(object.caseId)
89
+ ? globalThis.String(object.caseId)
90
+ : isSet(object.case_id)
91
+ ? globalThis.String(object.case_id)
92
+ : "",
93
+ fileName: isSet(object.fileName)
94
+ ? globalThis.String(object.fileName)
95
+ : isSet(object.file_name)
96
+ ? globalThis.String(object.file_name)
97
+ : "",
98
+ uploadedAt: isSet(object.uploadedAt)
99
+ ? globalThis.String(object.uploadedAt)
100
+ : isSet(object.uploaded_at)
101
+ ? globalThis.String(object.uploaded_at)
102
+ : "",
103
+ uploadedBy: isSet(object.uploadedBy)
104
+ ? globalThis.String(object.uploadedBy)
105
+ : isSet(object.uploaded_by)
106
+ ? globalThis.String(object.uploaded_by)
107
+ : "",
108
+ };
109
+ },
110
+ toJSON(message) {
111
+ const obj = {};
112
+ if (message.fileId !== "") {
113
+ obj.fileId = message.fileId;
114
+ }
115
+ if (message.caseId !== "") {
116
+ obj.caseId = message.caseId;
117
+ }
118
+ if (message.fileName !== "") {
119
+ obj.fileName = message.fileName;
120
+ }
121
+ if (message.uploadedAt !== "") {
122
+ obj.uploadedAt = message.uploadedAt;
123
+ }
124
+ if (message.uploadedBy !== "") {
125
+ obj.uploadedBy = message.uploadedBy;
126
+ }
127
+ return obj;
128
+ },
129
+ create(base) {
130
+ return PreprocessCompleted.fromPartial(base ?? {});
131
+ },
132
+ fromPartial(object) {
133
+ const message = createBasePreprocessCompleted();
134
+ message.fileId = object.fileId ?? "";
135
+ message.caseId = object.caseId ?? "";
136
+ message.fileName = object.fileName ?? "";
137
+ message.uploadedAt = object.uploadedAt ?? "";
138
+ message.uploadedBy = object.uploadedBy ?? "";
139
+ return message;
140
+ },
141
+ };
142
+ function isSet(value) {
143
+ return value !== null && value !== undefined;
144
+ }