@claimscore/event-schemas 0.1.0-beta.2 → 1.0.0

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 (45) 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/index.js +32 -0
  7. package/dist/{invitation/v1/invitation_approved.js → cjs/invitation/v1/approved.js} +2 -2
  8. package/dist/{organization/v1/invitation_created.js → cjs/invitation/v1/created.js} +3 -3
  9. package/dist/{invitation/v1/invitation_verification_resent.js → cjs/invitation/v1/verification_resent.js} +2 -2
  10. package/dist/cjs/package.json +3 -0
  11. package/dist/{case/v1/permission_created.js → cjs/permission/v1/created.js} +3 -3
  12. package/dist/{case/v1/permission_deleted.js → cjs/permission/v1/deleted.js} +3 -3
  13. package/dist/{case/v1/permission_updated.js → cjs/permission/v1/updated.js} +3 -3
  14. package/dist/{report/v1/report_generated.js → cjs/report/v1/generated.js} +2 -2
  15. package/dist/cjs/topics.js +17 -0
  16. package/dist/esm/account/v1/activated.js +186 -0
  17. package/dist/esm/case/v1/created.js +232 -0
  18. package/dist/esm/file/v1/analysis_requested.js +144 -0
  19. package/dist/esm/file/v1/preprocess_completed.js +144 -0
  20. package/dist/esm/index.d.ts +12 -0
  21. package/dist/esm/index.js +13 -0
  22. package/dist/esm/invitation/v1/approved.js +140 -0
  23. package/dist/{organization/v1/invitation_created.d.ts → esm/invitation/v1/created.d.ts} +1 -1
  24. package/dist/esm/invitation/v1/created.js +302 -0
  25. package/dist/esm/invitation/v1/verification_resent.js +186 -0
  26. package/dist/esm/package.json +3 -0
  27. package/dist/{case/v1/permission_created.d.ts → esm/permission/v1/created.d.ts} +1 -1
  28. package/dist/esm/permission/v1/created.js +206 -0
  29. package/dist/{case/v1/permission_deleted.d.ts → esm/permission/v1/deleted.d.ts} +1 -1
  30. package/dist/esm/permission/v1/deleted.js +206 -0
  31. package/dist/{case/v1/permission_updated.d.ts → esm/permission/v1/updated.d.ts} +1 -1
  32. package/dist/esm/permission/v1/updated.js +206 -0
  33. package/dist/esm/report/v1/generated.js +378 -0
  34. package/dist/esm/topics.d.ts +13 -0
  35. package/dist/esm/topics.js +14 -0
  36. package/package.json +20 -5
  37. package/dist/index.d.ts +0 -11
  38. package/dist/index.js +0 -29
  39. /package/dist/{account/v1/account_activated.d.ts → esm/account/v1/activated.d.ts} +0 -0
  40. /package/dist/{case/v1/case_created.d.ts → esm/case/v1/created.d.ts} +0 -0
  41. /package/dist/{file → esm/file}/v1/analysis_requested.d.ts +0 -0
  42. /package/dist/{file → esm/file}/v1/preprocess_completed.d.ts +0 -0
  43. /package/dist/{invitation/v1/invitation_approved.d.ts → esm/invitation/v1/approved.d.ts} +0 -0
  44. /package/dist/{invitation/v1/invitation_verification_resent.d.ts → esm/invitation/v1/verification_resent.d.ts} +0 -0
  45. /package/dist/{report/v1/report_generated.d.ts → esm/report/v1/generated.d.ts} +0 -0
