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