@mikemo-coposit/am-accounting-shared 0.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/README.md +107 -0
- package/dist/constants/index.d.mts +5 -0
- package/dist/constants/index.d.ts +5 -0
- package/dist/constants/index.js +21 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/constants/index.mjs +4 -0
- package/dist/constants/index.mjs.map +1 -0
- package/dist/constants/menu/index.d.mts +2 -0
- package/dist/constants/menu/index.d.ts +2 -0
- package/dist/constants/menu/index.js +20 -0
- package/dist/constants/menu/index.js.map +1 -0
- package/dist/constants/menu/index.mjs +3 -0
- package/dist/constants/menu/index.mjs.map +1 -0
- package/dist/constants/menu/menu-status.constant.d.mts +7 -0
- package/dist/constants/menu/menu-status.constant.d.ts +7 -0
- package/dist/constants/menu/menu-status.constant.js +28 -0
- package/dist/constants/menu/menu-status.constant.js.map +1 -0
- package/dist/constants/menu/menu-status.constant.mjs +8 -0
- package/dist/constants/menu/menu-status.constant.mjs.map +1 -0
- package/dist/constants/menu/menu-type.constant.d.mts +8 -0
- package/dist/constants/menu/menu-type.constant.d.ts +8 -0
- package/dist/constants/menu/menu-type.constant.js +29 -0
- package/dist/constants/menu/menu-type.constant.js.map +1 -0
- package/dist/constants/menu/menu-type.constant.mjs +9 -0
- package/dist/constants/menu/menu-type.constant.mjs.map +1 -0
- package/dist/constants/project/index.d.mts +2 -0
- package/dist/constants/project/index.d.ts +2 -0
- package/dist/constants/project/index.js +20 -0
- package/dist/constants/project/index.js.map +1 -0
- package/dist/constants/project/index.mjs +3 -0
- package/dist/constants/project/index.mjs.map +1 -0
- package/dist/constants/project/project-res-status.constant.d.mts +10 -0
- package/dist/constants/project/project-res-status.constant.d.ts +10 -0
- package/dist/constants/project/project-res-status.constant.js +31 -0
- package/dist/constants/project/project-res-status.constant.js.map +1 -0
- package/dist/constants/project/project-res-status.constant.mjs +11 -0
- package/dist/constants/project/project-res-status.constant.mjs.map +1 -0
- package/dist/constants/project/project-trust-account-allocation-status.constant.d.mts +8 -0
- package/dist/constants/project/project-trust-account-allocation-status.constant.d.ts +8 -0
- package/dist/constants/project/project-trust-account-allocation-status.constant.js +29 -0
- package/dist/constants/project/project-trust-account-allocation-status.constant.js.map +1 -0
- package/dist/constants/project/project-trust-account-allocation-status.constant.mjs +9 -0
- package/dist/constants/project/project-trust-account-allocation-status.constant.mjs.map +1 -0
- package/dist/constants/trust-account/index.d.mts +1 -0
- package/dist/constants/trust-account/index.d.ts +1 -0
- package/dist/constants/trust-account/index.js +19 -0
- package/dist/constants/trust-account/index.js.map +1 -0
- package/dist/constants/trust-account/index.mjs +2 -0
- package/dist/constants/trust-account/index.mjs.map +1 -0
- package/dist/constants/trust-account/trust-account-status.constant.d.mts +6 -0
- package/dist/constants/trust-account/trust-account-status.constant.d.ts +6 -0
- package/dist/constants/trust-account/trust-account-status.constant.js +29 -0
- package/dist/constants/trust-account/trust-account-status.constant.js.map +1 -0
- package/dist/constants/trust-account/trust-account-status.constant.mjs +9 -0
- package/dist/constants/trust-account/trust-account-status.constant.mjs.map +1 -0
- package/dist/grpc/constants/accountms.constant.d.mts +14 -0
- package/dist/grpc/constants/accountms.constant.d.ts +14 -0
- package/dist/grpc/constants/accountms.constant.js +39 -0
- package/dist/grpc/constants/accountms.constant.js.map +1 -0
- package/dist/grpc/constants/accountms.constant.mjs +19 -0
- package/dist/grpc/constants/accountms.constant.mjs.map +1 -0
- package/dist/grpc/constants/index.d.mts +1 -0
- package/dist/grpc/constants/index.d.ts +1 -0
- package/dist/grpc/constants/index.js +19 -0
- package/dist/grpc/constants/index.js.map +1 -0
- package/dist/grpc/constants/index.mjs +2 -0
- package/dist/grpc/constants/index.mjs.map +1 -0
- package/dist/grpc/index.d.mts +4 -0
- package/dist/grpc/index.d.ts +4 -0
- package/dist/grpc/index.js +20 -0
- package/dist/grpc/index.js.map +1 -0
- package/dist/grpc/index.mjs +3 -0
- package/dist/grpc/index.mjs.map +1 -0
- package/dist/grpc/protos/common/common.file.d.mts +2 -0
- package/dist/grpc/protos/common/common.file.d.ts +2 -0
- package/dist/grpc/protos/common/common.file.proto +30 -0
- package/dist/grpc/protos/common/common.general.d.mts +2 -0
- package/dist/grpc/protos/common/common.general.d.ts +2 -0
- package/dist/grpc/protos/common/common.general.proto +53 -0
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.d.mts +2 -0
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.d.ts +2 -0
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.e.d.mts +2 -0
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.e.d.ts +2 -0
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.e.proto +16 -0
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.proto +28 -0
- package/dist/grpc/protos/trust-account/trust-account.d.mts +2 -0
- package/dist/grpc/protos/trust-account/trust-account.d.ts +2 -0
- package/dist/grpc/protos/trust-account/trust-account.e.d.mts +2 -0
- package/dist/grpc/protos/trust-account/trust-account.e.d.ts +2 -0
- package/dist/grpc/protos/trust-account/trust-account.e.proto +18 -0
- package/dist/grpc/protos/trust-account/trust-account.proto +35 -0
- package/dist/grpc/utils/grpc.options.util.d.mts +10 -0
- package/dist/grpc/utils/grpc.options.util.d.ts +10 -0
- package/dist/grpc/utils/grpc.options.util.js +57 -0
- package/dist/grpc/utils/grpc.options.util.js.map +1 -0
- package/dist/grpc/utils/grpc.options.util.mjs +37 -0
- package/dist/grpc/utils/grpc.options.util.mjs.map +1 -0
- package/dist/grpc/utils/index.d.mts +3 -0
- package/dist/grpc/utils/index.d.ts +3 -0
- package/dist/grpc/utils/index.js +20 -0
- package/dist/grpc/utils/index.js.map +1 -0
- package/dist/grpc/utils/index.mjs +3 -0
- package/dist/grpc/utils/index.mjs.map +1 -0
- package/dist/grpc/utils/proto.util.d.mts +18 -0
- package/dist/grpc/utils/proto.util.d.ts +18 -0
- package/dist/grpc/utils/proto.util.js +102 -0
- package/dist/grpc/utils/proto.util.js.map +1 -0
- package/dist/grpc/utils/proto.util.mjs +82 -0
- package/dist/grpc/utils/proto.util.mjs.map +1 -0
- package/dist/index.d.mts +28 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -0
- package/dist/interfaces/common/common.interface.d.mts +6 -0
- package/dist/interfaces/common/common.interface.d.ts +6 -0
- package/dist/interfaces/common/common.interface.js +17 -0
- package/dist/interfaces/common/common.interface.js.map +1 -0
- package/dist/interfaces/common/common.interface.mjs +1 -0
- package/dist/interfaces/common/common.interface.mjs.map +1 -0
- package/dist/interfaces/common/index.d.mts +1 -0
- package/dist/interfaces/common/index.d.ts +1 -0
- package/dist/interfaces/common/index.js +19 -0
- package/dist/interfaces/common/index.js.map +1 -0
- package/dist/interfaces/common/index.mjs +2 -0
- package/dist/interfaces/common/index.mjs.map +1 -0
- package/dist/interfaces/index.d.mts +12 -0
- package/dist/interfaces/index.d.ts +12 -0
- package/dist/interfaces/index.js +21 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/interfaces/index.mjs +4 -0
- package/dist/interfaces/index.mjs.map +1 -0
- package/dist/interfaces/project-trust-account-allocation/index.d.mts +7 -0
- package/dist/interfaces/project-trust-account-allocation/index.d.ts +7 -0
- package/dist/interfaces/project-trust-account-allocation/index.js +20 -0
- package/dist/interfaces/project-trust-account-allocation/index.js.map +1 -0
- package/dist/interfaces/project-trust-account-allocation/index.mjs +3 -0
- package/dist/interfaces/project-trust-account-allocation/index.mjs.map +1 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.d.mts +16 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.d.ts +16 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.js +17 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.js.map +1 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.mjs +1 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.mjs.map +1 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.d.mts +24 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.d.ts +24 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.js +17 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.js.map +1 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.mjs +1 -0
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.mjs.map +1 -0
- package/dist/interfaces/trust-account/index.d.mts +8 -0
- package/dist/interfaces/trust-account/index.d.ts +8 -0
- package/dist/interfaces/trust-account/index.js +20 -0
- package/dist/interfaces/trust-account/index.js.map +1 -0
- package/dist/interfaces/trust-account/index.mjs +3 -0
- package/dist/interfaces/trust-account/index.mjs.map +1 -0
- package/dist/interfaces/trust-account/trust-account.entity.interface.d.mts +18 -0
- package/dist/interfaces/trust-account/trust-account.entity.interface.d.ts +18 -0
- package/dist/interfaces/trust-account/trust-account.entity.interface.js +17 -0
- package/dist/interfaces/trust-account/trust-account.entity.interface.js.map +1 -0
- package/dist/interfaces/trust-account/trust-account.entity.interface.mjs +1 -0
- package/dist/interfaces/trust-account/trust-account.entity.interface.mjs.map +1 -0
- package/dist/interfaces/trust-account/trust-account.grpc.interface.d.mts +24 -0
- package/dist/interfaces/trust-account/trust-account.grpc.interface.d.ts +24 -0
- package/dist/interfaces/trust-account/trust-account.grpc.interface.js +17 -0
- package/dist/interfaces/trust-account/trust-account.grpc.interface.js.map +1 -0
- package/dist/interfaces/trust-account/trust-account.grpc.interface.mjs +1 -0
- package/dist/interfaces/trust-account/trust-account.grpc.interface.mjs.map +1 -0
- package/dist/schemas/index.d.mts +12 -0
- package/dist/schemas/index.d.ts +12 -0
- package/dist/schemas/index.js +22 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/index.mjs +5 -0
- package/dist/schemas/index.mjs.map +1 -0
- package/dist/schemas/menu/create-menu.schema.d.mts +49 -0
- package/dist/schemas/menu/create-menu.schema.d.ts +49 -0
- package/dist/schemas/menu/create-menu.schema.js +40 -0
- package/dist/schemas/menu/create-menu.schema.js.map +1 -0
- package/dist/schemas/menu/create-menu.schema.mjs +20 -0
- package/dist/schemas/menu/create-menu.schema.mjs.map +1 -0
- package/dist/schemas/menu/index.d.mts +4 -0
- package/dist/schemas/menu/index.d.ts +4 -0
- package/dist/schemas/menu/index.js +21 -0
- package/dist/schemas/menu/index.js.map +1 -0
- package/dist/schemas/menu/index.mjs +4 -0
- package/dist/schemas/menu/index.mjs.map +1 -0
- package/dist/schemas/menu/menu-res.schema.d.mts +219 -0
- package/dist/schemas/menu/menu-res.schema.d.ts +219 -0
- package/dist/schemas/menu/menu-res.schema.js +49 -0
- package/dist/schemas/menu/menu-res.schema.js.map +1 -0
- package/dist/schemas/menu/menu-res.schema.mjs +29 -0
- package/dist/schemas/menu/menu-res.schema.mjs.map +1 -0
- package/dist/schemas/menu/update-menu.schema.d.mts +53 -0
- package/dist/schemas/menu/update-menu.schema.d.ts +53 -0
- package/dist/schemas/menu/update-menu.schema.js +29 -0
- package/dist/schemas/menu/update-menu.schema.js.map +1 -0
- package/dist/schemas/menu/update-menu.schema.mjs +9 -0
- package/dist/schemas/menu/update-menu.schema.mjs.map +1 -0
- package/dist/schemas/project/index.d.mts +3 -0
- package/dist/schemas/project/index.d.ts +3 -0
- package/dist/schemas/project/index.js +19 -0
- package/dist/schemas/project/index.js.map +1 -0
- package/dist/schemas/project/index.mjs +2 -0
- package/dist/schemas/project/index.mjs.map +1 -0
- package/dist/schemas/project/project-res.schema.d.mts +154 -0
- package/dist/schemas/project/project-res.schema.d.ts +154 -0
- package/dist/schemas/project/project-res.schema.js +42 -0
- package/dist/schemas/project/project-res.schema.js.map +1 -0
- package/dist/schemas/project/project-res.schema.mjs +22 -0
- package/dist/schemas/project/project-res.schema.mjs.map +1 -0
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.d.mts +15 -0
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.d.ts +15 -0
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.js +29 -0
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.js.map +1 -0
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.mjs +9 -0
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.mjs.map +1 -0
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.d.mts +12 -0
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.d.ts +12 -0
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.js +28 -0
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.js.map +1 -0
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.mjs +8 -0
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.mjs.map +1 -0
- package/dist/schemas/project-trust-account-allocation/index.d.mts +4 -0
- package/dist/schemas/project-trust-account-allocation/index.d.ts +4 -0
- package/dist/schemas/project-trust-account-allocation/index.js +21 -0
- package/dist/schemas/project-trust-account-allocation/index.js.map +1 -0
- package/dist/schemas/project-trust-account-allocation/index.mjs +4 -0
- package/dist/schemas/project-trust-account-allocation/index.mjs.map +1 -0
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.d.mts +46 -0
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.d.ts +46 -0
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.js +39 -0
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.js.map +1 -0
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.mjs +19 -0
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.mjs.map +1 -0
- package/dist/schemas/trust-account/create-trust-account.schema.d.mts +28 -0
- package/dist/schemas/trust-account/create-trust-account.schema.d.ts +28 -0
- package/dist/schemas/trust-account/create-trust-account.schema.js +36 -0
- package/dist/schemas/trust-account/create-trust-account.schema.js.map +1 -0
- package/dist/schemas/trust-account/create-trust-account.schema.mjs +16 -0
- package/dist/schemas/trust-account/create-trust-account.schema.mjs.map +1 -0
- package/dist/schemas/trust-account/index.d.mts +5 -0
- package/dist/schemas/trust-account/index.d.ts +5 -0
- package/dist/schemas/trust-account/index.js +21 -0
- package/dist/schemas/trust-account/index.js.map +1 -0
- package/dist/schemas/trust-account/index.mjs +4 -0
- package/dist/schemas/trust-account/index.mjs.map +1 -0
- package/dist/schemas/trust-account/trust-account-res.schema.d.mts +31 -0
- package/dist/schemas/trust-account/trust-account-res.schema.d.ts +31 -0
- package/dist/schemas/trust-account/trust-account-res.schema.js +46 -0
- package/dist/schemas/trust-account/trust-account-res.schema.js.map +1 -0
- package/dist/schemas/trust-account/trust-account-res.schema.mjs +26 -0
- package/dist/schemas/trust-account/trust-account-res.schema.mjs.map +1 -0
- package/dist/schemas/trust-account/update-trust-account.schema.d.mts +15 -0
- package/dist/schemas/trust-account/update-trust-account.schema.d.ts +15 -0
- package/dist/schemas/trust-account/update-trust-account.schema.js +29 -0
- package/dist/schemas/trust-account/update-trust-account.schema.js.map +1 -0
- package/dist/schemas/trust-account/update-trust-account.schema.mjs +9 -0
- package/dist/schemas/trust-account/update-trust-account.schema.mjs.map +1 -0
- package/dist/utils/index.d.mts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +19 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.mjs +2 -0
- package/dist/utils/index.mjs.map +1 -0
- package/dist/utils/mask.d.mts +7 -0
- package/dist/utils/mask.d.ts +7 -0
- package/dist/utils/mask.js +41 -0
- package/dist/utils/mask.js.map +1 -0
- package/dist/utils/mask.mjs +21 -0
- package/dist/utils/mask.mjs.map +1 -0
- package/package.json +109 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const MS_ACCOUNTING_GRPC_PACKAGE = "MS_ACCOUNTING_GRPC_PACKAGE";
|
|
2
|
+
declare const trustAccountGrpcService = "TrustAccountGrpcService";
|
|
3
|
+
declare const projectTrustAccountAllocationGrpcService = "ProjectTrustAccountAllocationGrpcService";
|
|
4
|
+
declare const AccountingMsGrpcServiceSchema: {
|
|
5
|
+
package: string;
|
|
6
|
+
trustAccount: {
|
|
7
|
+
service: string;
|
|
8
|
+
};
|
|
9
|
+
projectTrustAccountAllocation: {
|
|
10
|
+
service: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { AccountingMsGrpcServiceSchema, MS_ACCOUNTING_GRPC_PACKAGE, projectTrustAccountAllocationGrpcService, trustAccountGrpcService };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const MS_ACCOUNTING_GRPC_PACKAGE = "MS_ACCOUNTING_GRPC_PACKAGE";
|
|
2
|
+
declare const trustAccountGrpcService = "TrustAccountGrpcService";
|
|
3
|
+
declare const projectTrustAccountAllocationGrpcService = "ProjectTrustAccountAllocationGrpcService";
|
|
4
|
+
declare const AccountingMsGrpcServiceSchema: {
|
|
5
|
+
package: string;
|
|
6
|
+
trustAccount: {
|
|
7
|
+
service: string;
|
|
8
|
+
};
|
|
9
|
+
projectTrustAccountAllocation: {
|
|
10
|
+
service: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { AccountingMsGrpcServiceSchema, MS_ACCOUNTING_GRPC_PACKAGE, projectTrustAccountAllocationGrpcService, trustAccountGrpcService };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var accountms_constant_exports = {};
|
|
20
|
+
__export(accountms_constant_exports, {
|
|
21
|
+
AccountingMsGrpcServiceSchema: () => AccountingMsGrpcServiceSchema,
|
|
22
|
+
MS_ACCOUNTING_GRPC_PACKAGE: () => MS_ACCOUNTING_GRPC_PACKAGE,
|
|
23
|
+
projectTrustAccountAllocationGrpcService: () => projectTrustAccountAllocationGrpcService,
|
|
24
|
+
trustAccountGrpcService: () => trustAccountGrpcService
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(accountms_constant_exports);
|
|
27
|
+
const MS_ACCOUNTING_GRPC_PACKAGE = "MS_ACCOUNTING_GRPC_PACKAGE";
|
|
28
|
+
const trustAccountGrpcService = "TrustAccountGrpcService";
|
|
29
|
+
const projectTrustAccountAllocationGrpcService = "ProjectTrustAccountAllocationGrpcService";
|
|
30
|
+
const AccountingMsGrpcServiceSchema = {
|
|
31
|
+
package: MS_ACCOUNTING_GRPC_PACKAGE,
|
|
32
|
+
trustAccount: {
|
|
33
|
+
service: trustAccountGrpcService
|
|
34
|
+
},
|
|
35
|
+
projectTrustAccountAllocation: {
|
|
36
|
+
service: projectTrustAccountAllocationGrpcService
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=accountms.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/grpc/constants/accountms.constant.ts"],"sourcesContent":["export const MS_ACCOUNTING_GRPC_PACKAGE = 'MS_ACCOUNTING_GRPC_PACKAGE';\n\nexport const trustAccountGrpcService = 'TrustAccountGrpcService';\n\nexport const projectTrustAccountAllocationGrpcService = 'ProjectTrustAccountAllocationGrpcService';\n\nexport const AccountingMsGrpcServiceSchema = {\n package: MS_ACCOUNTING_GRPC_PACKAGE,\n trustAccount: {\n service: trustAccountGrpcService,\n },\n projectTrustAccountAllocation: {\n service: projectTrustAccountAllocationGrpcService,\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,6BAA6B;AAEnC,MAAM,0BAA0B;AAEhC,MAAM,2CAA2C;AAEjD,MAAM,gCAAgC;AAAA,EAC3C,SAAS;AAAA,EACT,cAAc;AAAA,IACZ,SAAS;AAAA,EACX;AAAA,EACA,+BAA+B;AAAA,IAC7B,SAAS;AAAA,EACX;AACF;","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const MS_ACCOUNTING_GRPC_PACKAGE = "MS_ACCOUNTING_GRPC_PACKAGE";
|
|
2
|
+
const trustAccountGrpcService = "TrustAccountGrpcService";
|
|
3
|
+
const projectTrustAccountAllocationGrpcService = "ProjectTrustAccountAllocationGrpcService";
|
|
4
|
+
const AccountingMsGrpcServiceSchema = {
|
|
5
|
+
package: MS_ACCOUNTING_GRPC_PACKAGE,
|
|
6
|
+
trustAccount: {
|
|
7
|
+
service: trustAccountGrpcService
|
|
8
|
+
},
|
|
9
|
+
projectTrustAccountAllocation: {
|
|
10
|
+
service: projectTrustAccountAllocationGrpcService
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
AccountingMsGrpcServiceSchema,
|
|
15
|
+
MS_ACCOUNTING_GRPC_PACKAGE,
|
|
16
|
+
projectTrustAccountAllocationGrpcService,
|
|
17
|
+
trustAccountGrpcService
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=accountms.constant.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/grpc/constants/accountms.constant.ts"],"sourcesContent":["export const MS_ACCOUNTING_GRPC_PACKAGE = 'MS_ACCOUNTING_GRPC_PACKAGE';\n\nexport const trustAccountGrpcService = 'TrustAccountGrpcService';\n\nexport const projectTrustAccountAllocationGrpcService = 'ProjectTrustAccountAllocationGrpcService';\n\nexport const AccountingMsGrpcServiceSchema = {\n package: MS_ACCOUNTING_GRPC_PACKAGE,\n trustAccount: {\n service: trustAccountGrpcService,\n },\n projectTrustAccountAllocation: {\n service: projectTrustAccountAllocationGrpcService,\n },\n};\n"],"mappings":"AAAO,MAAM,6BAA6B;AAEnC,MAAM,0BAA0B;AAEhC,MAAM,2CAA2C;AAEjD,MAAM,gCAAgC;AAAA,EAC3C,SAAS;AAAA,EACT,cAAc;AAAA,IACZ,SAAS;AAAA,EACX;AAAA,EACA,+BAA+B;AAAA,IAC7B,SAAS;AAAA,EACX;AACF;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AccountingMsGrpcServiceSchema, MS_ACCOUNTING_GRPC_PACKAGE, projectTrustAccountAllocationGrpcService, trustAccountGrpcService } from './accountms.constant.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AccountingMsGrpcServiceSchema, MS_ACCOUNTING_GRPC_PACKAGE, projectTrustAccountAllocationGrpcService, trustAccountGrpcService } from './accountms.constant.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var constants_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(constants_exports);
|
|
18
|
+
__reExport(constants_exports, require("./accountms.constant"), module.exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/grpc/constants/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './accountms.constant';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAEA,8BAAc,iCAFd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/grpc/constants/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './accountms.constant';\n"],"mappings":"AAEA,cAAc;","names":[]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { AccountingMsGrpcServiceSchema, MS_ACCOUNTING_GRPC_PACKAGE, projectTrustAccountAllocationGrpcService, trustAccountGrpcService } from './constants/accountms.constant.mjs';
|
|
2
|
+
export { getAccountingMsGrpcOptions } from './utils/grpc.options.util.mjs';
|
|
3
|
+
export { findProtosFolder, getGrpcProtoOptions, protoPath, searchProtoFiles } from './utils/proto.util.mjs';
|
|
4
|
+
import '@nestjs/microservices';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { AccountingMsGrpcServiceSchema, MS_ACCOUNTING_GRPC_PACKAGE, projectTrustAccountAllocationGrpcService, trustAccountGrpcService } from './constants/accountms.constant.js';
|
|
2
|
+
export { getAccountingMsGrpcOptions } from './utils/grpc.options.util.js';
|
|
3
|
+
export { findProtosFolder, getGrpcProtoOptions, protoPath, searchProtoFiles } from './utils/proto.util.js';
|
|
4
|
+
import '@nestjs/microservices';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var grpc_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(grpc_exports);
|
|
18
|
+
__reExport(grpc_exports, require("./constants"), module.exports);
|
|
19
|
+
__reExport(grpc_exports, require("./utils"), module.exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../packages/grpc/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './constants';\nexport * from './utils';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAEA,yBAAc,wBAFd;AAGA,yBAAc,oBAHd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../packages/grpc/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './constants';\nexport * from './utils';\n"],"mappings":"AAEA,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package common.file;
|
|
4
|
+
|
|
5
|
+
message FileUploadReq {
|
|
6
|
+
string originalname = 1;
|
|
7
|
+
string encoding = 2;
|
|
8
|
+
string mimetype = 3;
|
|
9
|
+
int32 size = 4;
|
|
10
|
+
string destination = 6;
|
|
11
|
+
string filename = 7;
|
|
12
|
+
string path = 8;
|
|
13
|
+
bytes buffer = 9;
|
|
14
|
+
string extraInfo = 10; // JSON string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message FileUploadRes {
|
|
18
|
+
string id = 1;
|
|
19
|
+
string bucket = 2;
|
|
20
|
+
string key = 3;
|
|
21
|
+
string uri = 4;
|
|
22
|
+
string originalname = 5;
|
|
23
|
+
string name = 6;
|
|
24
|
+
string status = 7;
|
|
25
|
+
int32 size = 8;
|
|
26
|
+
string extraInfo = 9; // JSON string
|
|
27
|
+
bool isArchived = 10;
|
|
28
|
+
bool isPublished = 11;
|
|
29
|
+
string assetStatus = 12;
|
|
30
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package common.general;
|
|
4
|
+
|
|
5
|
+
message IdReq {
|
|
6
|
+
string id = 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message IdsReq {
|
|
10
|
+
repeated string ids = 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message SimpleMessageResp {
|
|
14
|
+
bool isSuccess = 1;
|
|
15
|
+
optional string message = 2;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message SimpleOperationInfo {
|
|
19
|
+
string operatorId = 1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message DateTimeFilter {
|
|
23
|
+
optional string equals = 1;
|
|
24
|
+
repeated string in = 2;
|
|
25
|
+
repeated string notIn = 3;
|
|
26
|
+
optional string lt = 4;
|
|
27
|
+
optional string lte = 5;
|
|
28
|
+
optional string gt = 6;
|
|
29
|
+
optional string gte = 7;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message StringFilter {
|
|
33
|
+
optional string equals = 1;
|
|
34
|
+
repeated string in = 2;
|
|
35
|
+
repeated string notIn = 3;
|
|
36
|
+
optional string contains = 4;
|
|
37
|
+
optional string startsWith = 5;
|
|
38
|
+
optional string endsWith = 6;
|
|
39
|
+
optional string mode = 7;
|
|
40
|
+
optional string not = 8;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message NumberFilter {
|
|
44
|
+
optional float equals = 1;
|
|
45
|
+
repeated float in = 2;
|
|
46
|
+
repeated float notIn = 3;
|
|
47
|
+
optional float lt = 4;
|
|
48
|
+
optional float lte = 5;
|
|
49
|
+
optional float gt = 6;
|
|
50
|
+
optional float gte = 7;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
message Empty {}
|
package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.e.proto
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package accountingms.project_trust_account_allocation.e;
|
|
4
|
+
|
|
5
|
+
message ProjectTrustAccountAllocation {
|
|
6
|
+
string id = 1;
|
|
7
|
+
string projectId = 2;
|
|
8
|
+
string trustAccountId = 3;
|
|
9
|
+
string status = 4;
|
|
10
|
+
string createdBy = 5;
|
|
11
|
+
string createdAt = 6;
|
|
12
|
+
string approvedBy = 7;
|
|
13
|
+
string approvedAt = 8;
|
|
14
|
+
string updatedAt = 9;
|
|
15
|
+
bool isArchived = 10;
|
|
16
|
+
}
|
package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.proto
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package accountingms.project_trust_account_allocation;
|
|
4
|
+
|
|
5
|
+
import "common.general.proto";
|
|
6
|
+
import "project-trust-account-allocation.e.proto";
|
|
7
|
+
|
|
8
|
+
service ProjectTrustAccountAllocationGrpcService {
|
|
9
|
+
rpc FindProjectTrustAccountAllocationByProjectId(IdReq) returns (FindProjectTrustAccountAllocationByProjectIdRes) {}
|
|
10
|
+
rpc GetAllProjectTrustAccountAllocations(Empty) returns (GetAllProjectTrustAccountAllocationsRes) {}
|
|
11
|
+
rpc AllocateTrustAccountToProject(AllocateTrustAccountToProjectReq) returns (ProjectTrustAccountAllocation) {}
|
|
12
|
+
rpc ApproveProjectTrustAccountAllocation(IdReq) returns (ProjectTrustAccountAllocation) {}
|
|
13
|
+
// rpc RejectProjectTrustAccountAllocation(RejectProjectTrustAccountAllocationReq) returns (ProjectTrustAccountAllocation) {}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message GetAllProjectTrustAccountAllocationsRes {
|
|
17
|
+
repeated ProjectTrustAccountAllocation data = 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message FindProjectTrustAccountAllocationByProjectIdRes {
|
|
21
|
+
ProjectTrustAccountAllocation data = 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message AllocateTrustAccountToProjectReq {
|
|
25
|
+
string projectId = 1;
|
|
26
|
+
string trustAccountId = 2;
|
|
27
|
+
string userId = 3;
|
|
28
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package accountingms.trust_account.e;
|
|
4
|
+
|
|
5
|
+
message TrustAccount {
|
|
6
|
+
string id = 1;
|
|
7
|
+
string name = 2;
|
|
8
|
+
string country = 3;
|
|
9
|
+
string stateCode = 4;
|
|
10
|
+
string bankCode = 5;
|
|
11
|
+
string accountNumber = 6;
|
|
12
|
+
string bsb = 7;
|
|
13
|
+
string status = 8;
|
|
14
|
+
string createdBy = 96;
|
|
15
|
+
string updatedAt = 97;
|
|
16
|
+
string createdAt = 98;
|
|
17
|
+
bool isArchived = 99;
|
|
18
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package accountingms.trust_account;
|
|
4
|
+
|
|
5
|
+
import "common.general.proto";
|
|
6
|
+
import "trust-account.e.proto";
|
|
7
|
+
|
|
8
|
+
service TrustAccountGrpcService {
|
|
9
|
+
rpc GetAllTrustAccounts(Empty) returns (GetAllTrustAccountsRes) {}
|
|
10
|
+
rpc FindTrustAccountById(IdReq) returns (FindTrustAccountByIdRes) {}
|
|
11
|
+
rpc CreateTrustAccount(CreateTrustAccountReq) returns (TrustAccount) {}
|
|
12
|
+
rpc UpdateTrustAccount(UpdateTrustAccountReq) returns (TrustAccount) {}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message GetAllTrustAccountsRes {
|
|
16
|
+
repeated TrustAccount data = 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message FindTrustAccountByIdRes {
|
|
20
|
+
TrustAccount data = 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message CreateTrustAccountReq {
|
|
24
|
+
string name = 1;
|
|
25
|
+
string country = 2;
|
|
26
|
+
string stateCode = 3;
|
|
27
|
+
string bankCode = 4;
|
|
28
|
+
string accountNumber = 5;
|
|
29
|
+
string bsb = 6;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message UpdateTrustAccountReq {
|
|
33
|
+
string id = 1;
|
|
34
|
+
string name = 2;
|
|
35
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GrpcOptions } from '@nestjs/microservices';
|
|
2
|
+
|
|
3
|
+
declare const getAccountingMsGrpcOptions: ({ url, options, debug, protoRootPath, }: {
|
|
4
|
+
url: string;
|
|
5
|
+
options?: GrpcOptions["options"];
|
|
6
|
+
debug?: boolean;
|
|
7
|
+
protoRootPath?: string;
|
|
8
|
+
}) => GrpcOptions["options"];
|
|
9
|
+
|
|
10
|
+
export { getAccountingMsGrpcOptions };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GrpcOptions } from '@nestjs/microservices';
|
|
2
|
+
|
|
3
|
+
declare const getAccountingMsGrpcOptions: ({ url, options, debug, protoRootPath, }: {
|
|
4
|
+
url: string;
|
|
5
|
+
options?: GrpcOptions["options"];
|
|
6
|
+
debug?: boolean;
|
|
7
|
+
protoRootPath?: string;
|
|
8
|
+
}) => GrpcOptions["options"];
|
|
9
|
+
|
|
10
|
+
export { getAccountingMsGrpcOptions };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var grpc_options_util_exports = {};
|
|
20
|
+
__export(grpc_options_util_exports, {
|
|
21
|
+
getAccountingMsGrpcOptions: () => getAccountingMsGrpcOptions
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(grpc_options_util_exports);
|
|
24
|
+
var import_proto = require("./proto.util");
|
|
25
|
+
const getAccountingMsGrpcOptions = ({
|
|
26
|
+
url,
|
|
27
|
+
options,
|
|
28
|
+
debug = false,
|
|
29
|
+
protoRootPath = import_proto.protoPath
|
|
30
|
+
}) => {
|
|
31
|
+
if (!url) {
|
|
32
|
+
throw new Error("Url is required");
|
|
33
|
+
}
|
|
34
|
+
const { packages, protoDirs, protoPaths } = (0, import_proto.getGrpcProtoOptions)([
|
|
35
|
+
{
|
|
36
|
+
path: protoRootPath
|
|
37
|
+
}
|
|
38
|
+
]);
|
|
39
|
+
if (debug) {
|
|
40
|
+
console.debug("protoRootPath", protoRootPath);
|
|
41
|
+
console.debug("packages", packages);
|
|
42
|
+
console.debug("protoDirs", protoDirs);
|
|
43
|
+
console.debug("protoPaths", protoPaths);
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
url,
|
|
47
|
+
package: [...packages],
|
|
48
|
+
protoPath: [...protoPaths],
|
|
49
|
+
loader: {
|
|
50
|
+
includeDirs: protoDirs,
|
|
51
|
+
arrays: true,
|
|
52
|
+
objects: true
|
|
53
|
+
},
|
|
54
|
+
...options
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=grpc.options.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/grpc/utils/grpc.options.util.ts"],"sourcesContent":["/* eslint-disable no-console */\nimport type { GrpcOptions } from '@nestjs/microservices';\nimport { getGrpcProtoOptions, protoPath } from './proto.util';\n/**\n * Get the gRPC options for the project service\n * @param options - The gRPC options\n * @param options.url - The URL of the gRPC server\n * @param options.options - The gRPC options, it will override the default options\n * @param options.debug - Whether to enable debug mode\n * @param options.protoRootPath - optional path to the proto root, it has a default value\n * @returns The gRPC options\n */\nexport const getAccountingMsGrpcOptions = ({\n url,\n options,\n debug = false,\n protoRootPath = protoPath,\n}: {\n url: string;\n options?: GrpcOptions['options'];\n debug?: boolean;\n protoRootPath?: string;\n}): GrpcOptions['options'] => {\n if (!url) {\n throw new Error('Url is required');\n }\n\n const { packages, protoDirs, protoPaths } = getGrpcProtoOptions([\n {\n path: protoRootPath,\n },\n ]);\n\n if (debug) {\n console.debug('protoRootPath', protoRootPath);\n console.debug('packages', packages);\n console.debug('protoDirs', protoDirs);\n console.debug('protoPaths', protoPaths);\n }\n\n return {\n url,\n package: [...packages],\n protoPath: [...protoPaths],\n loader: {\n includeDirs: protoDirs,\n arrays: true,\n objects: true,\n },\n ...options,\n } as GrpcOptions['options'];\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,mBAA+C;AAUxC,MAAM,6BAA6B,CAAC;AAAA,EACzC;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,gBAAgB;AAClB,MAK8B;AAC5B,MAAI,CAAC,KAAK;AACR,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACnC;AAEA,QAAM,EAAE,UAAU,WAAW,WAAW,QAAI,kCAAoB;AAAA,IAC9D;AAAA,MACE,MAAM;AAAA,IACR;AAAA,EACF,CAAC;AAED,MAAI,OAAO;AACT,YAAQ,MAAM,iBAAiB,aAAa;AAC5C,YAAQ,MAAM,YAAY,QAAQ;AAClC,YAAQ,MAAM,aAAa,SAAS;AACpC,YAAQ,MAAM,cAAc,UAAU;AAAA,EACxC;AAEA,SAAO;AAAA,IACL;AAAA,IACA,SAAS,CAAC,GAAG,QAAQ;AAAA,IACrB,WAAW,CAAC,GAAG,UAAU;AAAA,IACzB,QAAQ;AAAA,MACN,aAAa;AAAA,MACb,QAAQ;AAAA,MACR,SAAS;AAAA,IACX;AAAA,IACA,GAAG;AAAA,EACL;AACF;","names":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { getGrpcProtoOptions, protoPath } from "./proto.util";
|
|
2
|
+
const getAccountingMsGrpcOptions = ({
|
|
3
|
+
url,
|
|
4
|
+
options,
|
|
5
|
+
debug = false,
|
|
6
|
+
protoRootPath = protoPath
|
|
7
|
+
}) => {
|
|
8
|
+
if (!url) {
|
|
9
|
+
throw new Error("Url is required");
|
|
10
|
+
}
|
|
11
|
+
const { packages, protoDirs, protoPaths } = getGrpcProtoOptions([
|
|
12
|
+
{
|
|
13
|
+
path: protoRootPath
|
|
14
|
+
}
|
|
15
|
+
]);
|
|
16
|
+
if (debug) {
|
|
17
|
+
console.debug("protoRootPath", protoRootPath);
|
|
18
|
+
console.debug("packages", packages);
|
|
19
|
+
console.debug("protoDirs", protoDirs);
|
|
20
|
+
console.debug("protoPaths", protoPaths);
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
url,
|
|
24
|
+
package: [...packages],
|
|
25
|
+
protoPath: [...protoPaths],
|
|
26
|
+
loader: {
|
|
27
|
+
includeDirs: protoDirs,
|
|
28
|
+
arrays: true,
|
|
29
|
+
objects: true
|
|
30
|
+
},
|
|
31
|
+
...options
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
getAccountingMsGrpcOptions
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=grpc.options.util.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/grpc/utils/grpc.options.util.ts"],"sourcesContent":["/* eslint-disable no-console */\nimport type { GrpcOptions } from '@nestjs/microservices';\nimport { getGrpcProtoOptions, protoPath } from './proto.util';\n/**\n * Get the gRPC options for the project service\n * @param options - The gRPC options\n * @param options.url - The URL of the gRPC server\n * @param options.options - The gRPC options, it will override the default options\n * @param options.debug - Whether to enable debug mode\n * @param options.protoRootPath - optional path to the proto root, it has a default value\n * @returns The gRPC options\n */\nexport const getAccountingMsGrpcOptions = ({\n url,\n options,\n debug = false,\n protoRootPath = protoPath,\n}: {\n url: string;\n options?: GrpcOptions['options'];\n debug?: boolean;\n protoRootPath?: string;\n}): GrpcOptions['options'] => {\n if (!url) {\n throw new Error('Url is required');\n }\n\n const { packages, protoDirs, protoPaths } = getGrpcProtoOptions([\n {\n path: protoRootPath,\n },\n ]);\n\n if (debug) {\n console.debug('protoRootPath', protoRootPath);\n console.debug('packages', packages);\n console.debug('protoDirs', protoDirs);\n console.debug('protoPaths', protoPaths);\n }\n\n return {\n url,\n package: [...packages],\n protoPath: [...protoPaths],\n loader: {\n includeDirs: protoDirs,\n arrays: true,\n objects: true,\n },\n ...options,\n } as GrpcOptions['options'];\n};\n"],"mappings":"AAEA,SAAS,qBAAqB,iBAAiB;AAUxC,MAAM,6BAA6B,CAAC;AAAA,EACzC;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,gBAAgB;AAClB,MAK8B;AAC5B,MAAI,CAAC,KAAK;AACR,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACnC;AAEA,QAAM,EAAE,UAAU,WAAW,WAAW,IAAI,oBAAoB;AAAA,IAC9D;AAAA,MACE,MAAM;AAAA,IACR;AAAA,EACF,CAAC;AAED,MAAI,OAAO;AACT,YAAQ,MAAM,iBAAiB,aAAa;AAC5C,YAAQ,MAAM,YAAY,QAAQ;AAClC,YAAQ,MAAM,aAAa,SAAS;AACpC,YAAQ,MAAM,cAAc,UAAU;AAAA,EACxC;AAEA,SAAO;AAAA,IACL;AAAA,IACA,SAAS,CAAC,GAAG,QAAQ;AAAA,IACrB,WAAW,CAAC,GAAG,UAAU;AAAA,IACzB,QAAQ;AAAA,MACN,aAAa;AAAA,MACb,QAAQ;AAAA,MACR,SAAS;AAAA,IACX;AAAA,IACA,GAAG;AAAA,EACL;AACF;","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var utils_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(utils_exports);
|
|
18
|
+
__reExport(utils_exports, require("./grpc.options.util"), module.exports);
|
|
19
|
+
__reExport(utils_exports, require("./proto.util"), module.exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/grpc/utils/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './grpc.options.util';\nexport * from './proto.util';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAEA,0BAAc,gCAFd;AAGA,0BAAc,yBAHd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/grpc/utils/index.ts"],"sourcesContent":["// This file is auto-generated. Do not edit manually.\n\nexport * from './grpc.options.util';\nexport * from './proto.util';\n"],"mappings":"AAEA,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const findProtosFolder: (startPath: string, upperDepth?: number) => string | null;
|
|
2
|
+
declare const searchProtoFiles: (startPath: string) => {
|
|
3
|
+
filename: string;
|
|
4
|
+
dirname: string;
|
|
5
|
+
package: string;
|
|
6
|
+
service?: string;
|
|
7
|
+
}[];
|
|
8
|
+
declare const getGrpcProtoOptions: (paths: {
|
|
9
|
+
path: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
}[]) => {
|
|
12
|
+
packages: any[];
|
|
13
|
+
protoPaths: any[];
|
|
14
|
+
protoDirs: any[];
|
|
15
|
+
};
|
|
16
|
+
declare const protoPath: string;
|
|
17
|
+
|
|
18
|
+
export { findProtosFolder, getGrpcProtoOptions, protoPath, searchProtoFiles };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const findProtosFolder: (startPath: string, upperDepth?: number) => string | null;
|
|
2
|
+
declare const searchProtoFiles: (startPath: string) => {
|
|
3
|
+
filename: string;
|
|
4
|
+
dirname: string;
|
|
5
|
+
package: string;
|
|
6
|
+
service?: string;
|
|
7
|
+
}[];
|
|
8
|
+
declare const getGrpcProtoOptions: (paths: {
|
|
9
|
+
path: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
}[]) => {
|
|
12
|
+
packages: any[];
|
|
13
|
+
protoPaths: any[];
|
|
14
|
+
protoDirs: any[];
|
|
15
|
+
};
|
|
16
|
+
declare const protoPath: string;
|
|
17
|
+
|
|
18
|
+
export { findProtosFolder, getGrpcProtoOptions, protoPath, searchProtoFiles };
|