@edirect/dynamics 11.0.39 → 11.0.41
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 +27 -9
- package/dist/README.md +27 -9
- package/dist/package.json +7 -7
- package/package.json +7 -8
package/README.md
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
# @edirect/dynamics
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Dynamics integration module for Edirect applications. Provides services and utilities to interact with Microsoft Dynamics APIs, including authentication, data posting, and configuration.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Handles OAuth2 authentication with Dynamics
|
|
8
|
+
- Provides service for posting and retrieving data
|
|
9
|
+
- Integrates with NestJS and Edirect config modules
|
|
4
10
|
|
|
5
11
|
## Installation
|
|
6
12
|
|
|
7
|
-
```
|
|
8
|
-
|
|
13
|
+
```bash
|
|
14
|
+
npm install @edirect/dynamics
|
|
9
15
|
```
|
|
10
16
|
|
|
11
17
|
## Usage
|
|
12
18
|
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
Add the following environment variables to your .env file:
|
|
20
|
+
|
|
21
|
+
```env
|
|
15
22
|
DYNAMICS_TOKEN_URL="https://login.windows.net/YOUR_TENANT/oauth2/token"
|
|
16
23
|
DYNAMICS_CLIENT_ID="YOUR_CLIENT_ID"
|
|
17
24
|
DYNAMICS_USER_NAME="YOUR_USER_NAME"
|
|
@@ -20,8 +27,9 @@ DYNAMICS_RESOURCE="YOUR_RESOURCE_URL"
|
|
|
20
27
|
DYNAMICS_ENABLED="true/false"
|
|
21
28
|
```
|
|
22
29
|
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
Import and register the module in your app:
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
25
33
|
import { Module } from '@nestjs/common';
|
|
26
34
|
import { DynamicsModule } from '@edirect/dynamics';
|
|
27
35
|
|
|
@@ -32,8 +40,9 @@ import { DynamicsModule } from '@edirect/dynamics';
|
|
|
32
40
|
export class AppModule {}
|
|
33
41
|
```
|
|
34
42
|
|
|
35
|
-
|
|
36
|
-
|
|
43
|
+
Use the service in your controllers:
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
37
46
|
import { Controller } from '@nestjs/common';
|
|
38
47
|
import { DynamicsService } from '@edirect/dynamics';
|
|
39
48
|
|
|
@@ -48,3 +57,12 @@ export class CatsController {
|
|
|
48
57
|
}
|
|
49
58
|
}
|
|
50
59
|
```
|
|
60
|
+
|
|
61
|
+
## Environment Variables
|
|
62
|
+
|
|
63
|
+
- `DYNAMICS_TOKEN_URL`: OAuth2 token endpoint for Dynamics
|
|
64
|
+
- `DYNAMICS_CLIENT_ID`: Client ID for authentication
|
|
65
|
+
- `DYNAMICS_USER_NAME`: Username for Dynamics
|
|
66
|
+
- `DYNAMICS_PASSWORD`: Password for Dynamics
|
|
67
|
+
- `DYNAMICS_RESOURCE`: Resource URL for Dynamics API
|
|
68
|
+
- `DYNAMICS_ENABLED`: Enable/disable Dynamics integration
|
package/dist/README.md
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
# @edirect/dynamics
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Dynamics integration module for Edirect applications. Provides services and utilities to interact with Microsoft Dynamics APIs, including authentication, data posting, and configuration.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Handles OAuth2 authentication with Dynamics
|
|
8
|
+
- Provides service for posting and retrieving data
|
|
9
|
+
- Integrates with NestJS and Edirect config modules
|
|
4
10
|
|
|
5
11
|
## Installation
|
|
6
12
|
|
|
7
|
-
```
|
|
8
|
-
|
|
13
|
+
```bash
|
|
14
|
+
npm install @edirect/dynamics
|
|
9
15
|
```
|
|
10
16
|
|
|
11
17
|
## Usage
|
|
12
18
|
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
Add the following environment variables to your .env file:
|
|
20
|
+
|
|
21
|
+
```env
|
|
15
22
|
DYNAMICS_TOKEN_URL="https://login.windows.net/YOUR_TENANT/oauth2/token"
|
|
16
23
|
DYNAMICS_CLIENT_ID="YOUR_CLIENT_ID"
|
|
17
24
|
DYNAMICS_USER_NAME="YOUR_USER_NAME"
|
|
@@ -20,8 +27,9 @@ DYNAMICS_RESOURCE="YOUR_RESOURCE_URL"
|
|
|
20
27
|
DYNAMICS_ENABLED="true/false"
|
|
21
28
|
```
|
|
22
29
|
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
Import and register the module in your app:
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
25
33
|
import { Module } from '@nestjs/common';
|
|
26
34
|
import { DynamicsModule } from '@edirect/dynamics';
|
|
27
35
|
|
|
@@ -32,8 +40,9 @@ import { DynamicsModule } from '@edirect/dynamics';
|
|
|
32
40
|
export class AppModule {}
|
|
33
41
|
```
|
|
34
42
|
|
|
35
|
-
|
|
36
|
-
|
|
43
|
+
Use the service in your controllers:
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
37
46
|
import { Controller } from '@nestjs/common';
|
|
38
47
|
import { DynamicsService } from '@edirect/dynamics';
|
|
39
48
|
|
|
@@ -48,3 +57,12 @@ export class CatsController {
|
|
|
48
57
|
}
|
|
49
58
|
}
|
|
50
59
|
```
|
|
60
|
+
|
|
61
|
+
## Environment Variables
|
|
62
|
+
|
|
63
|
+
- `DYNAMICS_TOKEN_URL`: OAuth2 token endpoint for Dynamics
|
|
64
|
+
- `DYNAMICS_CLIENT_ID`: Client ID for authentication
|
|
65
|
+
- `DYNAMICS_USER_NAME`: Username for Dynamics
|
|
66
|
+
- `DYNAMICS_PASSWORD`: Password for Dynamics
|
|
67
|
+
- `DYNAMICS_RESOURCE`: Resource URL for Dynamics API
|
|
68
|
+
- `DYNAMICS_ENABLED`: Enable/disable Dynamics integration
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edirect/dynamics",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.40",
|
|
4
4
|
"main": "./dist/src/index.js",
|
|
5
5
|
"types": "./dist/src/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@edirect/config": "^11.0.
|
|
19
|
+
"@edirect/config": "^11.0.40",
|
|
20
20
|
"@nestjs/axios": "^4.0.1",
|
|
21
|
-
"@nestjs/common": "^11.1.
|
|
22
|
-
"axios": "^1.13.
|
|
23
|
-
"lodash": "^4.17.
|
|
21
|
+
"@nestjs/common": "^11.1.12",
|
|
22
|
+
"axios": "^1.13.3",
|
|
23
|
+
"lodash": "^4.17.23",
|
|
24
24
|
"tslib": "^2.8.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/express": "^5.0.6",
|
|
28
28
|
"@types/jest": "30.0.0",
|
|
29
|
-
"@types/lodash": "4.17.
|
|
30
|
-
"@types/node": "^25.0.
|
|
29
|
+
"@types/lodash": "4.17.23",
|
|
30
|
+
"@types/node": "^25.0.10"
|
|
31
31
|
},
|
|
32
32
|
"type": "commonjs"
|
|
33
33
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edirect/dynamics",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.41",
|
|
4
4
|
"packageScope": "@edirect",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
-
"development": "./src/index.ts",
|
|
10
9
|
"import": "./dist/src/index.js",
|
|
11
10
|
"default": "./dist/src/index.js",
|
|
12
11
|
"require": "./dist/src/index.js",
|
|
@@ -19,17 +18,17 @@
|
|
|
19
18
|
],
|
|
20
19
|
"dependencies": {
|
|
21
20
|
"@nestjs/axios": "^4.0.1",
|
|
22
|
-
"@nestjs/common": "^11.1.
|
|
23
|
-
"axios": "^1.13.
|
|
24
|
-
"lodash": "^4.17.
|
|
21
|
+
"@nestjs/common": "^11.1.12",
|
|
22
|
+
"axios": "^1.13.3",
|
|
23
|
+
"lodash": "^4.17.23",
|
|
25
24
|
"tslib": "^2.8.1",
|
|
26
|
-
"@edirect/config": "11.0.
|
|
25
|
+
"@edirect/config": "11.0.41"
|
|
27
26
|
},
|
|
28
27
|
"devDependencies": {
|
|
29
28
|
"@types/express": "^5.0.6",
|
|
30
29
|
"@types/jest": "30.0.0",
|
|
31
|
-
"@types/lodash": "4.17.
|
|
32
|
-
"@types/node": "^25.0.
|
|
30
|
+
"@types/lodash": "4.17.23",
|
|
31
|
+
"@types/node": "^25.0.10"
|
|
33
32
|
},
|
|
34
33
|
"nx": {
|
|
35
34
|
"name": "@edirect/dynamics",
|