Skip to content

Commit

Permalink
fix(fulfillment_product): register fulfillment_product to facade modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Apr 12, 2024
1 parent 6a0c6bf commit b84841e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/facade/src/modules/fulfillment/grpc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,24 @@ import {
type FulfillmentCourierServiceClient,
FulfillmentCourierServiceDefinition
} from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/fulfillment_courier.js';
import {
type FulfillmentProductServiceClient,
FulfillmentProductServiceDefinition
} from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/fulfillment_product.js';
import { type GrpcClientConfig } from '@restorecommerce/grpc-client';

export class FulfillmentSrvGrpcClient extends RestoreCommerceGrpcClient {

readonly fulfillment: FulfillmentServiceClient;
readonly fulfillment_courier: FulfillmentCourierServiceClient;
readonly fulfillment_product: FulfillmentProductServiceClient;

constructor(address: string, cfg: GrpcClientConfig) {
super(address, cfg);

this.fulfillment = this.createClient(cfg, FulfillmentServiceDefinition, this.channel);
this.fulfillment_courier = this.createClient(cfg, FulfillmentCourierServiceDefinition, this.channel);
this.fulfillment_product = this.createClient(cfg, FulfillmentProductServiceDefinition, this.channel);
}

}

0 comments on commit b84841e

Please sign in to comment.