@sagebox-be/proto-contracts 1.0.14 → 1.0.15

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.
@@ -15,10 +15,9 @@ export interface GetProductByIdRequest {
15
15
  }
16
16
  export interface CreateProductRequest {
17
17
  name: string;
18
- title: string;
18
+ brandId?: string | undefined;
19
19
  description: string;
20
20
  categoryId: string;
21
- storeId: string;
22
21
  status: string;
23
22
  mediaKeys: string[];
24
23
  skus: ProductSkuInput[];
@@ -71,11 +70,10 @@ export interface GetWardsResponse {
71
70
  export interface Product {
72
71
  id: string;
73
72
  name: string;
74
- title: string;
73
+ brandId?: string | undefined;
75
74
  description: string;
76
75
  keywords: string;
77
76
  categoryId: string;
78
- storeId: string;
79
77
  viewedCount: number;
80
78
  status: string;
81
79
  url: string;
@@ -94,7 +92,7 @@ export interface Media {
94
92
  export interface ProductSkuInput {
95
93
  price: number;
96
94
  quantity: number;
97
- brand?: string | undefined;
95
+ warehouseId: string;
98
96
  mediaKeys: string[];
99
97
  attributeValues: AttributeValueInput[];
100
98
  }
@@ -112,6 +110,34 @@ export interface AddressUnit {
112
110
  code: string;
113
111
  name: string;
114
112
  }
113
+ /**
114
+ * ============================================
115
+ * Outbox Request Messages
116
+ * ============================================
117
+ */
118
+ export interface PublishOutboxRequest {
119
+ }
120
+ export interface RetryOutboxRequest {
121
+ }
122
+ export interface RetryEsRequest {
123
+ }
124
+ /**
125
+ * ============================================
126
+ * Outbox Response Messages
127
+ * ============================================
128
+ */
129
+ export interface PublishOutboxResponse {
130
+ success: boolean;
131
+ error: string;
132
+ }
133
+ export interface RetryOutboxResponse {
134
+ success: boolean;
135
+ error: string;
136
+ }
137
+ export interface RetryEsResponse {
138
+ success: boolean;
139
+ error: string;
140
+ }
115
141
  export declare const SAGEBOX_PACKAGE_NAME = "sagebox";
116
142
  export declare const GetProductsByCategoryIdRequest: MessageFns<GetProductsByCategoryIdRequest>;
117
143
  export declare const GetProductByIdRequest: MessageFns<GetProductByIdRequest>;
@@ -129,6 +155,12 @@ export declare const Media: MessageFns<Media>;
129
155
  export declare const ProductSkuInput: MessageFns<ProductSkuInput>;
130
156
  export declare const AttributeValueInput: MessageFns<AttributeValueInput>;
131
157
  export declare const AddressUnit: MessageFns<AddressUnit>;
158
+ export declare const PublishOutboxRequest: MessageFns<PublishOutboxRequest>;
159
+ export declare const RetryOutboxRequest: MessageFns<RetryOutboxRequest>;
160
+ export declare const RetryEsRequest: MessageFns<RetryEsRequest>;
161
+ export declare const PublishOutboxResponse: MessageFns<PublishOutboxResponse>;
162
+ export declare const RetryOutboxResponse: MessageFns<RetryOutboxResponse>;
163
+ export declare const RetryEsResponse: MessageFns<RetryEsResponse>;
132
164
  /**
133
165
  * ============================================
134
166
  * Product Service
@@ -173,6 +205,32 @@ export interface AddressServiceController {
173
205
  }
174
206
  export declare function AddressServiceControllerMethods(): (constructor: Function) => void;
175
207
  export declare const ADDRESS_SERVICE_NAME = "AddressService";
208
+ /**
209
+ * ============================================
210
+ * Outbox Service
211
+ * ============================================
212
+ */
213
+ export interface ProductOutboxServiceClient {
214
+ publishProductOutbox(request: PublishOutboxRequest, metadata?: Metadata): Observable<PublishOutboxResponse>;
215
+ retryProductOutbox(request: RetryOutboxRequest, metadata?: Metadata): Observable<RetryOutboxResponse>;
216
+ publishInventoryOutbox(request: PublishOutboxRequest, metadata?: Metadata): Observable<PublishOutboxResponse>;
217
+ retryInventoryOutbox(request: RetryOutboxRequest, metadata?: Metadata): Observable<RetryOutboxResponse>;
218
+ retryElasticsearchSync(request: RetryEsRequest, metadata?: Metadata): Observable<RetryEsResponse>;
219
+ }
220
+ /**
221
+ * ============================================
222
+ * Outbox Service
223
+ * ============================================
224
+ */
225
+ export interface ProductOutboxServiceController {
226
+ publishProductOutbox(request: PublishOutboxRequest, metadata?: Metadata): Promise<PublishOutboxResponse> | Observable<PublishOutboxResponse> | PublishOutboxResponse;
227
+ retryProductOutbox(request: RetryOutboxRequest, metadata?: Metadata): Promise<RetryOutboxResponse> | Observable<RetryOutboxResponse> | RetryOutboxResponse;
228
+ publishInventoryOutbox(request: PublishOutboxRequest, metadata?: Metadata): Promise<PublishOutboxResponse> | Observable<PublishOutboxResponse> | PublishOutboxResponse;
229
+ retryInventoryOutbox(request: RetryOutboxRequest, metadata?: Metadata): Promise<RetryOutboxResponse> | Observable<RetryOutboxResponse> | RetryOutboxResponse;
230
+ retryElasticsearchSync(request: RetryEsRequest, metadata?: Metadata): Promise<RetryEsResponse> | Observable<RetryEsResponse> | RetryEsResponse;
231
+ }
232
+ export declare function ProductOutboxServiceControllerMethods(): (constructor: Function) => void;
233
+ export declare const PRODUCT_OUTBOX_SERVICE_NAME = "ProductOutboxService";
176
234
  export interface MessageFns<T> {
177
235
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
178
236
  decode(input: BinaryReader | Uint8Array, length?: number): T;
@@ -5,9 +5,10 @@
5
5
  // protoc v6.33.2
6
6
  // source: sagebox.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.ADDRESS_SERVICE_NAME = exports.PRODUCT_SERVICE_NAME = exports.AddressUnit = exports.AttributeValueInput = exports.ProductSkuInput = exports.Media = exports.Product = exports.GetWardsResponse = exports.GetDistrictsResponse = exports.GetProvincesResponse = exports.GetWardsRequest = exports.GetDistrictsRequest = exports.GetProvincesRequest = exports.ProductResponse = exports.GetProductsResponse = exports.CreateProductRequest = exports.GetProductByIdRequest = exports.GetProductsByCategoryIdRequest = exports.SAGEBOX_PACKAGE_NAME = exports.protobufPackage = void 0;
8
+ exports.PRODUCT_OUTBOX_SERVICE_NAME = exports.ADDRESS_SERVICE_NAME = exports.PRODUCT_SERVICE_NAME = exports.RetryEsResponse = exports.RetryOutboxResponse = exports.PublishOutboxResponse = exports.RetryEsRequest = exports.RetryOutboxRequest = exports.PublishOutboxRequest = exports.AddressUnit = exports.AttributeValueInput = exports.ProductSkuInput = exports.Media = exports.Product = exports.GetWardsResponse = exports.GetDistrictsResponse = exports.GetProvincesResponse = exports.GetWardsRequest = exports.GetDistrictsRequest = exports.GetProvincesRequest = exports.ProductResponse = exports.GetProductsResponse = exports.CreateProductRequest = exports.GetProductByIdRequest = exports.GetProductsByCategoryIdRequest = exports.SAGEBOX_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.ProductServiceControllerMethods = ProductServiceControllerMethods;
10
10
  exports.AddressServiceControllerMethods = AddressServiceControllerMethods;
11
+ exports.ProductOutboxServiceControllerMethods = ProductOutboxServiceControllerMethods;
11
12
  /* eslint-disable */
12
13
  const wire_1 = require("@bufbuild/protobuf/wire");
13
14
  const microservices_1 = require("@nestjs/microservices");
@@ -82,10 +83,8 @@ exports.GetProductByIdRequest = {
82
83
  function createBaseCreateProductRequest() {
83
84
  return {
84
85
  name: '',
85
- title: '',
86
86
  description: '',
87
87
  categoryId: '',
88
- storeId: '',
89
88
  status: '',
90
89
  mediaKeys: [],
91
90
  skus: [],
@@ -96,8 +95,8 @@ exports.CreateProductRequest = {
96
95
  if (message.name !== '') {
97
96
  writer.uint32(10).string(message.name);
98
97
  }
99
- if (message.title !== '') {
100
- writer.uint32(18).string(message.title);
98
+ if (message.brandId !== undefined) {
99
+ writer.uint32(18).string(message.brandId);
101
100
  }
102
101
  if (message.description !== '') {
103
102
  writer.uint32(26).string(message.description);
@@ -105,9 +104,6 @@ exports.CreateProductRequest = {
105
104
  if (message.categoryId !== '') {
106
105
  writer.uint32(34).string(message.categoryId);
107
106
  }
108
- if (message.storeId !== '') {
109
- writer.uint32(42).string(message.storeId);
110
- }
111
107
  if (message.status !== '') {
112
108
  writer.uint32(50).string(message.status);
113
109
  }
@@ -137,7 +133,7 @@ exports.CreateProductRequest = {
137
133
  if (tag !== 18) {
138
134
  break;
139
135
  }
140
- message.title = reader.string();
136
+ message.brandId = reader.string();
141
137
  continue;
142
138
  }
143
139
  case 3: {
@@ -154,13 +150,6 @@ exports.CreateProductRequest = {
154
150
  message.categoryId = reader.string();
155
151
  continue;
156
152
  }
157
- case 5: {
158
- if (tag !== 42) {
159
- break;
160
- }
161
- message.storeId = reader.string();
162
- continue;
163
- }
164
153
  case 6: {
165
154
  if (tag !== 50) {
166
155
  break;
@@ -469,11 +458,9 @@ function createBaseProduct() {
469
458
  return {
470
459
  id: '',
471
460
  name: '',
472
- title: '',
473
461
  description: '',
474
462
  keywords: '',
475
463
  categoryId: '',
476
- storeId: '',
477
464
  viewedCount: 0,
478
465
  status: '',
479
466
  url: '',
@@ -490,8 +477,8 @@ exports.Product = {
490
477
  if (message.name !== '') {
491
478
  writer.uint32(18).string(message.name);
492
479
  }
493
- if (message.title !== '') {
494
- writer.uint32(26).string(message.title);
480
+ if (message.brandId !== undefined) {
481
+ writer.uint32(26).string(message.brandId);
495
482
  }
496
483
  if (message.description !== '') {
497
484
  writer.uint32(34).string(message.description);
@@ -502,9 +489,6 @@ exports.Product = {
502
489
  if (message.categoryId !== '') {
503
490
  writer.uint32(50).string(message.categoryId);
504
491
  }
505
- if (message.storeId !== '') {
506
- writer.uint32(58).string(message.storeId);
507
- }
508
492
  if (message.viewedCount !== 0) {
509
493
  writer.uint32(64).int32(message.viewedCount);
510
494
  }
@@ -550,7 +534,7 @@ exports.Product = {
550
534
  if (tag !== 26) {
551
535
  break;
552
536
  }
553
- message.title = reader.string();
537
+ message.brandId = reader.string();
554
538
  continue;
555
539
  }
556
540
  case 4: {
@@ -574,13 +558,6 @@ exports.Product = {
574
558
  message.categoryId = reader.string();
575
559
  continue;
576
560
  }
577
- case 7: {
578
- if (tag !== 58) {
579
- break;
580
- }
581
- message.storeId = reader.string();
582
- continue;
583
- }
584
561
  case 8: {
585
562
  if (tag !== 64) {
586
563
  break;
@@ -716,7 +693,13 @@ exports.Media = {
716
693
  },
717
694
  };
718
695
  function createBaseProductSkuInput() {
719
- return { price: 0, quantity: 0, mediaKeys: [], attributeValues: [] };
696
+ return {
697
+ price: 0,
698
+ quantity: 0,
699
+ warehouseId: '',
700
+ mediaKeys: [],
701
+ attributeValues: [],
702
+ };
720
703
  }
721
704
  exports.ProductSkuInput = {
722
705
  encode(message, writer = new wire_1.BinaryWriter()) {
@@ -726,8 +709,8 @@ exports.ProductSkuInput = {
726
709
  if (message.quantity !== 0) {
727
710
  writer.uint32(16).int32(message.quantity);
728
711
  }
729
- if (message.brand !== undefined) {
730
- writer.uint32(26).string(message.brand);
712
+ if (message.warehouseId !== '') {
713
+ writer.uint32(50).string(message.warehouseId);
731
714
  }
732
715
  for (const v of message.mediaKeys) {
733
716
  writer.uint32(34).string(v);
@@ -758,11 +741,11 @@ exports.ProductSkuInput = {
758
741
  message.quantity = reader.int32();
759
742
  continue;
760
743
  }
761
- case 3: {
762
- if (tag !== 26) {
744
+ case 6: {
745
+ if (tag !== 50) {
763
746
  break;
764
747
  }
765
- message.brand = reader.string();
748
+ message.warehouseId = reader.string();
766
749
  continue;
767
750
  }
768
751
  case 4: {
@@ -884,6 +867,204 @@ exports.AddressUnit = {
884
867
  return message;
885
868
  },
886
869
  };
870
+ function createBasePublishOutboxRequest() {
871
+ return {};
872
+ }
873
+ exports.PublishOutboxRequest = {
874
+ encode(_, writer = new wire_1.BinaryWriter()) {
875
+ return writer;
876
+ },
877
+ decode(input, length) {
878
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
879
+ const end = length === undefined ? reader.len : reader.pos + length;
880
+ const message = createBasePublishOutboxRequest();
881
+ while (reader.pos < end) {
882
+ const tag = reader.uint32();
883
+ switch (tag >>> 3) {
884
+ }
885
+ if ((tag & 7) === 4 || tag === 0) {
886
+ break;
887
+ }
888
+ reader.skip(tag & 7);
889
+ }
890
+ return message;
891
+ },
892
+ };
893
+ function createBaseRetryOutboxRequest() {
894
+ return {};
895
+ }
896
+ exports.RetryOutboxRequest = {
897
+ encode(_, writer = new wire_1.BinaryWriter()) {
898
+ return writer;
899
+ },
900
+ decode(input, length) {
901
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
902
+ const end = length === undefined ? reader.len : reader.pos + length;
903
+ const message = createBaseRetryOutboxRequest();
904
+ while (reader.pos < end) {
905
+ const tag = reader.uint32();
906
+ switch (tag >>> 3) {
907
+ }
908
+ if ((tag & 7) === 4 || tag === 0) {
909
+ break;
910
+ }
911
+ reader.skip(tag & 7);
912
+ }
913
+ return message;
914
+ },
915
+ };
916
+ function createBaseRetryEsRequest() {
917
+ return {};
918
+ }
919
+ exports.RetryEsRequest = {
920
+ encode(_, writer = new wire_1.BinaryWriter()) {
921
+ return writer;
922
+ },
923
+ decode(input, length) {
924
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
925
+ const end = length === undefined ? reader.len : reader.pos + length;
926
+ const message = createBaseRetryEsRequest();
927
+ while (reader.pos < end) {
928
+ const tag = reader.uint32();
929
+ switch (tag >>> 3) {
930
+ }
931
+ if ((tag & 7) === 4 || tag === 0) {
932
+ break;
933
+ }
934
+ reader.skip(tag & 7);
935
+ }
936
+ return message;
937
+ },
938
+ };
939
+ function createBasePublishOutboxResponse() {
940
+ return { success: false, error: '' };
941
+ }
942
+ exports.PublishOutboxResponse = {
943
+ encode(message, writer = new wire_1.BinaryWriter()) {
944
+ if (message.success !== false) {
945
+ writer.uint32(8).bool(message.success);
946
+ }
947
+ if (message.error !== '') {
948
+ writer.uint32(18).string(message.error);
949
+ }
950
+ return writer;
951
+ },
952
+ decode(input, length) {
953
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
954
+ const end = length === undefined ? reader.len : reader.pos + length;
955
+ const message = createBasePublishOutboxResponse();
956
+ while (reader.pos < end) {
957
+ const tag = reader.uint32();
958
+ switch (tag >>> 3) {
959
+ case 1: {
960
+ if (tag !== 8) {
961
+ break;
962
+ }
963
+ message.success = reader.bool();
964
+ continue;
965
+ }
966
+ case 2: {
967
+ if (tag !== 18) {
968
+ break;
969
+ }
970
+ message.error = reader.string();
971
+ continue;
972
+ }
973
+ }
974
+ if ((tag & 7) === 4 || tag === 0) {
975
+ break;
976
+ }
977
+ reader.skip(tag & 7);
978
+ }
979
+ return message;
980
+ },
981
+ };
982
+ function createBaseRetryOutboxResponse() {
983
+ return { success: false, error: '' };
984
+ }
985
+ exports.RetryOutboxResponse = {
986
+ encode(message, writer = new wire_1.BinaryWriter()) {
987
+ if (message.success !== false) {
988
+ writer.uint32(8).bool(message.success);
989
+ }
990
+ if (message.error !== '') {
991
+ writer.uint32(18).string(message.error);
992
+ }
993
+ return writer;
994
+ },
995
+ decode(input, length) {
996
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
997
+ const end = length === undefined ? reader.len : reader.pos + length;
998
+ const message = createBaseRetryOutboxResponse();
999
+ while (reader.pos < end) {
1000
+ const tag = reader.uint32();
1001
+ switch (tag >>> 3) {
1002
+ case 1: {
1003
+ if (tag !== 8) {
1004
+ break;
1005
+ }
1006
+ message.success = reader.bool();
1007
+ continue;
1008
+ }
1009
+ case 2: {
1010
+ if (tag !== 18) {
1011
+ break;
1012
+ }
1013
+ message.error = reader.string();
1014
+ continue;
1015
+ }
1016
+ }
1017
+ if ((tag & 7) === 4 || tag === 0) {
1018
+ break;
1019
+ }
1020
+ reader.skip(tag & 7);
1021
+ }
1022
+ return message;
1023
+ },
1024
+ };
1025
+ function createBaseRetryEsResponse() {
1026
+ return { success: false, error: '' };
1027
+ }
1028
+ exports.RetryEsResponse = {
1029
+ encode(message, writer = new wire_1.BinaryWriter()) {
1030
+ if (message.success !== false) {
1031
+ writer.uint32(8).bool(message.success);
1032
+ }
1033
+ if (message.error !== '') {
1034
+ writer.uint32(18).string(message.error);
1035
+ }
1036
+ return writer;
1037
+ },
1038
+ decode(input, length) {
1039
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1040
+ const end = length === undefined ? reader.len : reader.pos + length;
1041
+ const message = createBaseRetryEsResponse();
1042
+ while (reader.pos < end) {
1043
+ const tag = reader.uint32();
1044
+ switch (tag >>> 3) {
1045
+ case 1: {
1046
+ if (tag !== 8) {
1047
+ break;
1048
+ }
1049
+ message.success = reader.bool();
1050
+ continue;
1051
+ }
1052
+ case 2: {
1053
+ if (tag !== 18) {
1054
+ break;
1055
+ }
1056
+ message.error = reader.string();
1057
+ continue;
1058
+ }
1059
+ }
1060
+ if ((tag & 7) === 4 || tag === 0) {
1061
+ break;
1062
+ }
1063
+ reader.skip(tag & 7);
1064
+ }
1065
+ return message;
1066
+ },
1067
+ };
887
1068
  function ProductServiceControllerMethods() {
888
1069
  return function (constructor) {
889
1070
  const grpcMethods = [
@@ -918,3 +1099,24 @@ function AddressServiceControllerMethods() {
918
1099
  };
919
1100
  }
920
1101
  exports.ADDRESS_SERVICE_NAME = 'AddressService';
1102
+ function ProductOutboxServiceControllerMethods() {
1103
+ return function (constructor) {
1104
+ const grpcMethods = [
1105
+ 'publishProductOutbox',
1106
+ 'retryProductOutbox',
1107
+ 'publishInventoryOutbox',
1108
+ 'retryInventoryOutbox',
1109
+ 'retryElasticsearchSync',
1110
+ ];
1111
+ for (const method of grpcMethods) {
1112
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
1113
+ (0, microservices_1.GrpcMethod)('ProductOutboxService', method)(constructor.prototype[method], method, descriptor);
1114
+ }
1115
+ const grpcStreamMethods = [];
1116
+ for (const method of grpcStreamMethods) {
1117
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
1118
+ (0, microservices_1.GrpcStreamMethod)('ProductOutboxService', method)(constructor.prototype[method], method, descriptor);
1119
+ }
1120
+ };
1121
+ }
1122
+ exports.PRODUCT_OUTBOX_SERVICE_NAME = 'ProductOutboxService';
@@ -14,10 +14,9 @@ export interface GetProductByIdRequest {
14
14
  }
15
15
  export interface CreateProductRequest {
16
16
  name: string;
17
- title: string;
17
+ brandId?: string | undefined;
18
18
  description: string;
19
19
  categoryId: string;
20
- storeId: string;
21
20
  status: string;
22
21
  mediaKeys: string[];
23
22
  skus: ProductSkuInput[];
@@ -70,11 +69,10 @@ export interface GetWardsResponse {
70
69
  export interface Product {
71
70
  id: string;
72
71
  name: string;
73
- title: string;
72
+ brandId?: string | undefined;
74
73
  description: string;
75
74
  keywords: string;
76
75
  categoryId: string;
77
- storeId: string;
78
76
  viewedCount: number;
79
77
  status: string;
80
78
  url: string;
@@ -93,7 +91,7 @@ export interface Media {
93
91
  export interface ProductSkuInput {
94
92
  price: number;
95
93
  quantity: number;
96
- brand?: string | undefined;
94
+ warehouseId: string;
97
95
  mediaKeys: string[];
98
96
  attributeValues: AttributeValueInput[];
99
97
  }
@@ -111,6 +109,34 @@ export interface AddressUnit {
111
109
  code: string;
112
110
  name: string;
113
111
  }
112
+ /**
113
+ * ============================================
114
+ * Outbox Request Messages
115
+ * ============================================
116
+ */
117
+ export interface PublishOutboxRequest {
118
+ }
119
+ export interface RetryOutboxRequest {
120
+ }
121
+ export interface RetryEsRequest {
122
+ }
123
+ /**
124
+ * ============================================
125
+ * Outbox Response Messages
126
+ * ============================================
127
+ */
128
+ export interface PublishOutboxResponse {
129
+ success: boolean;
130
+ error: string;
131
+ }
132
+ export interface RetryOutboxResponse {
133
+ success: boolean;
134
+ error: string;
135
+ }
136
+ export interface RetryEsResponse {
137
+ success: boolean;
138
+ error: string;
139
+ }
114
140
  export declare const GetProductsByCategoryIdRequest: MessageFns<GetProductsByCategoryIdRequest>;
115
141
  export declare const GetProductByIdRequest: MessageFns<GetProductByIdRequest>;
116
142
  export declare const CreateProductRequest: MessageFns<CreateProductRequest>;
@@ -127,6 +153,12 @@ export declare const Media: MessageFns<Media>;
127
153
  export declare const ProductSkuInput: MessageFns<ProductSkuInput>;
128
154
  export declare const AttributeValueInput: MessageFns<AttributeValueInput>;
129
155
  export declare const AddressUnit: MessageFns<AddressUnit>;
156
+ export declare const PublishOutboxRequest: MessageFns<PublishOutboxRequest>;
157
+ export declare const RetryOutboxRequest: MessageFns<RetryOutboxRequest>;
158
+ export declare const RetryEsRequest: MessageFns<RetryEsRequest>;
159
+ export declare const PublishOutboxResponse: MessageFns<PublishOutboxResponse>;
160
+ export declare const RetryOutboxResponse: MessageFns<RetryOutboxResponse>;
161
+ export declare const RetryEsResponse: MessageFns<RetryEsResponse>;
130
162
  /**
131
163
  * ============================================
132
164
  * Product Service
@@ -239,6 +271,88 @@ export declare const AddressServiceClient: {
239
271
  service: typeof AddressServiceService;
240
272
  serviceName: string;
241
273
  };
274
+ /**
275
+ * ============================================
276
+ * Outbox Service
277
+ * ============================================
278
+ */
279
+ export type ProductOutboxServiceService = typeof ProductOutboxServiceService;
280
+ export declare const ProductOutboxServiceService: {
281
+ readonly publishProductOutbox: {
282
+ readonly path: "/sagebox.ProductOutboxService/PublishProductOutbox";
283
+ readonly requestStream: false;
284
+ readonly responseStream: false;
285
+ readonly requestSerialize: (value: PublishOutboxRequest) => Buffer;
286
+ readonly requestDeserialize: (value: Buffer) => PublishOutboxRequest;
287
+ readonly responseSerialize: (value: PublishOutboxResponse) => Buffer;
288
+ readonly responseDeserialize: (value: Buffer) => PublishOutboxResponse;
289
+ };
290
+ readonly retryProductOutbox: {
291
+ readonly path: "/sagebox.ProductOutboxService/RetryProductOutbox";
292
+ readonly requestStream: false;
293
+ readonly responseStream: false;
294
+ readonly requestSerialize: (value: RetryOutboxRequest) => Buffer;
295
+ readonly requestDeserialize: (value: Buffer) => RetryOutboxRequest;
296
+ readonly responseSerialize: (value: RetryOutboxResponse) => Buffer;
297
+ readonly responseDeserialize: (value: Buffer) => RetryOutboxResponse;
298
+ };
299
+ readonly publishInventoryOutbox: {
300
+ readonly path: "/sagebox.ProductOutboxService/PublishInventoryOutbox";
301
+ readonly requestStream: false;
302
+ readonly responseStream: false;
303
+ readonly requestSerialize: (value: PublishOutboxRequest) => Buffer;
304
+ readonly requestDeserialize: (value: Buffer) => PublishOutboxRequest;
305
+ readonly responseSerialize: (value: PublishOutboxResponse) => Buffer;
306
+ readonly responseDeserialize: (value: Buffer) => PublishOutboxResponse;
307
+ };
308
+ readonly retryInventoryOutbox: {
309
+ readonly path: "/sagebox.ProductOutboxService/RetryInventoryOutbox";
310
+ readonly requestStream: false;
311
+ readonly responseStream: false;
312
+ readonly requestSerialize: (value: RetryOutboxRequest) => Buffer;
313
+ readonly requestDeserialize: (value: Buffer) => RetryOutboxRequest;
314
+ readonly responseSerialize: (value: RetryOutboxResponse) => Buffer;
315
+ readonly responseDeserialize: (value: Buffer) => RetryOutboxResponse;
316
+ };
317
+ readonly retryElasticsearchSync: {
318
+ readonly path: "/sagebox.ProductOutboxService/RetryElasticsearchSync";
319
+ readonly requestStream: false;
320
+ readonly responseStream: false;
321
+ readonly requestSerialize: (value: RetryEsRequest) => Buffer;
322
+ readonly requestDeserialize: (value: Buffer) => RetryEsRequest;
323
+ readonly responseSerialize: (value: RetryEsResponse) => Buffer;
324
+ readonly responseDeserialize: (value: Buffer) => RetryEsResponse;
325
+ };
326
+ };
327
+ export interface ProductOutboxServiceServer extends UntypedServiceImplementation {
328
+ publishProductOutbox: handleUnaryCall<PublishOutboxRequest, PublishOutboxResponse>;
329
+ retryProductOutbox: handleUnaryCall<RetryOutboxRequest, RetryOutboxResponse>;
330
+ publishInventoryOutbox: handleUnaryCall<PublishOutboxRequest, PublishOutboxResponse>;
331
+ retryInventoryOutbox: handleUnaryCall<RetryOutboxRequest, RetryOutboxResponse>;
332
+ retryElasticsearchSync: handleUnaryCall<RetryEsRequest, RetryEsResponse>;
333
+ }
334
+ export interface ProductOutboxServiceClient extends Client {
335
+ publishProductOutbox(request: PublishOutboxRequest, callback: (error: ServiceError | null, response: PublishOutboxResponse) => void): ClientUnaryCall;
336
+ publishProductOutbox(request: PublishOutboxRequest, metadata: Metadata, callback: (error: ServiceError | null, response: PublishOutboxResponse) => void): ClientUnaryCall;
337
+ publishProductOutbox(request: PublishOutboxRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: PublishOutboxResponse) => void): ClientUnaryCall;
338
+ retryProductOutbox(request: RetryOutboxRequest, callback: (error: ServiceError | null, response: RetryOutboxResponse) => void): ClientUnaryCall;
339
+ retryProductOutbox(request: RetryOutboxRequest, metadata: Metadata, callback: (error: ServiceError | null, response: RetryOutboxResponse) => void): ClientUnaryCall;
340
+ retryProductOutbox(request: RetryOutboxRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: RetryOutboxResponse) => void): ClientUnaryCall;
341
+ publishInventoryOutbox(request: PublishOutboxRequest, callback: (error: ServiceError | null, response: PublishOutboxResponse) => void): ClientUnaryCall;
342
+ publishInventoryOutbox(request: PublishOutboxRequest, metadata: Metadata, callback: (error: ServiceError | null, response: PublishOutboxResponse) => void): ClientUnaryCall;
343
+ publishInventoryOutbox(request: PublishOutboxRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: PublishOutboxResponse) => void): ClientUnaryCall;
344
+ retryInventoryOutbox(request: RetryOutboxRequest, callback: (error: ServiceError | null, response: RetryOutboxResponse) => void): ClientUnaryCall;
345
+ retryInventoryOutbox(request: RetryOutboxRequest, metadata: Metadata, callback: (error: ServiceError | null, response: RetryOutboxResponse) => void): ClientUnaryCall;
346
+ retryInventoryOutbox(request: RetryOutboxRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: RetryOutboxResponse) => void): ClientUnaryCall;
347
+ retryElasticsearchSync(request: RetryEsRequest, callback: (error: ServiceError | null, response: RetryEsResponse) => void): ClientUnaryCall;
348
+ retryElasticsearchSync(request: RetryEsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: RetryEsResponse) => void): ClientUnaryCall;
349
+ retryElasticsearchSync(request: RetryEsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: RetryEsResponse) => void): ClientUnaryCall;
350
+ }
351
+ export declare const ProductOutboxServiceClient: {
352
+ new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): ProductOutboxServiceClient;
353
+ service: typeof ProductOutboxServiceService;
354
+ serviceName: string;
355
+ };
242
356
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
243
357
  export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
244
358
  [K in keyof T]?: DeepPartial<T[K]>;