jr-common-micro 0.6.1-dev → 1.0.1
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/common/factory/grpc_options_factory.js +4 -4
- package/dist/proto/micro/v1/education/education_messages_nest.d.ts +0 -9
- package/dist/proto/micro/v1/education/education_messages_pb.d.ts +0 -9
- package/dist/proto/micro/v1/education/education_messages_pb.js +8 -26
- package/dist/utils/functions.js +2 -2
- package/package.json +1 -1
|
@@ -25,13 +25,13 @@ const grpcClientFactory = (provide, grpcPackage, hostKey, portKey) => {
|
|
|
25
25
|
keepalivePermitWithoutCalls: 1,
|
|
26
26
|
},
|
|
27
27
|
package: grpcPackage,
|
|
28
|
-
protoPath: (0, walk_sync_1.walkSync)((0, path_1.join)(process.cwd(), 'node_modules
|
|
28
|
+
protoPath: (0, walk_sync_1.walkSync)((0, path_1.join)(process.cwd(), 'node_modules/jr-common-micro/proto'), { includeBasePath: true, globs: ['**/*.proto'] }),
|
|
29
29
|
loader: {
|
|
30
30
|
keepCase: true,
|
|
31
31
|
enums: String,
|
|
32
32
|
oneofs: true,
|
|
33
33
|
includeDirs: [
|
|
34
|
-
(0, path_1.join)(process.cwd(), 'node_modules
|
|
34
|
+
(0, path_1.join)(process.cwd(), 'node_modules/jr-common-micro/proto'),
|
|
35
35
|
],
|
|
36
36
|
},
|
|
37
37
|
});
|
|
@@ -48,13 +48,13 @@ const grpcServerOptions = (grpcPackage, grpcHost, grpcPort) => {
|
|
|
48
48
|
options: {
|
|
49
49
|
url: grpcHost + ':' + grpcPort,
|
|
50
50
|
package: grpcPackage,
|
|
51
|
-
protoPath: (0, walk_sync_1.walkSync)((0, path_1.join)(process.cwd(), 'node_modules
|
|
51
|
+
protoPath: (0, walk_sync_1.walkSync)((0, path_1.join)(process.cwd(), 'node_modules/jr-common-micro/proto'), { includeBasePath: true, globs: ['**/*.proto'] }),
|
|
52
52
|
loader: {
|
|
53
53
|
keepCase: true,
|
|
54
54
|
enums: String,
|
|
55
55
|
oneofs: true,
|
|
56
56
|
includeDirs: [
|
|
57
|
-
(0, path_1.join)(process.cwd(), 'node_modules
|
|
57
|
+
(0, path_1.join)(process.cwd(), 'node_modules/jr-common-micro/proto'),
|
|
58
58
|
],
|
|
59
59
|
},
|
|
60
60
|
},
|
|
@@ -291,10 +291,7 @@ export interface ContentDto {
|
|
|
291
291
|
content_type: string;
|
|
292
292
|
file_uuid?: string | undefined;
|
|
293
293
|
file_url?: string | undefined;
|
|
294
|
-
thumbnail_url?: string | undefined;
|
|
295
294
|
duration?: number | undefined;
|
|
296
|
-
file_size?: number | undefined;
|
|
297
|
-
mime_type?: string | undefined;
|
|
298
295
|
sort_order: number;
|
|
299
296
|
created_at: string;
|
|
300
297
|
updated_at?: string | undefined;
|
|
@@ -304,10 +301,7 @@ export interface ContentCreateRequest {
|
|
|
304
301
|
content_type: string;
|
|
305
302
|
file_uuid?: string | undefined;
|
|
306
303
|
file_url?: string | undefined;
|
|
307
|
-
thumbnail_url?: string | undefined;
|
|
308
304
|
duration?: number | undefined;
|
|
309
|
-
file_size?: number | undefined;
|
|
310
|
-
mime_type?: string | undefined;
|
|
311
305
|
sort_order?: number | undefined;
|
|
312
306
|
}
|
|
313
307
|
export interface ContentUpdateRequest {
|
|
@@ -315,10 +309,7 @@ export interface ContentUpdateRequest {
|
|
|
315
309
|
content_type?: string | undefined;
|
|
316
310
|
file_uuid?: string | undefined;
|
|
317
311
|
file_url?: string | undefined;
|
|
318
|
-
thumbnail_url?: string | undefined;
|
|
319
312
|
duration?: number | undefined;
|
|
320
|
-
file_size?: number | undefined;
|
|
321
|
-
mime_type?: string | undefined;
|
|
322
313
|
sort_order?: number | undefined;
|
|
323
314
|
}
|
|
324
315
|
export interface ContentListRequest {
|
|
@@ -428,10 +428,7 @@ export declare class ContentDto extends Message<ContentDto> {
|
|
|
428
428
|
contentType: string;
|
|
429
429
|
fileUuid?: string;
|
|
430
430
|
fileUrl?: string;
|
|
431
|
-
thumbnailUrl?: string;
|
|
432
431
|
duration?: number;
|
|
433
|
-
fileSize?: bigint;
|
|
434
|
-
mimeType?: string;
|
|
435
432
|
sortOrder: number;
|
|
436
433
|
createdAt: string;
|
|
437
434
|
updatedAt?: string;
|
|
@@ -449,10 +446,7 @@ export declare class ContentCreateRequest extends Message<ContentCreateRequest>
|
|
|
449
446
|
contentType: string;
|
|
450
447
|
fileUuid?: string;
|
|
451
448
|
fileUrl?: string;
|
|
452
|
-
thumbnailUrl?: string;
|
|
453
449
|
duration?: number;
|
|
454
|
-
fileSize?: bigint;
|
|
455
|
-
mimeType?: string;
|
|
456
450
|
sortOrder?: number;
|
|
457
451
|
constructor(data?: PartialMessage<ContentCreateRequest>);
|
|
458
452
|
static readonly runtime: typeof proto3;
|
|
@@ -468,10 +462,7 @@ export declare class ContentUpdateRequest extends Message<ContentUpdateRequest>
|
|
|
468
462
|
contentType?: string;
|
|
469
463
|
fileUuid?: string;
|
|
470
464
|
fileUrl?: string;
|
|
471
|
-
thumbnailUrl?: string;
|
|
472
465
|
duration?: number;
|
|
473
|
-
fileSize?: bigint;
|
|
474
|
-
mimeType?: string;
|
|
475
466
|
sortOrder?: number;
|
|
476
467
|
constructor(data?: PartialMessage<ContentUpdateRequest>);
|
|
477
468
|
static readonly runtime: typeof proto3;
|
|
@@ -857,10 +857,7 @@ class ContentDto extends protobuf_1.Message {
|
|
|
857
857
|
contentType = "";
|
|
858
858
|
fileUuid;
|
|
859
859
|
fileUrl;
|
|
860
|
-
thumbnailUrl;
|
|
861
860
|
duration;
|
|
862
|
-
fileSize;
|
|
863
|
-
mimeType;
|
|
864
861
|
sortOrder = 0;
|
|
865
862
|
createdAt = "";
|
|
866
863
|
updatedAt;
|
|
@@ -876,13 +873,10 @@ class ContentDto extends protobuf_1.Message {
|
|
|
876
873
|
{ no: 3, name: "content_type", kind: "scalar", T: 9 },
|
|
877
874
|
{ no: 4, name: "file_uuid", kind: "scalar", T: 9, opt: true },
|
|
878
875
|
{ no: 5, name: "file_url", kind: "scalar", T: 9, opt: true },
|
|
879
|
-
{ no: 6, name: "
|
|
880
|
-
{ no: 7, name: "
|
|
881
|
-
{ no: 8, name: "
|
|
882
|
-
{ no: 9, name: "
|
|
883
|
-
{ no: 10, name: "sort_order", kind: "scalar", T: 5 },
|
|
884
|
-
{ no: 11, name: "created_at", kind: "scalar", T: 9 },
|
|
885
|
-
{ no: 12, name: "updated_at", kind: "scalar", T: 9, opt: true },
|
|
876
|
+
{ no: 6, name: "duration", kind: "scalar", T: 5, opt: true },
|
|
877
|
+
{ no: 7, name: "sort_order", kind: "scalar", T: 5 },
|
|
878
|
+
{ no: 8, name: "created_at", kind: "scalar", T: 9 },
|
|
879
|
+
{ no: 9, name: "updated_at", kind: "scalar", T: 9, opt: true },
|
|
886
880
|
]);
|
|
887
881
|
static fromBinary(bytes, options) {
|
|
888
882
|
return new ContentDto().fromBinary(bytes, options);
|
|
@@ -903,10 +897,7 @@ class ContentCreateRequest extends protobuf_1.Message {
|
|
|
903
897
|
contentType = "";
|
|
904
898
|
fileUuid;
|
|
905
899
|
fileUrl;
|
|
906
|
-
thumbnailUrl;
|
|
907
900
|
duration;
|
|
908
|
-
fileSize;
|
|
909
|
-
mimeType;
|
|
910
901
|
sortOrder;
|
|
911
902
|
constructor(data) {
|
|
912
903
|
super();
|
|
@@ -919,11 +910,8 @@ class ContentCreateRequest extends protobuf_1.Message {
|
|
|
919
910
|
{ no: 2, name: "content_type", kind: "scalar", T: 9 },
|
|
920
911
|
{ no: 3, name: "file_uuid", kind: "scalar", T: 9, opt: true },
|
|
921
912
|
{ no: 4, name: "file_url", kind: "scalar", T: 9, opt: true },
|
|
922
|
-
{ no: 5, name: "
|
|
923
|
-
{ no: 6, name: "
|
|
924
|
-
{ no: 7, name: "file_size", kind: "scalar", T: 3, opt: true },
|
|
925
|
-
{ no: 8, name: "mime_type", kind: "scalar", T: 9, opt: true },
|
|
926
|
-
{ no: 9, name: "sort_order", kind: "scalar", T: 5, opt: true },
|
|
913
|
+
{ no: 5, name: "duration", kind: "scalar", T: 5, opt: true },
|
|
914
|
+
{ no: 6, name: "sort_order", kind: "scalar", T: 5, opt: true },
|
|
927
915
|
]);
|
|
928
916
|
static fromBinary(bytes, options) {
|
|
929
917
|
return new ContentCreateRequest().fromBinary(bytes, options);
|
|
@@ -944,10 +932,7 @@ class ContentUpdateRequest extends protobuf_1.Message {
|
|
|
944
932
|
contentType;
|
|
945
933
|
fileUuid;
|
|
946
934
|
fileUrl;
|
|
947
|
-
thumbnailUrl;
|
|
948
935
|
duration;
|
|
949
|
-
fileSize;
|
|
950
|
-
mimeType;
|
|
951
936
|
sortOrder;
|
|
952
937
|
constructor(data) {
|
|
953
938
|
super();
|
|
@@ -960,11 +945,8 @@ class ContentUpdateRequest extends protobuf_1.Message {
|
|
|
960
945
|
{ no: 2, name: "content_type", kind: "scalar", T: 9, opt: true },
|
|
961
946
|
{ no: 3, name: "file_uuid", kind: "scalar", T: 9, opt: true },
|
|
962
947
|
{ no: 4, name: "file_url", kind: "scalar", T: 9, opt: true },
|
|
963
|
-
{ no: 5, name: "
|
|
964
|
-
{ no: 6, name: "
|
|
965
|
-
{ no: 7, name: "file_size", kind: "scalar", T: 3, opt: true },
|
|
966
|
-
{ no: 8, name: "mime_type", kind: "scalar", T: 9, opt: true },
|
|
967
|
-
{ no: 9, name: "sort_order", kind: "scalar", T: 5, opt: true },
|
|
948
|
+
{ no: 5, name: "duration", kind: "scalar", T: 5, opt: true },
|
|
949
|
+
{ no: 6, name: "sort_order", kind: "scalar", T: 5, opt: true },
|
|
968
950
|
]);
|
|
969
951
|
static fromBinary(bytes, options) {
|
|
970
952
|
return new ContentUpdateRequest().fromBinary(bytes, options);
|
package/dist/utils/functions.js
CHANGED
|
@@ -337,13 +337,13 @@ function getGrpcClient(packageName, grpcHost, grpcPort) {
|
|
|
337
337
|
options: {
|
|
338
338
|
url: `${grpcHost}:${grpcPort}`,
|
|
339
339
|
package: packageName,
|
|
340
|
-
protoPath: (0, walk_sync_1.walkSync)((0, path_1.join)(process.cwd(), 'node_modules
|
|
340
|
+
protoPath: (0, walk_sync_1.walkSync)((0, path_1.join)(process.cwd(), 'node_modules/jr-common-micro/proto'), { includeBasePath: true, globs: ['**/*.proto'] }),
|
|
341
341
|
loader: {
|
|
342
342
|
keepCase: true,
|
|
343
343
|
enums: String,
|
|
344
344
|
oneofs: true,
|
|
345
345
|
includeDirs: [
|
|
346
|
-
(0, path_1.join)(process.cwd(), 'node_modules
|
|
346
|
+
(0, path_1.join)(process.cwd(), 'node_modules/jr-common-micro/proto'),
|
|
347
347
|
],
|
|
348
348
|
},
|
|
349
349
|
},
|