@digipair/skill-microsoft 0.89.0 → 0.91.0-0
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/.swcrc +28 -0
- package/README.md +7 -0
- package/eslint.config.mjs +22 -0
- package/package.json +23 -7
- package/rollup.config.cjs +28 -0
- package/src/lib/skill-microsoft.spec.ts +7 -0
- package/src/lib/skill-microsoft.ts +157 -0
- package/{schema.fr.json → src/schema.fr.json} +108 -0
- package/{schema.json → src/schema.json} +108 -0
- package/tsconfig.json +13 -0
- package/tsconfig.lib.json +19 -0
- package/index.cjs.d.ts +0 -1
- package/index.cjs.js +0 -25022
- package/index.esm.js +0 -25004
- package/libs/skill-microsoft/src/lib/skill-microsoft.d.ts +0 -7
- /package/{index.d.ts → src/index.d.ts} +0 -0
- /package/{libs/skill-microsoft/src/index.d.ts → src/index.ts} +0 -0
package/.swcrc
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"jsc": {
|
|
3
|
+
"target": "es2017",
|
|
4
|
+
"parser": {
|
|
5
|
+
"syntax": "typescript",
|
|
6
|
+
"decorators": true,
|
|
7
|
+
"dynamicImport": true
|
|
8
|
+
},
|
|
9
|
+
"transform": {
|
|
10
|
+
"decoratorMetadata": true,
|
|
11
|
+
"legacyDecorator": true
|
|
12
|
+
},
|
|
13
|
+
"keepClassNames": true,
|
|
14
|
+
"externalHelpers": true,
|
|
15
|
+
"loose": true
|
|
16
|
+
},
|
|
17
|
+
"module": {
|
|
18
|
+
"type": "es6"
|
|
19
|
+
},
|
|
20
|
+
"sourceMaps": true,
|
|
21
|
+
"exclude": [
|
|
22
|
+
"jest.config.ts",
|
|
23
|
+
".*\\.spec.tsx?$",
|
|
24
|
+
".*\\.test.tsx?$",
|
|
25
|
+
"./src/jest-setup.ts$",
|
|
26
|
+
"./**/jest-setup.ts$"
|
|
27
|
+
]
|
|
28
|
+
}
|
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import baseConfig from '../../eslint.config.mjs';
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
...baseConfig,
|
|
5
|
+
{
|
|
6
|
+
files: ['**/*.json'],
|
|
7
|
+
rules: {
|
|
8
|
+
'@nx/dependency-checks': [
|
|
9
|
+
'error',
|
|
10
|
+
{
|
|
11
|
+
ignoredFiles: [
|
|
12
|
+
'{projectRoot}/eslint.config.{js,cjs,mjs}',
|
|
13
|
+
'{projectRoot}/rollup.config.{js,ts,mjs,mts,cjs,cts}',
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
languageOptions: {
|
|
19
|
+
parser: await import('jsonc-eslint-parser'),
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
];
|
package/package.json
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digipair/skill-microsoft",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.91.0-0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/libs/skill-microsoft/index.cjs.js",
|
|
6
|
+
"module": "dist/libs/skill-microsoft/index.esm.js",
|
|
7
|
+
"types": "dist/libs/skill-microsoft/index.esm.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./package.json": "./libs/skill-microsoft/package.json",
|
|
10
|
+
".": {
|
|
11
|
+
"development": "./dist/libs/skill-microsoft/src/index.ts",
|
|
12
|
+
"types": "./dist/libs/skill-microsoft/index.esm.d.ts",
|
|
13
|
+
"import": "./dist/libs/skill-microsoft/index.esm.js",
|
|
14
|
+
"default": "./dist/libs/skill-microsoft/index.cjs.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
4
17
|
"keywords": [
|
|
5
18
|
"digipair",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
19
|
+
"tool",
|
|
20
|
+
"service"
|
|
8
21
|
],
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
22
|
+
"nx": {
|
|
23
|
+
"name": "skill-microsoft"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@digipair/engine": "0.91.0-0"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const { withNx } = require('@nx/rollup/with-nx');
|
|
2
|
+
|
|
3
|
+
module.exports = withNx(
|
|
4
|
+
{
|
|
5
|
+
main: 'libs/skill-microsoft/src/index.ts',
|
|
6
|
+
outputPath: 'dist/libs/skill-microsoft',
|
|
7
|
+
tsConfig: 'libs/skill-microsoft/tsconfig.lib.json',
|
|
8
|
+
compiler: 'swc',
|
|
9
|
+
format: ['esm', "cjs"],
|
|
10
|
+
assets: [
|
|
11
|
+
{
|
|
12
|
+
input: 'libs/skill-microsoft/',
|
|
13
|
+
glob: 'package.json',
|
|
14
|
+
output: '.'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
input: 'libs/skill-microsoft/src/',
|
|
18
|
+
glob: '*.json',
|
|
19
|
+
output: '.'
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
// Provide additional rollup configuration here. See: https://rollupjs.org/configuration-options
|
|
25
|
+
// e.g.
|
|
26
|
+
// output: { sourcemap: true },
|
|
27
|
+
}
|
|
28
|
+
);
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
3
|
+
import { PinsSettings } from '@digipair/engine';
|
|
4
|
+
import * as msal from '@azure/msal-node';
|
|
5
|
+
|
|
6
|
+
const AUTHORITY_URL = 'https://login.microsoftonline.com';
|
|
7
|
+
const API_ENDPOINT = 'https://graph.microsoft.com';
|
|
8
|
+
|
|
9
|
+
class MicrosoftService {
|
|
10
|
+
private OAUTH_CLIENT_ID: string;
|
|
11
|
+
private OAUTH_CLIENT_SECRET: string;
|
|
12
|
+
private TENANT_ID: string;
|
|
13
|
+
private type: string;
|
|
14
|
+
private contentType: string;
|
|
15
|
+
|
|
16
|
+
constructor(context: any, params: any) {
|
|
17
|
+
this.OAUTH_CLIENT_ID =
|
|
18
|
+
context.privates.MICROSOFT_OAUTH_CLIENT_ID ??
|
|
19
|
+
params?.MICROSOFT_OAUTH_CLIENT_ID ??
|
|
20
|
+
process.env['MICROSOFT_OAUTH_CLIENT_ID'];
|
|
21
|
+
this.OAUTH_CLIENT_SECRET =
|
|
22
|
+
context.privates.MICROSOFT_OAUTH_CLIENT_SECRET ??
|
|
23
|
+
params?.MICROSOFT_OAUTH_CLIENT_SECRET ??
|
|
24
|
+
process.env['MICROSOFT_OAUTH_CLIENT_SECRET'];
|
|
25
|
+
this.TENANT_ID =
|
|
26
|
+
context.privates.MICROSOFT_TENANT_ID ??
|
|
27
|
+
params?.MICROSOFT_TENANT_ID ??
|
|
28
|
+
process.env['MICROSOFT_TENANT_ID'];
|
|
29
|
+
|
|
30
|
+
this.type = params.type ?? 'json';
|
|
31
|
+
this.contentType = params.contentType ?? 'application/json';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
private async getAccessToken() {
|
|
35
|
+
// Configuration MSAL
|
|
36
|
+
const config = {
|
|
37
|
+
auth: {
|
|
38
|
+
clientId: this.OAUTH_CLIENT_ID,
|
|
39
|
+
authority: `${AUTHORITY_URL}/${this.TENANT_ID}`,
|
|
40
|
+
clientSecret: this.OAUTH_CLIENT_SECRET,
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
const cca = new msal.ConfidentialClientApplication(config);
|
|
44
|
+
|
|
45
|
+
const clientCredentialRequest = {
|
|
46
|
+
scopes: ['https://graph.microsoft.com/.default'],
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
try {
|
|
50
|
+
const response: any = await cca.acquireTokenByClientCredential(clientCredentialRequest);
|
|
51
|
+
return response.accessToken;
|
|
52
|
+
} catch (error) {
|
|
53
|
+
console.error(`[SKILL-MICROSOFT] ACCESS TOKEN FAILED : ${error}`);
|
|
54
|
+
throw error;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async call(
|
|
59
|
+
url: string,
|
|
60
|
+
method: string,
|
|
61
|
+
version: string,
|
|
62
|
+
data: any,
|
|
63
|
+
headers: any,
|
|
64
|
+
signal: AbortSignal,
|
|
65
|
+
) {
|
|
66
|
+
let result: any;
|
|
67
|
+
const accessToken = await this.getAccessToken();
|
|
68
|
+
|
|
69
|
+
const response = await fetch(`${API_ENDPOINT}/${version}/${url}`, {
|
|
70
|
+
signal,
|
|
71
|
+
method,
|
|
72
|
+
headers: {
|
|
73
|
+
Authorization: `Bearer ${accessToken}`,
|
|
74
|
+
Accept: 'application/json',
|
|
75
|
+
'Content-Type': this.contentType,
|
|
76
|
+
...headers,
|
|
77
|
+
},
|
|
78
|
+
body:
|
|
79
|
+
method.toUpperCase() === 'GET' || method.toUpperCase() === 'HEAD'
|
|
80
|
+
? undefined
|
|
81
|
+
: this.contentType === 'application/json'
|
|
82
|
+
? JSON.stringify(data)
|
|
83
|
+
: typeof data === 'string' && data.startsWith('data:')
|
|
84
|
+
? Buffer.from(data.replace(/^data:.*;base64,/, ''), 'base64')
|
|
85
|
+
: data,
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
if (!response.ok) throw new Error('[SKILL-MICROSOFT] REQUEST FAILED: ' + response.status);
|
|
89
|
+
|
|
90
|
+
if (
|
|
91
|
+
!response.headers.has('content-length') ||
|
|
92
|
+
(response.headers.get('content-length') as unknown as number) > 0
|
|
93
|
+
) {
|
|
94
|
+
if (this.type === 'json') {
|
|
95
|
+
result = await response.json();
|
|
96
|
+
} else if (this.type === 'text') {
|
|
97
|
+
result = await response.text();
|
|
98
|
+
} else {
|
|
99
|
+
const arrayBuffer = await response.arrayBuffer();
|
|
100
|
+
const buffer = Buffer.from(arrayBuffer);
|
|
101
|
+
result = buffer.toString('base64');
|
|
102
|
+
}
|
|
103
|
+
} else {
|
|
104
|
+
result = {};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return result;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
async create(params: any, _pinsSettingsList: PinsSettings[], context: any): Promise<any> {
|
|
111
|
+
const { path, body = {}, version = 'v1.0', headers = {} } = params;
|
|
112
|
+
return await this.call(path, 'POST', version, body, headers, context.protected?.signal);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
async read(params: any, _pinsSettingsList: PinsSettings[], context: any): Promise<any> {
|
|
116
|
+
const { path, version = 'v1.0', headers = {} } = params;
|
|
117
|
+
return await this.call(path, 'GET', version, null, headers, context.protected?.signal);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
async update(params: any, _pinsSettingsList: PinsSettings[], context: any): Promise<any> {
|
|
121
|
+
const { path, body = {}, version = 'v1.0', headers = {} } = params;
|
|
122
|
+
return await this.call(path, 'PUT', version, body, headers, context.protected?.signal);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
async partialUpdate(params: any, _pinsSettingsList: PinsSettings[], context: any): Promise<any> {
|
|
126
|
+
const { path, body = {}, version = 'v1.0', headers = {} } = params;
|
|
127
|
+
return await this.call(path, 'PATCH', version, body, headers, context.protected?.signal);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
async remove(params: any, _pinsSettingsList: PinsSettings[], context: any): Promise<any> {
|
|
131
|
+
const { path, version = 'v1.0', headers = {} } = params;
|
|
132
|
+
return await this.call(path, 'DELETE', version, null, headers, context.protected?.signal);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
async request(params: any, _pinsSettingsList: PinsSettings[], context: any): Promise<any> {
|
|
136
|
+
const { path, method = 'GET', body = null, version = 'v1.0', headers = {} } = params;
|
|
137
|
+
return await this.call(path, method, version, body, headers, context.protected?.signal);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export const create = (params: any, pinsSettingsList: PinsSettings[], context: any) =>
|
|
142
|
+
new MicrosoftService(context, params).create(params, pinsSettingsList, context);
|
|
143
|
+
|
|
144
|
+
export const read = (params: any, pinsSettingsList: PinsSettings[], context: any) =>
|
|
145
|
+
new MicrosoftService(context, params).read(params, pinsSettingsList, context);
|
|
146
|
+
|
|
147
|
+
export const update = (params: any, pinsSettingsList: PinsSettings[], context: any) =>
|
|
148
|
+
new MicrosoftService(context, params).update(params, pinsSettingsList, context);
|
|
149
|
+
|
|
150
|
+
export const partialUpdate = (params: any, pinsSettingsList: PinsSettings[], context: any) =>
|
|
151
|
+
new MicrosoftService(context, params).update(params, pinsSettingsList, context);
|
|
152
|
+
|
|
153
|
+
export const remove = (params: any, pinsSettingsList: PinsSettings[], context: any) =>
|
|
154
|
+
new MicrosoftService(context, params).remove(params, pinsSettingsList, context);
|
|
155
|
+
|
|
156
|
+
export const request = (params: any, pinsSettingsList: PinsSettings[], context: any) =>
|
|
157
|
+
new MicrosoftService(context, params).request(params, pinsSettingsList, context);
|
|
@@ -84,6 +84,24 @@
|
|
|
84
84
|
"schema": {
|
|
85
85
|
"type": "string"
|
|
86
86
|
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "type",
|
|
90
|
+
"summary": "Type de sortie",
|
|
91
|
+
"required": false,
|
|
92
|
+
"description": "Type de sortie attendu",
|
|
93
|
+
"schema": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "contentType",
|
|
99
|
+
"summary": "Type de contenu",
|
|
100
|
+
"required": false,
|
|
101
|
+
"description": "Type de contenu à envoyer",
|
|
102
|
+
"schema": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
}
|
|
87
105
|
}
|
|
88
106
|
],
|
|
89
107
|
"x-events": []
|
|
@@ -156,6 +174,24 @@
|
|
|
156
174
|
"schema": {
|
|
157
175
|
"type": "string"
|
|
158
176
|
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "type",
|
|
180
|
+
"summary": "Type de sortie",
|
|
181
|
+
"required": false,
|
|
182
|
+
"description": "Type de sortie attendu",
|
|
183
|
+
"schema": {
|
|
184
|
+
"type": "string"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "contentType",
|
|
189
|
+
"summary": "Type de contenu",
|
|
190
|
+
"required": false,
|
|
191
|
+
"description": "Type de contenu à envoyer",
|
|
192
|
+
"schema": {
|
|
193
|
+
"type": "string"
|
|
194
|
+
}
|
|
159
195
|
}
|
|
160
196
|
],
|
|
161
197
|
"x-events": []
|
|
@@ -219,6 +255,24 @@
|
|
|
219
255
|
"schema": {
|
|
220
256
|
"type": "string"
|
|
221
257
|
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "type",
|
|
261
|
+
"summary": "Type de sortie",
|
|
262
|
+
"required": false,
|
|
263
|
+
"description": "Type de sortie attendu",
|
|
264
|
+
"schema": {
|
|
265
|
+
"type": "string"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "contentType",
|
|
270
|
+
"summary": "Type de contenu",
|
|
271
|
+
"required": false,
|
|
272
|
+
"description": "Type de contenu à envoyer",
|
|
273
|
+
"schema": {
|
|
274
|
+
"type": "string"
|
|
275
|
+
}
|
|
222
276
|
}
|
|
223
277
|
],
|
|
224
278
|
"x-events": []
|
|
@@ -291,6 +345,24 @@
|
|
|
291
345
|
"schema": {
|
|
292
346
|
"type": "string"
|
|
293
347
|
}
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"name": "type",
|
|
351
|
+
"summary": "Type de sortie",
|
|
352
|
+
"required": false,
|
|
353
|
+
"description": "Type de sortie attendu",
|
|
354
|
+
"schema": {
|
|
355
|
+
"type": "string"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "contentType",
|
|
360
|
+
"summary": "Type de contenu",
|
|
361
|
+
"required": false,
|
|
362
|
+
"description": "Type de contenu à envoyer",
|
|
363
|
+
"schema": {
|
|
364
|
+
"type": "string"
|
|
365
|
+
}
|
|
294
366
|
}
|
|
295
367
|
],
|
|
296
368
|
"x-events": []
|
|
@@ -363,6 +435,24 @@
|
|
|
363
435
|
"schema": {
|
|
364
436
|
"type": "string"
|
|
365
437
|
}
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"name": "type",
|
|
441
|
+
"summary": "Type de sortie",
|
|
442
|
+
"required": false,
|
|
443
|
+
"description": "Type de sortie attendu",
|
|
444
|
+
"schema": {
|
|
445
|
+
"type": "string"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"name": "contentType",
|
|
450
|
+
"summary": "Type de contenu",
|
|
451
|
+
"required": false,
|
|
452
|
+
"description": "Type de contenu à envoyer",
|
|
453
|
+
"schema": {
|
|
454
|
+
"type": "string"
|
|
455
|
+
}
|
|
366
456
|
}
|
|
367
457
|
],
|
|
368
458
|
"x-events": []
|
|
@@ -426,6 +516,24 @@
|
|
|
426
516
|
"schema": {
|
|
427
517
|
"type": "string"
|
|
428
518
|
}
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"name": "type",
|
|
522
|
+
"summary": "Type de sortie",
|
|
523
|
+
"required": false,
|
|
524
|
+
"description": "Type de sortie attendu",
|
|
525
|
+
"schema": {
|
|
526
|
+
"type": "string"
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"name": "contentType",
|
|
531
|
+
"summary": "Type de contenu",
|
|
532
|
+
"required": false,
|
|
533
|
+
"description": "Type de contenu à envoyer",
|
|
534
|
+
"schema": {
|
|
535
|
+
"type": "string"
|
|
536
|
+
}
|
|
429
537
|
}
|
|
430
538
|
],
|
|
431
539
|
"x-events": []
|
|
@@ -84,6 +84,24 @@
|
|
|
84
84
|
"schema": {
|
|
85
85
|
"type": "string"
|
|
86
86
|
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "type",
|
|
90
|
+
"summary": "Output type",
|
|
91
|
+
"required": false,
|
|
92
|
+
"description": "Type of output expected from the service",
|
|
93
|
+
"schema": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "contentType",
|
|
99
|
+
"summary": "Content type",
|
|
100
|
+
"required": false,
|
|
101
|
+
"description": "Content type of the request",
|
|
102
|
+
"schema": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
}
|
|
87
105
|
}
|
|
88
106
|
],
|
|
89
107
|
"x-events": []
|
|
@@ -156,6 +174,24 @@
|
|
|
156
174
|
"schema": {
|
|
157
175
|
"type": "string"
|
|
158
176
|
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "type",
|
|
180
|
+
"summary": "Output type",
|
|
181
|
+
"required": false,
|
|
182
|
+
"description": "Type of output expected from the service",
|
|
183
|
+
"schema": {
|
|
184
|
+
"type": "string"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "contentType",
|
|
189
|
+
"summary": "Content type",
|
|
190
|
+
"required": false,
|
|
191
|
+
"description": "Content type of the request",
|
|
192
|
+
"schema": {
|
|
193
|
+
"type": "string"
|
|
194
|
+
}
|
|
159
195
|
}
|
|
160
196
|
],
|
|
161
197
|
"x-events": []
|
|
@@ -219,6 +255,24 @@
|
|
|
219
255
|
"schema": {
|
|
220
256
|
"type": "string"
|
|
221
257
|
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "type",
|
|
261
|
+
"summary": "Output type",
|
|
262
|
+
"required": false,
|
|
263
|
+
"description": "Type of output expected from the service",
|
|
264
|
+
"schema": {
|
|
265
|
+
"type": "string"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "contentType",
|
|
270
|
+
"summary": "Content type",
|
|
271
|
+
"required": false,
|
|
272
|
+
"description": "Content type of the request",
|
|
273
|
+
"schema": {
|
|
274
|
+
"type": "string"
|
|
275
|
+
}
|
|
222
276
|
}
|
|
223
277
|
],
|
|
224
278
|
"x-events": []
|
|
@@ -291,6 +345,24 @@
|
|
|
291
345
|
"schema": {
|
|
292
346
|
"type": "string"
|
|
293
347
|
}
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"name": "type",
|
|
351
|
+
"summary": "Output type",
|
|
352
|
+
"required": false,
|
|
353
|
+
"description": "Type of output expected from the service",
|
|
354
|
+
"schema": {
|
|
355
|
+
"type": "string"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "contentType",
|
|
360
|
+
"summary": "Content type",
|
|
361
|
+
"required": false,
|
|
362
|
+
"description": "Content type of the request",
|
|
363
|
+
"schema": {
|
|
364
|
+
"type": "string"
|
|
365
|
+
}
|
|
294
366
|
}
|
|
295
367
|
],
|
|
296
368
|
"x-events": []
|
|
@@ -363,6 +435,24 @@
|
|
|
363
435
|
"schema": {
|
|
364
436
|
"type": "string"
|
|
365
437
|
}
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"name": "type",
|
|
441
|
+
"summary": "Output type",
|
|
442
|
+
"required": false,
|
|
443
|
+
"description": "Type of output expected from the service",
|
|
444
|
+
"schema": {
|
|
445
|
+
"type": "string"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"name": "contentType",
|
|
450
|
+
"summary": "Content type",
|
|
451
|
+
"required": false,
|
|
452
|
+
"description": "Content type of the request",
|
|
453
|
+
"schema": {
|
|
454
|
+
"type": "string"
|
|
455
|
+
}
|
|
366
456
|
}
|
|
367
457
|
],
|
|
368
458
|
"x-events": []
|
|
@@ -426,6 +516,24 @@
|
|
|
426
516
|
"schema": {
|
|
427
517
|
"type": "string"
|
|
428
518
|
}
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"name": "type",
|
|
522
|
+
"summary": "Output type",
|
|
523
|
+
"required": false,
|
|
524
|
+
"description": "Type of output expected from the service",
|
|
525
|
+
"schema": {
|
|
526
|
+
"type": "string"
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"name": "contentType",
|
|
531
|
+
"summary": "Content type",
|
|
532
|
+
"required": false,
|
|
533
|
+
"description": "Content type of the request",
|
|
534
|
+
"schema": {
|
|
535
|
+
"type": "string"
|
|
536
|
+
}
|
|
429
537
|
}
|
|
430
538
|
],
|
|
431
539
|
"x-events": []
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"rootDir": "src",
|
|
5
|
+
"outDir": "dist",
|
|
6
|
+
"tsBuildInfoFile": "dist/tsconfig.lib.tsbuildinfo",
|
|
7
|
+
"emitDeclarationOnly": true,
|
|
8
|
+
"module": "esnext",
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"forceConsistentCasingInFileNames": true,
|
|
11
|
+
"types": ["node"]
|
|
12
|
+
},
|
|
13
|
+
"include": ["src/**/*.ts"],
|
|
14
|
+
"references": [
|
|
15
|
+
{
|
|
16
|
+
"path": "../engine/tsconfig.lib.json"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
package/index.cjs.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./src/index";
|