@fatehan/tsrp 1.6.22 → 1.6.24

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.
@@ -63,63 +63,10 @@ export interface RuleOption {
63
63
  byMinute: number[];
64
64
  bySecond: number[];
65
65
  }
66
- export interface WorkShiftTemplateShowRequest {
67
- id: Long;
68
- }
69
- export interface WorkShiftTemplateIndexRequest {
70
- page: number;
71
- organizationId?: Long | undefined;
72
- createdBy?: Long | undefined;
73
- }
74
- export interface WorkShiftTemplateIndexResponse {
75
- currentPage: number;
76
- lastPage: number;
77
- perPage: number;
78
- data: WorkShiftTemplate[];
79
- }
80
- export interface WorkShiftTemplateDestroyRequest {
81
- id: Long;
82
- }
83
- export interface WorkShiftTemplateDestroyResponse {
84
- deleted: boolean;
85
- }
86
- export interface WorkShiftIndexRequest {
87
- page: number;
88
- deviceId?: Long | undefined;
89
- driverId?: Long | undefined;
90
- organizationId?: Long | undefined;
91
- templateId?: Long | undefined;
92
- createdBy?: Long | undefined;
93
- }
94
- export interface WorkShiftIndexResponse {
95
- currentPage: number;
96
- lastPage: number;
97
- perPage: number;
98
- data: WorkShift[];
99
- }
100
- export interface WorkShiftShowRequest {
101
- id: Long;
102
- }
103
- export interface WorkShiftDestroyRequest {
104
- id: Long;
105
- }
106
- export interface WorkShiftDestroyResponse {
107
- deleted: boolean;
108
- }
109
66
  export declare const WorkShift: MessageFns<WorkShift>;
110
67
  export declare const WorkShiftTemplate: MessageFns<WorkShiftTemplate>;
111
68
  export declare const Rule: MessageFns<Rule>;
112
69
  export declare const RuleOption: MessageFns<RuleOption>;
113
- export declare const WorkShiftTemplateShowRequest: MessageFns<WorkShiftTemplateShowRequest>;
114
- export declare const WorkShiftTemplateIndexRequest: MessageFns<WorkShiftTemplateIndexRequest>;
115
- export declare const WorkShiftTemplateIndexResponse: MessageFns<WorkShiftTemplateIndexResponse>;
116
- export declare const WorkShiftTemplateDestroyRequest: MessageFns<WorkShiftTemplateDestroyRequest>;
117
- export declare const WorkShiftTemplateDestroyResponse: MessageFns<WorkShiftTemplateDestroyResponse>;
118
- export declare const WorkShiftIndexRequest: MessageFns<WorkShiftIndexRequest>;
119
- export declare const WorkShiftIndexResponse: MessageFns<WorkShiftIndexResponse>;
120
- export declare const WorkShiftShowRequest: MessageFns<WorkShiftShowRequest>;
121
- export declare const WorkShiftDestroyRequest: MessageFns<WorkShiftDestroyRequest>;
122
- export declare const WorkShiftDestroyResponse: MessageFns<WorkShiftDestroyResponse>;
123
70
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
124
71
  export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
