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.
Files changed (37) hide show
  1. package/dist/auth/message.d.ts +242 -0
  2. package/dist/auth/message.js +2980 -0
  3. package/dist/auth/service.d.ts +239 -0
  4. package/dist/auth/service.js +963 -0
  5. package/dist/booking/message.d.ts +109 -0
  6. package/dist/booking/message.js +1263 -0
  7. package/dist/booking/service.d.ts +69 -0
  8. package/dist/booking/service.js +230 -0
  9. package/dist/common.d.ts +81 -0
  10. package/dist/common.js +641 -0
  11. package/dist/community/message.d.ts +67 -0
  12. package/dist/community/message.js +646 -0
  13. package/dist/community/service.d.ts +57 -0
  14. package/dist/community/service.js +213 -0
  15. package/dist/google/api/annotations.d.ts +1 -0
  16. package/dist/google/api/annotations.js +10 -0
  17. package/dist/google/api/http.d.ts +371 -0
  18. package/dist/google/api/http.js +360 -0
  19. package/dist/google/protobuf/descriptor.d.ts +884 -0
  20. package/dist/google/protobuf/descriptor.js +3595 -0
  21. package/dist/google/protobuf/struct.d.ts +107 -0
  22. package/dist/google/protobuf/struct.js +461 -0
  23. package/dist/index.d.ts +16 -0
  24. package/dist/index.js +192 -0
  25. package/dist/lookup/message.d.ts +128 -0
  26. package/dist/lookup/message.js +1498 -0
  27. package/dist/lookup/service.d.ts +93 -0
  28. package/dist/lookup/service.js +334 -0
  29. package/dist/therapist/message.d.ts +67 -0
  30. package/dist/therapist/message.js +679 -0
  31. package/dist/therapist/service.d.ts +47 -0
  32. package/dist/therapist/service.js +159 -0
  33. package/dist/user/message.d.ts +114 -0
  34. package/dist/user/message.js +1342 -0
  35. package/dist/user/service.d.ts +172 -0
  36. package/dist/user/service.js +1041 -0
  37. package/package.json +43 -0
