@royalinvest/dto 0.61.2 → 0.62.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 +52 -21
- package/dist/credit-check/index.d.ts +1 -0
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -3
- package/dist/rabbitmq/index.d.ts +3 -0
- package/dist/rabbitmq/index.js +3 -0
- package/dist/{messageGenerate.d.ts → rabbitmq/messageGenerate.d.ts} +8 -11
- package/dist/{messageNotification.d.ts → rabbitmq/messageNotification.d.ts} +3 -6
- package/package.json +1 -1
- /package/dist/{messageBrokerEvent.d.ts → rabbitmq/messageBrokerEvent.d.ts} +0 -0
- /package/dist/{messageBrokerEvent.js → rabbitmq/messageBrokerEvent.js} +0 -0
- /package/dist/{messageGenerate.js → rabbitmq/messageGenerate.js} +0 -0
- /package/dist/{messageNotification.js → rabbitmq/messageNotification.js} +0 -0
package/README.md
CHANGED
|
@@ -1,41 +1,72 @@
|
|
|
1
|
-
#
|
|
1
|
+
# NPM Packages
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This project contains shared **NPM packages** for RoyalInvest (e.g., DTOs, utilities).
|
|
4
|
+
Packages are written in **TypeScript** and published to the company’s NPM organization.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
---
|
|
6
7
|
|
|
8
|
+
## Getting Started
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
### 1. Configure NPM registry
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
To authenticate with the NPM registry, configure your `.npmrc` file:
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
```bash
|
|
15
|
+
npm config set //registry.npmjs.org/:_authToken=<your_auth_token>
|
|
16
|
+
```
|
|
14
17
|
|
|
15
|
-
|
|
18
|
+
Replace `<your_auth_token>` with a token from [npmjs.com](https://www.npmjs.com/).
|
|
19
|
+
For access to the company’s account, request a token from the administrator.
|
|
16
20
|
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Company Packages
|
|
24
|
+
|
|
25
|
+
You can view all published packages here:
|
|
26
|
+
[RoyalInvest NPM Packages](https://www.npmjs.com/settings/royalinvest/packages)
|
|
27
|
+
|
|
28
|
+
---
|
|
19
29
|
|
|
20
30
|
## Creating a New Package
|
|
21
31
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
-
|
|
32
|
+
1. Create a new directory under `npm-package/`.
|
|
33
|
+
2. Add:
|
|
34
|
+
- `package.json` (copy structure from `dto/package.json`).
|
|
35
|
+
- `tsconfig.json` (same as in existing packages).
|
|
36
|
+
3. Implement your code in `src/`.
|
|
37
|
+
|
|
38
|
+
Each package should follow the same conventions for consistency.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Building a Package
|
|
43
|
+
|
|
44
|
+
Run the build command inside the package directory:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm run build
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Check the `scripts` section in `dto/package.json` for an example configuration.
|
|
25
51
|
|
|
26
|
-
|
|
52
|
+
---
|
|
27
53
|
|
|
28
|
-
|
|
54
|
+
## Versioning
|
|
29
55
|
|
|
56
|
+
We follow **Semantic Versioning (SemVer)**:
|
|
30
57
|
|
|
31
|
-
|
|
58
|
+
- **MAJOR** – incompatible API changes
|
|
59
|
+
- **MINOR** – add functionality in a backward-compatible manner
|
|
60
|
+
- **PATCH** – backward-compatible bug fixes
|
|
32
61
|
|
|
33
|
-
|
|
34
|
-
Versioning should be updated manually by modifying the version number in the `package.json` file.
|
|
62
|
+
Update the version number manually in `package.json` before publishing.
|
|
35
63
|
|
|
36
|
-
|
|
64
|
+
---
|
|
37
65
|
|
|
38
|
-
|
|
66
|
+
## Publishing
|
|
39
67
|
|
|
68
|
+
To publish a package to the NPM registry:
|
|
40
69
|
|
|
41
|
-
|
|
70
|
+
```bash
|
|
71
|
+
npm publish --access public
|
|
72
|
+
```
|
package/dist/index.d.ts
CHANGED
|
@@ -36,9 +36,6 @@ export * from "./lease";
|
|
|
36
36
|
export * from "./leaseNoticeRule";
|
|
37
37
|
export * from "./leaseSaveTypeEnum";
|
|
38
38
|
export * from "./list-response";
|
|
39
|
-
export * from "./messageBrokerEvent";
|
|
40
|
-
export * from "./messageGenerate";
|
|
41
|
-
export * from "./messageNotification";
|
|
42
39
|
export * from "./noticeRule";
|
|
43
40
|
export * from "./notification";
|
|
44
41
|
export * from "./party";
|
package/dist/index.js
CHANGED
|
@@ -52,9 +52,6 @@ __exportStar(require("./lease"), exports);
|
|
|
52
52
|
__exportStar(require("./leaseNoticeRule"), exports);
|
|
53
53
|
__exportStar(require("./leaseSaveTypeEnum"), exports);
|
|
54
54
|
__exportStar(require("./list-response"), exports);
|
|
55
|
-
__exportStar(require("./messageBrokerEvent"), exports);
|
|
56
|
-
__exportStar(require("./messageGenerate"), exports);
|
|
57
|
-
__exportStar(require("./messageNotification"), exports);
|
|
58
55
|
__exportStar(require("./noticeRule"), exports);
|
|
59
56
|
__exportStar(require("./notification"), exports);
|
|
60
57
|
__exportStar(require("./party"), exports);
|
package/dist/rabbitmq/index.d.ts
CHANGED
package/dist/rabbitmq/index.js
CHANGED
|
@@ -17,3 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./producer"), exports);
|
|
18
18
|
__exportStar(require("./consumer"), exports);
|
|
19
19
|
__exportStar(require("./constants"), exports);
|
|
20
|
+
__exportStar(require("./messageBrokerEvent"), exports);
|
|
21
|
+
__exportStar(require("./messageGenerate"), exports);
|
|
22
|
+
__exportStar(require("./messageNotification"), exports);
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { LeaseTypeEnum } from "
|
|
2
|
-
import { ICertificateFormData } from "
|
|
3
|
-
import { IContractParty } from "
|
|
4
|
-
import { IDocumentDrawingInstructions } from "
|
|
5
|
-
import { IFileMetadata } from "
|
|
6
|
-
import { ISignaturePartySigned } from "
|
|
7
|
-
import { IInvoiceRenderData } from "
|
|
8
|
-
import { ICreditCheckReportData } from "
|
|
1
|
+
import { LeaseTypeEnum } from "../enum";
|
|
2
|
+
import { ICertificateFormData } from "../certificateFormData";
|
|
3
|
+
import { IContractParty } from "../contractParty";
|
|
4
|
+
import { IDocumentDrawingInstructions } from "../documentDrawingInstructions";
|
|
5
|
+
import { IFileMetadata } from "../fileMetadata";
|
|
6
|
+
import { ISignaturePartySigned } from "../signaturePartySigned";
|
|
7
|
+
import { IInvoiceRenderData } from "../invoiceRenderData";
|
|
8
|
+
import { ICreditCheckReportData } from "../creditCheckReport";
|
|
9
9
|
export interface IMessageGenerate {
|
|
10
10
|
contract_id: string;
|
|
11
11
|
details: JSON;
|
|
12
|
-
user_id: string;
|
|
13
12
|
template_variant_file_name: string;
|
|
14
13
|
template_variant_name: string;
|
|
15
14
|
template_variant_language: string;
|
|
@@ -27,7 +26,6 @@ export interface IMessageGenerateSigned {
|
|
|
27
26
|
generate_hash?: boolean;
|
|
28
27
|
}
|
|
29
28
|
export interface IMessageGenerateVoided {
|
|
30
|
-
user_id: string;
|
|
31
29
|
contract_id: string;
|
|
32
30
|
file_id: string;
|
|
33
31
|
file_name: string;
|
|
@@ -42,7 +40,6 @@ export interface IMessageGenerateCertificate {
|
|
|
42
40
|
language: string;
|
|
43
41
|
}
|
|
44
42
|
export interface IMessageGenerateInvoice {
|
|
45
|
-
user_id: string;
|
|
46
43
|
billing_id: string;
|
|
47
44
|
blob_path: string;
|
|
48
45
|
invoice_number: string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { IPhysicalFileDetails } from "
|
|
2
|
-
import { IPlaceholderCollection } from "
|
|
3
|
-
import { ISignaturePartyBasic } from "
|
|
1
|
+
import { IPhysicalFileDetails } from "../physicalFileDetails";
|
|
2
|
+
import { IPlaceholderCollection } from "../placeholderCollection";
|
|
3
|
+
import { ISignaturePartyBasic } from "../signaturePartyBasic";
|
|
4
4
|
export interface IGeneratedNotification {
|
|
5
5
|
contract_id: string;
|
|
6
|
-
user_id: string;
|
|
7
6
|
file_name: string;
|
|
8
7
|
file_language: string;
|
|
9
8
|
mime_type: string;
|
|
@@ -20,7 +19,6 @@ export interface ISignedNotification {
|
|
|
20
19
|
generated_file_details?: IPhysicalFileDetails;
|
|
21
20
|
}
|
|
22
21
|
export interface IVoidedNotification {
|
|
23
|
-
user_id: string;
|
|
24
22
|
file_id: string;
|
|
25
23
|
contract_id: string;
|
|
26
24
|
notify_party_email: boolean;
|
|
@@ -31,7 +29,6 @@ export interface IGeneratedCertificateNotification {
|
|
|
31
29
|
blob_path: string;
|
|
32
30
|
}
|
|
33
31
|
export interface IGeneratedInvoiceNotification {
|
|
34
|
-
user_id: string;
|
|
35
32
|
billing_id: string;
|
|
36
33
|
blob_path: string;
|
|
37
34
|
invoice_number: string;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|