@royalinvest/dto 0.72.6 → 0.72.7
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 +71 -71
- package/dist/auth.js +0 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.js +8 -0
- package/dist/documentDrawingInstructions.js +0 -1
- package/dist/enum/uiLanguage.d.ts +1 -0
- package/dist/fileMetadata.js +0 -1
- package/dist/physicalFileDetails.js +0 -1
- package/dist/rabbitmq/messageNotification.d.ts +1 -1
- package/dist/rabbitmq/messageNotification.js +1 -1
- package/package.json +86 -86
- package/dist/billing.d.ts +0 -1
- package/dist/messageProcessContract.d.ts +0 -8
- package/dist/messageProcessContract.js +0 -2
- package/dist/payment.d.ts +0 -1
- package/dist/payment.js +0 -2
- package/dist/signatureInitials.d.ts +0 -5
- package/dist/signatureInitials.js +0 -2
- package/dist/usa/fl/section copy 2.d.ts +0 -0
- package/dist/usa/fl/section copy 2.js +0 -1
- package/dist/usa/fl/section copy 3.d.ts +0 -0
- package/dist/usa/fl/section copy 3.js +0 -1
- package/dist/usa/fl/section copy 4.d.ts +0 -0
- package/dist/usa/fl/section copy 4.js +0 -1
- package/dist/usa/fl/section copy 5.d.ts +0 -0
- package/dist/usa/fl/section copy 5.js +0 -1
- /package/dist/{billing.js → enum/uiLanguage.js} +0 -0
package/README.md
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
# NPM Packages
|
|
2
|
-
|
|
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.
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## Getting Started
|
|
9
|
-
|
|
10
|
-
### 1. Configure NPM registry
|
|
11
|
-
|
|
12
|
-
To authenticate with the NPM registry, configure your `.npmrc` file:
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
npm config set //registry.npmjs.org/:_authToken=<your_auth_token>
|
|
16
|
-
```
|
|
17
|
-
|
|
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.
|
|
20
|
-
|
|
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
|
-
---
|
|
29
|
-
|
|
30
|
-
## Creating a New Package
|
|
31
|
-
|
|
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.
|
|
51
|
-
|
|
52
|
-
---
|
|
53
|
-
|
|
54
|
-
## Versioning
|
|
55
|
-
|
|
56
|
-
We follow **Semantic Versioning (SemVer)**:
|
|
57
|
-
|
|
58
|
-
- **MAJOR** – incompatible API changes
|
|
59
|
-
- **MINOR** – add functionality in a backward-compatible manner
|
|
60
|
-
- **PATCH** – backward-compatible bug fixes
|
|
61
|
-
|
|
62
|
-
Update the version number manually in `package.json` before publishing.
|
|
63
|
-
|
|
64
|
-
---
|
|
65
|
-
|
|
66
|
-
## Publishing
|
|
67
|
-
|
|
68
|
-
To publish a package to the NPM registry:
|
|
69
|
-
|
|
70
|
-
```bash
|
|
71
|
-
npm publish --access public
|
|
1
|
+
# NPM Packages
|
|
2
|
+
|
|
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.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Getting Started
|
|
9
|
+
|
|
10
|
+
### 1. Configure NPM registry
|
|
11
|
+
|
|
12
|
+
To authenticate with the NPM registry, configure your `.npmrc` file:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm config set //registry.npmjs.org/:_authToken=<your_auth_token>
|
|
16
|
+
```
|
|
17
|
+
|
|
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.
|
|
20
|
+
|
|
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
|
+
---
|
|
29
|
+
|
|
30
|
+
## Creating a New Package
|
|
31
|
+
|
|
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.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Versioning
|
|
55
|
+
|
|
56
|
+
We follow **Semantic Versioning (SemVer)**:
|
|
57
|
+
|
|
58
|
+
- **MAJOR** – incompatible API changes
|
|
59
|
+
- **MINOR** – add functionality in a backward-compatible manner
|
|
60
|
+
- **PATCH** – backward-compatible bug fixes
|
|
61
|
+
|
|
62
|
+
Update the version number manually in `package.json` before publishing.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Publishing
|
|
67
|
+
|
|
68
|
+
To publish a package to the NPM registry:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
npm publish --access public
|
|
72
72
|
```
|
package/dist/auth.js
CHANGED
package/dist/config.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export type CountryConfig = {
|
|
|
5
5
|
defaultLocale: string;
|
|
6
6
|
supportedLocales: string[];
|
|
7
7
|
uiLanguages?: Array<LocaleType>;
|
|
8
|
+
flag: string;
|
|
8
9
|
};
|
|
9
10
|
export declare const COUNTRY_CONFIG: Record<CountryEnum, CountryConfig>;
|
|
10
11
|
export declare const CurrencyMinorUnits: Record<CurrencyEnum, number>;
|
package/dist/config.js
CHANGED
|
@@ -8,48 +8,56 @@ exports.COUNTRY_CONFIG = {
|
|
|
8
8
|
defaultLocale: "en-CA",
|
|
9
9
|
supportedLocales: ["en-CA", "fr-CA"],
|
|
10
10
|
uiLanguages: ["en", "fr"],
|
|
11
|
+
flag: "flagpack:ca",
|
|
11
12
|
},
|
|
12
13
|
[enum_1.CountryEnum.US]: {
|
|
13
14
|
defaultCurrency: enum_1.CurrencyEnum.USD,
|
|
14
15
|
defaultLocale: "en-US",
|
|
15
16
|
supportedLocales: ["en-US"],
|
|
16
17
|
uiLanguages: ["en"],
|
|
18
|
+
flag: "flagpack:us",
|
|
17
19
|
},
|
|
18
20
|
[enum_1.CountryEnum.FR]: {
|
|
19
21
|
defaultCurrency: enum_1.CurrencyEnum.EUR,
|
|
20
22
|
defaultLocale: "fr-FR",
|
|
21
23
|
supportedLocales: ["fr-FR", "en-FR"],
|
|
22
24
|
uiLanguages: ["fr", "en"],
|
|
25
|
+
flag: "flagpack:fr",
|
|
23
26
|
},
|
|
24
27
|
[enum_1.CountryEnum.DE]: {
|
|
25
28
|
defaultCurrency: enum_1.CurrencyEnum.EUR,
|
|
26
29
|
defaultLocale: "de-DE",
|
|
27
30
|
supportedLocales: ["de-DE", "en-DE"],
|
|
28
31
|
uiLanguages: ["de", "en"],
|
|
32
|
+
flag: "flagpack:de",
|
|
29
33
|
},
|
|
30
34
|
[enum_1.CountryEnum.NL]: {
|
|
31
35
|
defaultCurrency: enum_1.CurrencyEnum.EUR,
|
|
32
36
|
defaultLocale: "nl-NL",
|
|
33
37
|
supportedLocales: ["nl-NL", "en-NL"],
|
|
34
38
|
uiLanguages: ["nl", "en"],
|
|
39
|
+
flag: "flagpack:nl",
|
|
35
40
|
},
|
|
36
41
|
[enum_1.CountryEnum.ES]: {
|
|
37
42
|
defaultCurrency: enum_1.CurrencyEnum.EUR,
|
|
38
43
|
defaultLocale: "es-ES",
|
|
39
44
|
supportedLocales: ["es-ES", "en-ES"],
|
|
40
45
|
uiLanguages: ["es", "en"],
|
|
46
|
+
flag: "flagpack:es",
|
|
41
47
|
},
|
|
42
48
|
[enum_1.CountryEnum.GB]: {
|
|
43
49
|
defaultCurrency: enum_1.CurrencyEnum.GBP,
|
|
44
50
|
defaultLocale: "en-GB",
|
|
45
51
|
supportedLocales: ["en-GB"],
|
|
46
52
|
uiLanguages: ["en"],
|
|
53
|
+
flag: "flagpack:gb-ukm",
|
|
47
54
|
},
|
|
48
55
|
[enum_1.CountryEnum.AU]: {
|
|
49
56
|
defaultCurrency: enum_1.CurrencyEnum.AUD,
|
|
50
57
|
defaultLocale: "en-AU",
|
|
51
58
|
supportedLocales: ["en-AU"],
|
|
52
59
|
uiLanguages: ["en"],
|
|
60
|
+
flag: "flagpack:au",
|
|
53
61
|
},
|
|
54
62
|
};
|
|
55
63
|
exports.CurrencyMinorUnits = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type UILanguage = "en" | "fr" | "de" | "es" | "nl";
|
package/dist/fileMetadata.js
CHANGED
package/package.json
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@royalinvest/dto",
|
|
3
|
-
"version": "0.72.
|
|
4
|
-
"description": "Data Transfer Objects (DTOs) to carry data between frontend and backend processes.",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"types": "./dist/index.d.ts",
|
|
7
|
-
"module": "./dist/index.js",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"require": "./dist/index.js",
|
|
12
|
-
"import": "./dist/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./backend": {
|
|
15
|
-
"types": "./dist/backend.d.ts",
|
|
16
|
-
"require": "./dist/backend.js",
|
|
17
|
-
"import": "./dist/backend.js"
|
|
18
|
-
},
|
|
19
|
-
"./credit-check": {
|
|
20
|
-
"types": "./dist/credit-check/index.d.ts",
|
|
21
|
-
"require": "./dist/credit-check/index.js",
|
|
22
|
-
"import": "./dist/credit-check/index.js"
|
|
23
|
-
},
|
|
24
|
-
"./enum": {
|
|
25
|
-
"types": "./dist/enum/index.d.ts",
|
|
26
|
-
"require": "./dist/enum/index.js",
|
|
27
|
-
"import": "./dist/enum/index.js"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"repository": {
|
|
31
|
-
"type": "git",
|
|
32
|
-
"url": "git@ssh.dev.azure.com:v3/royalinvest/royalinvest/npm-package"
|
|
33
|
-
},
|
|
34
|
-
"files": [
|
|
35
|
-
"dist"
|
|
36
|
-
],
|
|
37
|
-
"publishConfig": {
|
|
38
|
-
"access": "public"
|
|
39
|
-
},
|
|
40
|
-
"scripts": {
|
|
41
|
-
"build": "npx tsc",
|
|
42
|
-
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
43
|
-
"lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
44
|
-
"prettier": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
45
|
-
"prettier:check": "npx prettier --check \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
46
|
-
"clear-all": "rm -rf node_modules .next out dist build",
|
|
47
|
-
"re-start": "rm -rf node_modules .next out dist build && npm install && npm run dev",
|
|
48
|
-
"re-build": "rm -rf node_modules .next out dist build && npm install && npm run build",
|
|
49
|
-
"prepublishOnly": "npm run build",
|
|
50
|
-
"test": "echo \"Not implemented yet\""
|
|
51
|
-
},
|
|
52
|
-
"lint-staged": {
|
|
53
|
-
"src/**/*.{js,jsx,ts,tsx}": [
|
|
54
|
-
"prettier --write",
|
|
55
|
-
"eslint --fix",
|
|
56
|
-
"git add"
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
"prettier": {
|
|
60
|
-
"tabWidth": 2,
|
|
61
|
-
"useTabs": false,
|
|
62
|
-
"singleQuote": false,
|
|
63
|
-
"printWidth": 120
|
|
64
|
-
},
|
|
65
|
-
"author": "Samos Technologies Inc.",
|
|
66
|
-
"license": "ISC",
|
|
67
|
-
"devDependencies": {
|
|
68
|
-
"@eslint/js": "^9.11.1",
|
|
69
|
-
"@types/amqplib": "^0.10.6",
|
|
70
|
-
"@types/node": "^24.1.0",
|
|
71
|
-
"eslint": "^9.11.1",
|
|
72
|
-
"eslint-plugin-react": "^7.37.0",
|
|
73
|
-
"globals": "^15.9.0",
|
|
74
|
-
"husky": "^8.0.0",
|
|
75
|
-
"lint-staged": "^15.2.10",
|
|
76
|
-
"prettier": "^3.3.3",
|
|
77
|
-
"typescript-eslint": "^8.7.0"
|
|
78
|
-
},
|
|
79
|
-
"dependencies": {
|
|
80
|
-
"amqplib": "^0.10.3",
|
|
81
|
-
"dayjs": "^1.11.19",
|
|
82
|
-
"pino": "^9.7.0",
|
|
83
|
-
"pino-pretty": "^13.0.0",
|
|
84
|
-
"prom-client": "^15.1.3"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@royalinvest/dto",
|
|
3
|
+
"version": "0.72.7",
|
|
4
|
+
"description": "Data Transfer Objects (DTOs) to carry data between frontend and backend processes.",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./backend": {
|
|
15
|
+
"types": "./dist/backend.d.ts",
|
|
16
|
+
"require": "./dist/backend.js",
|
|
17
|
+
"import": "./dist/backend.js"
|
|
18
|
+
},
|
|
19
|
+
"./credit-check": {
|
|
20
|
+
"types": "./dist/credit-check/index.d.ts",
|
|
21
|
+
"require": "./dist/credit-check/index.js",
|
|
22
|
+
"import": "./dist/credit-check/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./enum": {
|
|
25
|
+
"types": "./dist/enum/index.d.ts",
|
|
26
|
+
"require": "./dist/enum/index.js",
|
|
27
|
+
"import": "./dist/enum/index.js"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git@ssh.dev.azure.com:v3/royalinvest/royalinvest/npm-package"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist"
|
|
36
|
+
],
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "npx tsc",
|
|
42
|
+
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
43
|
+
"lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
44
|
+
"prettier": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
45
|
+
"prettier:check": "npx prettier --check \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
46
|
+
"clear-all": "rm -rf node_modules .next out dist build",
|
|
47
|
+
"re-start": "rm -rf node_modules .next out dist build && npm install && npm run dev",
|
|
48
|
+
"re-build": "rm -rf node_modules .next out dist build && npm install && npm run build",
|
|
49
|
+
"prepublishOnly": "npm run build",
|
|
50
|
+
"test": "echo \"Not implemented yet\""
|
|
51
|
+
},
|
|
52
|
+
"lint-staged": {
|
|
53
|
+
"src/**/*.{js,jsx,ts,tsx}": [
|
|
54
|
+
"prettier --write",
|
|
55
|
+
"eslint --fix",
|
|
56
|
+
"git add"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"prettier": {
|
|
60
|
+
"tabWidth": 2,
|
|
61
|
+
"useTabs": false,
|
|
62
|
+
"singleQuote": false,
|
|
63
|
+
"printWidth": 120
|
|
64
|
+
},
|
|
65
|
+
"author": "Samos Technologies Inc.",
|
|
66
|
+
"license": "ISC",
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@eslint/js": "^9.11.1",
|
|
69
|
+
"@types/amqplib": "^0.10.6",
|
|
70
|
+
"@types/node": "^24.1.0",
|
|
71
|
+
"eslint": "^9.11.1",
|
|
72
|
+
"eslint-plugin-react": "^7.37.0",
|
|
73
|
+
"globals": "^15.9.0",
|
|
74
|
+
"husky": "^8.0.0",
|
|
75
|
+
"lint-staged": "^15.2.10",
|
|
76
|
+
"prettier": "^3.3.3",
|
|
77
|
+
"typescript-eslint": "^8.7.0"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"amqplib": "^0.10.3",
|
|
81
|
+
"dayjs": "^1.11.19",
|
|
82
|
+
"pino": "^9.7.0",
|
|
83
|
+
"pino-pretty": "^13.0.0",
|
|
84
|
+
"prom-client": "^15.1.3"
|
|
85
|
+
}
|
|
86
|
+
}
|
package/dist/billing.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type BillingIntervalType = "month" | "year" | "once";
|
package/dist/payment.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type PaymentIntervalType = "month" | "year";
|
package/dist/payment.js
DELETED
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
File without changes
|