@platfformx/proto-contracts 1.4.10 → 1.4.11
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.
|
@@ -22,13 +22,13 @@ export interface OrderItem {
|
|
|
22
22
|
quantity: number;
|
|
23
23
|
}
|
|
24
24
|
export declare const ORDER_V1_PACKAGE_NAME = "order.v1";
|
|
25
|
-
export interface
|
|
25
|
+
export interface OrderServiceClient {
|
|
26
26
|
createOrder(request: CreateOrderRequest): Observable<CreateOrderResponse>;
|
|
27
27
|
updateOrderStatus(request: UpdateOrderStatusRequest): Observable<UpdateOrderStatusResponse>;
|
|
28
28
|
}
|
|
29
|
-
export interface
|
|
29
|
+
export interface OrderServiceController {
|
|
30
30
|
createOrder(request: CreateOrderRequest): Promise<CreateOrderResponse> | Observable<CreateOrderResponse> | CreateOrderResponse;
|
|
31
31
|
updateOrderStatus(request: UpdateOrderStatusRequest): Promise<UpdateOrderStatusResponse> | Observable<UpdateOrderStatusResponse> | UpdateOrderStatusResponse;
|
|
32
32
|
}
|
|
33
|
-
export declare function
|
|
34
|
-
export declare const
|
|
33
|
+
export declare function OrderServiceControllerMethods(): (constructor: Function) => void;
|
|
34
|
+
export declare const ORDER_SERVICE_NAME = "OrderService";
|
|
@@ -5,24 +5,24 @@
|
|
|
5
5
|
// protoc v7.34.0
|
|
6
6
|
// source: order-service/order.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
8
|
+
exports.ORDER_SERVICE_NAME = exports.ORDER_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
+
exports.OrderServiceControllerMethods = OrderServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
12
|
exports.protobufPackage = "order.v1";
|
|
13
13
|
exports.ORDER_V1_PACKAGE_NAME = "order.v1";
|
|
14
|
-
function
|
|
14
|
+
function OrderServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
16
|
const grpcMethods = ["createOrder", "updateOrderStatus"];
|
|
17
17
|
for (const method of grpcMethods) {
|
|
18
18
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
19
|
-
(0, microservices_1.GrpcMethod)("
|
|
19
|
+
(0, microservices_1.GrpcMethod)("OrderService", method)(constructor.prototype[method], method, descriptor);
|
|
20
20
|
}
|
|
21
21
|
const grpcStreamMethods = [];
|
|
22
22
|
for (const method of grpcStreamMethods) {
|
|
23
23
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
24
|
-
(0, microservices_1.GrpcStreamMethod)("
|
|
24
|
+
(0, microservices_1.GrpcStreamMethod)("OrderService", method)(constructor.prototype[method], method, descriptor);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
exports.
|
|
28
|
+
exports.ORDER_SERVICE_NAME = "OrderService";
|
package/package.json
CHANGED