@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,206 @@
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: permission/v1/created.proto
6
+ /* eslint-disable */
7
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
+ export const protobufPackage = "permission.v1";
9
+ function createBasePermissionCreated() {
10
+ return {
11
+ caseId: "",
12
+ caseName: "",
13
+ accountId: "",
14
+ email: "",
15
+ firstName: "",
16
+ roleName: "",
17
+ organizationId: "",
18
+ managerAccountId: "",
19
+ };
20
+ }
21
+ export const PermissionCreated = {
22
+ encode(message, writer = new BinaryWriter()) {
23
+ if (message.caseId !== "") {
24
+ writer.uint32(10).string(message.caseId);
25
+ }
26
+ if (message.caseName !== "") {
27
+ writer.uint32(18).string(message.caseName);
28
+ }
29
+ if (message.accountId !== "") {
30
+ writer.uint32(26).string(message.accountId);
31
+ }
32
+ if (message.email !== "") {
33
+ writer.uint32(34).string(message.email);
34
+ }
35
+ if (message.firstName !== "") {
36
+ writer.uint32(42).string(message.firstName);
37
+ }
38
+ if (message.roleName !== "") {
39
+ writer.uint32(50).string(message.roleName);
40
+ }
41
+ if (message.organizationId !== "") {
42
+ writer.uint32(58).string(message.organizationId);
43
+ }
44
+ if (message.managerAccountId !== "") {
45
+ writer.uint32(66).string(message.managerAccountId);
46
+ }
47
+ return writer;
48
+ },
49
+ decode(input, length) {
50
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
51
+ const end = length === undefined ? reader.len : reader.pos + length;
52
+ const message = createBasePermissionCreated();
53
+ while (reader.pos < end) {
54
+ const tag = reader.uint32();
55
+ switch (tag >>> 3) {
56
+ case 1: {
57
+ if (tag !== 10) {
58
+ break;
59
+ }
60
+ message.caseId = reader.string();
61
+ continue;
62
+ }
63
+ case 2: {
64
+ if (tag !== 18) {
65
+ break;
66
+ }
67
+ message.caseName = reader.string();
68
+ continue;
69
+ }
70
+ case 3: {
71
+ if (tag !== 26) {
72
+ break;
73
+ }
74
+ message.accountId = reader.string();
75
+ continue;
76
+ }
77
+ case 4: {
78
+ if (tag !== 34) {
79
+ break;
80
+ }
81
+ message.email = reader.string();
82
+ continue;
83
+ }
84
+ case 5: {
85
+ if (tag !== 42) {
86
+ break;
87
+ }
88
+ message.firstName = reader.string();
89
+ continue;
90
+ }
91
+ case 6: {
92
+ if (tag !== 50) {
93
+ break;
94
+ }
95
+ message.roleName = reader.string();
96
+ continue;
97
+ }
98
+ case 7: {
99
+ if (tag !== 58) {
100
+ break;
101
+ }
102
+ message.organizationId = reader.string();
103
+ continue;
104
+ }
105
+ case 8: {
106
+ if (tag !== 66) {
107
+ break;
108
+ }
109
+ message.managerAccountId = reader.string();
110
+ continue;
111
+ }
112
+ }
113
+ if ((tag & 7) === 4 || tag === 0) {
114
+ break;
115
+ }
116
+ reader.skip(tag & 7);
117
+ }
118
+ return message;
119
+ },
120
+ fromJSON(object) {
121
+ return {
122
+ caseId: isSet(object.caseId)
123
+ ? globalThis.String(object.caseId)
124
+ : isSet(object.case_id)
125
+ ? globalThis.String(object.case_id)
126
+ : "",
127
+ caseName: isSet(object.caseName)
128
+ ? globalThis.String(object.caseName)
129
+ : isSet(object.case_name)
130
+ ? globalThis.String(object.case_name)
131
+ : "",
132
+ accountId: isSet(object.accountId)
133
+ ? globalThis.String(object.accountId)
134
+ : isSet(object.account_id)
135
+ ? globalThis.String(object.account_id)
136
+ : "",
137
+ email: isSet(object.email) ? globalThis.String(object.email) : "",
138
+ firstName: isSet(object.firstName)
139
+ ? globalThis.String(object.firstName)
140
+ : isSet(object.first_name)
141
+ ? globalThis.String(object.first_name)
142
+ : "",
143
+ roleName: isSet(object.roleName)
144
+ ? globalThis.String(object.roleName)
145
+ : isSet(object.role_name)
146
+ ? globalThis.String(object.role_name)
147
+ : "",
148
+ organizationId: isSet(object.organizationId)
149
+ ? globalThis.String(object.organizationId)
150
+ : isSet(object.organization_id)
151
+ ? globalThis.String(object.organization_id)
152
+ : "",
153
+ managerAccountId: isSet(object.managerAccountId)
154
+ ? globalThis.String(object.managerAccountId)
155
+ : isSet(object.manager_account_id)
156
+ ? globalThis.String(object.manager_account_id)
157
+ : "",
158
+ };
159
+ },
160
+ toJSON(message) {
161
+ const obj = {};
162
+ if (message.caseId !== "") {
163
+ obj.caseId = message.caseId;
164
+ }
165
+ if (message.caseName !== "") {
166
+ obj.caseName = message.caseName;
167
+ }
168
+ if (message.accountId !== "") {
169
+ obj.accountId = message.accountId;
170
+ }
171
+ if (message.email !== "") {
172
+ obj.email = message.email;
173
+ }
174
+ if (message.firstName !== "") {
175
+ obj.firstName = message.firstName;
176
+ }
177
+ if (message.roleName !== "") {
178
+ obj.roleName = message.roleName;
179
+ }
180
+ if (message.organizationId !== "") {
181
+ obj.organizationId = message.organizationId;
182
+ }
183
+ if (message.managerAccountId !== "") {
184
+ obj.managerAccountId = message.managerAccountId;
185
+ }
186
+ return obj;
187
+ },
188
+ create(base) {
189
+ return PermissionCreated.fromPartial(base ?? {});
190
+ },
191
+ fromPartial(object) {
192
+ const message = createBasePermissionCreated();
193
+ message.caseId = object.caseId ?? "";
194
+ message.caseName = object.caseName ?? "";
195
+ message.accountId = object.accountId ?? "";
196
+ message.email = object.email ?? "";
197
+ message.firstName = object.firstName ?? "";
198
+ message.roleName = object.roleName ?? "";
199
+ message.organizationId = object.organizationId ?? "";
200
+ message.managerAccountId = object.managerAccountId ?? "";
201
+ return message;
202
+ },
203
+ };
204
+ function isSet(value) {
205
+ return value !== null && value !== undefined;
206
+ }
@@ -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 PermissionDeleted {
4
4
  caseId: string;
5
5
  caseName: string;
@@ -0,0 +1,206 @@
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: permission/v1/deleted.proto
6
+ /* eslint-disable */
7
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
+ export const protobufPackage = "permission.v1";
9
+ function createBasePermissionDeleted() {
10
+ return {
11
+ caseId: "",
12
+ caseName: "",
13
+ accountId: "",
14
+ email: "",
15
+ firstName: "",
16
+ roleName: "",
17
+ organizationId: "",
18
+ managerAccountId: "",
19
+ };
20
+ }
21
+ export const PermissionDeleted = {
22
+ encode(message, writer = new BinaryWriter()) {
23
+ if (message.caseId !== "") {
24
+ writer.uint32(10).string(message.caseId);
25
+ }
26
+ if (message.caseName !== "") {
27
+ writer.uint32(18).string(message.caseName);
28
+ }
29
+ if (message.accountId !== "") {
30
+ writer.uint32(26).string(message.accountId);
31
+ }
32
+ if (message.email !== "") {
33
+ writer.uint32(34).string(message.email);
34
+ }
35
+ if (message.firstName !== "") {
36
+ writer.uint32(42).string(message.firstName);
37
+ }
38
+ if (message.roleName !== "") {
39
+ writer.uint32(50).string(message.roleName);
40
+ }
41
+ if (message.organizationId !== "") {
42
+ writer.uint32(58).string(message.organizationId);
43
+ }
44
+ if (message.managerAccountId !== "") {
45
+ writer.uint32(66).string(message.managerAccountId);
46
+ }
47
+ return writer;
48
+ },
49
+ decode(input, length) {
50
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
51
+ const end = length === undefined ? reader.len : reader.pos + length;
52
+ const message = createBasePermissionDeleted();
53
+ while (reader.pos < end) {
54
+ const tag = reader.uint32();
55
+ switch (tag >>> 3) {
56
+ case 1: {
57
+ if (tag !== 10) {
58
+ break;
59
+ }
60
+ message.caseId = reader.string();
61
+ continue;
62
+ }
63
+ case 2: {
64
+ if (tag !== 18) {
65
+ break;
66
+ }
67
+ message.caseName = reader.string();
68
+ continue;
69
+ }
70
+ case 3: {
71
+ if (tag !== 26) {
72
+ break;
73
+ }
74
+ message.accountId = reader.string();
75
+ continue;
76
+ }
77
+ case 4: {
78
+ if (tag !== 34) {
79
+ break;
80
+ }
81
+ message.email = reader.string();
82
+ continue;
83
+ }
84
+ case 5: {
85
+ if (tag !== 42) {
86
+ break;
87
+ }
88
+ message.firstName = reader.string();
89
+ continue;
90
+ }
91
+ case 6: {
92
+ if (tag !== 50) {
93
+ break;
94
+ }
95
+ message.roleName = reader.string();
96
+ continue;
97
+ }
98
+ case 7: {
99
+ if (tag !== 58) {
100
+ break;
101
+ }
102
+ message.organizationId = reader.string();
103
+ continue;
104
+ }
105
+ case 8: {
106
+ if (tag !== 66) {
107
+ break;
108
+ }
109
+ message.managerAccountId = reader.string();
110
+ continue;
111
+ }
112
+ }
113
+ if ((tag & 7) === 4 || tag === 0) {
114
+ break;
115
+ }
116
+ reader.skip(tag & 7);
117
+ }
118
+ return message;
119
+ },
120
+ fromJSON(object) {
121
+ return {
122
+ caseId: isSet(object.caseId)
123
+ ? globalThis.String(object.caseId)
124
+ : isSet(object.case_id)
125
+ ? globalThis.String(object.case_id)
126
+ : "",
127
+ caseName: isSet(object.caseName)
128
+ ? globalThis.String(object.caseName)
129
+ : isSet(object.case_name)
130
+ ? globalThis.String(object.case_name)
131
+ : "",
132
+ accountId: isSet(object.accountId)
133
+ ? globalThis.String(object.accountId)
134
+ : isSet(object.account_id)
135
+ ? globalThis.String(object.account_id)
136
+ : "",
137
+ email: isSet(object.email) ? globalThis.String(object.email) : "",
138
+ firstName: isSet(object.firstName)
139
+ ? globalThis.String(object.firstName)
140
+ : isSet(object.first_name)
141
+ ? globalThis.String(object.first_name)
142
+ : "",
143
+ roleName: isSet(object.roleName)
144
+ ? globalThis.String(object.roleName)
145
+ : isSet(object.role_name)
146
+ ? globalThis.String(object.role_name)
147
+ : "",
148
+ organizationId: isSet(object.organizationId)
149
+ ? globalThis.String(object.organizationId)
150
+ : isSet(object.organization_id)
151
+ ? globalThis.String(object.organization_id)
152
+ : "",
153
+ managerAccountId: isSet(object.managerAccountId)
154
+ ? globalThis.String(object.managerAccountId)
155
+ : isSet(object.manager_account_id)
156
+ ? globalThis.String(object.manager_account_id)
157
+ : "",
158
+ };
159
+ },
160
+ toJSON(message) {
161
+ const obj = {};
162
+ if (message.caseId !== "") {
163
+ obj.caseId = message.caseId;
164
+ }
165
+ if (message.caseName !== "") {
166
+ obj.caseName = message.caseName;
167
+ }
168
+ if (message.accountId !== "") {
169
+ obj.accountId = message.accountId;
170
+ }
171
+ if (message.email !== "") {
172
+ obj.email = message.email;
173
+ }
174
+ if (message.firstName !== "") {
175
+ obj.firstName = message.firstName;
176
+ }
177
+ if (message.roleName !== "") {
178
+ obj.roleName = message.roleName;
179
+ }
180
+ if (message.organizationId !== "") {
181
+ obj.organizationId = message.organizationId;
182
+ }
183
+ if (message.managerAccountId !== "") {
184
+ obj.managerAccountId = message.managerAccountId;
185
+ }
186
+ return obj;
187
+ },
188
+ create(base) {
189
+ return PermissionDeleted.fromPartial(base ?? {});
190
+ },
191
+ fromPartial(object) {
192
+ const message = createBasePermissionDeleted();
193
+ message.caseId = object.caseId ?? "";
194
+ message.caseName = object.caseName ?? "";
195
+ message.accountId = object.accountId ?? "";
196
+ message.email = object.email ?? "";
197
+ message.firstName = object.firstName ?? "";
198
+ message.roleName = object.roleName ?? "";
199
+ message.organizationId = object.organizationId ?? "";
200
+ message.managerAccountId = object.managerAccountId ?? "";
201
+ return message;
202
+ },
203
+ };
204
+ function isSet(value) {
205
+ return value !== null && value !== undefined;
206
+ }
@@ -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 PermissionUpdated {
4
4
  caseId: string;
5
5
  caseName: string;
@@ -0,0 +1,206 @@
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: permission/v1/updated.proto
6
+ /* eslint-disable */
7
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
+ export const protobufPackage = "permission.v1";
9
+ function createBasePermissionUpdated() {
10
+ return {
11
+ caseId: "",
12
+ caseName: "",
13
+ accountId: "",
14
+ email: "",
15
+ firstName: "",
16
+ roleName: "",
17
+ organizationId: "",
18
+ managerAccountId: "",
19
+ };
20
+ }
21
+ export const PermissionUpdated = {
22
+ encode(message, writer = new BinaryWriter()) {
23
+ if (message.caseId !== "") {
24
+ writer.uint32(10).string(message.caseId);
25
+ }
26
+ if (message.caseName !== "") {
27
+ writer.uint32(18).string(message.caseName);
28
+ }
29
+ if (message.accountId !== "") {
30
+ writer.uint32(26).string(message.accountId);
31
+ }
32
+ if (message.email !== "") {
33
+ writer.uint32(34).string(message.email);
34
+ }
35
+ if (message.firstName !== "") {
36
+ writer.uint32(42).string(message.firstName);
37
+ }
38
+ if (message.roleName !== "") {
39
+ writer.uint32(50).string(message.roleName);
40
+ }
41
+ if (message.organizationId !== "") {
42
+ writer.uint32(58).string(message.organizationId);
43
+ }
44
+ if (message.managerAccountId !== "") {
45
+ writer.uint32(66).string(message.managerAccountId);
46
+ }
47
+ return writer;
48
+ },
49
+ decode(input, length) {
50
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
51
+ const end = length === undefined ? reader.len : reader.pos + length;
52
+ const message = createBasePermissionUpdated();
53
+ while (reader.pos < end) {
54
+ const tag = reader.uint32();
55
+ switch (tag >>> 3) {
56
+ case 1: {
57
+ if (tag !== 10) {
58
+ break;
59
+ }
60
+ message.caseId = reader.string();
61
+ continue;
62
+ }
63
+ case 2: {
64
+ if (tag !== 18) {
65
+ break;
66
+ }
67
+ message.caseName = reader.string();
68
+ continue;
69
+ }
70
+ case 3: {
71
+ if (tag !== 26) {
72
+ break;
73
+ }
74
+ message.accountId = reader.string();
75
+ continue;
76
+ }
77
+ case 4: {
78
+ if (tag !== 34) {
79
+ break;
80
+ }
81
+ message.email = reader.string();
82
+ continue;
83
+ }
84
+ case 5: {
85
+ if (tag !== 42) {
86
+ break;
87
+ }
88
+ message.firstName = reader.string();
89
+ continue;
90
+ }
91
+ case 6: {
92
+ if (tag !== 50) {
93
+ break;
94
+ }
95
+ message.roleName = reader.string();
96
+ continue;
97
+ }
98
+ case 7: {
99
+ if (tag !== 58) {
100
+ break;
101
+ }
102
+ message.organizationId = reader.string();
103
+ continue;
104
+ }
105
+ case 8: {
106
+ if (tag !== 66) {
107
+ break;
108
+ }
109
+ message.managerAccountId = reader.string();
110
+ continue;
111
+ }
112
+ }
113
+ if ((tag & 7) === 4 || tag === 0) {
114
+ break;
115
+ }
116
+ reader.skip(tag & 7);
117
+ }
118
+ return message;
119
+ },
120
+ fromJSON(object) {
121
+ return {
122
+ caseId: isSet(object.caseId)
123
+ ? globalThis.String(object.caseId)
124
+ : isSet(object.case_id)
125
+ ? globalThis.String(object.case_id)
126
+ : "",
127
+ caseName: isSet(object.caseName)
128
+ ? globalThis.String(object.caseName)
129
+ : isSet(object.case_name)
130
+ ? globalThis.String(object.case_name)
131
+ : "",
132
+ accountId: isSet(object.accountId)
133
+ ? globalThis.String(object.accountId)
134
+ : isSet(object.account_id)
135
+ ? globalThis.String(object.account_id)
136
+ : "",
137
+ email: isSet(object.email) ? globalThis.String(object.email) : "",
138
+ firstName: isSet(object.firstName)
139
+ ? globalThis.String(object.firstName)
140
+ : isSet(object.first_name)
141
+ ? globalThis.String(object.first_name)
142
+ : "",
143
+ roleName: isSet(object.roleName)
144
+ ? globalThis.String(object.roleName)
145
+ : isSet(object.role_name)
146
+ ? globalThis.String(object.role_name)
147
+ : "",
148
+ organizationId: isSet(object.organizationId)
149
+ ? globalThis.String(object.organizationId)
150
+ : isSet(object.organization_id)
151
+ ? globalThis.String(object.organization_id)
152
+ : "",
153
+ managerAccountId: isSet(object.managerAccountId)
154
+ ? globalThis.String(object.managerAccountId)
155
+ : isSet(object.manager_account_id)
156
+ ? globalThis.String(object.manager_account_id)
157
+ : "",
158
+ };
159
+ },
160
+ toJSON(message) {
161
+ const obj = {};
162
+ if (message.caseId !== "") {
163
+ obj.caseId = message.caseId;
164
+ }
165
+ if (message.caseName !== "") {
166
+ obj.caseName = message.caseName;
167
+ }
168
+ if (message.accountId !== "") {
169
+ obj.accountId = message.accountId;
170
+ }
171
+ if (message.email !== "") {
172
+ obj.email = message.email;
173
+ }
174
+ if (message.firstName !== "") {
175
+ obj.firstName = message.firstName;
176
+ }
177
+ if (message.roleName !== "") {
178
+ obj.roleName = message.roleName;
179
+ }
180
+ if (message.organizationId !== "") {
181
+ obj.organizationId = message.organizationId;
182
+ }
183
+ if (message.managerAccountId !== "") {
184
+ obj.managerAccountId = message.managerAccountId;
185
+ }
186
+ return obj;
187
+ },
188
+ create(base) {
189
+ return PermissionUpdated.fromPartial(base ?? {});
190
+ },
191
+ fromPartial(object) {
192
+ const message = createBasePermissionUpdated();
193
+ message.caseId = object.caseId ?? "";
194
+ message.caseName = object.caseName ?? "";
195
+ message.accountId = object.accountId ?? "";
196
+ message.email = object.email ?? "";
197
+ message.firstName = object.firstName ?? "";
198
+ message.roleName = object.roleName ?? "";
199
+ message.organizationId = object.organizationId ?? "";
200
+ message.managerAccountId = object.managerAccountId ?? "";
201
+ return message;
202
+ },
203
+ };
204
+ function isSet(value) {
205
+ return value !== null && value !== undefined;
206
+ }
@@ -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]>;