@claimscore/event-schemas 0.1.0-beta.2
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.
- package/README.md +83 -0
- package/dist/account/v1/account_activated.d.ts +31 -0
- package/dist/account/v1/account_activated.js +189 -0
- package/dist/case/v1/case_created.d.ts +34 -0
- package/dist/case/v1/case_created.js +235 -0
- package/dist/case/v1/permission_created.d.ts +32 -0
- package/dist/case/v1/permission_created.js +209 -0
- package/dist/case/v1/permission_deleted.d.ts +32 -0
- package/dist/case/v1/permission_deleted.js +209 -0
- package/dist/case/v1/permission_updated.d.ts +32 -0
- package/dist/case/v1/permission_updated.js +209 -0
- package/dist/file/v1/analysis_requested.d.ts +29 -0
- package/dist/file/v1/analysis_requested.js +147 -0
- package/dist/file/v1/preprocess_completed.d.ts +29 -0
- package/dist/file/v1/preprocess_completed.js +147 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +29 -0
- package/dist/invitation/v1/invitation_approved.d.ts +29 -0
- package/dist/invitation/v1/invitation_approved.js +143 -0
- package/dist/invitation/v1/invitation_verification_resent.d.ts +31 -0
- package/dist/invitation/v1/invitation_verification_resent.js +189 -0
- package/dist/organization/v1/invitation_created.d.ts +38 -0
- package/dist/organization/v1/invitation_created.js +305 -0
- package/dist/report/v1/report_generated.d.ts +54 -0
- package/dist/report/v1/report_generated.js +385 -0
- package/package.json +37 -0
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.11.7
|
|
5
|
+
// protoc unknown
|
|
6
|
+
// source: invitation/v1/invitation_verification_resent.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.InvitationVerificationResent = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
exports.protobufPackage = "invitation.v1";
|
|
12
|
+
function createBaseInvitationVerificationResent() {
|
|
13
|
+
return {
|
|
14
|
+
invitationId: "",
|
|
15
|
+
email: "",
|
|
16
|
+
organizationId: "",
|
|
17
|
+
organizationName: "",
|
|
18
|
+
inviterName: "",
|
|
19
|
+
emailRedirect: "",
|
|
20
|
+
randomPassword: "",
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
exports.InvitationVerificationResent = {
|
|
24
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
25
|
+
if (message.invitationId !== "") {
|
|
26
|
+
writer.uint32(10).string(message.invitationId);
|
|
27
|
+
}
|
|
28
|
+
if (message.email !== "") {
|
|
29
|
+
writer.uint32(18).string(message.email);
|
|
30
|
+
}
|
|
31
|
+
if (message.organizationId !== "") {
|
|
32
|
+
writer.uint32(26).string(message.organizationId);
|
|
33
|
+
}
|
|
34
|
+
if (message.organizationName !== "") {
|
|
35
|
+
writer.uint32(34).string(message.organizationName);
|
|
36
|
+
}
|
|
37
|
+
if (message.inviterName !== "") {
|
|
38
|
+
writer.uint32(42).string(message.inviterName);
|
|
39
|
+
}
|
|
40
|
+
if (message.emailRedirect !== "") {
|
|
41
|
+
writer.uint32(50).string(message.emailRedirect);
|
|
42
|
+
}
|
|
43
|
+
if (message.randomPassword !== "") {
|
|
44
|
+
writer.uint32(58).string(message.randomPassword);
|
|
45
|
+
}
|
|
46
|
+
return writer;
|
|
47
|
+
},
|
|
48
|
+
decode(input, length) {
|
|
49
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
50
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
51
|
+
const message = createBaseInvitationVerificationResent();
|
|
52
|
+
while (reader.pos < end) {
|
|
53
|
+
const tag = reader.uint32();
|
|
54
|
+
switch (tag >>> 3) {
|
|
55
|
+
case 1: {
|
|
56
|
+
if (tag !== 10) {
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
message.invitationId = reader.string();
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
case 2: {
|
|
63
|
+
if (tag !== 18) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.email = reader.string();
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
case 3: {
|
|
70
|
+
if (tag !== 26) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.organizationId = reader.string();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
case 4: {
|
|
77
|
+
if (tag !== 34) {
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
message.organizationName = reader.string();
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
case 5: {
|
|
84
|
+
if (tag !== 42) {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
message.inviterName = reader.string();
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
case 6: {
|
|
91
|
+
if (tag !== 50) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
message.emailRedirect = reader.string();
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
case 7: {
|
|
98
|
+
if (tag !== 58) {
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
message.randomPassword = reader.string();
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
reader.skip(tag & 7);
|
|
109
|
+
}
|
|
110
|
+
return message;
|
|
111
|
+
},
|
|
112
|
+
fromJSON(object) {
|
|
113
|
+
return {
|
|
114
|
+
invitationId: isSet(object.invitationId)
|
|
115
|
+
? globalThis.String(object.invitationId)
|
|
116
|
+
: isSet(object.invitation_id)
|
|
117
|
+
? globalThis.String(object.invitation_id)
|
|
118
|
+
: "",
|
|
119
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
120
|
+
organizationId: isSet(object.organizationId)
|
|
121
|
+
? globalThis.String(object.organizationId)
|
|
122
|
+
: isSet(object.organization_id)
|
|
123
|
+
? globalThis.String(object.organization_id)
|
|
124
|
+
: "",
|
|
125
|
+
organizationName: isSet(object.organizationName)
|
|
126
|
+
? globalThis.String(object.organizationName)
|
|
127
|
+
: isSet(object.organization_name)
|
|
128
|
+
? globalThis.String(object.organization_name)
|
|
129
|
+
: "",
|
|
130
|
+
inviterName: isSet(object.inviterName)
|
|
131
|
+
? globalThis.String(object.inviterName)
|
|
132
|
+
: isSet(object.inviter_name)
|
|
133
|
+
? globalThis.String(object.inviter_name)
|
|
134
|
+
: "",
|
|
135
|
+
emailRedirect: isSet(object.emailRedirect)
|
|
136
|
+
? globalThis.String(object.emailRedirect)
|
|
137
|
+
: isSet(object.email_redirect)
|
|
138
|
+
? globalThis.String(object.email_redirect)
|
|
139
|
+
: "",
|
|
140
|
+
randomPassword: isSet(object.randomPassword)
|
|
141
|
+
? globalThis.String(object.randomPassword)
|
|
142
|
+
: isSet(object.random_password)
|
|
143
|
+
? globalThis.String(object.random_password)
|
|
144
|
+
: "",
|
|
145
|
+
};
|
|
146
|
+
},
|
|
147
|
+
toJSON(message) {
|
|
148
|
+
const obj = {};
|
|
149
|
+
if (message.invitationId !== "") {
|
|
150
|
+
obj.invitationId = message.invitationId;
|
|
151
|
+
}
|
|
152
|
+
if (message.email !== "") {
|
|
153
|
+
obj.email = message.email;
|
|
154
|
+
}
|
|
155
|
+
if (message.organizationId !== "") {
|
|
156
|
+
obj.organizationId = message.organizationId;
|
|
157
|
+
}
|
|
158
|
+
if (message.organizationName !== "") {
|
|
159
|
+
obj.organizationName = message.organizationName;
|
|
160
|
+
}
|
|
161
|
+
if (message.inviterName !== "") {
|
|
162
|
+
obj.inviterName = message.inviterName;
|
|
163
|
+
}
|
|
164
|
+
if (message.emailRedirect !== "") {
|
|
165
|
+
obj.emailRedirect = message.emailRedirect;
|
|
166
|
+
}
|
|
167
|
+
if (message.randomPassword !== "") {
|
|
168
|
+
obj.randomPassword = message.randomPassword;
|
|
169
|
+
}
|
|
170
|
+
return obj;
|
|
171
|
+
},
|
|
172
|
+
create(base) {
|
|
173
|
+
return exports.InvitationVerificationResent.fromPartial(base ?? {});
|
|
174
|
+
},
|
|
175
|
+
fromPartial(object) {
|
|
176
|
+
const message = createBaseInvitationVerificationResent();
|
|
177
|
+
message.invitationId = object.invitationId ?? "";
|
|
178
|
+
message.email = object.email ?? "";
|
|
179
|
+
message.organizationId = object.organizationId ?? "";
|
|
180
|
+
message.organizationName = object.organizationName ?? "";
|
|
181
|
+
message.inviterName = object.inviterName ?? "";
|
|
182
|
+
message.emailRedirect = object.emailRedirect ?? "";
|
|
183
|
+
message.randomPassword = object.randomPassword ?? "";
|
|
184
|
+
return message;
|
|
185
|
+
},
|
|
186
|
+
};
|
|
187
|
+
function isSet(value) {
|
|
188
|
+
return value !== null && value !== undefined;
|
|
189
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "organization.v1";
|
|
3
|
+
export interface CasePermission {
|
|
4
|
+
caseId: string;
|
|
5
|
+
roleName: string;
|
|
6
|
+
}
|
|
7
|
+
export interface InvitationCreated {
|
|
8
|
+
invitationId: string;
|
|
9
|
+
organizationId: string;
|
|
10
|
+
organizationName: string;
|
|
11
|
+
inviterName: string;
|
|
12
|
+
email: string;
|
|
13
|
+
firstName: string;
|
|
14
|
+
lastName: string;
|
|
15
|
+
roleName: string;
|
|
16
|
+
casePermissions: CasePermission[];
|
|
17
|
+
}
|
|
18
|
+
export declare const CasePermission: MessageFns<CasePermission>;
|
|
19
|
+
export declare const InvitationCreated: MessageFns<InvitationCreated>;
|
|
20
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
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
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
23
|
+
} : Partial<T>;
|
|
24
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
25
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
26
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
27
|
+
} & {
|
|
28
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
29
|
+
};
|
|
30
|
+
export interface MessageFns<T> {
|
|
31
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
32
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
33
|
+
fromJSON(object: any): T;
|
|
34
|
+
toJSON(message: T): unknown;
|
|
35
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
36
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.11.7
|
|
5
|
+
// protoc unknown
|
|
6
|
+
// source: organization/v1/invitation_created.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.InvitationCreated = exports.CasePermission = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
exports.protobufPackage = "organization.v1";
|
|
12
|
+
function createBaseCasePermission() {
|
|
13
|
+
return { caseId: "", roleName: "" };
|
|
14
|
+
}
|
|
15
|
+
exports.CasePermission = {
|
|
16
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
17
|
+
if (message.caseId !== "") {
|
|
18
|
+
writer.uint32(10).string(message.caseId);
|
|
19
|
+
}
|
|
20
|
+
if (message.roleName !== "") {
|
|
21
|
+
writer.uint32(18).string(message.roleName);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
27
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBaseCasePermission();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1: {
|
|
33
|
+
if (tag !== 10) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.caseId = reader.string();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
case 2: {
|
|
40
|
+
if (tag !== 18) {
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
message.roleName = reader.string();
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
reader.skip(tag & 7);
|
|
51
|
+
}
|
|
52
|
+
return message;
|
|
53
|
+
},
|
|
54
|
+
fromJSON(object) {
|
|
55
|
+
return {
|
|
56
|
+
caseId: isSet(object.caseId)
|
|
57
|
+
? globalThis.String(object.caseId)
|
|
58
|
+
: isSet(object.case_id)
|
|
59
|
+
? globalThis.String(object.case_id)
|
|
60
|
+
: "",
|
|
61
|
+
roleName: isSet(object.roleName)
|
|
62
|
+
? globalThis.String(object.roleName)
|
|
63
|
+
: isSet(object.role_name)
|
|
64
|
+
? globalThis.String(object.role_name)
|
|
65
|
+
: "",
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
toJSON(message) {
|
|
69
|
+
const obj = {};
|
|
70
|
+
if (message.caseId !== "") {
|
|
71
|
+
obj.caseId = message.caseId;
|
|
72
|
+
}
|
|
73
|
+
if (message.roleName !== "") {
|
|
74
|
+
obj.roleName = message.roleName;
|
|
75
|
+
}
|
|
76
|
+
return obj;
|
|
77
|
+
},
|
|
78
|
+
create(base) {
|
|
79
|
+
return exports.CasePermission.fromPartial(base ?? {});
|
|
80
|
+
},
|
|
81
|
+
fromPartial(object) {
|
|
82
|
+
const message = createBaseCasePermission();
|
|
83
|
+
message.caseId = object.caseId ?? "";
|
|
84
|
+
message.roleName = object.roleName ?? "";
|
|
85
|
+
return message;
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
function createBaseInvitationCreated() {
|
|
89
|
+
return {
|
|
90
|
+
invitationId: "",
|
|
91
|
+
organizationId: "",
|
|
92
|
+
organizationName: "",
|
|
93
|
+
inviterName: "",
|
|
94
|
+
email: "",
|
|
95
|
+
firstName: "",
|
|
96
|
+
lastName: "",
|
|
97
|
+
roleName: "",
|
|
98
|
+
casePermissions: [],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
exports.InvitationCreated = {
|
|
102
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
103
|
+
if (message.invitationId !== "") {
|
|
104
|
+
writer.uint32(10).string(message.invitationId);
|
|
105
|
+
}
|
|
106
|
+
if (message.organizationId !== "") {
|
|
107
|
+
writer.uint32(18).string(message.organizationId);
|
|
108
|
+
}
|
|
109
|
+
if (message.organizationName !== "") {
|
|
110
|
+
writer.uint32(26).string(message.organizationName);
|
|
111
|
+
}
|
|
112
|
+
if (message.inviterName !== "") {
|
|
113
|
+
writer.uint32(34).string(message.inviterName);
|
|
114
|
+
}
|
|
115
|
+
if (message.email !== "") {
|
|
116
|
+
writer.uint32(42).string(message.email);
|
|
117
|
+
}
|
|
118
|
+
if (message.firstName !== "") {
|
|
119
|
+
writer.uint32(50).string(message.firstName);
|
|
120
|
+
}
|
|
121
|
+
if (message.lastName !== "") {
|
|
122
|
+
writer.uint32(58).string(message.lastName);
|
|
123
|
+
}
|
|
124
|
+
if (message.roleName !== "") {
|
|
125
|
+
writer.uint32(66).string(message.roleName);
|
|
126
|
+
}
|
|
127
|
+
for (const v of message.casePermissions) {
|
|
128
|
+
exports.CasePermission.encode(v, writer.uint32(74).fork()).join();
|
|
129
|
+
}
|
|
130
|
+
return writer;
|
|
131
|
+
},
|
|
132
|
+
decode(input, length) {
|
|
133
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
134
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
135
|
+
const message = createBaseInvitationCreated();
|
|
136
|
+
while (reader.pos < end) {
|
|
137
|
+
const tag = reader.uint32();
|
|
138
|
+
switch (tag >>> 3) {
|
|
139
|
+
case 1: {
|
|
140
|
+
if (tag !== 10) {
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
message.invitationId = reader.string();
|
|
144
|
+
continue;
|
|
145
|
+
}
|
|
146
|
+
case 2: {
|
|
147
|
+
if (tag !== 18) {
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
message.organizationId = reader.string();
|
|
151
|
+
continue;
|
|
152
|
+
}
|
|
153
|
+
case 3: {
|
|
154
|
+
if (tag !== 26) {
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
message.organizationName = reader.string();
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
case 4: {
|
|
161
|
+
if (tag !== 34) {
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
message.inviterName = reader.string();
|
|
165
|
+
continue;
|
|
166
|
+
}
|
|
167
|
+
case 5: {
|
|
168
|
+
if (tag !== 42) {
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
message.email = reader.string();
|
|
172
|
+
continue;
|
|
173
|
+
}
|
|
174
|
+
case 6: {
|
|
175
|
+
if (tag !== 50) {
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
message.firstName = reader.string();
|
|
179
|
+
continue;
|
|
180
|
+
}
|
|
181
|
+
case 7: {
|
|
182
|
+
if (tag !== 58) {
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
message.lastName = reader.string();
|
|
186
|
+
continue;
|
|
187
|
+
}
|
|
188
|
+
case 8: {
|
|
189
|
+
if (tag !== 66) {
|
|
190
|
+
break;
|
|
191
|
+
}
|
|
192
|
+
message.roleName = reader.string();
|
|
193
|
+
continue;
|
|
194
|
+
}
|
|
195
|
+
case 9: {
|
|
196
|
+
if (tag !== 74) {
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
message.casePermissions.push(exports.CasePermission.decode(reader, reader.uint32()));
|
|
200
|
+
continue;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
reader.skip(tag & 7);
|
|
207
|
+
}
|
|
208
|
+
return message;
|
|
209
|
+
},
|
|
210
|
+
fromJSON(object) {
|
|
211
|
+
return {
|
|
212
|
+
invitationId: isSet(object.invitationId)
|
|
213
|
+
? globalThis.String(object.invitationId)
|
|
214
|
+
: isSet(object.invitation_id)
|
|
215
|
+
? globalThis.String(object.invitation_id)
|
|
216
|
+
: "",
|
|
217
|
+
organizationId: isSet(object.organizationId)
|
|
218
|
+
? globalThis.String(object.organizationId)
|
|
219
|
+
: isSet(object.organization_id)
|
|
220
|
+
? globalThis.String(object.organization_id)
|
|
221
|
+
: "",
|
|
222
|
+
organizationName: isSet(object.organizationName)
|
|
223
|
+
? globalThis.String(object.organizationName)
|
|
224
|
+
: isSet(object.organization_name)
|
|
225
|
+
? globalThis.String(object.organization_name)
|
|
226
|
+
: "",
|
|
227
|
+
inviterName: isSet(object.inviterName)
|
|
228
|
+
? globalThis.String(object.inviterName)
|
|
229
|
+
: isSet(object.inviter_name)
|
|
230
|
+
? globalThis.String(object.inviter_name)
|
|
231
|
+
: "",
|
|
232
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
233
|
+
firstName: isSet(object.firstName)
|
|
234
|
+
? globalThis.String(object.firstName)
|
|
235
|
+
: isSet(object.first_name)
|
|
236
|
+
? globalThis.String(object.first_name)
|
|
237
|
+
: "",
|
|
238
|
+
lastName: isSet(object.lastName)
|
|
239
|
+
? globalThis.String(object.lastName)
|
|
240
|
+
: isSet(object.last_name)
|
|
241
|
+
? globalThis.String(object.last_name)
|
|
242
|
+
: "",
|
|
243
|
+
roleName: isSet(object.roleName)
|
|
244
|
+
? globalThis.String(object.roleName)
|
|
245
|
+
: isSet(object.role_name)
|
|
246
|
+
? globalThis.String(object.role_name)
|
|
247
|
+
: "",
|
|
248
|
+
casePermissions: globalThis.Array.isArray(object?.casePermissions)
|
|
249
|
+
? object.casePermissions.map((e) => exports.CasePermission.fromJSON(e))
|
|
250
|
+
: globalThis.Array.isArray(object?.case_permissions)
|
|
251
|
+
? object.case_permissions.map((e) => exports.CasePermission.fromJSON(e))
|
|
252
|
+
: [],
|
|
253
|
+
};
|
|
254
|
+
},
|
|
255
|
+
toJSON(message) {
|
|
256
|
+
const obj = {};
|
|
257
|
+
if (message.invitationId !== "") {
|
|
258
|
+
obj.invitationId = message.invitationId;
|
|
259
|
+
}
|
|
260
|
+
if (message.organizationId !== "") {
|
|
261
|
+
obj.organizationId = message.organizationId;
|
|
262
|
+
}
|
|
263
|
+
if (message.organizationName !== "") {
|
|
264
|
+
obj.organizationName = message.organizationName;
|
|
265
|
+
}
|
|
266
|
+
if (message.inviterName !== "") {
|
|
267
|
+
obj.inviterName = message.inviterName;
|
|
268
|
+
}
|
|
269
|
+
if (message.email !== "") {
|
|
270
|
+
obj.email = message.email;
|
|
271
|
+
}
|
|
272
|
+
if (message.firstName !== "") {
|
|
273
|
+
obj.firstName = message.firstName;
|
|
274
|
+
}
|
|
275
|
+
if (message.lastName !== "") {
|
|
276
|
+
obj.lastName = message.lastName;
|
|
277
|
+
}
|
|
278
|
+
if (message.roleName !== "") {
|
|
279
|
+
obj.roleName = message.roleName;
|
|
280
|
+
}
|
|
281
|
+
if (message.casePermissions?.length) {
|
|
282
|
+
obj.casePermissions = message.casePermissions.map((e) => exports.CasePermission.toJSON(e));
|
|
283
|
+
}
|
|
284
|
+
return obj;
|
|
285
|
+
},
|
|
286
|
+
create(base) {
|
|
287
|
+
return exports.InvitationCreated.fromPartial(base ?? {});
|
|
288
|
+
},
|
|
289
|
+
fromPartial(object) {
|
|
290
|
+
const message = createBaseInvitationCreated();
|
|
291
|
+
message.invitationId = object.invitationId ?? "";
|
|
292
|
+
message.organizationId = object.organizationId ?? "";
|
|
293
|
+
message.organizationName = object.organizationName ?? "";
|
|
294
|
+
message.inviterName = object.inviterName ?? "";
|
|
295
|
+
message.email = object.email ?? "";
|
|
296
|
+
message.firstName = object.firstName ?? "";
|
|
297
|
+
message.lastName = object.lastName ?? "";
|
|
298
|
+
message.roleName = object.roleName ?? "";
|
|
299
|
+
message.casePermissions = object.casePermissions?.map((e) => exports.CasePermission.fromPartial(e)) || [];
|
|
300
|
+
return message;
|
|
301
|
+
},
|
|
302
|
+
};
|
|
303
|
+
function isSet(value) {
|
|
304
|
+
return value !== null && value !== undefined;
|
|
305
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "report.v1";
|
|
3
|
+
export declare enum FileType {
|
|
4
|
+
FILE_TYPE_UNSPECIFIED = 0,
|
|
5
|
+
FILE_TYPE_PDF = 1,
|
|
6
|
+
FILE_TYPE_CSV = 2,
|
|
7
|
+
UNRECOGNIZED = -1
|
|
8
|
+
}
|
|
9
|
+
export declare function fileTypeFromJSON(object: any): FileType;
|
|
10
|
+
export declare function fileTypeToJSON(object: FileType): string;
|
|
11
|
+
export declare enum DeliveryType {
|
|
12
|
+
DELIVERY_TYPE_UNSPECIFIED = 0,
|
|
13
|
+
DELIVERY_TYPE_IMMEDIATE = 1,
|
|
14
|
+
DELIVERY_TYPE_SCHEDULED = 2,
|
|
15
|
+
UNRECOGNIZED = -1
|
|
16
|
+
}
|
|
17
|
+
export declare function deliveryTypeFromJSON(object: any): DeliveryType;
|
|
18
|
+
export declare function deliveryTypeToJSON(object: DeliveryType): string;
|
|
19
|
+
export interface Attachment {
|
|
20
|
+
content: string;
|
|
21
|
+
filename: string;
|
|
22
|
+
}
|
|
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
|
+
export declare const ReportGenerated: MessageFns<ReportGenerated>;
|
|
36
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
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
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
39
|
+
} : Partial<T>;
|
|
40
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
41
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
42
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
43
|
+
} & {
|
|
44
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
45
|
+
};
|
|
46
|
+
export interface MessageFns<T> {
|
|
47
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
48
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
49
|
+
fromJSON(object: any): T;
|
|
50
|
+
toJSON(message: T): unknown;
|
|
51
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
52
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
53
|
+
}
|
|
54
|
+
export {};
|