@@ -0,0 +1,1263 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.10.1
5
+ // protoc v3.21.12
6
+ // source: booking/message.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.CancelBookingResponse = exports.CancelBookingRequest = exports.RescheduleBookingResponse = exports.RescheduleBookingRequest = exports.ParticipantInfo = exports.BookingItem = exports.ListBookingsResponse = exports.ListBookingsRequest = exports.BookingDetails = exports.GetBookingRequest = exports.CreateBookingResponse = exports.CreateBookingRequest = exports.protobufPackage = void 0;
9
+ /* eslint-disable */
10
+ const wire_1 = require("@bufbuild/protobuf/wire");
11
+ const common_1 = require("../common");
12
+ exports.protobufPackage = "pb";
13
+ function createBaseCreateBookingRequest() {
14
+ return { therapistId: "", startAt: "", endAt: "", notes: "" };
15
+ }
16
+ exports.CreateBookingRequest = {
17
+ encode(message, writer = new wire_1.BinaryWriter()) {
18
+ if (message.therapistId !== "") {
19
+ writer.uint32(10).string(message.therapistId);
20
+ }
21
+ if (message.startAt !== "") {
22
+ writer.uint32(18).string(message.startAt);
23
+ }
24
+ if (message.endAt !== "") {
25
+ writer.uint32(26).string(message.endAt);
26
+ }
27
+ if (message.notes !== "") {
28
+ writer.uint32(34).string(message.notes);
29
+ }
30
+ return writer;
31
+ },
32
+ decode(input, length) {
33
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
34
+ const end = length === undefined ? reader.len : reader.pos + length;
35
+ const message = createBaseCreateBookingRequest();
36
+ while (reader.pos < end) {
37
+ const tag = reader.uint32();
38
+ switch (tag >>> 3) {
39
+ case 1: {
40
+ if (tag !== 10) {
41
+ break;
42
+ }
43
+ message.therapistId = reader.string();
44
+ continue;
45
+ }
46
+ case 2: {
47
+ if (tag !== 18) {
48
+ break;
49
+ }
50
+ message.startAt = reader.string();
51
+ continue;
52
+ }
53
+ case 3: {
54
+ if (tag !== 26) {
55
+ break;
56
+ }
57
+ message.endAt = reader.string();
58
+ continue;
59
+ }
60
+ case 4: {
61
+ if (tag !== 34) {
62
+ break;
63
+ }
64
+ message.notes = reader.string();
65
+ continue;
66
+ }
67
+ }
68
+ if ((tag & 7) === 4 || tag === 0) {
69
+ break;
70
+ }
71
+ reader.skip(tag & 7);
72
+ }
73
+ return message;
74
+ },
75
+ fromJSON(object) {
76
+ return {
77
+ therapistId: isSet(object.therapistId) ? globalThis.String(object.therapistId) : "",
78
+ startAt: isSet(object.startAt) ? globalThis.String(object.startAt) : "",
79
+ endAt: isSet(object.endAt) ? globalThis.String(object.endAt) : "",
80
+ notes: isSet(object.notes) ? globalThis.String(object.notes) : "",
81
+ };
82
+ },
83
+ toJSON(message) {
84
+ const obj = {};
85
+ if (message.therapistId !== "") {
86
+ obj.therapistId = message.therapistId;
87
+ }
88
+ if (message.startAt !== "") {
89
+ obj.startAt = message.startAt;
90
+ }
91
+ if (message.endAt !== "") {
92
+ obj.endAt = message.endAt;
93
+ }
94
+ if (message.notes !== "") {
95
+ obj.notes = message.notes;
96
+ }
97
+ return obj;
98
+ },
99
+ create(base) {
100
+ return exports.CreateBookingRequest.fromPartial(base !== null && base !== void 0 ? base : {});
101
+ },
102
+ fromPartial(object) {
103
+ var _a, _b, _c, _d;
104
+ const message = createBaseCreateBookingRequest();
105
+ message.therapistId = (_a = object.therapistId) !== null && _a !== void 0 ? _a : "";
106
+ message.startAt = (_b = object.startAt) !== null && _b !== void 0 ? _b : "";
107
+ message.endAt = (_c = object.endAt) !== null && _c !== void 0 ? _c : "";
108
+ message.notes = (_d = object.notes) !== null && _d !== void 0 ? _d : "";
109
+ return message;
110
+ },
111
+ };
112
+ function createBaseCreateBookingResponse() {
113
+ return { bookingId: "", clientId: "", therapistId: "", startAt: "", endAt: "", status: "", notes: "", createdAt: "" };
114
+ }
115
+ exports.CreateBookingResponse = {
116
+ encode(message, writer = new wire_1.BinaryWriter()) {
117
+ if (message.bookingId !== "") {
118
+ writer.uint32(10).string(message.bookingId);
119
+ }
120
+ if (message.clientId !== "") {
121
+ writer.uint32(18).string(message.clientId);
122
+ }
123
+ if (message.therapistId !== "") {
124
+ writer.uint32(26).string(message.therapistId);
125
+ }
126
+ if (message.startAt !== "") {
127
+ writer.uint32(34).string(message.startAt);
128
+ }
129
+ if (message.endAt !== "") {
130
+ writer.uint32(42).string(message.endAt);
131
+ }
132
+ if (message.status !== "") {
133
+ writer.uint32(50).string(message.status);
134
+ }
135
+ if (message.notes !== "") {
136
+ writer.uint32(58).string(message.notes);
137
+ }
138
+ if (message.createdAt !== "") {
139
+ writer.uint32(66).string(message.createdAt);
140
+ }
141
+ return writer;
142
+ },
143
+ decode(input, length) {
144
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
145
+ const end = length === undefined ? reader.len : reader.pos + length;
146
+ const message = createBaseCreateBookingResponse();
147
+ while (reader.pos < end) {
148
+ const tag = reader.uint32();
149
+ switch (tag >>> 3) {
150
+ case 1: {
151
+ if (tag !== 10) {
152
+ break;
153
+ }
154
+ message.bookingId = reader.string();
155
+ continue;
156
+ }
157
+ case 2: {
158
+ if (tag !== 18) {
159
+ break;
160
+ }
161
+ message.clientId = reader.string();
162
+ continue;
163
+ }
164
+ case 3: {
165
+ if (tag !== 26) {
166
+ break;
167
+ }
168
+ message.therapistId = reader.string();
169
+ continue;
170
+ }
171
+ case 4: {
172
+ if (tag !== 34) {
173
+ break;
174
+ }
175
+ message.startAt = reader.string();
176
+ continue;
177
+ }
178
+ case 5: {
179
+ if (tag !== 42) {
180
+ break;
181
+ }
182
+ message.endAt = reader.string();
183
+ continue;
184
+ }
185
+ case 6: {
186
+ if (tag !== 50) {
187
+ break;
188
+ }
189
+ message.status = reader.string();
190
+ continue;
191
+ }
192
+ case 7: {
193
+ if (tag !== 58) {
194
+ break;
195
+ }
196
+ message.notes = reader.string();
197
+ continue;
198
+ }
199
+ case 8: {
200
+ if (tag !== 66) {
201
+ break;
202
+ }
203
+ message.createdAt = reader.string();
204
+ continue;
205
+ }
206
+ }
207
+ if ((tag & 7) === 4 || tag === 0) {
208
+ break;
209
+ }
210
+ reader.skip(tag & 7);
211
+ }
212
+ return message;
213
+ },
214
+ fromJSON(object) {
215
+ return {
216
+ bookingId: isSet(object.bookingId) ? globalThis.String(object.bookingId) : "",
217
+ clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
218
+ therapistId: isSet(object.therapistId) ? globalThis.String(object.therapistId) : "",
219
+ startAt: isSet(object.startAt) ? globalThis.String(object.startAt) : "",
220
+ endAt: isSet(object.endAt) ? globalThis.String(object.endAt) : "",
221
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
222
+ notes: isSet(object.notes) ? globalThis.String(object.notes) : "",
223
+ createdAt: isSet(object.createdAt) ? globalThis.String(object.createdAt) : "",
224
+ };
225
+ },
226
+ toJSON(message) {
227
+ const obj = {};
228
+ if (message.bookingId !== "") {
229
+ obj.bookingId = message.bookingId;
230
+ }
231
+ if (message.clientId !== "") {
232
+ obj.clientId = message.clientId;
233
+ }
234
+ if (message.therapistId !== "") {
235
+ obj.therapistId = message.therapistId;
236
+ }
237
+ if (message.startAt !== "") {
238
+ obj.startAt = message.startAt;
239
+ }
240
+ if (message.endAt !== "") {
241
+ obj.endAt = message.endAt;
242
+ }
243
+ if (message.status !== "") {
244
+ obj.status = message.status;
245
+ }
246
+ if (message.notes !== "") {
247
+ obj.notes = message.notes;
248
+ }
249
+ if (message.createdAt !== "") {
250
+ obj.createdAt = message.createdAt;
251
+ }
252
+ return obj;
253
+ },
254
+ create(base) {
255
+ return exports.CreateBookingResponse.fromPartial(base !== null && base !== void 0 ? base : {});
256
+ },
257
+ fromPartial(object) {
258
+ var _a, _b, _c, _d, _e, _f, _g, _h;
259
+ const message = createBaseCreateBookingResponse();
260
+ message.bookingId = (_a = object.bookingId) !== null && _a !== void 0 ? _a : "";
261
+ message.clientId = (_b = object.clientId) !== null && _b !== void 0 ? _b : "";
262
+ message.therapistId = (_c = object.therapistId) !== null && _c !== void 0 ? _c : "";
263
+ message.startAt = (_d = object.startAt) !== null && _d !== void 0 ? _d : "";
264
+ message.endAt = (_e = object.endAt) !== null && _e !== void 0 ? _e : "";
265
+ message.status = (_f = object.status) !== null && _f !== void 0 ? _f : "";
266
+ message.notes = (_g = object.notes) !== null && _g !== void 0 ? _g : "";
267
+ message.createdAt = (_h = object.createdAt) !== null && _h !== void 0 ? _h : "";
268
+ return message;
269
+ },
270
+ };
271
+ function createBaseGetBookingRequest() {
272
+ return { bookingId: "" };
273
+ }
274
+ exports.GetBookingRequest = {
275
+ encode(message, writer = new wire_1.BinaryWriter()) {
276
+ if (message.bookingId !== "") {
277
+ writer.uint32(10).string(message.bookingId);
278
+ }
279
+ return writer;
280
+ },
281
+ decode(input, length) {
282
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
283
+ const end = length === undefined ? reader.len : reader.pos + length;
284
+ const message = createBaseGetBookingRequest();
285
+ while (reader.pos < end) {
286
+ const tag = reader.uint32();
287
+ switch (tag >>> 3) {
288
+ case 1: {
289
+ if (tag !== 10) {
290
+ break;
291
+ }
292
+ message.bookingId = reader.string();
293
+ continue;
294
+ }
295
+ }
296
+ if ((tag & 7) === 4 || tag === 0) {
297
+ break;
298
+ }
299
+ reader.skip(tag & 7);
300
+ }
301
+ return message;
302
+ },
303
+ fromJSON(object) {
304
+ return { bookingId: isSet(object.bookingId) ? globalThis.String(object.bookingId) : "" };
305
+ },
306
+ toJSON(message) {
307
+ const obj = {};
308
+ if (message.bookingId !== "") {
309
+ obj.bookingId = message.bookingId;
310
+ }
311
+ return obj;
312
+ },
313
+ create(base) {
314
+ return exports.GetBookingRequest.fromPartial(base !== null && base !== void 0 ? base : {});
315
+ },
316
+ fromPartial(object) {
317
+ var _a;
318
+ const message = createBaseGetBookingRequest();
319
+ message.bookingId = (_a = object.bookingId) !== null && _a !== void 0 ? _a : "";
320
+ return message;
321
+ },
322
+ };
323
+ function createBaseBookingDetails() {
324
+ return {
325
+ bookingId: "",
326
+ clientId: "",
327
+ therapistId: "",
328
+ startAt: "",
329
+ endAt: "",
330
+ status: "",
331
+ notes: "",
332
+ createdAt: "",
333
+ updatedAt: "",
334
+ };
335
+ }
336
+ exports.BookingDetails = {
337
+ encode(message, writer = new wire_1.BinaryWriter()) {
338
+ if (message.bookingId !== "") {
339
+ writer.uint32(10).string(message.bookingId);
340
+ }
341
+ if (message.clientId !== "") {
342
+ writer.uint32(18).string(message.clientId);
343
+ }
344
+ if (message.therapistId !== "") {
345
+ writer.uint32(26).string(message.therapistId);
346
+ }
347
+ if (message.startAt !== "") {
348
+ writer.uint32(34).string(message.startAt);
349
+ }
350
+ if (message.endAt !== "") {
351
+ writer.uint32(42).string(message.endAt);
352
+ }
353
+ if (message.status !== "") {
354
+ writer.uint32(50).string(message.status);
355
+ }
356
+ if (message.notes !== "") {
357
+ writer.uint32(58).string(message.notes);
358
+ }
359
+ if (message.createdAt !== "") {
360
+ writer.uint32(66).string(message.createdAt);
361
+ }
362
+ if (message.updatedAt !== "") {
363
+ writer.uint32(74).string(message.updatedAt);
364
+ }
365
+ return writer;
366
+ },
367
+ decode(input, length) {
368
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
369
+ const end = length === undefined ? reader.len : reader.pos + length;
370
+ const message = createBaseBookingDetails();
371
+ while (reader.pos < end) {
372
+ const tag = reader.uint32();
373
+ switch (tag >>> 3) {
374
+ case 1: {
375
+ if (tag !== 10) {
376
+ break;
377
+ }
378
+ message.bookingId = reader.string();
379
+ continue;
380
+ }
381
+ case 2: {
382
+ if (tag !== 18) {
383
+ break;
384
+ }
385
+ message.clientId = reader.string();
386
+ continue;
387
+ }
388
+ case 3: {
389
+ if (tag !== 26) {
390
+ break;
391
+ }
392
+ message.therapistId = reader.string();
393
+ continue;
394
+ }
395
+ case 4: {
396
+ if (tag !== 34) {
397
+ break;
398
+ }
399
+ message.startAt = reader.string();
400
+ continue;
401
+ }
402
+ case 5: {
403
+ if (tag !== 42) {
404
+ break;
405
+ }
406
+ message.endAt = reader.string();
407
+ continue;
408
+ }
409
+ case 6: {
410
+ if (tag !== 50) {
411
+ break;
412
+ }
413
+ message.status = reader.string();
414
+ continue;
415
+ }
416
+ case 7: {
417
+ if (tag !== 58) {
418
+ break;
419
+ }
420
+ message.notes = reader.string();
421
+ continue;
422
+ }
423
+ case 8: {
424
+ if (tag !== 66) {
425
+ break;
426
+ }
427
+ message.createdAt = reader.string();
428
+ continue;
429
+ }
430
+ case 9: {
431
+ if (tag !== 74) {
432
+ break;
433
+ }
434
+ message.updatedAt = reader.string();
435
+ continue;
436
+ }
437
+ }
438
+ if ((tag & 7) === 4 || tag === 0) {
439
+ break;
440
+ }
441
+ reader.skip(tag & 7);
442
+ }
443
+ return message;
444
+ },
445
+ fromJSON(object) {
446
+ return {
447
+ bookingId: isSet(object.bookingId) ? globalThis.String(object.bookingId) : "",
448
+ clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
449
+ therapistId: isSet(object.therapistId) ? globalThis.String(object.therapistId) : "",
450
+ startAt: isSet(object.startAt) ? globalThis.String(object.startAt) : "",
451
+ endAt: isSet(object.endAt) ? globalThis.String(object.endAt) : "",
452
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
453
+ notes: isSet(object.notes) ? globalThis.String(object.notes) : "",
454
+ createdAt: isSet(object.createdAt) ? globalThis.String(object.createdAt) : "",
455
+ updatedAt: isSet(object.updatedAt) ? globalThis.String(object.updatedAt) : "",
456
+ };
457
+ },
458
+ toJSON(message) {
459
+ const obj = {};
460
+ if (message.bookingId !== "") {
461
+ obj.bookingId = message.bookingId;
462
+ }
463
+ if (message.clientId !== "") {
464
+ obj.clientId = message.clientId;
465
+ }
466
+ if (message.therapistId !== "") {
467
+ obj.therapistId = message.therapistId;
468
+ }
469
+ if (message.startAt !== "") {
470
+ obj.startAt = message.startAt;
471
+ }
472
+ if (message.endAt !== "") {
473
+ obj.endAt = message.endAt;
474
+ }
475
+ if (message.status !== "") {
476
+ obj.status = message.status;
477
+ }
478
+ if (message.notes !== "") {
479
+ obj.notes = message.notes;
480
+ }
481
+ if (message.createdAt !== "") {
482
+ obj.createdAt = message.createdAt;
483
+ }
484
+ if (message.updatedAt !== "") {
485
+ obj.updatedAt = message.updatedAt;
486
+ }
487
+ return obj;
488
+ },
489
+ create(base) {
490
+ return exports.BookingDetails.fromPartial(base !== null && base !== void 0 ? base : {});
491
+ },
492
+ fromPartial(object) {
493
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
494
+ const message = createBaseBookingDetails();
495
+ message.bookingId = (_a = object.bookingId) !== null && _a !== void 0 ? _a : "";
496
+ message.clientId = (_b = object.clientId) !== null && _b !== void 0 ? _b : "";
497
+ message.therapistId = (_c = object.therapistId) !== null && _c !== void 0 ? _c : "";
498
+ message.startAt = (_d = object.startAt) !== null && _d !== void 0 ? _d : "";
499
+ message.endAt = (_e = object.endAt) !== null && _e !== void 0 ? _e : "";
500
+ message.status = (_f = object.status) !== null && _f !== void 0 ? _f : "";
501
+ message.notes = (_g = object.notes) !== null && _g !== void 0 ? _g : "";
502
+ message.createdAt = (_h = object.createdAt) !== null && _h !== void 0 ? _h : "";
503
+ message.updatedAt = (_j = object.updatedAt) !== null && _j !== void 0 ? _j : "";
504
+ return message;
505
+ },
506
+ };
507
+ function createBaseListBookingsRequest() {
508
+ return { pagination: undefined, role: "", status: "", from: "", to: "" };
509
+ }
510
+ exports.ListBookingsRequest = {
511
+ encode(message, writer = new wire_1.BinaryWriter()) {
512
+ if (message.pagination !== undefined) {
513
+ common_1.BaseListRequest.encode(message.pagination, writer.uint32(10).fork()).join();
514
+ }
515
+ if (message.role !== "") {
516
+ writer.uint32(18).string(message.role);
517
+ }
518
+ if (message.status !== "") {
519
+ writer.uint32(26).string(message.status);
520
+ }
521
+ if (message.from !== "") {
522
+ writer.uint32(34).string(message.from);
523
+ }
524
+ if (message.to !== "") {
525
+ writer.uint32(42).string(message.to);
526
+ }
527
+ return writer;
528
+ },
529
+ decode(input, length) {
530
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
531
+ const end = length === undefined ? reader.len : reader.pos + length;
532
+ const message = createBaseListBookingsRequest();
533
+ while (reader.pos < end) {
534
+ const tag = reader.uint32();
535
+ switch (tag >>> 3) {
536
+ case 1: {
537
+ if (tag !== 10) {
538
+ break;
539
+ }
540
+ message.pagination = common_1.BaseListRequest.decode(reader, reader.uint32());
541
+ continue;
542
+ }
543
+ case 2: {
544
+ if (tag !== 18) {
545
+ break;
546
+ }
547
+ message.role = reader.string();
548
+ continue;
549
+ }
550
+ case 3: {
551
+ if (tag !== 26) {
552
+ break;
553
+ }
554
+ message.status = reader.string();
555
+ continue;
556
+ }
557
+ case 4: {
558
+ if (tag !== 34) {
559
+ break;
560
+ }
561
+ message.from = reader.string();
562
+ continue;
563
+ }
564
+ case 5: {
565
+ if (tag !== 42) {
566
+ break;
567
+ }
568
+ message.to = reader.string();
569
+ continue;
570
+ }
571
+ }
572
+ if ((tag & 7) === 4 || tag === 0) {
573
+ break;
574
+ }
575
+ reader.skip(tag & 7);
576
+ }
577
+ return message;
578
+ },
579
+ fromJSON(object) {
580
+ return {
581
+ pagination: isSet(object.pagination) ? common_1.BaseListRequest.fromJSON(object.pagination) : undefined,
582
+ role: isSet(object.role) ? globalThis.String(object.role) : "",
583
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
584
+ from: isSet(object.from) ? globalThis.String(object.from) : "",
585
+ to: isSet(object.to) ? globalThis.String(object.to) : "",
586
+ };
587
+ },
588
+ toJSON(message) {
589
+ const obj = {};
590
+ if (message.pagination !== undefined) {
591
+ obj.pagination = common_1.BaseListRequest.toJSON(message.pagination);
592
+ }
593
+ if (message.role !== "") {
594
+ obj.role = message.role;
595
+ }
596
+ if (message.status !== "") {
597
+ obj.status = message.status;
598
+ }
599
+ if (message.from !== "") {
600
+ obj.from = message.from;
601
+ }
602
+ if (message.to !== "") {
603
+ obj.to = message.to;
604
+ }
605
+ return obj;
606
+ },
607
+ create(base) {
608
+ return exports.ListBookingsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
609
+ },
610
+ fromPartial(object) {
611
+ var _a, _b, _c, _d;
612
+ const message = createBaseListBookingsRequest();
613
+ message.pagination = (object.pagination !== undefined && object.pagination !== null)
614
+ ? common_1.BaseListRequest.fromPartial(object.pagination)
615
+ : undefined;
616
+ message.role = (_a = object.role) !== null && _a !== void 0 ? _a : "";
617
+ message.status = (_b = object.status) !== null && _b !== void 0 ? _b : "";
618
+ message.from = (_c = object.from) !== null && _c !== void 0 ? _c : "";
619
+ message.to = (_d = object.to) !== null && _d !== void 0 ? _d : "";
620
+ return message;
621
+ },
622
+ };
623
+ function createBaseListBookingsResponse() {
624
+ return { items: [] };
625
+ }
626
+ exports.ListBookingsResponse = {
627
+ encode(message, writer = new wire_1.BinaryWriter()) {
628
+ for (const v of message.items) {
629
+ exports.BookingItem.encode(v, writer.uint32(10).fork()).join();
630
+ }
631
+ return writer;
632
+ },
633
+ decode(input, length) {
634
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
635
+ const end = length === undefined ? reader.len : reader.pos + length;
636
+ const message = createBaseListBookingsResponse();
637
+ while (reader.pos < end) {
638
+ const tag = reader.uint32();
639
+ switch (tag >>> 3) {
640
+ case 1: {
641
+ if (tag !== 10) {
642
+ break;
643
+ }
644
+ message.items.push(exports.BookingItem.decode(reader, reader.uint32()));
645
+ continue;
646
+ }
647
+ }
648
+ if ((tag & 7) === 4 || tag === 0) {
649
+ break;
650
+ }
651
+ reader.skip(tag & 7);
652
+ }
653
+ return message;
654
+ },
655
+ fromJSON(object) {
656
+ return {
657
+ items: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.items) ? object.items.map((e) => exports.BookingItem.fromJSON(e)) : [],
658
+ };
659
+ },
660
+ toJSON(message) {
661
+ var _a;
662
+ const obj = {};
663
+ if ((_a = message.items) === null || _a === void 0 ? void 0 : _a.length) {
664
+ obj.items = message.items.map((e) => exports.BookingItem.toJSON(e));
665
+ }
666
+ return obj;
667
+ },
668
+ create(base) {
669
+ return exports.ListBookingsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
670
+ },
671
+ fromPartial(object) {
672
+ var _a;
673
+ const message = createBaseListBookingsResponse();
674
+ message.items = ((_a = object.items) === null || _a === void 0 ? void 0 : _a.map((e) => exports.BookingItem.fromPartial(e))) || [];
675
+ return message;
676
+ },
677
+ };
678
+ function createBaseBookingItem() {
679
+ return { bookingId: "", startAt: "", endAt: "", status: "", therapist: undefined, client: undefined };
680
+ }
681
+ exports.BookingItem = {
682
+ encode(message, writer = new wire_1.BinaryWriter()) {
683
+ if (message.bookingId !== "") {
684
+ writer.uint32(10).string(message.bookingId);
685
+ }
686
+ if (message.startAt !== "") {
687
+ writer.uint32(18).string(message.startAt);
688
+ }
689
+ if (message.endAt !== "") {
690
+ writer.uint32(26).string(message.endAt);
691
+ }
692
+ if (message.status !== "") {
693
+ writer.uint32(34).string(message.status);
694
+ }
695
+ if (message.therapist !== undefined) {
696
+ exports.ParticipantInfo.encode(message.therapist, writer.uint32(42).fork()).join();
697
+ }
698
+ if (message.client !== undefined) {
699
+ exports.ParticipantInfo.encode(message.client, writer.uint32(50).fork()).join();
700
+ }
701
+ return writer;
702
+ },
703
+ decode(input, length) {
704
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
705
+ const end = length === undefined ? reader.len : reader.pos + length;
706
+ const message = createBaseBookingItem();
707
+ while (reader.pos < end) {
708
+ const tag = reader.uint32();
709
+ switch (tag >>> 3) {
710
+ case 1: {
711
+ if (tag !== 10) {
712
+ break;
713
+ }
714
+ message.bookingId = reader.string();
715
+ continue;
716
+ }
717
+ case 2: {
718
+ if (tag !== 18) {
719
+ break;
720
+ }
721
+ message.startAt = reader.string();
722
+ continue;
723
+ }
724
+ case 3: {
725
+ if (tag !== 26) {
726
+ break;
727
+ }
728
+ message.endAt = reader.string();
729
+ continue;
730
+ }
731
+ case 4: {
732
+ if (tag !== 34) {
733
+ break;
734
+ }
735
+ message.status = reader.string();
736
+ continue;
737
+ }
738
+ case 5: {
739
+ if (tag !== 42) {
740
+ break;
741
+ }
742
+ message.therapist = exports.ParticipantInfo.decode(reader, reader.uint32());
743
+ continue;
744
+ }
745
+ case 6: {
746
+ if (tag !== 50) {
747
+ break;
748
+ }
749
+ message.client = exports.ParticipantInfo.decode(reader, reader.uint32());
750
+ continue;
751
+ }
752
+ }
753
+ if ((tag & 7) === 4 || tag === 0) {
754
+ break;
755
+ }
756
+ reader.skip(tag & 7);
757
+ }
758
+ return message;
759
+ },
760
+ fromJSON(object) {
761
+ return {
762
+ bookingId: isSet(object.bookingId) ? globalThis.String(object.bookingId) : "",
763
+ startAt: isSet(object.startAt) ? globalThis.String(object.startAt) : "",
764
+ endAt: isSet(object.endAt) ? globalThis.String(object.endAt) : "",
765
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
766
+ therapist: isSet(object.therapist) ? exports.ParticipantInfo.fromJSON(object.therapist) : undefined,
767
+ client: isSet(object.client) ? exports.ParticipantInfo.fromJSON(object.client) : undefined,
768
+ };
769
+ },
770
+ toJSON(message) {
771
+ const obj = {};
772
+ if (message.bookingId !== "") {
773
+ obj.bookingId = message.bookingId;
774
+ }
775
+ if (message.startAt !== "") {
776
+ obj.startAt = message.startAt;
777
+ }
778
+ if (message.endAt !== "") {
779
+ obj.endAt = message.endAt;
780
+ }
781
+ if (message.status !== "") {
782
+ obj.status = message.status;
783
+ }
784
+ if (message.therapist !== undefined) {
785
+ obj.therapist = exports.ParticipantInfo.toJSON(message.therapist);
786
+ }
787
+ if (message.client !== undefined) {
788
+ obj.client = exports.ParticipantInfo.toJSON(message.client);
789
+ }
790
+ return obj;
791
+ },
792
+ create(base) {
793
+ return exports.BookingItem.fromPartial(base !== null && base !== void 0 ? base : {});
794
+ },
795
+ fromPartial(object) {
796
+ var _a, _b, _c, _d;
797
+ const message = createBaseBookingItem();
798
+ message.bookingId = (_a = object.bookingId) !== null && _a !== void 0 ? _a : "";
799
+ message.startAt = (_b = object.startAt) !== null && _b !== void 0 ? _b : "";
800
+ message.endAt = (_c = object.endAt) !== null && _c !== void 0 ? _c : "";
801
+ message.status = (_d = object.status) !== null && _d !== void 0 ? _d : "";
802
+ message.therapist = (object.therapist !== undefined && object.therapist !== null)
803
+ ? exports.ParticipantInfo.fromPartial(object.therapist)
804
+ : undefined;
805
+ message.client = (object.client !== undefined && object.client !== null)
806
+ ? exports.ParticipantInfo.fromPartial(object.client)
807
+ : undefined;
808
+ return message;
809
+ },
810
+ };
811
+ function createBaseParticipantInfo() {
812
+ return { userId: "", fullName: "", avatarUrl: "" };
813
+ }
814
+ exports.ParticipantInfo = {
815
+ encode(message, writer = new wire_1.BinaryWriter()) {
816
+ if (message.userId !== "") {
817
+ writer.uint32(10).string(message.userId);
818
+ }
819
+ if (message.fullName !== "") {
820
+ writer.uint32(18).string(message.fullName);
821
+ }
822
+ if (message.avatarUrl !== "") {
823
+ writer.uint32(26).string(message.avatarUrl);
824
+ }
825
+ return writer;
826
+ },
827
+ decode(input, length) {
828
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
829
+ const end = length === undefined ? reader.len : reader.pos + length;
830
+ const message = createBaseParticipantInfo();
831
+ while (reader.pos < end) {
832
+ const tag = reader.uint32();
833
+ switch (tag >>> 3) {
834
+ case 1: {
835
+ if (tag !== 10) {
836
+ break;
837
+ }
838
+ message.userId = reader.string();
839
+ continue;
840
+ }
841
+ case 2: {
842
+ if (tag !== 18) {
843
+ break;
844
+ }
845
+ message.fullName = reader.string();
846
+ continue;
847
+ }
848
+ case 3: {
849
+ if (tag !== 26) {
850
+ break;
851
+ }
852
+ message.avatarUrl = reader.string();
853
+ continue;
854
+ }
855
+ }
856
+ if ((tag & 7) === 4 || tag === 0) {
857
+ break;
858
+ }
859
+ reader.skip(tag & 7);
860
+ }
861
+ return message;
862
+ },
863
+ fromJSON(object) {
864
+ return {
865
+ userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
866
+ fullName: isSet(object.fullName) ? globalThis.String(object.fullName) : "",
867
+ avatarUrl: isSet(object.avatarUrl) ? globalThis.String(object.avatarUrl) : "",
868
+ };
869
+ },
870
+ toJSON(message) {
871
+ const obj = {};
872
+ if (message.userId !== "") {
873
+ obj.userId = message.userId;
874
+ }
875
+ if (message.fullName !== "") {
876
+ obj.fullName = message.fullName;
877
+ }
878
+ if (message.avatarUrl !== "") {
879
+ obj.avatarUrl = message.avatarUrl;
880
+ }
881
+ return obj;
882
+ },
883
+ create(base) {
884
+ return exports.ParticipantInfo.fromPartial(base !== null && base !== void 0 ? base : {});
885
+ },
886
+ fromPartial(object) {
887
+ var _a, _b, _c;
888
+ const message = createBaseParticipantInfo();
889
+ message.userId = (_a = object.userId) !== null && _a !== void 0 ? _a : "";
890
+ message.fullName = (_b = object.fullName) !== null && _b !== void 0 ? _b : "";
891
+ message.avatarUrl = (_c = object.avatarUrl) !== null && _c !== void 0 ? _c : "";
892
+ return message;
893
+ },
894
+ };
895
+ function createBaseRescheduleBookingRequest() {
896
+ return { bookingId: "", startAt: "", endAt: "" };
897
+ }
898
+ exports.RescheduleBookingRequest = {
899
+ encode(message, writer = new wire_1.BinaryWriter()) {
900
+ if (message.bookingId !== "") {
901
+ writer.uint32(10).string(message.bookingId);
902
+ }
903
+ if (message.startAt !== "") {
904
+ writer.uint32(18).string(message.startAt);
905
+ }
906
+ if (message.endAt !== "") {
907
+ writer.uint32(26).string(message.endAt);
908
+ }
909
+ return writer;
910
+ },
911
+ decode(input, length) {
912
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
913
+ const end = length === undefined ? reader.len : reader.pos + length;
914
+ const message = createBaseRescheduleBookingRequest();
915
+ while (reader.pos < end) {
916
+ const tag = reader.uint32();
917
+ switch (tag >>> 3) {
918
+ case 1: {
919
+ if (tag !== 10) {
920
+ break;
921
+ }
922
+ message.bookingId = reader.string();
923
+ continue;
924
+ }
925
+ case 2: {
926
+ if (tag !== 18) {
927
+ break;
928
+ }
929
+ message.startAt = reader.string();
930
+ continue;
931
+ }
932
+ case 3: {
933
+ if (tag !== 26) {
934
+ break;
935
+ }
936
+ message.endAt = reader.string();
937
+ continue;
938
+ }
939
+ }
940
+ if ((tag & 7) === 4 || tag === 0) {
941
+ break;
942
+ }
943
+ reader.skip(tag & 7);
944
+ }
945
+ return message;
946
+ },
947
+ fromJSON(object) {
948
+ return {
949
+ bookingId: isSet(object.bookingId) ? globalThis.String(object.bookingId) : "",
950
+ startAt: isSet(object.startAt) ? globalThis.String(object.startAt) : "",
951
+ endAt: isSet(object.endAt) ? globalThis.String(object.endAt) : "",
952
+ };
953
+ },
954
+ toJSON(message) {
955
+ const obj = {};
956
+ if (message.bookingId !== "") {
957
+ obj.bookingId = message.bookingId;
958
+ }
959
+ if (message.startAt !== "") {
960
+ obj.startAt = message.startAt;
961
+ }
962
+ if (message.endAt !== "") {
963
+ obj.endAt = message.endAt;
964
+ }
965
+ return obj;
966
+ },
967
+ create(base) {
968
+ return exports.RescheduleBookingRequest.fromPartial(base !== null && base !== void 0 ? base : {});
969
+ },
970
+ fromPartial(object) {
971
+ var _a, _b, _c;
972
+ const message = createBaseRescheduleBookingRequest();
973
+ message.bookingId = (_a = object.bookingId) !== null && _a !== void 0 ? _a : "";
974
+ message.startAt = (_b = object.startAt) !== null && _b !== void 0 ? _b : "";
975
+ message.endAt = (_c = object.endAt) !== null && _c !== void 0 ? _c : "";
976
+ return message;
977
+ },
978
+ };
979
+ function createBaseRescheduleBookingResponse() {
980
+ return { bookingId: "", startAt: "", endAt: "", status: "", updatedAt: "" };
981
+ }
982
+ exports.RescheduleBookingResponse = {
983
+ encode(message, writer = new wire_1.BinaryWriter()) {
984
+ if (message.bookingId !== "") {
985
+ writer.uint32(10).string(message.bookingId);
986
+ }
987
+ if (message.startAt !== "") {
988
+ writer.uint32(18).string(message.startAt);
989
+ }
990
+ if (message.endAt !== "") {
991
+ writer.uint32(26).string(message.endAt);
992
+ }
993
+ if (message.status !== "") {
994
+ writer.uint32(34).string(message.status);
995
+ }
996
+ if (message.updatedAt !== "") {
997
+ writer.uint32(42).string(message.updatedAt);
998
+ }
999
+ return writer;
1000
+ },
1001
+ decode(input, length) {
1002
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1003
+ const end = length === undefined ? reader.len : reader.pos + length;
1004
+ const message = createBaseRescheduleBookingResponse();
1005
+ while (reader.pos < end) {
1006
+ const tag = reader.uint32();
1007
+ switch (tag >>> 3) {
1008
+ case 1: {
1009
+ if (tag !== 10) {
1010
+ break;
1011
+ }
1012
+ message.bookingId = reader.string();
1013
+ continue;
1014
+ }
1015
+ case 2: {
1016
+ if (tag !== 18) {
1017
+ break;
1018
+ }
1019
+ message.startAt = reader.string();
1020
+ continue;
1021
+ }
1022
+ case 3: {
1023
+ if (tag !== 26) {
1024
+ break;
1025
+ }
1026
+ message.endAt = reader.string();
1027
+ continue;
1028
+ }
1029
+ case 4: {
1030
+ if (tag !== 34) {
1031
+ break;
1032
+ }
1033
+ message.status = reader.string();
1034
+ continue;
1035
+ }
1036
+ case 5: {
1037
+ if (tag !== 42) {
1038
+ break;
1039
+ }
1040
+ message.updatedAt = reader.string();
1041
+ continue;
1042
+ }
1043
+ }
1044
+ if ((tag & 7) === 4 || tag === 0) {
1045
+ break;
1046
+ }
1047
+ reader.skip(tag & 7);
1048
+ }
1049
+ return message;
1050
+ },
1051
+ fromJSON(object) {
1052
+ return {
1053
+ bookingId: isSet(object.bookingId) ? globalThis.String(object.bookingId) : "",
1054
+ startAt: isSet(object.startAt) ? globalThis.String(object.startAt) : "",
1055
+ endAt: isSet(object.endAt) ? globalThis.String(object.endAt) : "",
1056
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
1057
+ updatedAt: isSet(object.updatedAt) ? globalThis.String(object.updatedAt) : "",
1058
+ };
1059
+ },
1060
+ toJSON(message) {
1061
+ const obj = {};
1062
+ if (message.bookingId !== "") {
1063
+ obj.bookingId = message.bookingId;
1064
+ }
1065
+ if (message.startAt !== "") {
1066
+ obj.startAt = message.startAt;
1067
+ }
1068
+ if (message.endAt !== "") {
1069
+ obj.endAt = message.endAt;
1070
+ }
1071
+ if (message.status !== "") {
1072
+ obj.status = message.status;
1073
+ }
1074
+ if (message.updatedAt !== "") {
1075
+ obj.updatedAt = message.updatedAt;
1076
+ }
1077
+ return obj;
1078
+ },
1079
+ create(base) {
1080
+ return exports.RescheduleBookingResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1081
+ },
1082
+ fromPartial(object) {
1083
+ var _a, _b, _c, _d, _e;
1084
+ const message = createBaseRescheduleBookingResponse();
1085
+ message.bookingId = (_a = object.bookingId) !== null && _a !== void 0 ? _a : "";
1086
+ message.startAt = (_b = object.startAt) !== null && _b !== void 0 ? _b : "";
1087
+ message.endAt = (_c = object.endAt) !== null && _c !== void 0 ? _c : "";
1088
+ message.status = (_d = object.status) !== null && _d !== void 0 ? _d : "";
1089
+ message.updatedAt = (_e = object.updatedAt) !== null && _e !== void 0 ? _e : "";
1090
+ return message;
1091
+ },
1092
+ };
1093
+ function createBaseCancelBookingRequest() {
1094
+ return { bookingId: "", reason: "" };
1095
+ }
1096
+ exports.CancelBookingRequest = {
1097
+ encode(message, writer = new wire_1.BinaryWriter()) {
1098
+ if (message.bookingId !== "") {
1099
+ writer.uint32(10).string(message.bookingId);
1100
+ }
1101
+ if (message.reason !== "") {
1102
+ writer.uint32(18).string(message.reason);
1103
+ }
1104
+ return writer;
1105
+ },
1106
+ decode(input, length) {
1107
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1108
+ const end = length === undefined ? reader.len : reader.pos + length;
1109
+ const message = createBaseCancelBookingRequest();
1110
+ while (reader.pos < end) {
1111
+ const tag = reader.uint32();
1112
+ switch (tag >>> 3) {
1113
+ case 1: {
1114
+ if (tag !== 10) {
1115
+ break;
1116
+ }
1117
+ message.bookingId = reader.string();
1118
+ continue;
1119
+ }
1120
+ case 2: {
1121
+ if (tag !== 18) {
1122
+ break;
1123
+ }
1124
+ message.reason = reader.string();
1125
+ continue;
1126
+ }
1127
+ }
1128
+ if ((tag & 7) === 4 || tag === 0) {
1129
+ break;
1130
+ }
1131
+ reader.skip(tag & 7);
1132
+ }
1133
+ return message;
1134
+ },
1135
+ fromJSON(object) {
1136
+ return {
1137
+ bookingId: isSet(object.bookingId) ? globalThis.String(object.bookingId) : "",
1138
+ reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
1139
+ };
1140
+ },
1141
+ toJSON(message) {
1142
+ const obj = {};
1143
+ if (message.bookingId !== "") {
1144
+ obj.bookingId = message.bookingId;
1145
+ }
1146
+ if (message.reason !== "") {
1147
+ obj.reason = message.reason;
1148
+ }
1149
+ return obj;
1150
+ },
1151
+ create(base) {
1152
+ return exports.CancelBookingRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1153
+ },
1154
+ fromPartial(object) {
1155
+ var _a, _b;
1156
+ const message = createBaseCancelBookingRequest();
1157
+ message.bookingId = (_a = object.bookingId) !== null && _a !== void 0 ? _a : "";
1158
+ message.reason = (_b = object.reason) !== null && _b !== void 0 ? _b : "";
1159
+ return message;
1160
+ },
1161
+ };
1162
+ function createBaseCancelBookingResponse() {
1163
+ return { bookingId: "", status: "", cancelReason: "", cancelledAt: "" };
1164
+ }
1165
+ exports.CancelBookingResponse = {
1166
+ encode(message, writer = new wire_1.BinaryWriter()) {
1167
+ if (message.bookingId !== "") {
1168
+ writer.uint32(10).string(message.bookingId);
1169
+ }
1170
+ if (message.status !== "") {
1171
+ writer.uint32(18).string(message.status);
1172
+ }
1173
+ if (message.cancelReason !== "") {
1174
+ writer.uint32(26).string(message.cancelReason);
1175
+ }
1176
+ if (message.cancelledAt !== "") {
1177
+ writer.uint32(34).string(message.cancelledAt);
1178
+ }
1179
+ return writer;
1180
+ },
1181
+ decode(input, length) {
1182
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1183
+ const end = length === undefined ? reader.len : reader.pos + length;
1184
+ const message = createBaseCancelBookingResponse();
1185
+ while (reader.pos < end) {
1186
+ const tag = reader.uint32();
1187
+ switch (tag >>> 3) {
1188
+ case 1: {
1189
+ if (tag !== 10) {
1190
+ break;
1191
+ }
1192
+ message.bookingId = reader.string();
1193
+ continue;
1194
+ }
1195
+ case 2: {
1196
+ if (tag !== 18) {
1197
+ break;
1198
+ }
1199
+ message.status = reader.string();
1200
+ continue;
1201
+ }
1202
+ case 3: {
1203
+ if (tag !== 26) {
1204
+ break;
1205
+ }
1206
+ message.cancelReason = reader.string();
1207
+ continue;
1208
+ }
1209
+ case 4: {
1210
+ if (tag !== 34) {
1211
+ break;
1212
+ }
1213
+ message.cancelledAt = reader.string();
1214
+ continue;
1215
+ }
1216
+ }
1217
+ if ((tag & 7) === 4 || tag === 0) {
1218
+ break;
1219
+ }
1220
+ reader.skip(tag & 7);
1221
+ }
1222
+ return message;
1223
+ },
1224
+ fromJSON(object) {
1225
+ return {
1226
+ bookingId: isSet(object.bookingId) ? globalThis.String(object.bookingId) : "",
1227
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
1228
+ cancelReason: isSet(object.cancelReason) ? globalThis.String(object.cancelReason) : "",
1229
+ cancelledAt: isSet(object.cancelledAt) ? globalThis.String(object.cancelledAt) : "",
1230
+ };
1231
+ },
1232
+ toJSON(message) {
1233
+ const obj = {};
1234
+ if (message.bookingId !== "") {
1235
+ obj.bookingId = message.bookingId;
1236
+ }
1237
+ if (message.status !== "") {
1238
+ obj.status = message.status;
1239
+ }
1240
+ if (message.cancelReason !== "") {
1241
+ obj.cancelReason = message.cancelReason;
1242
+ }
1243
+ if (message.cancelledAt !== "") {
1244
+ obj.cancelledAt = message.cancelledAt;
1245
+ }
1246
+ return obj;
1247
+ },
1248
+ create(base) {
1249
+ return exports.CancelBookingResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1250
+ },
1251
+ fromPartial(object) {
1252
+ var _a, _b, _c, _d;
1253
+ const message = createBaseCancelBookingResponse();
1254
+ message.bookingId = (_a = object.bookingId) !== null && _a !== void 0 ? _a : "";
1255
+ message.status = (_b = object.status) !== null && _b !== void 0 ? _b : "";
1256
+ message.cancelReason = (_c = object.cancelReason) !== null && _c !== void 0 ? _c : "";
1257
+ message.cancelledAt = (_d = object.cancelledAt) !== null && _d !== void 0 ? _d : "";
1258
+ return message;
1259
+ },
1260
+ };
1261
+ function isSet(value) {
1262
+ return value !== null && value !== undefined;
1263
+ }