quiver-protobuf-typescript 1.0.1724259613 → 1.0.1731516275
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/billing/bill.ts +68 -59
- package/billing/charge.ts +20 -11
- package/billing/currency.ts +1 -1
- package/billing/platform_charge.ts +25 -21
- package/controller/consignment_holder.ts +27 -18
- package/controller/courier_job_status.ts +18 -9
- package/controller/event.ts +17 -8
- package/controller/task_assignment.ts +83 -74
- package/controller/task_eta.ts +23 -14
- package/controller/tracking_status.ts +22 -13
- package/courier/arrival_instruction.ts +21 -12
- package/courier/consignment.ts +62 -53
- package/courier/contact.ts +26 -17
- package/courier/courier.ts +98 -89
- package/courier/courier_consignment.ts +57 -48
- package/courier/courier_job.ts +123 -114
- package/courier/courier_job_attempt.ts +42 -33
- package/courier/courier_job_event.ts +40 -31
- package/courier/courier_job_location.ts +23 -14
- package/courier/courier_job_status.ts +54 -45
- package/courier/courier_job_type.ts +1 -1
- package/courier/courier_location.ts +64 -55
- package/courier/courier_payment.ts +107 -98
- package/courier/courier_payment_group.ts +36 -27
- package/courier/courier_route.ts +30 -21
- package/courier/courier_route_location.ts +24 -15
- package/courier/courier_shift.ts +62 -53
- package/courier/signin.ts +41 -32
- package/courier_job_event_type/courier_job_event_type.ts +1 -1
- package/fulfilment/consignment.ts +64 -55
- package/fulfilment/fulfilment_location.ts +183 -174
- package/fulfilment/fulfilment_location_consignment.ts +93 -71
- package/fulfilment/fulfilment_type.ts +1 -1
- package/fulfilment/inventory_item.ts +65 -56
- package/fulfilment/inventory_item_group.ts +47 -38
- package/fulfilment/line_item.ts +41 -28
- package/fulfilment/product.ts +106 -97
- package/google/api/annotations.ts +1 -1
- package/google/api/http.ts +29 -20
- package/google/api/visibility.ts +22 -13
- package/google/protobuf/descriptor.ts +195 -191
- package/google/protobuf/duration.ts +22 -18
- package/google/protobuf/struct.ts +51 -27
- package/google/protobuf/timestamp.ts +22 -18
- package/grpc-gateway/protoc-gen-openapiv2/options/annotations.ts +1 -1
- package/grpc-gateway/protoc-gen-openapiv2/options/openapiv2.ts +239 -230
- package/logistic/address.ts +51 -42
- package/merchant/admin_account.ts +32 -23
- package/merchant/merchant.ts +107 -103
- package/notification/channel.ts +1 -1
- package/notification/inventory_item_notification_settings.ts +32 -18
- package/notification/notification_subscription.ts +55 -46
- package/notification/task.ts +17 -8
- package/object/object.ts +72 -63
- package/object/object_assignment.ts +69 -60
- package/object/object_status_update.ts +34 -25
- package/osrm/osrm.ts +41 -32
- package/package.json +1 -1
- package/shared/address.ts +21 -12
- package/shared/coordinates.ts +21 -12
- package/shared/dimensions.ts +26 -17
- package/shared/filter.ts +17 -8
- package/shared/mode.ts +1 -1
- package/shared/pagination.ts +16 -7
- package/shared/platform.ts +1 -1
- package/shared/rate_code.ts +1 -1
- package/shared/task_status.ts +1 -1
- package/shared/task_type.ts +1 -1
- package/shared/task_update.ts +31 -22
- package/shared/time.ts +40 -31
- package/shared/user_group.ts +1 -1
- package/task/contact.ts +28 -19
- package/task/customer_review.ts +60 -51
- package/task/delivery_type.ts +17 -8
- package/task/draft_task.ts +21 -12
- package/task/order.ts +45 -36
- package/task/quote.ts +31 -22
- package/task/task.ts +156 -128
- package/task/task_note.ts +34 -25
- package/task/task_part.ts +36 -27
- package/task/task_status_update.ts +40 -31
- package/task/window.ts +20 -11
- package/tracking/request.ts +50 -41
- package/tracking/trace.ts +53 -44
- package/validate/validate.ts +253 -249
- package/vroom/request.ts +83 -74
- package/vroom/response.ts +50 -41
package/billing/bill.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto
|
|
3
|
+
// protoc-gen-ts_proto v2.2.0
|
|
4
4
|
// protoc unknown
|
|
5
5
|
// source: billing/bill.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
8
|
-
import
|
|
8
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
9
|
import {
|
|
10
10
|
FulfilmentType,
|
|
11
11
|
fulfilmentTypeFromJSON,
|
|
@@ -169,19 +169,19 @@ function createBaseBill(): Bill {
|
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
export const Bill = {
|
|
173
|
-
encode(message: Bill, writer:
|
|
172
|
+
export const Bill: MessageFns<Bill> = {
|
|
173
|
+
encode(message: Bill, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
174
174
|
if (message.billId !== 0) {
|
|
175
175
|
writer.uint32(8).int32(message.billId);
|
|
176
176
|
}
|
|
177
177
|
if (message.createdAt !== undefined) {
|
|
178
|
-
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(18).fork()).
|
|
178
|
+
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(18).fork()).join();
|
|
179
179
|
}
|
|
180
180
|
if (message.updatedAt !== undefined) {
|
|
181
|
-
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(26).fork()).
|
|
181
|
+
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(26).fork()).join();
|
|
182
182
|
}
|
|
183
183
|
if (message.refundedAt !== undefined) {
|
|
184
|
-
Timestamp.encode(toTimestamp(message.refundedAt), writer.uint32(34).fork()).
|
|
184
|
+
Timestamp.encode(toTimestamp(message.refundedAt), writer.uint32(34).fork()).join();
|
|
185
185
|
}
|
|
186
186
|
if (message.merchantId !== 0) {
|
|
187
187
|
writer.uint32(40).int32(message.merchantId);
|
|
@@ -196,25 +196,25 @@ export const Bill = {
|
|
|
196
196
|
writer.uint32(66).string(message.description);
|
|
197
197
|
}
|
|
198
198
|
if (message.breakdown !== undefined) {
|
|
199
|
-
BillBreakdown.encode(message.breakdown, writer.uint32(74).fork()).
|
|
199
|
+
BillBreakdown.encode(message.breakdown, writer.uint32(74).fork()).join();
|
|
200
200
|
}
|
|
201
201
|
if (message.metadata !== undefined) {
|
|
202
|
-
TaskBillMetadata.encode(message.metadata, writer.uint32(82).fork()).
|
|
202
|
+
TaskBillMetadata.encode(message.metadata, writer.uint32(82).fork()).join();
|
|
203
203
|
}
|
|
204
204
|
if (message.calculation !== undefined) {
|
|
205
|
-
TaskBillCalculation.encode(message.calculation, writer.uint32(90).fork()).
|
|
205
|
+
TaskBillCalculation.encode(message.calculation, writer.uint32(90).fork()).join();
|
|
206
206
|
}
|
|
207
207
|
if (message.charge !== undefined) {
|
|
208
|
-
Charge.encode(message.charge, writer.uint32(114).fork()).
|
|
208
|
+
Charge.encode(message.charge, writer.uint32(114).fork()).join();
|
|
209
209
|
}
|
|
210
210
|
if (message.conversion !== undefined) {
|
|
211
|
-
BillConversion.encode(message.conversion, writer.uint32(122).fork()).
|
|
211
|
+
BillConversion.encode(message.conversion, writer.uint32(122).fork()).join();
|
|
212
212
|
}
|
|
213
213
|
return writer;
|
|
214
214
|
},
|
|
215
215
|
|
|
216
|
-
decode(input:
|
|
217
|
-
const reader = input instanceof
|
|
216
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Bill {
|
|
217
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
218
218
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
219
219
|
const message = createBaseBill();
|
|
220
220
|
while (reader.pos < end) {
|
|
@@ -315,7 +315,7 @@ export const Bill = {
|
|
|
315
315
|
if ((tag & 7) === 4 || tag === 0) {
|
|
316
316
|
break;
|
|
317
317
|
}
|
|
318
|
-
reader.
|
|
318
|
+
reader.skip(tag & 7);
|
|
319
319
|
}
|
|
320
320
|
return message;
|
|
321
321
|
},
|
|
@@ -418,8 +418,8 @@ function createBaseBillBreakdown(): BillBreakdown {
|
|
|
418
418
|
return { currency: Currency.CURRENCY_UNSPECIFIED, subtotal: 0, vat: 0, total: 0 };
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
export const BillBreakdown = {
|
|
422
|
-
encode(message: BillBreakdown, writer:
|
|
421
|
+
export const BillBreakdown: MessageFns<BillBreakdown> = {
|
|
422
|
+
encode(message: BillBreakdown, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
423
423
|
if (message.currency !== Currency.CURRENCY_UNSPECIFIED) {
|
|
424
424
|
writer.uint32(8).int32(currencyToNumber(message.currency));
|
|
425
425
|
}
|
|
@@ -435,8 +435,8 @@ export const BillBreakdown = {
|
|
|
435
435
|
return writer;
|
|
436
436
|
},
|
|
437
437
|
|
|
438
|
-
decode(input:
|
|
439
|
-
const reader = input instanceof
|
|
438
|
+
decode(input: BinaryReader | Uint8Array, length?: number): BillBreakdown {
|
|
439
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
440
440
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
441
441
|
const message = createBaseBillBreakdown();
|
|
442
442
|
while (reader.pos < end) {
|
|
@@ -474,7 +474,7 @@ export const BillBreakdown = {
|
|
|
474
474
|
if ((tag & 7) === 4 || tag === 0) {
|
|
475
475
|
break;
|
|
476
476
|
}
|
|
477
|
-
reader.
|
|
477
|
+
reader.skip(tag & 7);
|
|
478
478
|
}
|
|
479
479
|
return message;
|
|
480
480
|
},
|
|
@@ -522,8 +522,8 @@ function createBaseBillConversion(): BillConversion {
|
|
|
522
522
|
return { currencyPair: "", rate: 0, breakdown: undefined };
|
|
523
523
|
}
|
|
524
524
|
|
|
525
|
-
export const BillConversion = {
|
|
526
|
-
encode(message: BillConversion, writer:
|
|
525
|
+
export const BillConversion: MessageFns<BillConversion> = {
|
|
526
|
+
encode(message: BillConversion, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
527
527
|
if (message.currencyPair !== "") {
|
|
528
528
|
writer.uint32(10).string(message.currencyPair);
|
|
529
529
|
}
|
|
@@ -531,13 +531,13 @@ export const BillConversion = {
|
|
|
531
531
|
writer.uint32(17).double(message.rate);
|
|
532
532
|
}
|
|
533
533
|
if (message.breakdown !== undefined) {
|
|
534
|
-
BillBreakdown.encode(message.breakdown, writer.uint32(26).fork()).
|
|
534
|
+
BillBreakdown.encode(message.breakdown, writer.uint32(26).fork()).join();
|
|
535
535
|
}
|
|
536
536
|
return writer;
|
|
537
537
|
},
|
|
538
538
|
|
|
539
|
-
decode(input:
|
|
540
|
-
const reader = input instanceof
|
|
539
|
+
decode(input: BinaryReader | Uint8Array, length?: number): BillConversion {
|
|
540
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
541
541
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
542
542
|
const message = createBaseBillConversion();
|
|
543
543
|
while (reader.pos < end) {
|
|
@@ -568,7 +568,7 @@ export const BillConversion = {
|
|
|
568
568
|
if ((tag & 7) === 4 || tag === 0) {
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
|
-
reader.
|
|
571
|
+
reader.skip(tag & 7);
|
|
572
572
|
}
|
|
573
573
|
return message;
|
|
574
574
|
},
|
|
@@ -624,8 +624,8 @@ function createBaseTaskBillMetadata(): TaskBillMetadata {
|
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
626
|
|
|
627
|
-
export const TaskBillMetadata = {
|
|
628
|
-
encode(message: TaskBillMetadata, writer:
|
|
627
|
+
export const TaskBillMetadata: MessageFns<TaskBillMetadata> = {
|
|
628
|
+
encode(message: TaskBillMetadata, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
629
629
|
if (message.rateCode !== RateCode.RATE_CODE_UNSPECIFIED) {
|
|
630
630
|
writer.uint32(8).int32(rateCodeToNumber(message.rateCode));
|
|
631
631
|
}
|
|
@@ -633,7 +633,7 @@ export const TaskBillMetadata = {
|
|
|
633
633
|
for (const v of message.taskIds) {
|
|
634
634
|
writer.int32(v);
|
|
635
635
|
}
|
|
636
|
-
writer.
|
|
636
|
+
writer.join();
|
|
637
637
|
if (message.taskType !== undefined) {
|
|
638
638
|
writer.uint32(24).int32(taskTypeToNumber(message.taskType));
|
|
639
639
|
}
|
|
@@ -659,12 +659,12 @@ export const TaskBillMetadata = {
|
|
|
659
659
|
for (const v of message.productIds) {
|
|
660
660
|
writer.int32(v);
|
|
661
661
|
}
|
|
662
|
-
writer.
|
|
662
|
+
writer.join();
|
|
663
663
|
return writer;
|
|
664
664
|
},
|
|
665
665
|
|
|
666
|
-
decode(input:
|
|
667
|
-
const reader = input instanceof
|
|
666
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TaskBillMetadata {
|
|
667
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
668
668
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
669
669
|
const message = createBaseTaskBillMetadata();
|
|
670
670
|
while (reader.pos < end) {
|
|
@@ -764,7 +764,7 @@ export const TaskBillMetadata = {
|
|
|
764
764
|
if ((tag & 7) === 4 || tag === 0) {
|
|
765
765
|
break;
|
|
766
766
|
}
|
|
767
|
-
reader.
|
|
767
|
+
reader.skip(tag & 7);
|
|
768
768
|
}
|
|
769
769
|
return message;
|
|
770
770
|
},
|
|
@@ -844,13 +844,13 @@ function createBaseMFCBillMetadata(): MFCBillMetadata {
|
|
|
844
844
|
return {};
|
|
845
845
|
}
|
|
846
846
|
|
|
847
|
-
export const MFCBillMetadata = {
|
|
848
|
-
encode(_: MFCBillMetadata, writer:
|
|
847
|
+
export const MFCBillMetadata: MessageFns<MFCBillMetadata> = {
|
|
848
|
+
encode(_: MFCBillMetadata, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
849
849
|
return writer;
|
|
850
850
|
},
|
|
851
851
|
|
|
852
|
-
decode(input:
|
|
853
|
-
const reader = input instanceof
|
|
852
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MFCBillMetadata {
|
|
853
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
854
854
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
855
855
|
const message = createBaseMFCBillMetadata();
|
|
856
856
|
while (reader.pos < end) {
|
|
@@ -860,7 +860,7 @@ export const MFCBillMetadata = {
|
|
|
860
860
|
if ((tag & 7) === 4 || tag === 0) {
|
|
861
861
|
break;
|
|
862
862
|
}
|
|
863
|
-
reader.
|
|
863
|
+
reader.skip(tag & 7);
|
|
864
864
|
}
|
|
865
865
|
return message;
|
|
866
866
|
},
|
|
@@ -893,8 +893,8 @@ function createBaseTaskBillCalculation(): TaskBillCalculation {
|
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
895
|
|
|
896
|
-
export const TaskBillCalculation = {
|
|
897
|
-
encode(message: TaskBillCalculation, writer:
|
|
896
|
+
export const TaskBillCalculation: MessageFns<TaskBillCalculation> = {
|
|
897
|
+
encode(message: TaskBillCalculation, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
898
898
|
if (message.deliveryCharge !== undefined) {
|
|
899
899
|
writer.uint32(8).int32(message.deliveryCharge);
|
|
900
900
|
}
|
|
@@ -913,8 +913,8 @@ export const TaskBillCalculation = {
|
|
|
913
913
|
return writer;
|
|
914
914
|
},
|
|
915
915
|
|
|
916
|
-
decode(input:
|
|
917
|
-
const reader = input instanceof
|
|
916
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TaskBillCalculation {
|
|
917
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
918
918
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
919
919
|
const message = createBaseTaskBillCalculation();
|
|
920
920
|
while (reader.pos < end) {
|
|
@@ -959,7 +959,7 @@ export const TaskBillCalculation = {
|
|
|
959
959
|
if ((tag & 7) === 4 || tag === 0) {
|
|
960
960
|
break;
|
|
961
961
|
}
|
|
962
|
-
reader.
|
|
962
|
+
reader.skip(tag & 7);
|
|
963
963
|
}
|
|
964
964
|
return message;
|
|
965
965
|
},
|
|
@@ -1014,13 +1014,13 @@ function createBaseMFCBillCalculation(): MFCBillCalculation {
|
|
|
1014
1014
|
return {};
|
|
1015
1015
|
}
|
|
1016
1016
|
|
|
1017
|
-
export const MFCBillCalculation = {
|
|
1018
|
-
encode(_: MFCBillCalculation, writer:
|
|
1017
|
+
export const MFCBillCalculation: MessageFns<MFCBillCalculation> = {
|
|
1018
|
+
encode(_: MFCBillCalculation, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1019
1019
|
return writer;
|
|
1020
1020
|
},
|
|
1021
1021
|
|
|
1022
|
-
decode(input:
|
|
1023
|
-
const reader = input instanceof
|
|
1022
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MFCBillCalculation {
|
|
1023
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1024
1024
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1025
1025
|
const message = createBaseMFCBillCalculation();
|
|
1026
1026
|
while (reader.pos < end) {
|
|
@@ -1030,7 +1030,7 @@ export const MFCBillCalculation = {
|
|
|
1030
1030
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1031
1031
|
break;
|
|
1032
1032
|
}
|
|
1033
|
-
reader.
|
|
1033
|
+
reader.skip(tag & 7);
|
|
1034
1034
|
}
|
|
1035
1035
|
return message;
|
|
1036
1036
|
},
|
|
@@ -1057,8 +1057,8 @@ function createBaseQueryBillsRequest(): QueryBillsRequest {
|
|
|
1057
1057
|
return { filter: undefined, orderBy: undefined, pageToken: undefined, pageSize: undefined, merchantId: undefined };
|
|
1058
1058
|
}
|
|
1059
1059
|
|
|
1060
|
-
export const QueryBillsRequest = {
|
|
1061
|
-
encode(message: QueryBillsRequest, writer:
|
|
1060
|
+
export const QueryBillsRequest: MessageFns<QueryBillsRequest> = {
|
|
1061
|
+
encode(message: QueryBillsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1062
1062
|
if (message.filter !== undefined) {
|
|
1063
1063
|
writer.uint32(10).string(message.filter);
|
|
1064
1064
|
}
|
|
@@ -1077,8 +1077,8 @@ export const QueryBillsRequest = {
|
|
|
1077
1077
|
return writer;
|
|
1078
1078
|
},
|
|
1079
1079
|
|
|
1080
|
-
decode(input:
|
|
1081
|
-
const reader = input instanceof
|
|
1080
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryBillsRequest {
|
|
1081
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1082
1082
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1083
1083
|
const message = createBaseQueryBillsRequest();
|
|
1084
1084
|
while (reader.pos < end) {
|
|
@@ -1123,7 +1123,7 @@ export const QueryBillsRequest = {
|
|
|
1123
1123
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1124
1124
|
break;
|
|
1125
1125
|
}
|
|
1126
|
-
reader.
|
|
1126
|
+
reader.skip(tag & 7);
|
|
1127
1127
|
}
|
|
1128
1128
|
return message;
|
|
1129
1129
|
},
|
|
@@ -1176,16 +1176,16 @@ function createBaseQueryBillsResponse(): QueryBillsResponse {
|
|
|
1176
1176
|
return { bills: [] };
|
|
1177
1177
|
}
|
|
1178
1178
|
|
|
1179
|
-
export const QueryBillsResponse = {
|
|
1180
|
-
encode(message: QueryBillsResponse, writer:
|
|
1179
|
+
export const QueryBillsResponse: MessageFns<QueryBillsResponse> = {
|
|
1180
|
+
encode(message: QueryBillsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1181
1181
|
for (const v of message.bills) {
|
|
1182
|
-
Bill.encode(v!, writer.uint32(10).fork()).
|
|
1182
|
+
Bill.encode(v!, writer.uint32(10).fork()).join();
|
|
1183
1183
|
}
|
|
1184
1184
|
return writer;
|
|
1185
1185
|
},
|
|
1186
1186
|
|
|
1187
|
-
decode(input:
|
|
1188
|
-
const reader = input instanceof
|
|
1187
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryBillsResponse {
|
|
1188
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1189
1189
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1190
1190
|
const message = createBaseQueryBillsResponse();
|
|
1191
1191
|
while (reader.pos < end) {
|
|
@@ -1202,7 +1202,7 @@ export const QueryBillsResponse = {
|
|
|
1202
1202
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1203
1203
|
break;
|
|
1204
1204
|
}
|
|
1205
|
-
reader.
|
|
1205
|
+
reader.skip(tag & 7);
|
|
1206
1206
|
}
|
|
1207
1207
|
return message;
|
|
1208
1208
|
},
|
|
@@ -1257,3 +1257,12 @@ function fromTimestamp(t: Timestamp): string {
|
|
|
1257
1257
|
function isSet(value: any): boolean {
|
|
1258
1258
|
return value !== null && value !== undefined;
|
|
1259
1259
|
}
|
|
1260
|
+
|
|
1261
|
+
export interface MessageFns<T> {
|
|
1262
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1263
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1264
|
+
fromJSON(object: any): T;
|
|
1265
|
+
toJSON(message: T): unknown;
|
|
1266
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
1267
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
1268
|
+
}
|
package/billing/charge.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto
|
|
3
|
+
// protoc-gen-ts_proto v2.2.0
|
|
4
4
|
// protoc unknown
|
|
5
5
|
// source: billing/charge.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
8
|
-
import
|
|
8
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
9
|
import { Timestamp } from "../google/protobuf/timestamp";
|
|
10
10
|
import { PlatformType, platformTypeFromJSON, platformTypeToJSON, platformTypeToNumber } from "../shared/platform";
|
|
11
11
|
import { Currency, currencyFromJSON, currencyToJSON, currencyToNumber } from "./currency";
|
|
@@ -45,19 +45,19 @@ function createBaseCharge(): Charge {
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export const Charge = {
|
|
49
|
-
encode(message: Charge, writer:
|
|
48
|
+
export const Charge: MessageFns<Charge> = {
|
|
49
|
+
encode(message: Charge, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
50
50
|
if (message.chargeId !== 0) {
|
|
51
51
|
writer.uint32(8).int32(message.chargeId);
|
|
52
52
|
}
|
|
53
53
|
if (message.createdAt !== undefined) {
|
|
54
|
-
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(18).fork()).
|
|
54
|
+
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(18).fork()).join();
|
|
55
55
|
}
|
|
56
56
|
if (message.updatedAt !== undefined) {
|
|
57
|
-
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(26).fork()).
|
|
57
|
+
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(26).fork()).join();
|
|
58
58
|
}
|
|
59
59
|
if (message.deletedAt !== undefined) {
|
|
60
|
-
Timestamp.encode(toTimestamp(message.deletedAt), writer.uint32(34).fork()).
|
|
60
|
+
Timestamp.encode(toTimestamp(message.deletedAt), writer.uint32(34).fork()).join();
|
|
61
61
|
}
|
|
62
62
|
if (message.merchantId !== 0) {
|
|
63
63
|
writer.uint32(40).int32(message.merchantId);
|
|
@@ -81,13 +81,13 @@ export const Charge = {
|
|
|
81
81
|
writer.uint32(90).string(message.description);
|
|
82
82
|
}
|
|
83
83
|
for (const v of message.platformCharges) {
|
|
84
|
-
PlatformCharge.encode(v!, writer.uint32(98).fork()).
|
|
84
|
+
PlatformCharge.encode(v!, writer.uint32(98).fork()).join();
|
|
85
85
|
}
|
|
86
86
|
return writer;
|
|
87
87
|
},
|
|
88
88
|
|
|
89
|
-
decode(input:
|
|
90
|
-
const reader = input instanceof
|
|
89
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Charge {
|
|
90
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
91
91
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
92
92
|
const message = createBaseCharge();
|
|
93
93
|
while (reader.pos < end) {
|
|
@@ -181,7 +181,7 @@ export const Charge = {
|
|
|
181
181
|
if ((tag & 7) === 4 || tag === 0) {
|
|
182
182
|
break;
|
|
183
183
|
}
|
|
184
|
-
reader.
|
|
184
|
+
reader.skip(tag & 7);
|
|
185
185
|
}
|
|
186
186
|
return message;
|
|
187
187
|
},
|
|
@@ -297,3 +297,12 @@ function fromTimestamp(t: Timestamp): string {
|
|
|
297
297
|
function isSet(value: any): boolean {
|
|
298
298
|
return value !== null && value !== undefined;
|
|
299
299
|
}
|
|
300
|
+
|
|
301
|
+
export interface MessageFns<T> {
|
|
302
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
303
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
304
|
+
fromJSON(object: any): T;
|
|
305
|
+
toJSON(message: T): unknown;
|
|
306
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
307
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
308
|
+
}
|
package/billing/currency.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto
|
|
3
|
+
// protoc-gen-ts_proto v2.2.0
|
|
4
4
|
// protoc unknown
|
|
5
5
|
// source: billing/platform_charge.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
8
|
-
import
|
|
9
|
-
import _m0 from "protobufjs/minimal";
|
|
8
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
10
9
|
import { Timestamp } from "../google/protobuf/timestamp";
|
|
11
10
|
|
|
12
11
|
export const protobufPackage = "billing";
|
|
@@ -84,16 +83,16 @@ function createBasePlatformCharge(): PlatformCharge {
|
|
|
84
83
|
};
|
|
85
84
|
}
|
|
86
85
|
|
|
87
|
-
export const PlatformCharge = {
|
|
88
|
-
encode(message: PlatformCharge, writer:
|
|
86
|
+
export const PlatformCharge: MessageFns<PlatformCharge> = {
|
|
87
|
+
encode(message: PlatformCharge, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
89
88
|
if (message.id !== 0) {
|
|
90
89
|
writer.uint32(8).int64(message.id);
|
|
91
90
|
}
|
|
92
91
|
if (message.createdAt !== undefined) {
|
|
93
|
-
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(18).fork()).
|
|
92
|
+
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(18).fork()).join();
|
|
94
93
|
}
|
|
95
94
|
if (message.updatedAt !== undefined) {
|
|
96
|
-
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(26).fork()).
|
|
95
|
+
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(26).fork()).join();
|
|
97
96
|
}
|
|
98
97
|
if (message.platformChargeType !== PlatformChargeType.PLATFORM_CHARGE_TYPE_UNSPECIFIED) {
|
|
99
98
|
writer.uint32(32).int32(platformChargeTypeToNumber(message.platformChargeType));
|
|
@@ -107,8 +106,8 @@ export const PlatformCharge = {
|
|
|
107
106
|
return writer;
|
|
108
107
|
},
|
|
109
108
|
|
|
110
|
-
decode(input:
|
|
111
|
-
const reader = input instanceof
|
|
109
|
+
decode(input: BinaryReader | Uint8Array, length?: number): PlatformCharge {
|
|
110
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
112
111
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
113
112
|
const message = createBasePlatformCharge();
|
|
114
113
|
while (reader.pos < end) {
|
|
@@ -119,7 +118,7 @@ export const PlatformCharge = {
|
|
|
119
118
|
break;
|
|
120
119
|
}
|
|
121
120
|
|
|
122
|
-
message.id = longToNumber(reader.int64()
|
|
121
|
+
message.id = longToNumber(reader.int64());
|
|
123
122
|
continue;
|
|
124
123
|
case 2:
|
|
125
124
|
if (tag !== 18) {
|
|
@@ -154,13 +153,13 @@ export const PlatformCharge = {
|
|
|
154
153
|
break;
|
|
155
154
|
}
|
|
156
155
|
|
|
157
|
-
message.amount = longToNumber(reader.int64()
|
|
156
|
+
message.amount = longToNumber(reader.int64());
|
|
158
157
|
continue;
|
|
159
158
|
}
|
|
160
159
|
if ((tag & 7) === 4 || tag === 0) {
|
|
161
160
|
break;
|
|
162
161
|
}
|
|
163
|
-
reader.
|
|
162
|
+
reader.skip(tag & 7);
|
|
164
163
|
}
|
|
165
164
|
return message;
|
|
166
165
|
},
|
|
@@ -241,21 +240,26 @@ function fromTimestamp(t: Timestamp): string {
|
|
|
241
240
|
return new globalThis.Date(millis).toISOString();
|
|
242
241
|
}
|
|
243
242
|
|
|
244
|
-
function longToNumber(
|
|
245
|
-
|
|
243
|
+
function longToNumber(int64: { toString(): string }): number {
|
|
244
|
+
const num = globalThis.Number(int64.toString());
|
|
245
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
246
246
|
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
247
247
|
}
|
|
248
|
-
if (
|
|
248
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
249
249
|
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
250
250
|
}
|
|
251
|
-
return
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
if (_m0.util.Long !== Long) {
|
|
255
|
-
_m0.util.Long = Long as any;
|
|
256
|
-
_m0.configure();
|
|
251
|
+
return num;
|
|
257
252
|
}
|
|
258
253
|
|
|
259
254
|
function isSet(value: any): boolean {
|
|
260
255
|
return value !== null && value !== undefined;
|
|
261
256
|
}
|
|
257
|
+
|
|
258
|
+
export interface MessageFns<T> {
|
|
259
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
260
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
261
|
+
fromJSON(object: any): T;
|
|
262
|
+
toJSON(message: T): unknown;
|
|
263
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
264
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
265
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto
|
|
3
|
+
// protoc-gen-ts_proto v2.2.0
|
|
4
4
|
// protoc unknown
|
|
5
5
|
// source: controller/consignment_holder.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
8
|
-
import
|
|
8
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
9
|
|
|
10
10
|
export const protobufPackage = "controller";
|
|
11
11
|
|
|
@@ -28,8 +28,8 @@ function createBaseConsignmentHolder(): ConsignmentHolder {
|
|
|
28
28
|
return { taskId: 0, consignmentId: 0, courierId: undefined, fulfilmentLocationId: undefined };
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export const ConsignmentHolder = {
|
|
32
|
-
encode(message: ConsignmentHolder, writer:
|
|
31
|
+
export const ConsignmentHolder: MessageFns<ConsignmentHolder> = {
|
|
32
|
+
encode(message: ConsignmentHolder, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
33
33
|
if (message.taskId !== 0) {
|
|
34
34
|
writer.uint32(8).int32(message.taskId);
|
|
35
35
|
}
|
|
@@ -45,8 +45,8 @@ export const ConsignmentHolder = {
|
|
|
45
45
|
return writer;
|
|
46
46
|
},
|
|
47
47
|
|
|
48
|
-
decode(input:
|
|
49
|
-
const reader = input instanceof
|
|
48
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ConsignmentHolder {
|
|
49
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50
50
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
51
51
|
const message = createBaseConsignmentHolder();
|
|
52
52
|
while (reader.pos < end) {
|
|
@@ -84,7 +84,7 @@ export const ConsignmentHolder = {
|
|
|
84
84
|
if ((tag & 7) === 4 || tag === 0) {
|
|
85
85
|
break;
|
|
86
86
|
}
|
|
87
|
-
reader.
|
|
87
|
+
reader.skip(tag & 7);
|
|
88
88
|
}
|
|
89
89
|
return message;
|
|
90
90
|
},
|
|
@@ -134,16 +134,16 @@ function createBaseQueryConsignmentHoldersRequest(): QueryConsignmentHoldersRequ
|
|
|
134
134
|
return { filter: undefined };
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
export const QueryConsignmentHoldersRequest = {
|
|
138
|
-
encode(message: QueryConsignmentHoldersRequest, writer:
|
|
137
|
+
export const QueryConsignmentHoldersRequest: MessageFns<QueryConsignmentHoldersRequest> = {
|
|
138
|
+
encode(message: QueryConsignmentHoldersRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
139
139
|
if (message.filter !== undefined) {
|
|
140
140
|
writer.uint32(10).string(message.filter);
|
|
141
141
|
}
|
|
142
142
|
return writer;
|
|
143
143
|
},
|
|
144
144
|
|
|
145
|
-
decode(input:
|
|
146
|
-
const reader = input instanceof
|
|
145
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConsignmentHoldersRequest {
|
|
146
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
147
147
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
148
148
|
const message = createBaseQueryConsignmentHoldersRequest();
|
|
149
149
|
while (reader.pos < end) {
|
|
@@ -160,7 +160,7 @@ export const QueryConsignmentHoldersRequest = {
|
|
|
160
160
|
if ((tag & 7) === 4 || tag === 0) {
|
|
161
161
|
break;
|
|
162
162
|
}
|
|
163
|
-
reader.
|
|
163
|
+
reader.skip(tag & 7);
|
|
164
164
|
}
|
|
165
165
|
return message;
|
|
166
166
|
},
|
|
@@ -193,16 +193,16 @@ function createBaseQueryConsignmentHoldersResponse(): QueryConsignmentHoldersRes
|
|
|
193
193
|
return { consignmentHolders: [] };
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
export const QueryConsignmentHoldersResponse = {
|
|
197
|
-
encode(message: QueryConsignmentHoldersResponse, writer:
|
|
196
|
+
export const QueryConsignmentHoldersResponse: MessageFns<QueryConsignmentHoldersResponse> = {
|
|
197
|
+
encode(message: QueryConsignmentHoldersResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
198
198
|
for (const v of message.consignmentHolders) {
|
|
199
|
-
ConsignmentHolder.encode(v!, writer.uint32(10).fork()).
|
|
199
|
+
ConsignmentHolder.encode(v!, writer.uint32(10).fork()).join();
|
|
200
200
|
}
|
|
201
201
|
return writer;
|
|
202
202
|
},
|
|
203
203
|
|
|
204
|
-
decode(input:
|
|
205
|
-
const reader = input instanceof
|
|
204
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConsignmentHoldersResponse {
|
|
205
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
206
206
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
207
207
|
const message = createBaseQueryConsignmentHoldersResponse();
|
|
208
208
|
while (reader.pos < end) {
|
|
@@ -219,7 +219,7 @@ export const QueryConsignmentHoldersResponse = {
|
|
|
219
219
|
if ((tag & 7) === 4 || tag === 0) {
|
|
220
220
|
break;
|
|
221
221
|
}
|
|
222
|
-
reader.
|
|
222
|
+
reader.skip(tag & 7);
|
|
223
223
|
}
|
|
224
224
|
return message;
|
|
225
225
|
},
|
|
@@ -267,3 +267,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P
|
|
|
267
267
|
function isSet(value: any): boolean {
|
|
268
268
|
return value !== null && value !== undefined;
|
|
269
269
|
}
|
|
270
|
+
|
|
271
|
+
export interface MessageFns<T> {
|
|
272
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
273
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
274
|
+
fromJSON(object: any): T;
|
|
275
|
+
toJSON(message: T): unknown;
|
|
276
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
277
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
278
|
+
}
|