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