125
72
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -1 +1 @@
1
- {"version":3,"file":"workshift.d.ts","sourceRoot":"","sources":["../../../src/fatehan/activities/workshift.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,eAAO,MAAM,eAAe,2BAA2B,CAAC;AAExD,oBAAY,SAAS;IACnB,MAAM,IAAI;IACV,OAAO,IAAI;IACX,MAAM,IAAI;IACV,KAAK,IAAI;IACT,MAAM,IAAI;IACV,QAAQ,IAAI;IACZ,QAAQ,IAAI;IACZ,YAAY,KAAK;CAClB;AAED,oBAAY,OAAO;IACjB,MAAM,IAAI;IACV,OAAO,IAAI;IACX,SAAS,IAAI;IACb,QAAQ,IAAI;IACZ,MAAM,IAAI;IACV,QAAQ,IAAI;IACZ,MAAM,IAAI;IACV,YAAY,KAAK;CAClB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,IAAI,CAAC;IACT,QAAQ,EAAE,IAAI,CAAC;IACf,QAAQ,EAAE,IAAI,CAAC;IACf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seWorkShiftTemplateShowRequest() {
659
- return { id: Long.UZERO };
660
- }
661
- export const WorkShiftTemplateShowRequest = {
662
- encode(message, writer = new BinaryWriter()) {
663
- if (!message.id.equals(Long.UZERO)) {
664
- writer.uint32(8).uint64(message.id.toString());
665
- }
666
- return writer;
667
- },
668
- decode(input, length) {
669
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
670
- const end = length === undefined ? reader.len : reader.pos + length;
671
- const message = createBaseWorkShiftTemplateShowRequest();
672
- while (reader.pos < end) {
673
- const tag = reader.uint32();
674
- switch (tag >>> 3) {
675
- case 1: {
676
- if (tag !== 8) {
677
- break;
678
- }
679
- message.id = Long.fromString(reader.uint64().toString(), true);
680
- continue;
681
- }
682
- }
683
- if ((tag & 7) === 4 || tag === 0) {
684
- break;
685
- }
686
- reader.skip(tag & 7);
687
- }
688
- return message;
689
- },
690
- create(base) {
691
- return WorkShiftTemplateShowRequest.fromPartial(base ?? {});
692
- },
693
- fromPartial(object) {
694
- const message = createBaseWorkShiftTemplateShowRequest();
695
- message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
696
- return message;
697
- },
698
- };
699
- function createBaseWorkShiftTemplateIndexRequest() {
700
- return { page: 0, organizationId: undefined, createdBy: undefined };
701
- }
702
- export const WorkShiftTemplateIndexRequest = {
703
- encode(message, writer = new BinaryWriter()) {
704
- if (message.page !== 0) {
705
- writer.uint32(8).uint32(message.page);
706
- }
707
- if (message.organizationId !== undefined) {
708
- writer.uint32(16).uint64(message.organizationId.toString());
709
- }
710
- if (message.createdBy !== undefined) {
711
- writer.uint32(24).uint64(message.createdBy.toString());
712
- }
713
- return writer;
714
- },
715
- decode(input, length) {
716
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
717
- const end = length === undefined ? reader.len : reader.pos + length;
718
- const message = createBaseWorkShiftTemplateIndexRequest();
719
- while (reader.pos < end) {
720
- const tag = reader.uint32();
721
- switch (tag >>> 3) {
722
- case 1: {
723
- if (tag !== 8) {
724
- break;
725
- }
726
- message.page = reader.uint32();
727
- continue;
728
- }
729
- case 2: {
730
- if (tag !== 16) {
731
- break;
732
- }
733
- message.organizationId = Long.fromString(reader.uint64().toString(), true);
734
- continue;
735
- }
736
- case 3: {
737
- if (tag !== 24) {
738
- break;
739
- }
740
- message.createdBy = Long.fromString(reader.uint64().toString(), true);
741
- continue;
742
- }
743
- }
744
- if ((tag & 7) === 4 || tag === 0) {
745
- break;
746
- }
747
- reader.skip(tag & 7);
748
- }
749
- return message;
750
- },
751
- create(base) {
752
- return WorkShiftTemplateIndexRequest.fromPartial(base ?? {});
753
- },
754
- fromPartial(object) {
755
- const message = createBaseWorkShiftTemplateIndexRequest();
756
- message.page = object.page ?? 0;
757
- message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
758
- ? Long.fromValue(object.organizationId)
759
- : undefined;
760
- message.createdBy = (object.createdBy !== undefined && object.createdBy !== null)
761
- ? Long.fromValue(object.createdBy)
762
- : undefined;
763
- return message;
764
- },
765
- };
766
- function createBaseWorkShiftTemplateIndexResponse() {
767
- return { currentPage: 0, lastPage: 0, perPage: 0, data: [] };
768
- }
769
- export const WorkShiftTemplateIndexResponse = {
770
- encode(message, writer = new BinaryWriter()) {
771
- if (message.currentPage !== 0) {
772
- writer.uint32(8).uint32(message.currentPage);
773
- }
774
- if (message.lastPage !== 0) {
775
- writer.uint32(16).uint32(message.lastPage);
776
- }
777
- if (message.perPage !== 0) {
778
- writer.uint32(24).uint32(message.perPage);
779
- }
780
- for (const v of message.data) {
781
- WorkShiftTemplate.encode(v, writer.uint32(34).fork()).join();
782
- }
783
- return writer;
784
- },
785
- decode(input, length) {
786
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
787
- const end = length === undefined ? reader.len : reader.pos + length;
788
- const message = createBaseWorkShiftTemplateIndexResponse();
789
- while (reader.pos < end) {
790
- const tag = reader.uint32();
791
- switch (tag >>> 3) {
792
- case 1: {
793
- if (tag !== 8) {
794
- break;
795
- }
796
- message.currentPage = reader.uint32();
797
- continue;
798
- }
799
- case 2: {
800
- if (tag !== 16) {
801
- break;
802
- }
803
- message.lastPage = reader.uint32();
804
- continue;
805
- }
806
- case 3: {
807
- if (tag !== 24) {
808
- break;
809
- }
810
- message.perPage = reader.uint32();
811
- continue;
812
- }
813
- case 4: {
814
- if (tag !== 34) {
815
- break;
816
- }
817
- message.data.push(WorkShiftTemplate.decode(reader, reader.uint32()));
818
- continue;
819
- }
820
- }
821
- if ((tag & 7) === 4 || tag === 0) {
822
- break;
823
- }
824
- reader.skip(tag & 7);
825
- }
826
- return message;
827
- },
828
- create(base) {
829
- return WorkShiftTemplateIndexResponse.fromPartial(base ?? {});
830
- },
831
- fromPartial(object) {
832
- const message = createBaseWorkShiftTemplateIndexResponse();
833
- message.currentPage = object.currentPage ?? 0;
834
- message.lastPage = object.lastPage ?? 0;
835
- message.perPage = object.perPage ?? 0;
836
- message.data = object.data?.map((e) => WorkShiftTemplate.fromPartial(e)) || [];
837
- return message;
838
- },
839
- };
840
- function createBaseWorkShiftTemplateDestroyRequest() {
841
- return { id: Long.UZERO };
842
- }
843
- export const WorkShiftTemplateDestroyRequest = {
844
- encode(message, writer = new BinaryWriter()) {
845
- if (!message.id.equals(Long.UZERO)) {
846
- writer.uint32(8).uint64(message.id.toString());
847
- }
848
- return writer;
849
- },
850
- decode(input, length) {
851
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
852
- const end = length === undefined ? reader.len : reader.pos + length;
853
- const message = createBaseWorkShiftTemplateDestroyRequest();
854
- while (reader.pos < end) {
855
- const tag = reader.uint32();
856
- switch (tag >>> 3) {
857
- case 1: {
858
- if (tag !== 8) {
859
- break;
860
- }
861
- message.id = Long.fromString(reader.uint64().toString(), true);
862
- continue;
863
- }
864
- }
865
- if ((tag & 7) === 4 || tag === 0) {
866
- break;
867
- }
868
- reader.skip(tag & 7);
869
- }
870
- return message;
871
- },
872
- create(base) {
873
- return WorkShiftTemplateDestroyRequest.fromPartial(base ?? {});
874
- },
875
- fromPartial(object) {
876
- const message = createBaseWorkShiftTemplateDestroyRequest();
877
- message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
878
- return message;
879
- },
880
- };
881
- function createBaseWorkShiftTemplateDestroyResponse() {
882
- return { deleted: false };
883
- }
884
- export const WorkShiftTemplateDestroyResponse = {
885
- encode(message, writer = new BinaryWriter()) {
886
- if (message.deleted !== false) {
887
- writer.uint32(8).bool(message.deleted);
888
- }
889
- return writer;
890
- },
891
- decode(input, length) {
892
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
893
- const end = length === undefined ? reader.len : reader.pos + length;
894
- const message = createBaseWorkShiftTemplateDestroyResponse();
895
- while (reader.pos < end) {
896
- const tag = reader.uint32();
897
- switch (tag >>> 3) {
898
- case 1: {
899
- if (tag !== 8) {
900
- break;
901
- }
902
- message.deleted = reader.bool();
903
- continue;
904
- }
905
- }
906
- if ((tag & 7) === 4 || tag === 0) {
907
- break;
908
- }
909
- reader.skip(tag & 7);
910
- }
911
- return message;
912
- },
913
- create(base) {
914
- return WorkShiftTemplateDestroyResponse.fromPartial(base ?? {});
915
- },
916
- fromPartial(object) {
917
- const message = createBaseWorkShiftTemplateDestroyResponse();
918
- message.deleted = object.deleted ?? false;
919
- return message;
920
- },
921
- };
922
- function createBaseWorkShiftIndexRequest() {
923
- return {
924
- page: 0,
925
- deviceId: undefined,
926
- driverId: undefined,
927
- organizationId: undefined,
928
- templateId: undefined,
929
- createdBy: undefined,
930
- };
931
- }
932
- export const WorkShiftIndexRequest = {
933
- encode(message, writer = new BinaryWriter()) {
934
- if (message.page !== 0) {
935
- writer.uint32(8).uint32(message.page);
936
- }
937
- if (message.deviceId !== undefined) {
938
- writer.uint32(16).uint64(message.deviceId.toString());
939
- }
940
- if (message.driverId !== undefined) {
941
- writer.uint32(24).uint64(message.driverId.toString());
942
- }
943
- if (message.organizationId !== undefined) {
944
- writer.uint32(32).uint64(message.organizationId.toString());
945
- }
946
- if (message.templateId !== undefined) {
947
- writer.uint32(40).uint64(message.templateId.toString());
948
- }
949
- if (message.createdBy !== undefined) {
950
- writer.uint32(48).uint64(message.createdBy.toString());
951
- }
952
- return writer;
953
- },
954
- decode(input, length) {
955
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
956
- const end = length === undefined ? reader.len : reader.pos + length;
957
- const message = createBaseWorkShiftIndexRequest();
958
- while (reader.pos < end) {
959
- const tag = reader.uint32();
960
- switch (tag >>> 3) {
961
- case 1: {
962
- if (tag !== 8) {
963
- break;
964
- }
965
- message.page = reader.uint32();
966
- continue;
967
- }
968
- case 2: {
969
- if (tag !== 16) {
970
- break;
971
- }
972
- message.deviceId = Long.fromString(reader.uint64().toString(), true);
973
- continue;
974
- }
975
- case 3: {
976
- if (tag !== 24) {
977
- break;
978
- }
979
- message.driverId = Long.fromString(reader.uint64().toString(), true);
980
- continue;
981
- }
982
- case 4: {
983
- if (tag !== 32) {
984
- break;
985
- }
986
- message.organizationId = Long.fromString(reader.uint64().toString(), true);
987
- continue;
988
- }
989
- case 5: {
990
- if (tag !== 40) {
991
- break;
992
- }
993
- message.templateId = Long.fromString(reader.uint64().toString(), true);
994
- continue;
995
- }
996
- case 6: {
997
- if (tag !== 48) {
998
- break;
999
- }
1000
- message.createdBy = Long.fromString(reader.uint64().toString(), true);
1001
- continue;
1002
- }
1003
- }
1004
- if ((tag & 7) === 4 || tag === 0) {
1005
- break;
1006
- }
1007
- reader.skip(tag & 7);
1008
- }
1009
- return message;
1010
- },
1011
- create(base) {
1012
- return WorkShiftIndexRequest.fromPartial(base ?? {});
1013
- },
1014
- fromPartial(object) {
1015
- const message = createBaseWorkShiftIndexRequest();
1016
- message.page = object.page ?? 0;
1017
- message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
1018
- ? Long.fromValue(object.deviceId)
1019
- : undefined;
1020
- message.driverId = (object.driverId !== undefined && object.driverId !== null)
1021
- ? Long.fromValue(object.driverId)
1022
- : undefined;
1023
- message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
1024
- ? Long.fromValue(object.organizationId)
1025
- : undefined;
1026
- message.templateId = (object.templateId !== undefined && object.templateId !== null)
1027
- ? Long.fromValue(object.templateId)
1028
- : undefined;
1029
- message.createdBy = (object.createdBy !== undefined && object.createdBy !== null)
1030
- ? Long.fromValue(object.createdBy)
1031
- : undefined;
1032
- return message;
1033
- },
1034
- };
1035
- function createBaseWorkShiftIndexResponse() {
1036
- return { currentPage: 0, lastPage: 0, perPage: 0, data: [] };
1037
- }
1038
- export const WorkShiftIndexResponse = {
1039
- encode(message, writer = new BinaryWriter()) {
1040
- if (message.currentPage !== 0) {
1041
- writer.uint32(8).uint32(message.currentPage);
1042
- }
1043
- if (message.lastPage !== 0) {
1044
- writer.uint32(16).uint32(message.lastPage);
1045
- }
1046
- if (message.perPage !== 0) {
1047
- writer.uint32(24).uint32(message.perPage);
1048
- }
1049
- for (const v of message.data) {
1050
- WorkShift.encode(v, writer.uint32(34).fork()).join();
1051
- }
1052
- return writer;
1053
- },
1054
- decode(input, length) {
1055
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1056
- const end = length === undefined ? reader.len : reader.pos + length;
1057
- const message = createBaseWorkShiftIndexResponse();
1058
- while (reader.pos < end) {
1059
- const tag = reader.uint32();
1060
- switch (tag >>> 3) {
1061
- case 1: {
1062
- if (tag !== 8) {
1063
- break;
1064
- }
1065
- message.currentPage = reader.uint32();
1066
- continue;
1067
- }
1068
- case 2: {
1069
- if (tag !== 16) {
1070
- break;
1071
- }
1072
- message.lastPage = reader.uint32();
1073
- continue;
1074
- }
1075
- case 3: {
1076
- if (tag !== 24) {
1077
- break;
1078
- }
1079
- message.perPage = reader.uint32();
1080
- continue;
1081
- }
1082
- case 4: {
1083
- if (tag !== 34) {
1084
- break;
1085
- }
1086
- message.data.push(WorkShift.decode(reader, reader.uint32()));
1087
- continue;
1088
- }
1089
- }
1090
- if ((tag & 7) === 4 || tag === 0) {
1091
- break;
1092
- }
1093
- reader.skip(tag & 7);
1094
- }
1095
- return message;
1096
- },
1097
- create(base) {
1098
- return WorkShiftIndexResponse.fromPartial(base ?? {});
1099
- },
1100
- fromPartial(object) {
1101
- const message = createBaseWorkShiftIndexResponse();
1102
- message.currentPage = object.currentPage ?? 0;
1103
- message.lastPage = object.lastPage ?? 0;
1104
- message.perPage = object.perPage ?? 0;
1105
- message.data = object.data?.map((e) => WorkShift.fromPartial(e)) || [];
1106
- return message;
1107
- },
1108
- };
1109
- function createBaseWorkShiftShowRequest() {
1110
- return { id: Long.UZERO };
1111
- }
1112
- export const WorkShiftShowRequest = {
1113
- encode(message, writer = new BinaryWriter()) {
1114
- if (!message.id.equals(Long.UZERO)) {
1115
- writer.uint32(8).uint64(message.id.toString());
1116
- }
1117
- return writer;
1118
- },
1119
- decode(input, length) {
1120
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1121
- const end = length === undefined ? reader.len : reader.pos + length;
1122
- const message = createBaseWorkShiftShowRequest();
1123
- while (reader.pos < end) {
1124
- const tag = reader.uint32();
1125
- switch (tag >>> 3) {
1126
- case 1: {
1127
- if (tag !== 8) {
1128
- break;
1129
- }
1130
- message.id = Long.fromString(reader.uint64().toString(), true);
1131
- continue;
1132
- }
1133
- }
1134
- if ((tag & 7) === 4 || tag === 0) {
1135
- break;
1136
- }
1137
- reader.skip(tag & 7);
1138
- }
1139
- return message;
1140
- },
1141
- create(base) {
1142
- return WorkShiftShowRequest.fromPartial(base ?? {});
1143
- },
1144
- fromPartial(object) {
1145
- const message = createBaseWorkShiftShowRequest();
1146
- message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
1147
- return message;
1148
- },
1149
- };
1150
- function createBaseWorkShiftDestroyRequest() {
1151
- return { id: Long.UZERO };
1152
- }
1153
- export const WorkShiftDestroyRequest = {
1154
- encode(message, writer = new BinaryWriter()) {
1155
- if (!message.id.equals(Long.UZERO)) {
1156
- writer.uint32(8).uint64(message.id.toString());
1157
- }
1158
- return writer;
1159
- },
1160
- decode(input, length) {
1161
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1162
- const end = length === undefined ? reader.len : reader.pos + length;
1163
- const message = createBaseWorkShiftDestroyRequest();
1164
- while (reader.pos < end) {
1165
- const tag = reader.uint32();
1166
- switch (tag >>> 3) {
1167
- case 1: {
1168
- if (tag !== 8) {
1169
- break;
1170
- }
1171
- message.id = Long.fromString(reader.uint64().toString(), true);
1172
- continue;
1173
- }
1174
- }
1175
- if ((tag & 7) === 4 || tag === 0) {
1176
- break;
1177
- }
1178
- reader.skip(tag & 7);
1179
- }
1180
- return message;
1181
- },
1182
- create(base) {
1183
- return WorkShiftDestroyRequest.fromPartial(base ?? {});
1184
- },
1185
- fromPartial(object) {
1186
- const message = createBaseWorkShiftDestroyRequest();
1187
- message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
1188
- return message;
1189
- },
1190
- };
1191
- function createBaseWorkShiftDestroyResponse() {
1192
- return { deleted: false };
1193
- }
1194
- export const WorkShiftDestroyResponse = {
1195
- encode(message, writer = new BinaryWriter()) {
1196
- if (message.deleted !== false) {
1197
- writer.uint32(8).bool(message.deleted);
1198
- }
1199
- return writer;
1200
- },
1201
- decode(input, length) {
1202
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1203
- const end = length === undefined ? reader.len : reader.pos + length;
1204
- const message = createBaseWorkShiftDestroyResponse();
1205
- while (reader.pos < end) {
1206
- const tag = reader.uint32();
1207
- switch (tag >>> 3) {
1208
- case 1: {
1209
- if (tag !== 8) {
1210
- break;
1211
- }
1212
- message.deleted = reader.bool();
1213
- continue;
1214
- }
1215
- }
1216
- if ((tag & 7) === 4 || tag === 0) {
1217
- break;
1218
- }
1219
- reader.skip(tag & 7);
1220
- }
1221
- return message;
1222
- },
1223
- create(base) {
1224
- return WorkShiftDestroyResponse.fromPartial(base ?? {});
1225
- },
1226
- fromPartial(object) {
1227
- const message = createBaseWorkShiftDestroyResponse();
1228
- message.deleted = object.deleted ?? false;
1229
- return message;
1230
- },
1231
- };
1232
658
  function toTimestamp(date) {
1233
659
  const seconds = numberToLong(Math.trunc(date.getTime() / 1_000));
1234
660
  const nanos = (date.getTime() % 1_000) * 1_000_000;