@platfformx/proto-contracts 1.4.13 → 1.4.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.
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
export declare const protobufPackage = "ai.v1";
|
|
3
|
+
export interface ParseSearchInputRequest {
|
|
4
|
+
query: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ParseSearchInputResponse {
|
|
7
|
+
keywords: string;
|
|
8
|
+
maxPrice?: number | undefined;
|
|
9
|
+
minPrice?: number | undefined;
|
|
10
|
+
categoryHint?: string | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare const AI_V1_PACKAGE_NAME = "ai.v1";
|
|
13
|
+
export interface AiServiceClient {
|
|
14
|
+
parseSearchInput(request: ParseSearchInputRequest): Observable<ParseSearchInputResponse>;
|
|
15
|
+
}
|
|
16
|
+
export interface AiServiceController {
|
|
17
|
+
parseSearchInput(request: ParseSearchInputRequest): Promise<ParseSearchInputResponse> | Observable<ParseSearchInputResponse> | ParseSearchInputResponse;
|
|
18
|
+
}
|
|
19
|
+
export declare function AiServiceControllerMethods(): (constructor: Function) => void;
|
|
20
|
+
export declare const AI_SERVICE_NAME = "AiService";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.11.8
|
|
5
|
+
// protoc v7.34.0
|
|
6
|
+
// source: ai-service/ai.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.AI_SERVICE_NAME = exports.AI_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
+
exports.AiServiceControllerMethods = AiServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
+
exports.protobufPackage = "ai.v1";
|
|
13
|
+
exports.AI_V1_PACKAGE_NAME = "ai.v1";
|
|
14
|
+
function AiServiceControllerMethods() {
|
|
15
|
+
return function (constructor) {
|
|
16
|
+
const grpcMethods = ["parseSearchInput"];
|
|
17
|
+
for (const method of grpcMethods) {
|
|
18
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
19
|
+
(0, microservices_1.GrpcMethod)("AiService", method)(constructor.prototype[method], method, descriptor);
|
|
20
|
+
}
|
|
21
|
+
const grpcStreamMethods = [];
|
|
22
|
+
for (const method of grpcStreamMethods) {
|
|
23
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
24
|
+
(0, microservices_1.GrpcStreamMethod)("AiService", method)(constructor.prototype[method], method, descriptor);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
exports.AI_SERVICE_NAME = "AiService";
|
package/dist/index.d.ts
CHANGED
|
@@ -11,4 +11,5 @@ export * as Search from './gen/ts/search-service/search';
|
|
|
11
11
|
export * as Payment from './gen/ts/payment-service/payment';
|
|
12
12
|
export * as Refund from './gen/ts/payment-service/refund';
|
|
13
13
|
export * as Order from './gen/ts/order-service/order';
|
|
14
|
+
export * as AI from './gen/ts/ai-service/ai';
|
|
14
15
|
export { BulkStatus } from './gen/ts/products-service/bulk';
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.BulkStatus = exports.Order = exports.Refund = exports.Payment = exports.Search = exports.Category = exports.Bulk = exports.Product = exports.Account = exports.S3 = exports.Auth = exports.OAuthProvider = void 0;
|
|
39
|
+
exports.BulkStatus = exports.AI = exports.Order = exports.Refund = exports.Payment = exports.Search = exports.Category = exports.Bulk = exports.Product = exports.Account = exports.S3 = exports.Auth = exports.OAuthProvider = void 0;
|
|
40
40
|
__exportStar(require("./paths/index"), exports);
|
|
41
41
|
__exportStar(require("./paths/proto-paths"), exports);
|
|
42
42
|
var auth_1 = require("./gen/ts/auth-service/auth");
|
|
@@ -51,5 +51,6 @@ exports.Search = __importStar(require("./gen/ts/search-service/search"));
|
|
|
51
51
|
exports.Payment = __importStar(require("./gen/ts/payment-service/payment"));
|
|
52
52
|
exports.Refund = __importStar(require("./gen/ts/payment-service/refund"));
|
|
53
53
|
exports.Order = __importStar(require("./gen/ts/order-service/order"));
|
|
54
|
+
exports.AI = __importStar(require("./gen/ts/ai-service/ai"));
|
|
54
55
|
var bulk_1 = require("./gen/ts/products-service/bulk");
|
|
55
56
|
Object.defineProperty(exports, "BulkStatus", { enumerable: true, get: function () { return bulk_1.BulkStatus; } });
|
|
@@ -13,4 +13,5 @@ exports.PROTO_PATHS = {
|
|
|
13
13
|
PAYMENT: (0, path_1.join)(__dirname, '../../proto/payment-service/payment.proto'),
|
|
14
14
|
REFUND: (0, path_1.join)(__dirname, '../../proto/payment-service/refund.proto'),
|
|
15
15
|
ORDER: (0, path_1.join)(__dirname, '../../proto/order-service/order.proto'),
|
|
16
|
+
AI: (0, path_1.join)(__dirname, '../../proto/ai-service/ai.proto'),
|
|
16
17
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package ai.v1;
|
|
4
|
+
|
|
5
|
+
service AiService {
|
|
6
|
+
rpc ParseSearchInput (ParseSearchInputRequest) returns (ParseSearchInputResponse);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message ParseSearchInputRequest {
|
|
10
|
+
string query = 1;
|
|
11
|
+
}
|
|
12
|
+
message ParseSearchInputResponse {
|
|
13
|
+
string keywords = 1;
|
|
14
|
+
optional int32 max_price = 2;
|
|
15
|
+
optional int32 min_price = 3;
|
|
16
|
+
optional string category_hint = 4;
|
|
17
|
+
}
|