@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
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "file.v1";
|
|
3
|
+
export interface ProcessingCompleted {
|
|
4
|
+
fileId: string;
|
|
5
|
+
caseId: string;
|
|
6
|
+
newClaimsAmount?: number | undefined;
|
|
7
|
+
existingClaimsAmount?: number | undefined;
|
|
8
|
+
malformedClaimsAmount?: number | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare const ProcessingCompleted: MessageFns<ProcessingCompleted>;
|
|
11
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
12
|
+
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 {} ? {
|
|
13
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
14
|
+
} : Partial<T>;
|
|
15
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
16
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
17
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
18
|
+
} & {
|
|
19
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
20
|
+
};
|
|
21
|
+
export interface MessageFns<T> {
|
|
22
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
23
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
24
|
+
fromJSON(object: any): T;
|
|
25
|
+
toJSON(message: T): unknown;
|
|
26
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
27
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,150 @@
|
|
|
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/processing_completed.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
export const protobufPackage = "file.v1";
|
|
9
|
+
function createBaseProcessingCompleted() {
|
|
10
|
+
return {
|
|
11
|
+
fileId: "",
|
|
12
|
+
caseId: "",
|
|
13
|
+
newClaimsAmount: undefined,
|
|
14
|
+
existingClaimsAmount: undefined,
|
|
15
|
+
malformedClaimsAmount: undefined,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export const ProcessingCompleted = {
|
|
19
|
+
encode(message, writer = new BinaryWriter()) {
|
|
20
|
+
if (message.fileId !== "") {
|
|
21
|
+
writer.uint32(10).string(message.fileId);
|
|
22
|
+
}
|
|
23
|
+
if (message.caseId !== "") {
|
|
24
|
+
writer.uint32(18).string(message.caseId);
|
|
25
|
+
}
|
|
26
|
+
if (message.newClaimsAmount !== undefined) {
|
|
27
|
+
writer.uint32(24).int32(message.newClaimsAmount);
|
|
28
|
+
}
|
|
29
|
+
if (message.existingClaimsAmount !== undefined) {
|
|
30
|
+
writer.uint32(32).int32(message.existingClaimsAmount);
|
|
31
|
+
}
|
|
32
|
+
if (message.malformedClaimsAmount !== undefined) {
|
|
33
|
+
writer.uint32(40).int32(message.malformedClaimsAmount);
|
|
34
|
+
}
|
|
35
|
+
return writer;
|
|
36
|
+
},
|
|
37
|
+
decode(input, length) {
|
|
38
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
39
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
40
|
+
const message = createBaseProcessingCompleted();
|
|
41
|
+
while (reader.pos < end) {
|
|
42
|
+
const tag = reader.uint32();
|
|
43
|
+
switch (tag >>> 3) {
|
|
44
|
+
case 1: {
|
|
45
|
+
if (tag !== 10) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.fileId = reader.string();
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
case 2: {
|
|
52
|
+
if (tag !== 18) {
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
message.caseId = reader.string();
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
case 3: {
|
|
59
|
+
if (tag !== 24) {
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
message.newClaimsAmount = reader.int32();
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
case 4: {
|
|
66
|
+
if (tag !== 32) {
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
message.existingClaimsAmount = reader.int32();
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
case 5: {
|
|
73
|
+
if (tag !== 40) {
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
message.malformedClaimsAmount = reader.int32();
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
reader.skip(tag & 7);
|
|
84
|
+
}
|
|
85
|
+
return message;
|
|
86
|
+
},
|
|
87
|
+
fromJSON(object) {
|
|
88
|
+
return {
|
|
89
|
+
fileId: isSet(object.fileId)
|
|
90
|
+
? globalThis.String(object.fileId)
|
|
91
|
+
: isSet(object.file_id)
|
|
92
|
+
? globalThis.String(object.file_id)
|
|
93
|
+
: "",
|
|
94
|
+
caseId: isSet(object.caseId)
|
|
95
|
+
? globalThis.String(object.caseId)
|
|
96
|
+
: isSet(object.case_id)
|
|
97
|
+
? globalThis.String(object.case_id)
|
|
98
|
+
: "",
|
|
99
|
+
newClaimsAmount: isSet(object.newClaimsAmount)
|
|
100
|
+
? globalThis.Number(object.newClaimsAmount)
|
|
101
|
+
: isSet(object.new_claims_amount)
|
|
102
|
+
? globalThis.Number(object.new_claims_amount)
|
|
103
|
+
: undefined,
|
|
104
|
+
existingClaimsAmount: isSet(object.existingClaimsAmount)
|
|
105
|
+
? globalThis.Number(object.existingClaimsAmount)
|
|
106
|
+
: isSet(object.existing_claims_amount)
|
|
107
|
+
? globalThis.Number(object.existing_claims_amount)
|
|
108
|
+
: undefined,
|
|
109
|
+
malformedClaimsAmount: isSet(object.malformedClaimsAmount)
|
|
110
|
+
? globalThis.Number(object.malformedClaimsAmount)
|
|
111
|
+
: isSet(object.malformed_claims_amount)
|
|
112
|
+
? globalThis.Number(object.malformed_claims_amount)
|
|
113
|
+
: undefined,
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
toJSON(message) {
|
|
117
|
+
const obj = {};
|
|
118
|
+
if (message.fileId !== "") {
|
|
119
|
+
obj.fileId = message.fileId;
|
|
120
|
+
}
|
|
121
|
+
if (message.caseId !== "") {
|
|
122
|
+
obj.caseId = message.caseId;
|
|
123
|
+
}
|
|
124
|
+
if (message.newClaimsAmount !== undefined) {
|
|
125
|
+
obj.newClaimsAmount = Math.round(message.newClaimsAmount);
|
|
126
|
+
}
|
|
127
|
+
if (message.existingClaimsAmount !== undefined) {
|
|
128
|
+
obj.existingClaimsAmount = Math.round(message.existingClaimsAmount);
|
|
129
|
+
}
|
|
130
|
+
if (message.malformedClaimsAmount !== undefined) {
|
|
131
|
+
obj.malformedClaimsAmount = Math.round(message.malformedClaimsAmount);
|
|
132
|
+
}
|
|
133
|
+
return obj;
|
|
134
|
+
},
|
|
135
|
+
create(base) {
|
|
136
|
+
return ProcessingCompleted.fromPartial(base ?? {});
|
|
137
|
+
},
|
|
138
|
+
fromPartial(object) {
|
|
139
|
+
const message = createBaseProcessingCompleted();
|
|
140
|
+
message.fileId = object.fileId ?? "";
|
|
141
|
+
message.caseId = object.caseId ?? "";
|
|
142
|
+
message.newClaimsAmount = object.newClaimsAmount ?? undefined;
|
|
143
|
+
message.existingClaimsAmount = object.existingClaimsAmount ?? undefined;
|
|
144
|
+
message.malformedClaimsAmount = object.malformedClaimsAmount ?? undefined;
|
|
145
|
+
return message;
|
|
146
|
+
},
|
|
147
|
+
};
|
|
148
|
+
function isSet(value) {
|
|
149
|
+
return value !== null && value !== undefined;
|
|
150
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "file.v1";
|
|
3
|
+
export interface UploadCompleted {
|
|
4
|
+
fileId: string;
|
|
5
|
+
caseId: string;
|
|
6
|
+
fileName: string;
|
|
7
|
+
uploadedAt: string;
|
|
8
|
+
uploadedBy?: string | undefined;
|
|
9
|
+
claimsAmount: number;
|
|
10
|
+
delimiter: string;
|
|
11
|
+
headers: string;
|
|
12
|
+
adminIdHeaderIndex: number;
|
|
13
|
+
containsHeader: boolean;
|
|
14
|
+
skipHeaders: boolean;
|
|
15
|
+
escapeChar?: string | undefined;
|
|
16
|
+
}
|
|
17
|
+
export declare const UploadCompleted: MessageFns<UploadCompleted>;
|
|
18
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
19
|
+
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 {} ? {
|
|
20
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
21
|
+
} : Partial<T>;
|
|
22
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
23
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
24
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
25
|
+
} & {
|
|
26
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
27
|
+
};
|
|
28
|
+
export interface MessageFns<T> {
|
|
29
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
30
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
31
|
+
fromJSON(object: any): T;
|
|
32
|
+
toJSON(message: T): unknown;
|
|
33
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
34
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,282 @@
|
|
|
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/upload_completed.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
export const protobufPackage = "file.v1";
|
|
9
|
+
function createBaseUploadCompleted() {
|
|
10
|
+
return {
|
|
11
|
+
fileId: "",
|
|
12
|
+
caseId: "",
|
|
13
|
+
fileName: "",
|
|
14
|
+
uploadedAt: "",
|
|
15
|
+
uploadedBy: undefined,
|
|
16
|
+
claimsAmount: 0,
|
|
17
|
+
delimiter: "",
|
|
18
|
+
headers: "",
|
|
19
|
+
adminIdHeaderIndex: 0,
|
|
20
|
+
containsHeader: false,
|
|
21
|
+
skipHeaders: false,
|
|
22
|
+
escapeChar: undefined,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export const UploadCompleted = {
|
|
26
|
+
encode(message, writer = new BinaryWriter()) {
|
|
27
|
+
if (message.fileId !== "") {
|
|
28
|
+
writer.uint32(10).string(message.fileId);
|
|
29
|
+
}
|
|
30
|
+
if (message.caseId !== "") {
|
|
31
|
+
writer.uint32(18).string(message.caseId);
|
|
32
|
+
}
|
|
33
|
+
if (message.fileName !== "") {
|
|
34
|
+
writer.uint32(26).string(message.fileName);
|
|
35
|
+
}
|
|
36
|
+
if (message.uploadedAt !== "") {
|
|
37
|
+
writer.uint32(34).string(message.uploadedAt);
|
|
38
|
+
}
|
|
39
|
+
if (message.uploadedBy !== undefined) {
|
|
40
|
+
writer.uint32(42).string(message.uploadedBy);
|
|
41
|
+
}
|
|
42
|
+
if (message.claimsAmount !== 0) {
|
|
43
|
+
writer.uint32(48).int32(message.claimsAmount);
|
|
44
|
+
}
|
|
45
|
+
if (message.delimiter !== "") {
|
|
46
|
+
writer.uint32(58).string(message.delimiter);
|
|
47
|
+
}
|
|
48
|
+
if (message.headers !== "") {
|
|
49
|
+
writer.uint32(66).string(message.headers);
|
|
50
|
+
}
|
|
51
|
+
if (message.adminIdHeaderIndex !== 0) {
|
|
52
|
+
writer.uint32(72).int32(message.adminIdHeaderIndex);
|
|
53
|
+
}
|
|
54
|
+
if (message.containsHeader !== false) {
|
|
55
|
+
writer.uint32(80).bool(message.containsHeader);
|
|
56
|
+
}
|
|
57
|
+
if (message.skipHeaders !== false) {
|
|
58
|
+
writer.uint32(88).bool(message.skipHeaders);
|
|
59
|
+
}
|
|
60
|
+
if (message.escapeChar !== undefined) {
|
|
61
|
+
writer.uint32(98).string(message.escapeChar);
|
|
62
|
+
}
|
|
63
|
+
return writer;
|
|
64
|
+
},
|
|
65
|
+
decode(input, length) {
|
|
66
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
67
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
68
|
+
const message = createBaseUploadCompleted();
|
|
69
|
+
while (reader.pos < end) {
|
|
70
|
+
const tag = reader.uint32();
|
|
71
|
+
switch (tag >>> 3) {
|
|
72
|
+
case 1: {
|
|
73
|
+
if (tag !== 10) {
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
message.fileId = reader.string();
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
case 2: {
|
|
80
|
+
if (tag !== 18) {
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
message.caseId = reader.string();
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
case 3: {
|
|
87
|
+
if (tag !== 26) {
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
message.fileName = reader.string();
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
case 4: {
|
|
94
|
+
if (tag !== 34) {
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
message.uploadedAt = reader.string();
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
case 5: {
|
|
101
|
+
if (tag !== 42) {
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
message.uploadedBy = reader.string();
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
case 6: {
|
|
108
|
+
if (tag !== 48) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
message.claimsAmount = reader.int32();
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
case 7: {
|
|
115
|
+
if (tag !== 58) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
message.delimiter = reader.string();
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
case 8: {
|
|
122
|
+
if (tag !== 66) {
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
message.headers = reader.string();
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
128
|
+
case 9: {
|
|
129
|
+
if (tag !== 72) {
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
message.adminIdHeaderIndex = reader.int32();
|
|
133
|
+
continue;
|
|
134
|
+
}
|
|
135
|
+
case 10: {
|
|
136
|
+
if (tag !== 80) {
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
message.containsHeader = reader.bool();
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
case 11: {
|
|
143
|
+
if (tag !== 88) {
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
message.skipHeaders = reader.bool();
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
case 12: {
|
|
150
|
+
if (tag !== 98) {
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
message.escapeChar = reader.string();
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
reader.skip(tag & 7);
|
|
161
|
+
}
|
|
162
|
+
return message;
|
|
163
|
+
},
|
|
164
|
+
fromJSON(object) {
|
|
165
|
+
return {
|
|
166
|
+
fileId: isSet(object.fileId)
|
|
167
|
+
? globalThis.String(object.fileId)
|
|
168
|
+
: isSet(object.file_id)
|
|
169
|
+
? globalThis.String(object.file_id)
|
|
170
|
+
: "",
|
|
171
|
+
caseId: isSet(object.caseId)
|
|
172
|
+
? globalThis.String(object.caseId)
|
|
173
|
+
: isSet(object.case_id)
|
|
174
|
+
? globalThis.String(object.case_id)
|
|
175
|
+
: "",
|
|
176
|
+
fileName: isSet(object.fileName)
|
|
177
|
+
? globalThis.String(object.fileName)
|
|
178
|
+
: isSet(object.file_name)
|
|
179
|
+
? globalThis.String(object.file_name)
|
|
180
|
+
: "",
|
|
181
|
+
uploadedAt: isSet(object.uploadedAt)
|
|
182
|
+
? globalThis.String(object.uploadedAt)
|
|
183
|
+
: isSet(object.uploaded_at)
|
|
184
|
+
? globalThis.String(object.uploaded_at)
|
|
185
|
+
: "",
|
|
186
|
+
uploadedBy: isSet(object.uploadedBy)
|
|
187
|
+
? globalThis.String(object.uploadedBy)
|
|
188
|
+
: isSet(object.uploaded_by)
|
|
189
|
+
? globalThis.String(object.uploaded_by)
|
|
190
|
+
: undefined,
|
|
191
|
+
claimsAmount: isSet(object.claimsAmount)
|
|
192
|
+
? globalThis.Number(object.claimsAmount)
|
|
193
|
+
: isSet(object.claims_amount)
|
|
194
|
+
? globalThis.Number(object.claims_amount)
|
|
195
|
+
: 0,
|
|
196
|
+
delimiter: isSet(object.delimiter) ? globalThis.String(object.delimiter) : "",
|
|
197
|
+
headers: isSet(object.headers) ? globalThis.String(object.headers) : "",
|
|
198
|
+
adminIdHeaderIndex: isSet(object.adminIdHeaderIndex)
|
|
199
|
+
? globalThis.Number(object.adminIdHeaderIndex)
|
|
200
|
+
: isSet(object.admin_id_header_index)
|
|
201
|
+
? globalThis.Number(object.admin_id_header_index)
|
|
202
|
+
: 0,
|
|
203
|
+
containsHeader: isSet(object.containsHeader)
|
|
204
|
+
? globalThis.Boolean(object.containsHeader)
|
|
205
|
+
: isSet(object.contains_header)
|
|
206
|
+
? globalThis.Boolean(object.contains_header)
|
|
207
|
+
: false,
|
|
208
|
+
skipHeaders: isSet(object.skipHeaders)
|
|
209
|
+
? globalThis.Boolean(object.skipHeaders)
|
|
210
|
+
: isSet(object.skip_headers)
|
|
211
|
+
? globalThis.Boolean(object.skip_headers)
|
|
212
|
+
: false,
|
|
213
|
+
escapeChar: isSet(object.escapeChar)
|
|
214
|
+
? globalThis.String(object.escapeChar)
|
|
215
|
+
: isSet(object.escape_char)
|
|
216
|
+
? globalThis.String(object.escape_char)
|
|
217
|
+
: undefined,
|
|
218
|
+
};
|
|
219
|
+
},
|
|
220
|
+
toJSON(message) {
|
|
221
|
+
const obj = {};
|
|
222
|
+
if (message.fileId !== "") {
|
|
223
|
+
obj.fileId = message.fileId;
|
|
224
|
+
}
|
|
225
|
+
if (message.caseId !== "") {
|
|
226
|
+
obj.caseId = message.caseId;
|
|
227
|
+
}
|
|
228
|
+
if (message.fileName !== "") {
|
|
229
|
+
obj.fileName = message.fileName;
|
|
230
|
+
}
|
|
231
|
+
if (message.uploadedAt !== "") {
|
|
232
|
+
obj.uploadedAt = message.uploadedAt;
|
|
233
|
+
}
|
|
234
|
+
if (message.uploadedBy !== undefined) {
|
|
235
|
+
obj.uploadedBy = message.uploadedBy;
|
|
236
|
+
}
|
|
237
|
+
if (message.claimsAmount !== 0) {
|
|
238
|
+
obj.claimsAmount = Math.round(message.claimsAmount);
|
|
239
|
+
}
|
|
240
|
+
if (message.delimiter !== "") {
|
|
241
|
+
obj.delimiter = message.delimiter;
|
|
242
|
+
}
|
|
243
|
+
if (message.headers !== "") {
|
|
244
|
+
obj.headers = message.headers;
|
|
245
|
+
}
|
|
246
|
+
if (message.adminIdHeaderIndex !== 0) {
|
|
247
|
+
obj.adminIdHeaderIndex = Math.round(message.adminIdHeaderIndex);
|
|
248
|
+
}
|
|
249
|
+
if (message.containsHeader !== false) {
|
|
250
|
+
obj.containsHeader = message.containsHeader;
|
|
251
|
+
}
|
|
252
|
+
if (message.skipHeaders !== false) {
|
|
253
|
+
obj.skipHeaders = message.skipHeaders;
|
|
254
|
+
}
|
|
255
|
+
if (message.escapeChar !== undefined) {
|
|
256
|
+
obj.escapeChar = message.escapeChar;
|
|
257
|
+
}
|
|
258
|
+
return obj;
|
|
259
|
+
},
|
|
260
|
+
create(base) {
|
|
261
|
+
return UploadCompleted.fromPartial(base ?? {});
|
|
262
|
+
},
|
|
263
|
+
fromPartial(object) {
|
|
264
|
+
const message = createBaseUploadCompleted();
|
|
265
|
+
message.fileId = object.fileId ?? "";
|
|
266
|
+
message.caseId = object.caseId ?? "";
|
|
267
|
+
message.fileName = object.fileName ?? "";
|
|
268
|
+
message.uploadedAt = object.uploadedAt ?? "";
|
|
269
|
+
message.uploadedBy = object.uploadedBy ?? undefined;
|
|
270
|
+
message.claimsAmount = object.claimsAmount ?? 0;
|
|
271
|
+
message.delimiter = object.delimiter ?? "";
|
|
272
|
+
message.headers = object.headers ?? "";
|
|
273
|
+
message.adminIdHeaderIndex = object.adminIdHeaderIndex ?? 0;
|
|
274
|
+
message.containsHeader = object.containsHeader ?? false;
|
|
275
|
+
message.skipHeaders = object.skipHeaders ?? false;
|
|
276
|
+
message.escapeChar = object.escapeChar ?? undefined;
|
|
277
|
+
return message;
|
|
278
|
+
},
|
|
279
|
+
};
|
|
280
|
+
function isSet(value) {
|
|
281
|
+
return value !== null && value !== undefined;
|
|
282
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { AccountActivated } from './account/v1/activated';
|
|
2
|
+
export { CaseCreated } from './case/v1/created';
|
|
3
|
+
export { AnalysisRequested } from './file/v1/analysis_requested';
|
|
4
|
+
export { PreprocessCompleted } from './file/v1/preprocess_completed';
|
|
5
|
+
export { ProcessingCompleted } from './file/v1/processing_completed';
|
|
6
|
+
export { UploadCompleted } from './file/v1/upload_completed';
|
|
7
|
+
export { InvitationApproved } from './invitation/v1/approved';
|
|
8
|
+
export { InvitationCreated } from './invitation/v1/created';
|
|
9
|
+
export { InvitationVerificationResent } from './invitation/v1/verification_resent';
|
|
10
|
+
export { PermissionCreated } from './permission/v1/created';
|
|
11
|
+
export { PermissionDeleted } from './permission/v1/deleted';
|
|
12
|
+
export { PermissionUpdated } from './permission/v1/updated';
|
|
13
|
+
export { ReportGenerated } from './report/v1/generated';
|
|
14
|
+
export { Topics } from './topics';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-index.mjs. Do not edit manually.
|
|
2
|
+
export { AccountActivated } from './account/v1/activated';
|
|
3
|
+
export { CaseCreated } from './case/v1/created';
|
|
4
|
+
export { AnalysisRequested } from './file/v1/analysis_requested';
|
|
5
|
+
export { PreprocessCompleted } from './file/v1/preprocess_completed';
|
|
6
|
+
export { ProcessingCompleted } from './file/v1/processing_completed';
|
|
7
|
+
export { UploadCompleted } from './file/v1/upload_completed';
|
|
8
|
+
export { InvitationApproved } from './invitation/v1/approved';
|
|
9
|
+
export { InvitationCreated } from './invitation/v1/created';
|
|
10
|
+
export { InvitationVerificationResent } from './invitation/v1/verification_resent';
|
|
11
|
+
export { PermissionCreated } from './permission/v1/created';
|
|
12
|
+
export { PermissionDeleted } from './permission/v1/deleted';
|
|
13
|
+
export { PermissionUpdated } from './permission/v1/updated';
|
|
14
|
+
export { ReportGenerated } from './report/v1/generated';
|
|
15
|
+
export { Topics } from './topics';
|
|
@@ -0,0 +1,140 @@
|
|
|
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/approved.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
export const protobufPackage = "invitation.v1";
|
|
9
|
+
function createBaseInvitationApproved() {
|
|
10
|
+
return { invitationId: "", email: "", organizationId: "", organizationName: "", inviterName: "" };
|
|
11
|
+
}
|
|
12
|
+
export const InvitationApproved = {
|
|
13
|
+
encode(message, writer = new BinaryWriter()) {
|
|
14
|
+
if (message.invitationId !== "") {
|
|
15
|
+
writer.uint32(10).string(message.invitationId);
|
|
16
|
+
}
|
|
17
|
+
if (message.email !== "") {
|
|
18
|
+
writer.uint32(18).string(message.email);
|
|
19
|
+
}
|
|
20
|
+
if (message.organizationId !== "") {
|
|
21
|
+
writer.uint32(26).string(message.organizationId);
|
|
22
|
+
}
|
|
23
|
+
if (message.organizationName !== "") {
|
|
24
|
+
writer.uint32(34).string(message.organizationName);
|
|
25
|
+
}
|
|
26
|
+
if (message.inviterName !== "") {
|
|
27
|
+
writer.uint32(42).string(message.inviterName);
|
|
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 = createBaseInvitationApproved();
|
|
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.invitationId = reader.string();
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
case 2: {
|
|
46
|
+
if (tag !== 18) {
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
message.email = reader.string();
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
case 3: {
|
|
53
|
+
if (tag !== 26) {
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
message.organizationId = reader.string();
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
case 4: {
|
|
60
|
+
if (tag !== 34) {
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
message.organizationName = reader.string();
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
case 5: {
|
|
67
|
+
if (tag !== 42) {
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
message.inviterName = 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
|
+
invitationId: isSet(object.invitationId)
|
|
84
|
+
? globalThis.String(object.invitationId)
|
|
85
|
+
: isSet(object.invitation_id)
|
|
86
|
+
? globalThis.String(object.invitation_id)
|
|
87
|
+
: "",
|
|
88
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
89
|
+
organizationId: isSet(object.organizationId)
|
|
90
|
+
? globalThis.String(object.organizationId)
|
|
91
|
+
: isSet(object.organization_id)
|
|
92
|
+
? globalThis.String(object.organization_id)
|
|
93
|
+
: "",
|
|
94
|
+
organizationName: isSet(object.organizationName)
|
|
95
|
+
? globalThis.String(object.organizationName)
|
|
96
|
+
: isSet(object.organization_name)
|
|
97
|
+
? globalThis.String(object.organization_name)
|
|
98
|
+
: "",
|
|
99
|
+
inviterName: isSet(object.inviterName)
|
|
100
|
+
? globalThis.String(object.inviterName)
|
|
101
|
+
: isSet(object.inviter_name)
|
|
102
|
+
? globalThis.String(object.inviter_name)
|
|
103
|
+
: "",
|
|
104
|
+
};
|
|
105
|
+
},
|
|
106
|
+
toJSON(message) {
|
|
107
|
+
const obj = {};
|
|
108
|
+
if (message.invitationId !== "") {
|
|
109
|
+
obj.invitationId = message.invitationId;
|
|
110
|
+
}
|
|
111
|
+
if (message.email !== "") {
|
|
112
|
+
obj.email = message.email;
|
|
113
|
+
}
|
|
114
|
+
if (message.organizationId !== "") {
|
|
115
|
+
obj.organizationId = message.organizationId;
|
|
116
|
+
}
|
|
117
|
+
if (message.organizationName !== "") {
|
|
118
|
+
obj.organizationName = message.organizationName;
|
|
119
|
+
}
|
|
120
|
+
if (message.inviterName !== "") {
|
|
121
|
+
obj.inviterName = message.inviterName;
|
|
122
|
+
}
|
|
123
|
+
return obj;
|
|
124
|
+
},
|
|
125
|
+
create(base) {
|
|
126
|
+
return InvitationApproved.fromPartial(base ?? {});
|
|
127
|
+
},
|
|
128
|
+
fromPartial(object) {
|
|
129
|
+
const message = createBaseInvitationApproved();
|
|
130
|
+
message.invitationId = object.invitationId ?? "";
|
|
131
|
+
message.email = object.email ?? "";
|
|
132
|
+
message.organizationId = object.organizationId ?? "";
|
|
133
|
+
message.organizationName = object.organizationName ?? "";
|
|
134
|
+
message.inviterName = object.inviterName ?? "";
|
|
135
|
+
return message;
|
|
136
|
+
},
|
|
137
|
+
};
|
|
138
|
+
function isSet(value) {
|
|
139
|
+
return value !== null && value !== undefined;
|
|
140
|
+
}
|