@@ -0,0 +1,302 @@
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: invitation/v1/created.proto
6
+ /* eslint-disable */
7
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
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
+ function createBaseInvitationCreated() {
86
+ return {
87
+ invitationId: "",
88
+ organizationId: "",
89
+ organizationName: "",
90
+ inviterName: "",
91
+ email: "",
92
+ firstName: "",
93
+ lastName: "",
94
+ roleName: "",
95
+ casePermissions: [],
96
+ };
97
+ }
98
+ export const InvitationCreated = {
99
+ encode(message, writer = new BinaryWriter()) {
100
+ if (message.invitationId !== "") {
101
+ writer.uint32(10).string(message.invitationId);
102
+ }
103
+ if (message.organizationId !== "") {
104
+ writer.uint32(18).string(message.organizationId);
105
+ }
106
+ if (message.organizationName !== "") {
107
+ writer.uint32(26).string(message.organizationName);
108
+ }
109
+ if (message.inviterName !== "") {
110
+ writer.uint32(34).string(message.inviterName);
111
+ }
112
+ if (message.email !== "") {
113
+ writer.uint32(42).string(message.email);
114
+ }
115
+ if (message.firstName !== "") {
116
+ writer.uint32(50).string(message.firstName);
117
+ }
118
+ if (message.lastName !== "") {
119
+ writer.uint32(58).string(message.lastName);
120
+ }
121
+ if (message.roleName !== "") {
122
+ writer.uint32(66).string(message.roleName);
123
+ }
124
+ for (const v of message.casePermissions) {
125
+ CasePermission.encode(v, writer.uint32(74).fork()).join();
126
+ }
127
+ return writer;
128
+ },
129
+ decode(input, length) {
130
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
131
+ const end = length === undefined ? reader.len : reader.pos + length;
132
+ const message = createBaseInvitationCreated();
133
+ while (reader.pos < end) {
134
+ const tag = reader.uint32();
135
+ switch (tag >>> 3) {
136
+ case 1: {
137
+ if (tag !== 10) {
138
+ break;
139
+ }
140
+ message.invitationId = reader.string();
141
+ continue;
142
+ }
143
+ case 2: {
144
+ if (tag !== 18) {
145
+ break;
146
+ }
147
+ message.organizationId = reader.string();
148
+ continue;
149
+ }
150
+ case 3: {
151
+ if (tag !== 26) {
152
+ break;
153
+ }
154
+ message.organizationName = reader.string();
155
+ continue;
156
+ }
157
+ case 4: {
158
+ if (tag !== 34) {
159
+ break;
160
+ }
161
+ message.inviterName = reader.string();
162
+ continue;
163
+ }
164
+ case 5: {
165
+ if (tag !== 42) {
166
+ break;
167
+ }
168
+ message.email = reader.string();
169
+ continue;
170
+ }
171
+ case 6: {
172
+ if (tag !== 50) {
173
+ break;
174
+ }
175
+ message.firstName = reader.string();
176
+ continue;
177
+ }
178
+ case 7: {
179
+ if (tag !== 58) {
180
+ break;
181
+ }
182
+ message.lastName = reader.string();
183
+ continue;
184
+ }
185
+ case 8: {
186
+ if (tag !== 66) {
187
+ break;
188
+ }
189
+ message.roleName = reader.string();
190
+ continue;
191
+ }
192
+ case 9: {
193
+ if (tag !== 74) {
194
+ break;
195
+ }
196
+ message.casePermissions.push(CasePermission.decode(reader, reader.uint32()));
197
+ continue;
198
+ }
199
+ }
200
+ if ((tag & 7) === 4 || tag === 0) {
201
+ break;
202
+ }
203
+ reader.skip(tag & 7);
204
+ }
205
+ return message;
206
+ },
207
+ fromJSON(object) {
208
+ return {
209
+ invitationId: isSet(object.invitationId)
210
+ ? globalThis.String(object.invitationId)
211
+ : isSet(object.invitation_id)
212
+ ? globalThis.String(object.invitation_id)
213
+ : "",
214
+ organizationId: isSet(object.organizationId)
215
+ ? globalThis.String(object.organizationId)
216
+ : isSet(object.organization_id)
217
+ ? globalThis.String(object.organization_id)
218
+ : "",
219
+ organizationName: isSet(object.organizationName)
220
+ ? globalThis.String(object.organizationName)
221
+ : isSet(object.organization_name)
222
+ ? globalThis.String(object.organization_name)
223
+ : "",
224
+ inviterName: isSet(object.inviterName)
225
+ ? globalThis.String(object.inviterName)
226
+ : isSet(object.inviter_name)
227
+ ? globalThis.String(object.inviter_name)
228
+ : "",
229
+ email: isSet(object.email) ? globalThis.String(object.email) : "",
230
+ firstName: isSet(object.firstName)
231
+ ? globalThis.String(object.firstName)
232
+ : isSet(object.first_name)
233
+ ? globalThis.String(object.first_name)
234
+ : "",
235
+ lastName: isSet(object.lastName)
236
+ ? globalThis.String(object.lastName)
237
+ : isSet(object.last_name)
238
+ ? globalThis.String(object.last_name)
239
+ : "",
240
+ roleName: isSet(object.roleName)
241
+ ? globalThis.String(object.roleName)
242
+ : isSet(object.role_name)
243
+ ? globalThis.String(object.role_name)
244
+ : "",
245
+ casePermissions: globalThis.Array.isArray(object?.casePermissions)
246
+ ? object.casePermissions.map((e) => CasePermission.fromJSON(e))
247
+ : globalThis.Array.isArray(object?.case_permissions)
248
+ ? object.case_permissions.map((e) => CasePermission.fromJSON(e))
249
+ : [],
250
+ };
251
+ },
252
+ toJSON(message) {
253
+ const obj = {};
254
+ if (message.invitationId !== "") {
255
+ obj.invitationId = message.invitationId;
256
+ }
257
+ if (message.organizationId !== "") {
258
+ obj.organizationId = message.organizationId;
259
+ }
260
+ if (message.organizationName !== "") {
261
+ obj.organizationName = message.organizationName;
262
+ }
263
+ if (message.inviterName !== "") {
264
+ obj.inviterName = message.inviterName;
265
+ }
266
+ if (message.email !== "") {
267
+ obj.email = message.email;
268
+ }
269
+ if (message.firstName !== "") {
270
+ obj.firstName = message.firstName;
271
+ }
272
+ if (message.lastName !== "") {
273
+ obj.lastName = message.lastName;
274
+ }
275
+ if (message.roleName !== "") {
276
+ obj.roleName = message.roleName;
277
+ }
278
+ if (message.casePermissions?.length) {
279
+ obj.casePermissions = message.casePermissions.map((e) => CasePermission.toJSON(e));
280
+ }
281
+ return obj;
282
+ },
283
+ create(base) {
284
+ return InvitationCreated.fromPartial(base ?? {});
285
+ },
286
+ fromPartial(object) {
287
+ const message = createBaseInvitationCreated();
288
+ message.invitationId = object.invitationId ?? "";
289
+ message.organizationId = object.organizationId ?? "";
290
+ message.organizationName = object.organizationName ?? "";
291
+ message.inviterName = object.inviterName ?? "";
292
+ message.email = object.email ?? "";
293
+ message.firstName = object.firstName ?? "";
294
+ message.lastName = object.lastName ?? "";
295
+ message.roleName = object.roleName ?? "";
296
+ message.casePermissions = object.casePermissions?.map((e) => CasePermission.fromPartial(e)) || [];
297
+ return message;
298
+ },
299
+ };
300
+ function isSet(value) {
301
+ return value !== null && value !== undefined;
302
+ }
@@ -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: invitation/v1/verification_resent.proto
6
+ /* eslint-disable */
7
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
+ export const protobufPackage = "invitation.v1";
9
+ function createBaseInvitationVerificationResent() {
10
+ return {
11
+ invitationId: "",
12
+ email: "",
13
+ organizationId: "",
14
+ organizationName: "",
15
+ inviterName: "",
16
+ emailRedirect: "",
17
+ randomPassword: "",
18
+ };
19
+ }
20
+ export const InvitationVerificationResent = {
21
+ encode(message, writer = new BinaryWriter()) {
22
+ if (message.invitationId !== "") {
23
+ writer.uint32(10).string(message.invitationId);
24
+ }
25
+ if (message.email !== "") {
26
+ writer.uint32(18).string(message.email);
27
+ }
28
+ if (message.organizationId !== "") {
29
+ writer.uint32(26).string(message.organizationId);
30
+ }
31
+ if (message.organizationName !== "") {
32
+ writer.uint32(34).string(message.organizationName);
33
+ }
34
+ if (message.inviterName !== "") {
35
+ writer.uint32(42).string(message.inviterName);
36
+ }
37
+ if (message.emailRedirect !== "") {
38
+ writer.uint32(50).string(message.emailRedirect);
39
+ }
40
+ if (message.randomPassword !== "") {
41
+ writer.uint32(58).string(message.randomPassword);
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 = createBaseInvitationVerificationResent();
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.invitationId = 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.organizationId = reader.string();
71
+ continue;
72
+ }
73
+ case 4: {
74
+ if (tag !== 34) {
75
+ break;
76
+ }
77
+ message.organizationName = reader.string();
78
+ continue;
79
+ }
80
+ case 5: {
81
+ if (tag !== 42) {
82
+ break;
83
+ }
84
+ message.inviterName = reader.string();
85
+ continue;
86
+ }
87
+ case 6: {
88
+ if (tag !== 50) {
89
+ break;
90
+ }
91
+ message.emailRedirect = reader.string();
92
+ continue;
93
+ }
94
+ case 7: {
95
+ if (tag !== 58) {
96
+ break;
97
+ }
98
+ message.randomPassword = 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
+ invitationId: isSet(object.invitationId)
112
+ ? globalThis.String(object.invitationId)
113
+ : isSet(object.invitation_id)
114
+ ? globalThis.String(object.invitation_id)
115
+ : "",
116
+ email: isSet(object.email) ? globalThis.String(object.email) : "",
117
+ organizationId: isSet(object.organizationId)
118
+ ? globalThis.String(object.organizationId)
119
+ : isSet(object.organization_id)
120
+ ? globalThis.String(object.organization_id)
121
+ : "",
122
+ organizationName: isSet(object.organizationName)
123
+ ? globalThis.String(object.organizationName)
124
+ : isSet(object.organization_name)
125
+ ? globalThis.String(object.organization_name)
126
+ : "",
127
+ inviterName: isSet(object.inviterName)
128
+ ? globalThis.String(object.inviterName)
129
+ : isSet(object.inviter_name)
130
+ ? globalThis.String(object.inviter_name)
131
+ : "",
132
+ emailRedirect: isSet(object.emailRedirect)
133
+ ? globalThis.String(object.emailRedirect)
134
+ : isSet(object.email_redirect)
135
+ ? globalThis.String(object.email_redirect)
136
+ : "",
137
+ randomPassword: isSet(object.randomPassword)
138
+ ? globalThis.String(object.randomPassword)
139
+ : isSet(object.random_password)
140
+ ? globalThis.String(object.random_password)
141
+ : "",
142
+ };
143
+ },
144
+ toJSON(message) {
145
+ const obj = {};
146
+ if (message.invitationId !== "") {
147
+ obj.invitationId = message.invitationId;
148
+ }
149
+ if (message.email !== "") {
150
+ obj.email = message.email;
151
+ }
152
+ if (message.organizationId !== "") {
153
+ obj.organizationId = message.organizationId;
154
+ }
155
+ if (message.organizationName !== "") {
156
+ obj.organizationName = message.organizationName;
157
+ }
158
+ if (message.inviterName !== "") {
159
+ obj.inviterName = message.inviterName;
160
+ }
161
+ if (message.emailRedirect !== "") {
162
+ obj.emailRedirect = message.emailRedirect;
163
+ }
164
+ if (message.randomPassword !== "") {
165
+ obj.randomPassword = message.randomPassword;
166
+ }
167
+ return obj;
168
+ },
169
+ create(base) {
170
+ return InvitationVerificationResent.fromPartial(base ?? {});
171
+ },
172
+ fromPartial(object) {
173
+ const message = createBaseInvitationVerificationResent();
174
+ message.invitationId = object.invitationId ?? "";
175
+ message.email = object.email ?? "";
176
+ message.organizationId = object.organizationId ?? "";
177
+ message.organizationName = object.organizationName ?? "";
178
+ message.inviterName = object.inviterName ?? "";
179
+ message.emailRedirect = object.emailRedirect ?? "";
180
+ message.randomPassword = object.randomPassword ?? "";
181
+ return message;
182
+ },
183
+ };
184
+ function isSet(value) {
185
+ return value !== null && value !== undefined;
186
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -1,5 +1,5 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- export declare const protobufPackage = "case.v1";
2
+ export declare const protobufPackage = "permission.v1";
3
3
  export interface PermissionCreated {
4
4
  caseId: string;
5
5
  caseName: string;