mezon-js-protobuf 1.6.4 → 1.6.6
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/api/api.ts +401 -2
- package/dist/mezon-js-protobuf/api/api.d.ts +207 -0
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v1.181.
|
|
4
|
-
// protoc
|
|
3
|
+
// protoc-gen-ts_proto v1.181.2
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: api/api.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
@@ -3291,6 +3291,30 @@ export interface ListFavoriteChannelResponse {
|
|
|
3291
3291
|
channel_ids: string[];
|
|
3292
3292
|
}
|
|
3293
3293
|
|
|
3294
|
+
export interface UserActivity {
|
|
3295
|
+
user_id: string;
|
|
3296
|
+
activity_name: string;
|
|
3297
|
+
activity_type: number;
|
|
3298
|
+
activity_description: string;
|
|
3299
|
+
start_time: Date | undefined;
|
|
3300
|
+
end_time: Date | undefined;
|
|
3301
|
+
application_id: string;
|
|
3302
|
+
status: number;
|
|
3303
|
+
}
|
|
3304
|
+
|
|
3305
|
+
export interface ListUserActivity {
|
|
3306
|
+
activities: UserActivity[];
|
|
3307
|
+
}
|
|
3308
|
+
|
|
3309
|
+
export interface CreateActivityRequest {
|
|
3310
|
+
activity_name: string;
|
|
3311
|
+
activity_type: number;
|
|
3312
|
+
activity_description: string;
|
|
3313
|
+
start_time: Date | undefined;
|
|
3314
|
+
application_id: string;
|
|
3315
|
+
status: number;
|
|
3316
|
+
}
|
|
3317
|
+
|
|
3294
3318
|
function createBaseAccount(): Account {
|
|
3295
3319
|
return {
|
|
3296
3320
|
user: undefined,
|
|
@@ -31155,6 +31179,381 @@ export const ListFavoriteChannelResponse = {
|
|
|
31155
31179
|
},
|
|
31156
31180
|
};
|
|
31157
31181
|
|
|
31182
|
+
function createBaseUserActivity(): UserActivity {
|
|
31183
|
+
return {
|
|
31184
|
+
user_id: "",
|
|
31185
|
+
activity_name: "",
|
|
31186
|
+
activity_type: 0,
|
|
31187
|
+
activity_description: "",
|
|
31188
|
+
start_time: undefined,
|
|
31189
|
+
end_time: undefined,
|
|
31190
|
+
application_id: "",
|
|
31191
|
+
status: 0,
|
|
31192
|
+
};
|
|
31193
|
+
}
|
|
31194
|
+
|
|
31195
|
+
export const UserActivity = {
|
|
31196
|
+
encode(message: UserActivity, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
31197
|
+
if (message.user_id !== "") {
|
|
31198
|
+
writer.uint32(10).string(message.user_id);
|
|
31199
|
+
}
|
|
31200
|
+
if (message.activity_name !== "") {
|
|
31201
|
+
writer.uint32(18).string(message.activity_name);
|
|
31202
|
+
}
|
|
31203
|
+
if (message.activity_type !== 0) {
|
|
31204
|
+
writer.uint32(24).int32(message.activity_type);
|
|
31205
|
+
}
|
|
31206
|
+
if (message.activity_description !== "") {
|
|
31207
|
+
writer.uint32(34).string(message.activity_description);
|
|
31208
|
+
}
|
|
31209
|
+
if (message.start_time !== undefined) {
|
|
31210
|
+
Timestamp.encode(toTimestamp(message.start_time), writer.uint32(42).fork()).ldelim();
|
|
31211
|
+
}
|
|
31212
|
+
if (message.end_time !== undefined) {
|
|
31213
|
+
Timestamp.encode(toTimestamp(message.end_time), writer.uint32(50).fork()).ldelim();
|
|
31214
|
+
}
|
|
31215
|
+
if (message.application_id !== "") {
|
|
31216
|
+
writer.uint32(58).string(message.application_id);
|
|
31217
|
+
}
|
|
31218
|
+
if (message.status !== 0) {
|
|
31219
|
+
writer.uint32(64).int32(message.status);
|
|
31220
|
+
}
|
|
31221
|
+
return writer;
|
|
31222
|
+
},
|
|
31223
|
+
|
|
31224
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UserActivity {
|
|
31225
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31226
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31227
|
+
const message = createBaseUserActivity();
|
|
31228
|
+
while (reader.pos < end) {
|
|
31229
|
+
const tag = reader.uint32();
|
|
31230
|
+
switch (tag >>> 3) {
|
|
31231
|
+
case 1:
|
|
31232
|
+
if (tag !== 10) {
|
|
31233
|
+
break;
|
|
31234
|
+
}
|
|
31235
|
+
|
|
31236
|
+
message.user_id = reader.string();
|
|
31237
|
+
continue;
|
|
31238
|
+
case 2:
|
|
31239
|
+
if (tag !== 18) {
|
|
31240
|
+
break;
|
|
31241
|
+
}
|
|
31242
|
+
|
|
31243
|
+
message.activity_name = reader.string();
|
|
31244
|
+
continue;
|
|
31245
|
+
case 3:
|
|
31246
|
+
if (tag !== 24) {
|
|
31247
|
+
break;
|
|
31248
|
+
}
|
|
31249
|
+
|
|
31250
|
+
message.activity_type = reader.int32();
|
|
31251
|
+
continue;
|
|
31252
|
+
case 4:
|
|
31253
|
+
if (tag !== 34) {
|
|
31254
|
+
break;
|
|
31255
|
+
}
|
|
31256
|
+
|
|
31257
|
+
message.activity_description = reader.string();
|
|
31258
|
+
continue;
|
|
31259
|
+
case 5:
|
|
31260
|
+
if (tag !== 42) {
|
|
31261
|
+
break;
|
|
31262
|
+
}
|
|
31263
|
+
|
|
31264
|
+
message.start_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
31265
|
+
continue;
|
|
31266
|
+
case 6:
|
|
31267
|
+
if (tag !== 50) {
|
|
31268
|
+
break;
|
|
31269
|
+
}
|
|
31270
|
+
|
|
31271
|
+
message.end_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
31272
|
+
continue;
|
|
31273
|
+
case 7:
|
|
31274
|
+
if (tag !== 58) {
|
|
31275
|
+
break;
|
|
31276
|
+
}
|
|
31277
|
+
|
|
31278
|
+
message.application_id = reader.string();
|
|
31279
|
+
continue;
|
|
31280
|
+
case 8:
|
|
31281
|
+
if (tag !== 64) {
|
|
31282
|
+
break;
|
|
31283
|
+
}
|
|
31284
|
+
|
|
31285
|
+
message.status = reader.int32();
|
|
31286
|
+
continue;
|
|
31287
|
+
}
|
|
31288
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31289
|
+
break;
|
|
31290
|
+
}
|
|
31291
|
+
reader.skipType(tag & 7);
|
|
31292
|
+
}
|
|
31293
|
+
return message;
|
|
31294
|
+
},
|
|
31295
|
+
|
|
31296
|
+
fromJSON(object: any): UserActivity {
|
|
31297
|
+
return {
|
|
31298
|
+
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
31299
|
+
activity_name: isSet(object.activity_name) ? globalThis.String(object.activity_name) : "",
|
|
31300
|
+
activity_type: isSet(object.activity_type) ? globalThis.Number(object.activity_type) : 0,
|
|
31301
|
+
activity_description: isSet(object.activity_description) ? globalThis.String(object.activity_description) : "",
|
|
31302
|
+
start_time: isSet(object.start_time) ? fromJsonTimestamp(object.start_time) : undefined,
|
|
31303
|
+
end_time: isSet(object.end_time) ? fromJsonTimestamp(object.end_time) : undefined,
|
|
31304
|
+
application_id: isSet(object.application_id) ? globalThis.String(object.application_id) : "",
|
|
31305
|
+
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
31306
|
+
};
|
|
31307
|
+
},
|
|
31308
|
+
|
|
31309
|
+
toJSON(message: UserActivity): unknown {
|
|
31310
|
+
const obj: any = {};
|
|
31311
|
+
if (message.user_id !== "") {
|
|
31312
|
+
obj.user_id = message.user_id;
|
|
31313
|
+
}
|
|
31314
|
+
if (message.activity_name !== "") {
|
|
31315
|
+
obj.activity_name = message.activity_name;
|
|
31316
|
+
}
|
|
31317
|
+
if (message.activity_type !== 0) {
|
|
31318
|
+
obj.activity_type = Math.round(message.activity_type);
|
|
31319
|
+
}
|
|
31320
|
+
if (message.activity_description !== "") {
|
|
31321
|
+
obj.activity_description = message.activity_description;
|
|
31322
|
+
}
|
|
31323
|
+
if (message.start_time !== undefined) {
|
|
31324
|
+
obj.start_time = message.start_time.toISOString();
|
|
31325
|
+
}
|
|
31326
|
+
if (message.end_time !== undefined) {
|
|
31327
|
+
obj.end_time = message.end_time.toISOString();
|
|
31328
|
+
}
|
|
31329
|
+
if (message.application_id !== "") {
|
|
31330
|
+
obj.application_id = message.application_id;
|
|
31331
|
+
}
|
|
31332
|
+
if (message.status !== 0) {
|
|
31333
|
+
obj.status = Math.round(message.status);
|
|
31334
|
+
}
|
|
31335
|
+
return obj;
|
|
31336
|
+
},
|
|
31337
|
+
|
|
31338
|
+
create<I extends Exact<DeepPartial<UserActivity>, I>>(base?: I): UserActivity {
|
|
31339
|
+
return UserActivity.fromPartial(base ?? ({} as any));
|
|
31340
|
+
},
|
|
31341
|
+
fromPartial<I extends Exact<DeepPartial<UserActivity>, I>>(object: I): UserActivity {
|
|
31342
|
+
const message = createBaseUserActivity();
|
|
31343
|
+
message.user_id = object.user_id ?? "";
|
|
31344
|
+
message.activity_name = object.activity_name ?? "";
|
|
31345
|
+
message.activity_type = object.activity_type ?? 0;
|
|
31346
|
+
message.activity_description = object.activity_description ?? "";
|
|
31347
|
+
message.start_time = object.start_time ?? undefined;
|
|
31348
|
+
message.end_time = object.end_time ?? undefined;
|
|
31349
|
+
message.application_id = object.application_id ?? "";
|
|
31350
|
+
message.status = object.status ?? 0;
|
|
31351
|
+
return message;
|
|
31352
|
+
},
|
|
31353
|
+
};
|
|
31354
|
+
|
|
31355
|
+
function createBaseListUserActivity(): ListUserActivity {
|
|
31356
|
+
return { activities: [] };
|
|
31357
|
+
}
|
|
31358
|
+
|
|
31359
|
+
export const ListUserActivity = {
|
|
31360
|
+
encode(message: ListUserActivity, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
31361
|
+
for (const v of message.activities) {
|
|
31362
|
+
UserActivity.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
31363
|
+
}
|
|
31364
|
+
return writer;
|
|
31365
|
+
},
|
|
31366
|
+
|
|
31367
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListUserActivity {
|
|
31368
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31369
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31370
|
+
const message = createBaseListUserActivity();
|
|
31371
|
+
while (reader.pos < end) {
|
|
31372
|
+
const tag = reader.uint32();
|
|
31373
|
+
switch (tag >>> 3) {
|
|
31374
|
+
case 1:
|
|
31375
|
+
if (tag !== 10) {
|
|
31376
|
+
break;
|
|
31377
|
+
}
|
|
31378
|
+
|
|
31379
|
+
message.activities.push(UserActivity.decode(reader, reader.uint32()));
|
|
31380
|
+
continue;
|
|
31381
|
+
}
|
|
31382
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31383
|
+
break;
|
|
31384
|
+
}
|
|
31385
|
+
reader.skipType(tag & 7);
|
|
31386
|
+
}
|
|
31387
|
+
return message;
|
|
31388
|
+
},
|
|
31389
|
+
|
|
31390
|
+
fromJSON(object: any): ListUserActivity {
|
|
31391
|
+
return {
|
|
31392
|
+
activities: globalThis.Array.isArray(object?.activities)
|
|
31393
|
+
? object.activities.map((e: any) => UserActivity.fromJSON(e))
|
|
31394
|
+
: [],
|
|
31395
|
+
};
|
|
31396
|
+
},
|
|
31397
|
+
|
|
31398
|
+
toJSON(message: ListUserActivity): unknown {
|
|
31399
|
+
const obj: any = {};
|
|
31400
|
+
if (message.activities?.length) {
|
|
31401
|
+
obj.activities = message.activities.map((e) => UserActivity.toJSON(e));
|
|
31402
|
+
}
|
|
31403
|
+
return obj;
|
|
31404
|
+
},
|
|
31405
|
+
|
|
31406
|
+
create<I extends Exact<DeepPartial<ListUserActivity>, I>>(base?: I): ListUserActivity {
|
|
31407
|
+
return ListUserActivity.fromPartial(base ?? ({} as any));
|
|
31408
|
+
},
|
|
31409
|
+
fromPartial<I extends Exact<DeepPartial<ListUserActivity>, I>>(object: I): ListUserActivity {
|
|
31410
|
+
const message = createBaseListUserActivity();
|
|
31411
|
+
message.activities = object.activities?.map((e) => UserActivity.fromPartial(e)) || [];
|
|
31412
|
+
return message;
|
|
31413
|
+
},
|
|
31414
|
+
};
|
|
31415
|
+
|
|
31416
|
+
function createBaseCreateActivityRequest(): CreateActivityRequest {
|
|
31417
|
+
return {
|
|
31418
|
+
activity_name: "",
|
|
31419
|
+
activity_type: 0,
|
|
31420
|
+
activity_description: "",
|
|
31421
|
+
start_time: undefined,
|
|
31422
|
+
application_id: "",
|
|
31423
|
+
status: 0,
|
|
31424
|
+
};
|
|
31425
|
+
}
|
|
31426
|
+
|
|
31427
|
+
export const CreateActivityRequest = {
|
|
31428
|
+
encode(message: CreateActivityRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
31429
|
+
if (message.activity_name !== "") {
|
|
31430
|
+
writer.uint32(10).string(message.activity_name);
|
|
31431
|
+
}
|
|
31432
|
+
if (message.activity_type !== 0) {
|
|
31433
|
+
writer.uint32(16).int32(message.activity_type);
|
|
31434
|
+
}
|
|
31435
|
+
if (message.activity_description !== "") {
|
|
31436
|
+
writer.uint32(26).string(message.activity_description);
|
|
31437
|
+
}
|
|
31438
|
+
if (message.start_time !== undefined) {
|
|
31439
|
+
Timestamp.encode(toTimestamp(message.start_time), writer.uint32(34).fork()).ldelim();
|
|
31440
|
+
}
|
|
31441
|
+
if (message.application_id !== "") {
|
|
31442
|
+
writer.uint32(42).string(message.application_id);
|
|
31443
|
+
}
|
|
31444
|
+
if (message.status !== 0) {
|
|
31445
|
+
writer.uint32(48).int32(message.status);
|
|
31446
|
+
}
|
|
31447
|
+
return writer;
|
|
31448
|
+
},
|
|
31449
|
+
|
|
31450
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CreateActivityRequest {
|
|
31451
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31452
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31453
|
+
const message = createBaseCreateActivityRequest();
|
|
31454
|
+
while (reader.pos < end) {
|
|
31455
|
+
const tag = reader.uint32();
|
|
31456
|
+
switch (tag >>> 3) {
|
|
31457
|
+
case 1:
|
|
31458
|
+
if (tag !== 10) {
|
|
31459
|
+
break;
|
|
31460
|
+
}
|
|
31461
|
+
|
|
31462
|
+
message.activity_name = reader.string();
|
|
31463
|
+
continue;
|
|
31464
|
+
case 2:
|
|
31465
|
+
if (tag !== 16) {
|
|
31466
|
+
break;
|
|
31467
|
+
}
|
|
31468
|
+
|
|
31469
|
+
message.activity_type = reader.int32();
|
|
31470
|
+
continue;
|
|
31471
|
+
case 3:
|
|
31472
|
+
if (tag !== 26) {
|
|
31473
|
+
break;
|
|
31474
|
+
}
|
|
31475
|
+
|
|
31476
|
+
message.activity_description = reader.string();
|
|
31477
|
+
continue;
|
|
31478
|
+
case 4:
|
|
31479
|
+
if (tag !== 34) {
|
|
31480
|
+
break;
|
|
31481
|
+
}
|
|
31482
|
+
|
|
31483
|
+
message.start_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
31484
|
+
continue;
|
|
31485
|
+
case 5:
|
|
31486
|
+
if (tag !== 42) {
|
|
31487
|
+
break;
|
|
31488
|
+
}
|
|
31489
|
+
|
|
31490
|
+
message.application_id = reader.string();
|
|
31491
|
+
continue;
|
|
31492
|
+
case 6:
|
|
31493
|
+
if (tag !== 48) {
|
|
31494
|
+
break;
|
|
31495
|
+
}
|
|
31496
|
+
|
|
31497
|
+
message.status = reader.int32();
|
|
31498
|
+
continue;
|
|
31499
|
+
}
|
|
31500
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31501
|
+
break;
|
|
31502
|
+
}
|
|
31503
|
+
reader.skipType(tag & 7);
|
|
31504
|
+
}
|
|
31505
|
+
return message;
|
|
31506
|
+
},
|
|
31507
|
+
|
|
31508
|
+
fromJSON(object: any): CreateActivityRequest {
|
|
31509
|
+
return {
|
|
31510
|
+
activity_name: isSet(object.activity_name) ? globalThis.String(object.activity_name) : "",
|
|
31511
|
+
activity_type: isSet(object.activity_type) ? globalThis.Number(object.activity_type) : 0,
|
|
31512
|
+
activity_description: isSet(object.activity_description) ? globalThis.String(object.activity_description) : "",
|
|
31513
|
+
start_time: isSet(object.start_time) ? fromJsonTimestamp(object.start_time) : undefined,
|
|
31514
|
+
application_id: isSet(object.application_id) ? globalThis.String(object.application_id) : "",
|
|
31515
|
+
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
31516
|
+
};
|
|
31517
|
+
},
|
|
31518
|
+
|
|
31519
|
+
toJSON(message: CreateActivityRequest): unknown {
|
|
31520
|
+
const obj: any = {};
|
|
31521
|
+
if (message.activity_name !== "") {
|
|
31522
|
+
obj.activity_name = message.activity_name;
|
|
31523
|
+
}
|
|
31524
|
+
if (message.activity_type !== 0) {
|
|
31525
|
+
obj.activity_type = Math.round(message.activity_type);
|
|
31526
|
+
}
|
|
31527
|
+
if (message.activity_description !== "") {
|
|
31528
|
+
obj.activity_description = message.activity_description;
|
|
31529
|
+
}
|
|
31530
|
+
if (message.start_time !== undefined) {
|
|
31531
|
+
obj.start_time = message.start_time.toISOString();
|
|
31532
|
+
}
|
|
31533
|
+
if (message.application_id !== "") {
|
|
31534
|
+
obj.application_id = message.application_id;
|
|
31535
|
+
}
|
|
31536
|
+
if (message.status !== 0) {
|
|
31537
|
+
obj.status = Math.round(message.status);
|
|
31538
|
+
}
|
|
31539
|
+
return obj;
|
|
31540
|
+
},
|
|
31541
|
+
|
|
31542
|
+
create<I extends Exact<DeepPartial<CreateActivityRequest>, I>>(base?: I): CreateActivityRequest {
|
|
31543
|
+
return CreateActivityRequest.fromPartial(base ?? ({} as any));
|
|
31544
|
+
},
|
|
31545
|
+
fromPartial<I extends Exact<DeepPartial<CreateActivityRequest>, I>>(object: I): CreateActivityRequest {
|
|
31546
|
+
const message = createBaseCreateActivityRequest();
|
|
31547
|
+
message.activity_name = object.activity_name ?? "";
|
|
31548
|
+
message.activity_type = object.activity_type ?? 0;
|
|
31549
|
+
message.activity_description = object.activity_description ?? "";
|
|
31550
|
+
message.start_time = object.start_time ?? undefined;
|
|
31551
|
+
message.application_id = object.application_id ?? "";
|
|
31552
|
+
message.status = object.status ?? 0;
|
|
31553
|
+
return message;
|
|
31554
|
+
},
|
|
31555
|
+
};
|
|
31556
|
+
|
|
31158
31557
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
31159
31558
|
|
|
31160
31559
|
export type DeepPartial<T> = T extends Builtin ? T
|
|
@@ -2620,6 +2620,27 @@ export interface ListFavoriteChannelRequest {
|
|
|
2620
2620
|
export interface ListFavoriteChannelResponse {
|
|
2621
2621
|
channel_ids: string[];
|
|
2622
2622
|
}
|
|
2623
|
+
export interface UserActivity {
|
|
2624
|
+
user_id: string;
|
|
2625
|
+
activity_name: string;
|
|
2626
|
+
activity_type: number;
|
|
2627
|
+
activity_description: string;
|
|
2628
|
+
start_time: Date | undefined;
|
|
2629
|
+
end_time: Date | undefined;
|
|
2630
|
+
application_id: string;
|
|
2631
|
+
status: number;
|
|
2632
|
+
}
|
|
2633
|
+
export interface ListUserActivity {
|
|
2634
|
+
activities: UserActivity[];
|
|
2635
|
+
}
|
|
2636
|
+
export interface CreateActivityRequest {
|
|
2637
|
+
activity_name: string;
|
|
2638
|
+
activity_type: number;
|
|
2639
|
+
activity_description: string;
|
|
2640
|
+
start_time: Date | undefined;
|
|
2641
|
+
application_id: string;
|
|
2642
|
+
status: number;
|
|
2643
|
+
}
|
|
2623
2644
|
export declare const Account: {
|
|
2624
2645
|
encode(message: Account, writer?: _m0.Writer): _m0.Writer;
|
|
2625
2646
|
decode(input: _m0.Reader | Uint8Array, length?: number): Account;
|
|
@@ -17776,6 +17797,192 @@ export declare const ListFavoriteChannelResponse: {
|
|
|
17776
17797
|
channel_ids?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["channel_ids"], keyof string[]>]: never; }) | undefined;
|
|
17777
17798
|
} & { [K_3 in Exclude<keyof I_1, "channel_ids">]: never; }>(object: I_1): ListFavoriteChannelResponse;
|
|
17778
17799
|
};
|
|
17800
|
+
export declare const UserActivity: {
|
|
17801
|
+
encode(message: UserActivity, writer?: _m0.Writer): _m0.Writer;
|
|
17802
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UserActivity;
|
|
17803
|
+
fromJSON(object: any): UserActivity;
|
|
17804
|
+
toJSON(message: UserActivity): unknown;
|
|
17805
|
+
create<I extends {
|
|
17806
|
+
user_id?: string | undefined;
|
|
17807
|
+
activity_name?: string | undefined;
|
|
17808
|
+
activity_type?: number | undefined;
|
|
17809
|
+
activity_description?: string | undefined;
|
|
17810
|
+
start_time?: Date | undefined;
|
|
17811
|
+
end_time?: Date | undefined;
|
|
17812
|
+
application_id?: string | undefined;
|
|
17813
|
+
status?: number | undefined;
|
|
17814
|
+
} & {
|
|
17815
|
+
user_id?: string | undefined;
|
|
17816
|
+
activity_name?: string | undefined;
|
|
17817
|
+
activity_type?: number | undefined;
|
|
17818
|
+
activity_description?: string | undefined;
|
|
17819
|
+
start_time?: Date | undefined;
|
|
17820
|
+
end_time?: Date | undefined;
|
|
17821
|
+
application_id?: string | undefined;
|
|
17822
|
+
status?: number | undefined;
|
|
17823
|
+
} & { [K in Exclude<keyof I, keyof UserActivity>]: never; }>(base?: I | undefined): UserActivity;
|
|
17824
|
+
fromPartial<I_1 extends {
|
|
17825
|
+
user_id?: string | undefined;
|
|
17826
|
+
activity_name?: string | undefined;
|
|
17827
|
+
activity_type?: number | undefined;
|
|
17828
|
+
activity_description?: string | undefined;
|
|
17829
|
+
start_time?: Date | undefined;
|
|
17830
|
+
end_time?: Date | undefined;
|
|
17831
|
+
application_id?: string | undefined;
|
|
17832
|
+
status?: number | undefined;
|
|
17833
|
+
} & {
|
|
17834
|
+
user_id?: string | undefined;
|
|
17835
|
+
activity_name?: string | undefined;
|
|
17836
|
+
activity_type?: number | undefined;
|
|
17837
|
+
activity_description?: string | undefined;
|
|
17838
|
+
start_time?: Date | undefined;
|
|
17839
|
+
end_time?: Date | undefined;
|
|
17840
|
+
application_id?: string | undefined;
|
|
17841
|
+
status?: number | undefined;
|
|
17842
|
+
} & { [K_1 in Exclude<keyof I_1, keyof UserActivity>]: never; }>(object: I_1): UserActivity;
|
|
17843
|
+
};
|
|
17844
|
+
export declare const ListUserActivity: {
|
|
17845
|
+
encode(message: ListUserActivity, writer?: _m0.Writer): _m0.Writer;
|
|
17846
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListUserActivity;
|
|
17847
|
+
fromJSON(object: any): ListUserActivity;
|
|
17848
|
+
toJSON(message: ListUserActivity): unknown;
|
|
17849
|
+
create<I extends {
|
|
17850
|
+
activities?: {
|
|
17851
|
+
user_id?: string | undefined;
|
|
17852
|
+
activity_name?: string | undefined;
|
|
17853
|
+
activity_type?: number | undefined;
|
|
17854
|
+
activity_description?: string | undefined;
|
|
17855
|
+
start_time?: Date | undefined;
|
|
17856
|
+
end_time?: Date | undefined;
|
|
17857
|
+
application_id?: string | undefined;
|
|
17858
|
+
status?: number | undefined;
|
|
17859
|
+
}[] | undefined;
|
|
17860
|
+
} & {
|
|
17861
|
+
activities?: ({
|
|
17862
|
+
user_id?: string | undefined;
|
|
17863
|
+
activity_name?: string | undefined;
|
|
17864
|
+
activity_type?: number | undefined;
|
|
17865
|
+
activity_description?: string | undefined;
|
|
17866
|
+
start_time?: Date | undefined;
|
|
17867
|
+
end_time?: Date | undefined;
|
|
17868
|
+
application_id?: string | undefined;
|
|
17869
|
+
status?: number | undefined;
|
|
17870
|
+
}[] & ({
|
|
17871
|
+
user_id?: string | undefined;
|
|
17872
|
+
activity_name?: string | undefined;
|
|
17873
|
+
activity_type?: number | undefined;
|
|
17874
|
+
activity_description?: string | undefined;
|
|
17875
|
+
start_time?: Date | undefined;
|
|
17876
|
+
end_time?: Date | undefined;
|
|
17877
|
+
application_id?: string | undefined;
|
|
17878
|
+
status?: number | undefined;
|
|
17879
|
+
} & {
|
|
17880
|
+
user_id?: string | undefined;
|
|
17881
|
+
activity_name?: string | undefined;
|
|
17882
|
+
activity_type?: number | undefined;
|
|
17883
|
+
activity_description?: string | undefined;
|
|
17884
|
+
start_time?: Date | undefined;
|
|
17885
|
+
end_time?: Date | undefined;
|
|
17886
|
+
application_id?: string | undefined;
|
|
17887
|
+
status?: number | undefined;
|
|
17888
|
+
} & { [K in Exclude<keyof I["activities"][number], keyof UserActivity>]: never; })[] & { [K_1 in Exclude<keyof I["activities"], keyof {
|
|
17889
|
+
user_id?: string | undefined;
|
|
17890
|
+
activity_name?: string | undefined;
|
|
17891
|
+
activity_type?: number | undefined;
|
|
17892
|
+
activity_description?: string | undefined;
|
|
17893
|
+
start_time?: Date | undefined;
|
|
17894
|
+
end_time?: Date | undefined;
|
|
17895
|
+
application_id?: string | undefined;
|
|
17896
|
+
status?: number | undefined;
|
|
17897
|
+
}[]>]: never; }) | undefined;
|
|
17898
|
+
} & { [K_2 in Exclude<keyof I, "activities">]: never; }>(base?: I | undefined): ListUserActivity;
|
|
17899
|
+
fromPartial<I_1 extends {
|
|
17900
|
+
activities?: {
|
|
17901
|
+
user_id?: string | undefined;
|
|
17902
|
+
activity_name?: string | undefined;
|
|
17903
|
+
activity_type?: number | undefined;
|
|
17904
|
+
activity_description?: string | undefined;
|
|
17905
|
+
start_time?: Date | undefined;
|
|
17906
|
+
end_time?: Date | undefined;
|
|
17907
|
+
application_id?: string | undefined;
|
|
17908
|
+
status?: number | undefined;
|
|
17909
|
+
}[] | undefined;
|
|
17910
|
+
} & {
|
|
17911
|
+
activities?: ({
|
|
17912
|
+
user_id?: string | undefined;
|
|
17913
|
+
activity_name?: string | undefined;
|
|
17914
|
+
activity_type?: number | undefined;
|
|
17915
|
+
activity_description?: string | undefined;
|
|
17916
|
+
start_time?: Date | undefined;
|
|
17917
|
+
end_time?: Date | undefined;
|
|
17918
|
+
application_id?: string | undefined;
|
|
17919
|
+
status?: number | undefined;
|
|
17920
|
+
}[] & ({
|
|
17921
|
+
user_id?: string | undefined;
|
|
17922
|
+
activity_name?: string | undefined;
|
|
17923
|
+
activity_type?: number | undefined;
|
|
17924
|
+
activity_description?: string | undefined;
|
|
17925
|
+
start_time?: Date | undefined;
|
|
17926
|
+
end_time?: Date | undefined;
|
|
17927
|
+
application_id?: string | undefined;
|
|
17928
|
+
status?: number | undefined;
|
|
17929
|
+
} & {
|
|
17930
|
+
user_id?: string | undefined;
|
|
17931
|
+
activity_name?: string | undefined;
|
|
17932
|
+
activity_type?: number | undefined;
|
|
17933
|
+
activity_description?: string | undefined;
|
|
17934
|
+
start_time?: Date | undefined;
|
|
17935
|
+
end_time?: Date | undefined;
|
|
17936
|
+
application_id?: string | undefined;
|
|
17937
|
+
status?: number | undefined;
|
|
17938
|
+
} & { [K_3 in Exclude<keyof I_1["activities"][number], keyof UserActivity>]: never; })[] & { [K_4 in Exclude<keyof I_1["activities"], keyof {
|
|
17939
|
+
user_id?: string | undefined;
|
|
17940
|
+
activity_name?: string | undefined;
|
|
17941
|
+
activity_type?: number | undefined;
|
|
17942
|
+
activity_description?: string | undefined;
|
|
17943
|
+
start_time?: Date | undefined;
|
|
17944
|
+
end_time?: Date | undefined;
|
|
17945
|
+
application_id?: string | undefined;
|
|
17946
|
+
status?: number | undefined;
|
|
17947
|
+
}[]>]: never; }) | undefined;
|
|
17948
|
+
} & { [K_5 in Exclude<keyof I_1, "activities">]: never; }>(object: I_1): ListUserActivity;
|
|
17949
|
+
};
|
|
17950
|
+
export declare const CreateActivityRequest: {
|
|
17951
|
+
encode(message: CreateActivityRequest, writer?: _m0.Writer): _m0.Writer;
|
|
17952
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CreateActivityRequest;
|
|
17953
|
+
fromJSON(object: any): CreateActivityRequest;
|
|
17954
|
+
toJSON(message: CreateActivityRequest): unknown;
|
|
17955
|
+
create<I extends {
|
|
17956
|
+
activity_name?: string | undefined;
|
|
17957
|
+
activity_type?: number | undefined;
|
|
17958
|
+
activity_description?: string | undefined;
|
|
17959
|
+
start_time?: Date | undefined;
|
|
17960
|
+
application_id?: string | undefined;
|
|
17961
|
+
status?: number | undefined;
|
|
17962
|
+
} & {
|
|
17963
|
+
activity_name?: string | undefined;
|
|
17964
|
+
activity_type?: number | undefined;
|
|
17965
|
+
activity_description?: string | undefined;
|
|
17966
|
+
start_time?: Date | undefined;
|
|
17967
|
+
application_id?: string | undefined;
|
|
17968
|
+
status?: number | undefined;
|
|
17969
|
+
} & { [K in Exclude<keyof I, keyof CreateActivityRequest>]: never; }>(base?: I | undefined): CreateActivityRequest;
|
|
17970
|
+
fromPartial<I_1 extends {
|
|
17971
|
+
activity_name?: string | undefined;
|
|
17972
|
+
activity_type?: number | undefined;
|
|
17973
|
+
activity_description?: string | undefined;
|
|
17974
|
+
start_time?: Date | undefined;
|
|
17975
|
+
application_id?: string | undefined;
|
|
17976
|
+
status?: number | undefined;
|
|
17977
|
+
} & {
|
|
17978
|
+
activity_name?: string | undefined;
|
|
17979
|
+
activity_type?: number | undefined;
|
|
17980
|
+
activity_description?: string | undefined;
|
|
17981
|
+
start_time?: Date | undefined;
|
|
17982
|
+
application_id?: string | undefined;
|
|
17983
|
+
status?: number | undefined;
|
|
17984
|
+
} & { [K_1 in Exclude<keyof I_1, keyof CreateActivityRequest>]: never; }>(object: I_1): CreateActivityRequest;
|
|
17985
|
+
};
|
|
17779
17986
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
17780
17987
|
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 {} ? {
|
|
17781
17988
|
[K in keyof T]?: DeepPartial<T[K]>;
|
package/package.json
CHANGED