@wenlarge/communication 1.1.13 → 1.1.16
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/dist/config/notification-config.d.ts +1 -0
- package/dist/config/notification-config.js +4 -0
- package/dist/generated/auth.js +1 -1
- package/dist/generated/executor-core.js +1 -1
- package/dist/generated/google/protobuf/empty.js +1 -1
- package/dist/generated/google/protobuf/struct.d.ts +1 -1
- package/dist/generated/google/protobuf/struct.js +2 -2
- package/dist/generated/google/protobuf/timestamp.d.ts +108 -0
- package/dist/generated/google/protobuf/timestamp.js +11 -0
- package/dist/generated/notification.d.ts +25 -0
- package/dist/generated/notification.js +27 -0
- package/dist/generated/project.js +1 -1
- package/dist/generated/workflow.js +1 -1
- package/dist/grpc-client/grpc-client.module.d.ts +3 -0
- package/dist/grpc-client/grpc-client.module.js +37 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/kafka/kafka-topics.d.ts +2 -0
- package/dist/kafka/kafka-topics.js +2 -0
- package/package.json +49 -49
- package/proto/auth.proto +97 -97
- package/proto/executor-core.proto +20 -20
- package/proto/notification.proto +22 -0
- package/proto/project.proto +152 -152
- package/proto/workflow.proto +207 -207
- package/src/generated/auth.ts +1 -1
- package/src/generated/common.ts +16 -16
- package/src/generated/executor-core.ts +1 -1
- package/src/generated/google/protobuf/empty.ts +1 -1
- package/src/generated/google/protobuf/struct.ts +2 -2
- package/src/generated/notification.ts +56 -0
- package/src/generated/project.ts +1 -1
- package/src/generated/workflow.ts +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NOTIFICATION_PROTO_PATH: string[];
|
package/dist/generated/auth.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.2
|
|
5
|
-
// protoc
|
|
5
|
+
// protoc v3.21.5
|
|
6
6
|
// source: auth.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.AUTH_SERVICE_NAME = exports.AUTH_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.2
|
|
5
|
-
// protoc
|
|
5
|
+
// protoc v3.21.5
|
|
6
6
|
// source: executor-core.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.CORE_EXECUTION_SERVICE_NAME = exports.EXECUTOR_CORE_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.2
|
|
5
|
-
// protoc
|
|
5
|
+
// protoc v3.21.5
|
|
6
6
|
// source: google/protobuf/empty.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.GOOGLE_PROTOBUF_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
@@ -3,7 +3,7 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
3
3
|
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
4
4
|
* `Value` type union.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
7
7
|
*/
|
|
8
8
|
export declare enum NullValue {
|
|
9
9
|
/** NULL_VALUE - Null value. */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.2
|
|
5
|
-
// protoc
|
|
5
|
+
// protoc v3.21.5
|
|
6
6
|
// source: google/protobuf/struct.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ListValue = exports.Value = exports.Struct = exports.GOOGLE_PROTOBUF_PACKAGE_NAME = exports.NullValue = exports.protobufPackage = void 0;
|
|
@@ -13,7 +13,7 @@ exports.protobufPackage = "google.protobuf";
|
|
|
13
13
|
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
14
14
|
* `Value` type union.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
16
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
17
17
|
*/
|
|
18
18
|
var NullValue;
|
|
19
19
|
(function (NullValue) {
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export declare const protobufPackage = "google.protobuf";
|
|
2
|
+
/**
|
|
3
|
+
* A Timestamp represents a point in time independent of any time zone or local
|
|
4
|
+
* calendar, encoded as a count of seconds and fractions of seconds at
|
|
5
|
+
* nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
|
6
|
+
* January 1, 1970, in the proleptic Gregorian calendar which extends the
|
|
7
|
+
* Gregorian calendar backwards to year one.
|
|
8
|
+
*
|
|
9
|
+
* All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
|
10
|
+
* second table is needed for interpretation, using a [24-hour linear
|
|
11
|
+
* smear](https://developers.google.com/time/smear).
|
|
12
|
+
*
|
|
13
|
+
* The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
|
14
|
+
* restricting to that range, we ensure that we can convert to and from [RFC
|
|
15
|
+
* 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
|
16
|
+
*
|
|
17
|
+
* # Examples
|
|
18
|
+
*
|
|
19
|
+
* Example 1: Compute Timestamp from POSIX `time()`.
|
|
20
|
+
*
|
|
21
|
+
* Timestamp timestamp;
|
|
22
|
+
* timestamp.set_seconds(time(NULL));
|
|
23
|
+
* timestamp.set_nanos(0);
|
|
24
|
+
*
|
|
25
|
+
* Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
|
26
|
+
*
|
|
27
|
+
* struct timeval tv;
|
|
28
|
+
* gettimeofday(&tv, NULL);
|
|
29
|
+
*
|
|
30
|
+
* Timestamp timestamp;
|
|
31
|
+
* timestamp.set_seconds(tv.tv_sec);
|
|
32
|
+
* timestamp.set_nanos(tv.tv_usec * 1000);
|
|
33
|
+
*
|
|
34
|
+
* Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
|
35
|
+
*
|
|
36
|
+
* FILETIME ft;
|
|
37
|
+
* GetSystemTimeAsFileTime(&ft);
|
|
38
|
+
* UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
|
39
|
+
*
|
|
40
|
+
* // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
|
41
|
+
* // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
|
42
|
+
* Timestamp timestamp;
|
|
43
|
+
* timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
|
44
|
+
* timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
|
45
|
+
*
|
|
46
|
+
* Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
|
47
|
+
*
|
|
48
|
+
* long millis = System.currentTimeMillis();
|
|
49
|
+
*
|
|
50
|
+
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
51
|
+
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
52
|
+
*
|
|
53
|
+
* Example 5: Compute Timestamp from Java `Instant.now()`.
|
|
54
|
+
*
|
|
55
|
+
* Instant now = Instant.now();
|
|
56
|
+
*
|
|
57
|
+
* Timestamp timestamp =
|
|
58
|
+
* Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
|
59
|
+
* .setNanos(now.getNano()).build();
|
|
60
|
+
*
|
|
61
|
+
* Example 6: Compute Timestamp from current time in Python.
|
|
62
|
+
*
|
|
63
|
+
* timestamp = Timestamp()
|
|
64
|
+
* timestamp.GetCurrentTime()
|
|
65
|
+
*
|
|
66
|
+
* # JSON Mapping
|
|
67
|
+
*
|
|
68
|
+
* In JSON format, the Timestamp type is encoded as a string in the
|
|
69
|
+
* [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
|
70
|
+
* format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
|
|
71
|
+
* where {year} is always expressed using four digits while {month}, {day},
|
|
72
|
+
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
|
73
|
+
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
|
74
|
+
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
|
75
|
+
* is required. A proto3 JSON serializer should always use UTC (as indicated by
|
|
76
|
+
* "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
|
77
|
+
* able to accept both UTC and other timezones (as indicated by an offset).
|
|
78
|
+
*
|
|
79
|
+
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
|
80
|
+
* 01:30 UTC on January 15, 2017.
|
|
81
|
+
*
|
|
82
|
+
* In JavaScript, one can convert a Date object to this format using the
|
|
83
|
+
* standard
|
|
84
|
+
* [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
|
85
|
+
* method. In Python, a standard `datetime.datetime` object can be converted
|
|
86
|
+
* to this format using
|
|
87
|
+
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
|
88
|
+
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
|
89
|
+
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
90
|
+
* http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
|
91
|
+
* ) to obtain a formatter capable of generating timestamps in this format.
|
|
92
|
+
*/
|
|
93
|
+
export interface Timestamp {
|
|
94
|
+
/**
|
|
95
|
+
* Represents seconds of UTC time since Unix epoch
|
|
96
|
+
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
|
97
|
+
* 9999-12-31T23:59:59Z inclusive.
|
|
98
|
+
*/
|
|
99
|
+
seconds: string;
|
|
100
|
+
/**
|
|
101
|
+
* Non-negative fractions of a second at nanosecond resolution. Negative
|
|
102
|
+
* second values with fractions must still have non-negative nanos values
|
|
103
|
+
* that count forward in time. Must be from 0 to 999,999,999
|
|
104
|
+
* inclusive.
|
|
105
|
+
*/
|
|
106
|
+
nanos: number;
|
|
107
|
+
}
|
|
108
|
+
export declare const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.2
|
|
5
|
+
// protoc v3.21.5
|
|
6
|
+
// source: google/protobuf/timestamp.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.GOOGLE_PROTOBUF_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
exports.protobufPackage = "google.protobuf";
|
|
11
|
+
exports.GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Metadata } from "@grpc/grpc-js";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { Empty } from "./google/protobuf/empty";
|
|
4
|
+
export declare const protobufPackage = "notification";
|
|
5
|
+
export interface AddMailRequest {
|
|
6
|
+
to: string;
|
|
7
|
+
subject: string;
|
|
8
|
+
text: string;
|
|
9
|
+
html: string;
|
|
10
|
+
}
|
|
11
|
+
export interface AddSmsRequest {
|
|
12
|
+
to: string;
|
|
13
|
+
body: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const NOTIFICATION_PACKAGE_NAME = "notification";
|
|
16
|
+
export interface NotificationServiceClient {
|
|
17
|
+
addMail(request: AddMailRequest, metadata?: Metadata): Observable<Empty>;
|
|
18
|
+
addSms(request: AddSmsRequest, metadata?: Metadata): Observable<Empty>;
|
|
19
|
+
}
|
|
20
|
+
export interface NotificationServiceController {
|
|
21
|
+
addMail(request: AddMailRequest, metadata?: Metadata): void;
|
|
22
|
+
addSms(request: AddSmsRequest, metadata?: Metadata): void;
|
|
23
|
+
}
|
|
24
|
+
export declare function NotificationServiceControllerMethods(): (constructor: Function) => void;
|
|
25
|
+
export declare const NOTIFICATION_SERVICE_NAME = "NotificationService";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.2
|
|
5
|
+
// protoc v3.21.5
|
|
6
|
+
// source: notification.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.NOTIFICATION_SERVICE_NAME = exports.NOTIFICATION_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
+
exports.NotificationServiceControllerMethods = NotificationServiceControllerMethods;
|
|
10
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
+
exports.protobufPackage = "notification";
|
|
12
|
+
exports.NOTIFICATION_PACKAGE_NAME = "notification";
|
|
13
|
+
function NotificationServiceControllerMethods() {
|
|
14
|
+
return function (constructor) {
|
|
15
|
+
const grpcMethods = ["addMail", "addSms"];
|
|
16
|
+
for (const method of grpcMethods) {
|
|
17
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
18
|
+
(0, microservices_1.GrpcMethod)("NotificationService", method)(constructor.prototype[method], method, descriptor);
|
|
19
|
+
}
|
|
20
|
+
const grpcStreamMethods = [];
|
|
21
|
+
for (const method of grpcStreamMethods) {
|
|
22
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
23
|
+
(0, microservices_1.GrpcStreamMethod)("NotificationService", method)(constructor.prototype[method], method, descriptor);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.NOTIFICATION_SERVICE_NAME = "NotificationService";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.2
|
|
5
|
-
// protoc
|
|
5
|
+
// protoc v3.21.5
|
|
6
6
|
// source: project.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ENVIRONMENT_VARIABLE_SERVICE_NAME = exports.ENVIRONMENT_SERVICE_NAME = exports.PROJECT_SERVICE_NAME = exports.PROJECT_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.2
|
|
5
|
-
// protoc
|
|
5
|
+
// protoc v3.21.5
|
|
6
6
|
// source: workflow.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.WORKFLOW_SERVICE_NAME = exports.WORKFLOW_PACKAGE_NAME = exports.WorkflowStatus = exports.protobufPackage = void 0;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { DynamicModule } from "@nestjs/common";
|
|
2
2
|
export declare const EXECUTOR_HTTP_GRPC_CLIENT = "EXECUTOR_HTTP_GRPC_CLIENT";
|
|
3
|
+
export declare const EXECUTOR_WEBHOOK_GRPC_CLIENT = "EXECUTOR_WEBHOOK_GRPC_CLIENT";
|
|
3
4
|
export interface GrpcClientModuleOptions {
|
|
4
5
|
authServiceUrl: string;
|
|
5
6
|
projectServiceUrl: string;
|
|
6
7
|
workflowServiceUrl: string;
|
|
7
8
|
executorCoreServiceUrl: string;
|
|
8
9
|
executorHttpServiceUrl: string;
|
|
10
|
+
executorWebhookServiceUrl: string;
|
|
11
|
+
notificationServiceUrl: string;
|
|
9
12
|
}
|
|
10
13
|
export declare class GrpcClientModule {
|
|
11
14
|
static forRoot(options: GrpcClientModuleOptions): DynamicModule;
|
|
@@ -38,7 +38,7 @@ var __setFunctionName = (this && this.__setFunctionName) || function (f, name, p
|
|
|
38
38
|
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
39
39
|
};
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.GrpcClientModule = exports.EXECUTOR_HTTP_GRPC_CLIENT = void 0;
|
|
41
|
+
exports.GrpcClientModule = exports.EXECUTOR_WEBHOOK_GRPC_CLIENT = exports.EXECUTOR_HTTP_GRPC_CLIENT = void 0;
|
|
42
42
|
const common_1 = require("@nestjs/common");
|
|
43
43
|
const microservices_1 = require("@nestjs/microservices");
|
|
44
44
|
const path_1 = require("path");
|
|
@@ -50,7 +50,10 @@ const workflow_1 = require("../generated/workflow");
|
|
|
50
50
|
const workflow_config_1 = require("../config/workflow-config");
|
|
51
51
|
const executor_core_1 = require("../generated/executor-core");
|
|
52
52
|
const executor_core_config_1 = require("../config/executor-core-config");
|
|
53
|
+
const notification_1 = require("../generated/notification");
|
|
54
|
+
const notification_config_1 = require("../config/notification-config");
|
|
53
55
|
exports.EXECUTOR_HTTP_GRPC_CLIENT = "EXECUTOR_HTTP_GRPC_CLIENT";
|
|
56
|
+
exports.EXECUTOR_WEBHOOK_GRPC_CLIENT = "EXECUTOR_WEBHOOK_GRPC_CLIENT";
|
|
54
57
|
let GrpcClientModule = (() => {
|
|
55
58
|
let _classDecorators = [(0, common_1.Module)({})];
|
|
56
59
|
let _classDescriptor;
|
|
@@ -58,7 +61,7 @@ let GrpcClientModule = (() => {
|
|
|
58
61
|
let _classThis;
|
|
59
62
|
var GrpcClientModule = _classThis = class {
|
|
60
63
|
static forRoot(options) {
|
|
61
|
-
var _a;
|
|
64
|
+
var _a, _b;
|
|
62
65
|
return {
|
|
63
66
|
module: GrpcClientModule,
|
|
64
67
|
global: true,
|
|
@@ -144,6 +147,38 @@ let GrpcClientModule = (() => {
|
|
|
144
147
|
},
|
|
145
148
|
},
|
|
146
149
|
},
|
|
150
|
+
{
|
|
151
|
+
name: exports.EXECUTOR_WEBHOOK_GRPC_CLIENT,
|
|
152
|
+
transport: microservices_1.Transport.GRPC,
|
|
153
|
+
options: {
|
|
154
|
+
package: executor_core_1.EXECUTOR_CORE_PACKAGE_NAME,
|
|
155
|
+
protoPath: executor_core_config_1.EXECUTOR_CORE_PROTO_PATH.map((p) => (0, path_1.join)(__dirname, "../../" + p)),
|
|
156
|
+
url: (_b = options.executorWebhookServiceUrl) !== null && _b !== void 0 ? _b : options.executorCoreServiceUrl,
|
|
157
|
+
loader: {
|
|
158
|
+
keepCase: true,
|
|
159
|
+
longs: String,
|
|
160
|
+
enums: String,
|
|
161
|
+
defaults: true,
|
|
162
|
+
oneofs: true,
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
name: notification_1.NOTIFICATION_SERVICE_NAME,
|
|
168
|
+
transport: microservices_1.Transport.GRPC,
|
|
169
|
+
options: {
|
|
170
|
+
package: notification_1.NOTIFICATION_PACKAGE_NAME,
|
|
171
|
+
protoPath: notification_config_1.NOTIFICATION_PROTO_PATH.map((p) => (0, path_1.join)(__dirname, "../../" + p)),
|
|
172
|
+
url: options.notificationServiceUrl,
|
|
173
|
+
loader: {
|
|
174
|
+
keepCase: true,
|
|
175
|
+
longs: String,
|
|
176
|
+
enums: String,
|
|
177
|
+
defaults: true,
|
|
178
|
+
oneofs: true,
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
},
|
|
147
182
|
]),
|
|
148
183
|
],
|
|
149
184
|
exports: [microservices_1.ClientsModule],
|
package/dist/index.d.ts
CHANGED
|
@@ -9,5 +9,7 @@ export * from "./grpc-client";
|
|
|
9
9
|
export * from "./config/executor-core-config";
|
|
10
10
|
export { Metadata } from "@grpc/grpc-js";
|
|
11
11
|
export * as ExecutorCore from "./generated/executor-core";
|
|
12
|
+
export * from "./config/notification-config";
|
|
13
|
+
export * as Notification from "./generated/notification";
|
|
12
14
|
export * from "./kafka/kafka-topics";
|
|
13
15
|
export { Struct, Value, ListValue } from "./generated/google/protobuf/struct";
|
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.ListValue = exports.Value = exports.Struct = exports.ExecutorCore = exports.Metadata = exports.Project = exports.Workflow = exports.Auth = void 0;
|
|
39
|
+
exports.ListValue = exports.Value = exports.Struct = exports.Notification = exports.ExecutorCore = exports.Metadata = exports.Project = exports.Workflow = exports.Auth = void 0;
|
|
40
40
|
__exportStar(require("./helpers/helper"), exports);
|
|
41
41
|
exports.Auth = __importStar(require("./generated/auth"));
|
|
42
42
|
__exportStar(require("./config/auth-config"), exports);
|
|
@@ -49,6 +49,8 @@ __exportStar(require("./config/executor-core-config"), exports);
|
|
|
49
49
|
var grpc_js_1 = require("@grpc/grpc-js");
|
|
50
50
|
Object.defineProperty(exports, "Metadata", { enumerable: true, get: function () { return grpc_js_1.Metadata; } });
|
|
51
51
|
exports.ExecutorCore = __importStar(require("./generated/executor-core"));
|
|
52
|
+
__exportStar(require("./config/notification-config"), exports);
|
|
53
|
+
exports.Notification = __importStar(require("./generated/notification"));
|
|
52
54
|
__exportStar(require("./kafka/kafka-topics"), exports);
|
|
53
55
|
var struct_1 = require("./generated/google/protobuf/struct");
|
|
54
56
|
Object.defineProperty(exports, "Struct", { enumerable: true, get: function () { return struct_1.Struct; } });
|
|
@@ -2,4 +2,6 @@ export declare const KafkaTopics: {
|
|
|
2
2
|
readonly EXECUTION_COMPLETED: "execution.completed";
|
|
3
3
|
readonly EXECUTION_FAILED: "execution.failed";
|
|
4
4
|
readonly EXECUTION_WAITING: "execution.waiting";
|
|
5
|
+
readonly NOTIFICATION_EMAIL: "notification.email";
|
|
6
|
+
readonly NOTIFICATION_SMS: "notification.sms";
|
|
5
7
|
};
|
package/package.json
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@wenlarge/communication",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "Shared gRPC proto interfaces and generated clients for Wenlarge microservices.",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist",
|
|
9
|
-
"proto",
|
|
10
|
-
"src/generated"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"proto:build": "
|
|
14
|
-
"build": "npm run proto:build && tsc",
|
|
15
|
-
"prepare": "npm run build"
|
|
16
|
-
},
|
|
17
|
-
"keywords": [
|
|
18
|
-
"nestjs",
|
|
19
|
-
"grpc",
|
|
20
|
-
"proto",
|
|
21
|
-
"typescript",
|
|
22
|
-
"microservices",
|
|
23
|
-
"communication",
|
|
24
|
-
"shared"
|
|
25
|
-
],
|
|
26
|
-
"author": "Kerem Çakır <admin@wenlarge.com>",
|
|
27
|
-
"license": "MIT",
|
|
28
|
-
"repository": {
|
|
29
|
-
"type": "git",
|
|
30
|
-
"url": "https://github.com/wenlarge/communication.git"
|
|
31
|
-
},
|
|
32
|
-
"publishConfig": {
|
|
33
|
-
"access": "public"
|
|
34
|
-
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"@grpc/grpc-js": "^1.14.1",
|
|
37
|
-
"@grpc/proto-loader": "^0.7.15",
|
|
38
|
-
"rxjs": "^7.8.1"
|
|
39
|
-
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@nestjs/microservices": "^10.4.20",
|
|
42
|
-
"@types/node": "^24.9.1",
|
|
43
|
-
"ts-proto": "^1.152.2",
|
|
44
|
-
"typescript": "^5.3.3"
|
|
45
|
-
},
|
|
46
|
-
"peerDependencies": {
|
|
47
|
-
"@grpc/grpc-js": "^1.14.1"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@wenlarge/communication",
|
|
3
|
+
"version": "1.1.16",
|
|
4
|
+
"description": "Shared gRPC proto interfaces and generated clients for Wenlarge microservices.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"proto",
|
|
10
|
+
"src/generated"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"proto:build": "protoc --plugin=protoc-gen-ts_proto=./node_modules/.bin/protoc-gen-ts_proto --proto_path=proto --ts_proto_out=src/generated proto/*.proto --ts_proto_opt=nestJs=true,esModuleInterop=true,forceLong=string,useOptionals=messages,useDate=true,addGrpcMetadata=true,stringEnums=true",
|
|
14
|
+
"build": "npm run proto:build && tsc",
|
|
15
|
+
"prepare": "npm run build"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"nestjs",
|
|
19
|
+
"grpc",
|
|
20
|
+
"proto",
|
|
21
|
+
"typescript",
|
|
22
|
+
"microservices",
|
|
23
|
+
"communication",
|
|
24
|
+
"shared"
|
|
25
|
+
],
|
|
26
|
+
"author": "Kerem Çakır <admin@wenlarge.com>",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "https://github.com/wenlarge/communication.git"
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@grpc/grpc-js": "^1.14.1",
|
|
37
|
+
"@grpc/proto-loader": "^0.7.15",
|
|
38
|
+
"rxjs": "^7.8.1"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@nestjs/microservices": "^10.4.20",
|
|
42
|
+
"@types/node": "^24.9.1",
|
|
43
|
+
"ts-proto": "^1.152.2",
|
|
44
|
+
"typescript": "^5.3.3"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@grpc/grpc-js": "^1.14.1"
|
|
48
|
+
}
|
|
49
|
+
}
|