@targetprocess/shared-data-model-client 1.19.0 → 1.21.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.
@@ -14,7 +14,7 @@ export interface CurrentRequestBuilder extends BaseRequestBuilder<CurrentRequest
14
14
  * @throws {ProblemDetails} error when the service returns a 409 status code
15
15
  * @throws {ProblemDetails} error when the service returns a 500 status code
16
16
  */
17
- get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ProfileDto | undefined>;
17
+ get(requestConfiguration?: RequestConfiguration<CurrentRequestBuilderGetQueryParameters> | undefined): Promise<ProfileDto | undefined>;
18
18
  /**
19
19
  * Sets current settings profile
20
20
  * @param body The request body
@@ -32,7 +32,7 @@ export interface CurrentRequestBuilder extends BaseRequestBuilder<CurrentRequest
32
32
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
33
33
  * @returns {RequestInformation}
34
34
  */
35
- toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
35
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<CurrentRequestBuilderGetQueryParameters> | undefined): RequestInformation;
36
36
  /**
37
37
  * Sets current settings profile
38
38
  * @param body The request body
@@ -41,10 +41,16 @@ export interface CurrentRequestBuilder extends BaseRequestBuilder<CurrentRequest
41
41
  */
42
42
  toPutRequestInformation(body: SetCurrentProfileRequestDto, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
43
43
  }
44
+ /**
45
+ * Get settings profile
46
+ */
47
+ export interface CurrentRequestBuilderGetQueryParameters {
48
+ validate?: boolean;
49
+ }
44
50
  /**
45
51
  * Uri template for the request builder.
46
52
  */
47
- export declare const CurrentRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile/current";
53
+ export declare const CurrentRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile/current?validate={validate}";
48
54
  /**
49
55
  * Metadata for all the requests in the request builder.
50
56
  */
@@ -9,7 +9,7 @@ const index_js_1 = require("../../../../models/index.js");
9
9
  /**
10
10
  * Uri template for the request builder.
11
11
  */
12
- exports.CurrentRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile/current";
12
+ exports.CurrentRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile/current?validate={validate}";
13
13
  /**
14
14
  * Metadata for all the requests in the request builder.
15
15
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@targetprocess/shared-data-model-client",
3
- "version": "1.19.0",
3
+ "version": "1.21.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,7 +20,7 @@ export interface CurrentRequestBuilder extends BaseRequestBuilder<CurrentRequest
20
20
  * @throws {ProblemDetails} error when the service returns a 409 status code
21
21
  * @throws {ProblemDetails} error when the service returns a 500 status code
22
22
  */
23
- get(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ProfileDto | undefined>;
23
+ get(requestConfiguration?: RequestConfiguration<CurrentRequestBuilderGetQueryParameters> | undefined) : Promise<ProfileDto | undefined>;
24
24
  /**
25
25
  * Sets current settings profile
26
26
  * @param body The request body
@@ -38,7 +38,7 @@ export interface CurrentRequestBuilder extends BaseRequestBuilder<CurrentRequest
38
38
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
39
39
  * @returns {RequestInformation}
40
40
  */
41
- toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
41
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<CurrentRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
42
42
  /**
43
43
  * Sets current settings profile
44
44
  * @param body The request body
@@ -47,10 +47,16 @@ export interface CurrentRequestBuilder extends BaseRequestBuilder<CurrentRequest
47
47
  */
48
48
  toPutRequestInformation(body: SetCurrentProfileRequestDto, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
49
49
  }
50
+ /**
51
+ * Get settings profile
52
+ */
53
+ export interface CurrentRequestBuilderGetQueryParameters {
54
+ validate?: boolean;
55
+ }
50
56
  /**
51
57
  * Uri template for the request builder.
52
58
  */
53
- export const CurrentRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile/current";
59
+ export const CurrentRequestBuilderUriTemplate = "{+baseurl}/api/settings/profile/current?validate={validate}";
54
60
  /**
55
61
  * Metadata for all the requests in the request builder.
56
62
  */
@@ -1,5 +1,5 @@
1
1
  {
2
- "descriptionHash": "5499188F779FE2680A46688D83C4164196E36FF5508CD6BCEB8D3AF91EF8EA6326FF53561BCB7E0D611C4EB612C122FAB2F040162F0E26C9F718346480D7934D",
2
+ "descriptionHash": "A033EDCF7EE899BF2F23EF33E13A7B16157B2656373EE5D33FE266FE88AAD70A11D3D0F605F1A2F88BAA97F6B64C617724016133A864E4F59EB4E66FA243CAFA",
3
3
  "descriptionLocation": "v1.json",
4
4
  "lockFileVersion": "1.0.0",
5
5
  "kiotaVersion": "1.29.0",
package/src/v1.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "x-generator": "NSwag v14.6.2.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))",
2
+ "x-generator": "NSwag v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))",
3
3
  "openapi": "3.0.0",
4
4
  "info": {
5
5
  "title": "Targetprocess Shared Data Model",
@@ -1660,6 +1660,16 @@
1660
1660
  ],
1661
1661
  "summary": "Get settings profile",
1662
1662
  "operationId": "GetProfileEndpoint",
1663
+ "parameters": [
1664
+ {
1665
+ "name": "validate",
1666
+ "in": "query",
1667
+ "required": true,
1668
+ "schema": {
1669
+ "type": "boolean"
1670
+ }
1671
+ }
1672
+ ],
1663
1673
  "responses": {
1664
1674
  "400": {
1665
1675
  "description": "Validation error",
@@ -2367,8 +2377,7 @@
2367
2377
  "type": "object",
2368
2378
  "additionalProperties": false,
2369
2379
  "required": [
2370
- "validationState",
2371
- "errors"
2380
+ "validationState"
2372
2381
  ],
2373
2382
  "properties": {
2374
2383
  "validationState": {
@@ -2376,6 +2385,7 @@
2376
2385
  },
2377
2386
  "errors": {
2378
2387
  "type": "array",
2388
+ "nullable": true,
2379
2389
  "items": {
2380
2390
  "$ref": "#/components/schemas/MappingErrorDto"
2381
2391
  }
@@ -2559,6 +2569,10 @@
2559
2569
  "Collection"
2560
2570
  ]
2561
2571
  },
2572
+ "GetProfileRequestDto": {
2573
+ "type": "object",
2574
+ "additionalProperties": false
2575
+ },
2562
2576
  "DeleteProfileRequestDto": {
2563
2577
  "type": "object",
2564
2578
  "additionalProperties": false,