theragist-ts 1.0.3
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/dist/auth/message.d.ts +242 -0
- package/dist/auth/message.js +2980 -0
- package/dist/auth/service.d.ts +239 -0
- package/dist/auth/service.js +963 -0
- package/dist/booking/message.d.ts +109 -0
- package/dist/booking/message.js +1263 -0
- package/dist/booking/service.d.ts +69 -0
- package/dist/booking/service.js +230 -0
- package/dist/common.d.ts +81 -0
- package/dist/common.js +641 -0
- package/dist/community/message.d.ts +67 -0
- package/dist/community/message.js +646 -0
- package/dist/community/service.d.ts +57 -0
- package/dist/community/service.js +213 -0
- package/dist/google/api/annotations.d.ts +1 -0
- package/dist/google/api/annotations.js +10 -0
- package/dist/google/api/http.d.ts +371 -0
- package/dist/google/api/http.js +360 -0
- package/dist/google/protobuf/descriptor.d.ts +884 -0
- package/dist/google/protobuf/descriptor.js +3595 -0
- package/dist/google/protobuf/struct.d.ts +107 -0
- package/dist/google/protobuf/struct.js +461 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +192 -0
- package/dist/lookup/message.d.ts +128 -0
- package/dist/lookup/message.js +1498 -0
- package/dist/lookup/service.d.ts +93 -0
- package/dist/lookup/service.js +334 -0
- package/dist/therapist/message.d.ts +67 -0
- package/dist/therapist/message.js +679 -0
- package/dist/therapist/service.d.ts +47 -0
- package/dist/therapist/service.js +159 -0
- package/dist/user/message.d.ts +114 -0
- package/dist/user/message.js +1342 -0
- package/dist/user/service.d.ts +172 -0
- package/dist/user/service.js +1041 -0
- package/package.json +43 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { BaseListRequest } from "../common";
|
|
3
|
+
export declare const protobufPackage = "pb";
|
|
4
|
+
export interface CreateBookingRequest {
|
|
5
|
+
therapistId: string;
|
|
6
|
+
startAt: string;
|
|
7
|
+
endAt: string;
|
|
8
|
+
notes: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CreateBookingResponse {
|
|
11
|
+
bookingId: string;
|
|
12
|
+
clientId: string;
|
|
13
|
+
therapistId: string;
|
|
14
|
+
startAt: string;
|
|
15
|
+
endAt: string;
|
|
16
|
+
status: string;
|
|
17
|
+
notes: string;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GetBookingRequest {
|
|
21
|
+
bookingId: string;
|
|
22
|
+
}
|
|
23
|
+
export interface BookingDetails {
|
|
24
|
+
bookingId: string;
|
|
25
|
+
clientId: string;
|
|
26
|
+
therapistId: string;
|
|
27
|
+
startAt: string;
|
|
28
|
+
endAt: string;
|
|
29
|
+
status: string;
|
|
30
|
+
notes: string;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
updatedAt: string;
|
|
33
|
+
}
|
|
34
|
+
export interface ListBookingsRequest {
|
|
35
|
+
pagination: BaseListRequest | undefined;
|
|
36
|
+
role: string;
|
|
37
|
+
status: string;
|
|
38
|
+
from: string;
|
|
39
|
+
to: string;
|
|
40
|
+
}
|
|
41
|
+
export interface ListBookingsResponse {
|
|
42
|
+
items: BookingItem[];
|
|
43
|
+
}
|
|
44
|
+
export interface BookingItem {
|
|
45
|
+
bookingId: string;
|
|
46
|
+
startAt: string;
|
|
47
|
+
endAt: string;
|
|
48
|
+
status: string;
|
|
49
|
+
therapist: ParticipantInfo | undefined;
|
|
50
|
+
client: ParticipantInfo | undefined;
|
|
51
|
+
}
|
|
52
|
+
export interface ParticipantInfo {
|
|
53
|
+
userId: string;
|
|
54
|
+
fullName: string;
|
|
55
|
+
avatarUrl: string;
|
|
56
|
+
}
|
|
57
|
+
export interface RescheduleBookingRequest {
|
|
58
|
+
bookingId: string;
|
|
59
|
+
startAt: string;
|
|
60
|
+
endAt: string;
|
|
61
|
+
}
|
|
62
|
+
export interface RescheduleBookingResponse {
|
|
63
|
+
bookingId: string;
|
|
64
|
+
startAt: string;
|
|
65
|
+
endAt: string;
|
|
66
|
+
status: string;
|
|
67
|
+
updatedAt: string;
|
|
68
|
+
}
|
|
69
|
+
export interface CancelBookingRequest {
|
|
70
|
+
bookingId: string;
|
|
71
|
+
reason: string;
|
|
72
|
+
}
|
|
73
|
+
export interface CancelBookingResponse {
|
|
74
|
+
bookingId: string;
|
|
75
|
+
status: string;
|
|
76
|
+
cancelReason: string;
|
|
77
|
+
cancelledAt: string;
|
|
78
|
+
}
|
|
79
|
+
export declare const CreateBookingRequest: MessageFns<CreateBookingRequest>;
|
|
80
|
+
export declare const CreateBookingResponse: MessageFns<CreateBookingResponse>;
|
|
81
|
+
export declare const GetBookingRequest: MessageFns<GetBookingRequest>;
|
|
82
|
+
export declare const BookingDetails: MessageFns<BookingDetails>;
|
|
83
|
+
export declare const ListBookingsRequest: MessageFns<ListBookingsRequest>;
|
|
84
|
+
export declare const ListBookingsResponse: MessageFns<ListBookingsResponse>;
|
|
85
|
+
export declare const BookingItem: MessageFns<BookingItem>;
|
|
86
|
+
export declare const ParticipantInfo: MessageFns<ParticipantInfo>;
|
|
87
|
+
export declare const RescheduleBookingRequest: MessageFns<RescheduleBookingRequest>;
|
|
88
|
+
export declare const RescheduleBookingResponse: MessageFns<RescheduleBookingResponse>;
|
|
89
|
+
export declare const CancelBookingRequest: MessageFns<CancelBookingRequest>;
|
|
90
|
+
export declare const CancelBookingResponse: MessageFns<CancelBookingResponse>;
|
|
91
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
92
|
+
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 {} ? {
|
|
93
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
94
|
+
} : Partial<T>;
|
|
95
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
96
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
97
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
98
|
+
} & {
|
|
99
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
100
|
+
};
|
|
101
|
+
export interface MessageFns<T> {
|
|
102
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
103
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
104
|
+
fromJSON(object: any): T;
|
|
105
|
+
toJSON(message: T): unknown;
|
|
106
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
107
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
108
|
+
}
|
|
109
|
+
export {};
|