@dynatrace-sdk/client-app-settings
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -5,2 +5,9 @@ # App Settings | ||
## 1.8.0 | ||
### Minor Changes | ||
- Enums are replaced with unions of literals. APPDEV-10338 | ||
- Inline enums as union of literals. APPDEV-9924 | ||
## 1.7.0 | ||
@@ -7,0 +14,0 @@ |
@@ -7,3 +7,3 @@ { | ||
"name": "@dynatrace-sdk/template-typescript-client", | ||
"version": "0.26.0" | ||
"version": "0.27.0" | ||
} | ||
@@ -10,0 +10,0 @@ }, |
{ | ||
"name": "@dynatrace-sdk/client-app-settings", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "Retrieve, update and manage app settings.", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
# @dynatrace-sdk/client-app-settings | ||
[![npm](https://img.shields.io/badge/npm-v1.7.0-blue)](https://www.npmjs.com/package/@dynatrace-sdk/client-app-settings/v/1.7.0) | ||
[![npm](https://img.shields.io/badge/npm-v1.8.0-blue)](https://www.npmjs.com/package/@dynatrace-sdk/client-app-settings/v/1.8.0) | ||
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) | ||
@@ -607,3 +607,3 @@ | ||
|message|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)| | ||
|parameterLocation|ConstraintViolationParameterLocation| | ||
|parameterLocation|"HEADER" | "PATH" | "PAYLOAD_BODY" | "QUERY"| | ||
|path|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)| | ||
@@ -640,3 +640,3 @@ | ||
|context|<a href="#permissioncontext">PermissionContext</a>| | ||
|granted<sup>*required</sup>|EffectivePermissionGranted| | ||
|granted<sup>*required</sup>|"true" | "false" | "condition"| | ||
|permission<sup>*required</sup>|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)| | ||
@@ -678,3 +678,3 @@ | ||
|modifications<sup>*required</sup>|<a href="#modifications" target="_blank" rel="noopener noreferrer">Modifications</a>|The additional modification details for this settings object. | | ||
|operations<sup>*required</sup>|Array<ResourceContextOperationsItem>|The allowed operations on this settings object. | | ||
|operations<sup>*required</sup>|Array<"read" | "write" | "delete">|The allowed operations on this settings object. | | ||
@@ -688,3 +688,3 @@ ### SinglePermissionRequest | ||
|context|<a href="#permissioncontext">PermissionContext</a>| | ||
|permission<sup>*required</sup>|SinglePermissionRequestPermission| | ||
|permission<sup>*required</sup>|"app-settings:objects:read" | "app-settings:objects:write"| | ||
@@ -691,0 +691,0 @@ ## Enums |
@@ -0,1 +1,4 @@ | ||
/** | ||
* @deprecated Use literal values. | ||
*/ | ||
export declare enum ConstraintViolationParameterLocation { | ||
@@ -2,0 +5,0 @@ Header = "HEADER", |
@@ -1,4 +0,3 @@ | ||
import { ConstraintViolationParameterLocation } from './constraint-violation-parameter-location'; | ||
export type AsJson = string; | ||
export declare function fromJson($model: AsJson): ConstraintViolationParameterLocation; | ||
export declare function toJson($model: ConstraintViolationParameterLocation): AsJson; | ||
export declare function fromJson($model: AsJson): 'HEADER' | 'PATH' | 'PAYLOAD_BODY' | 'QUERY'; | ||
export declare function toJson($model: 'HEADER' | 'PATH' | 'PAYLOAD_BODY' | 'QUERY'): AsJson; |
@@ -1,2 +0,1 @@ | ||
import { ConstraintViolationParameterLocation } from './constraint-violation-parameter-location'; | ||
/** | ||
@@ -9,3 +8,3 @@ * A list of constraint violations | ||
location?: string; | ||
parameterLocation?: ConstraintViolationParameterLocation; | ||
parameterLocation?: 'HEADER' | 'PATH' | 'PAYLOAD_BODY' | 'QUERY'; | ||
} |
@@ -0,1 +1,4 @@ | ||
/** | ||
* @deprecated Use literal values. | ||
*/ | ||
export declare enum EffectivePermissionGranted { | ||
@@ -2,0 +5,0 @@ True = "true", |
@@ -1,4 +0,3 @@ | ||
import { EffectivePermissionGranted } from './effective-permission-granted'; | ||
export type AsJson = string; | ||
export declare function fromJson($model: AsJson): EffectivePermissionGranted; | ||
export declare function toJson($model: EffectivePermissionGranted): AsJson; | ||
export declare function fromJson($model: AsJson): 'true' | 'false' | 'condition'; | ||
export declare function toJson($model: 'true' | 'false' | 'condition'): AsJson; |
@@ -1,7 +0,6 @@ | ||
import { EffectivePermissionGranted } from './effective-permission-granted'; | ||
import { PermissionContext } from './permission-context'; | ||
export interface EffectivePermission { | ||
permission: string; | ||
granted: EffectivePermissionGranted; | ||
granted: 'true' | 'false' | 'condition'; | ||
context?: PermissionContext; | ||
} |
@@ -0,1 +1,4 @@ | ||
/** | ||
* @deprecated Use literal values. | ||
*/ | ||
export declare enum ResourceContextOperationsItem { | ||
@@ -2,0 +5,0 @@ Read = "read", |
@@ -1,4 +0,3 @@ | ||
import { ResourceContextOperationsItem } from './resource-context-operations-item'; | ||
export type AsJson = string; | ||
export declare function fromJson($model: AsJson): ResourceContextOperationsItem; | ||
export declare function toJson($model: ResourceContextOperationsItem): AsJson; | ||
export declare function fromJson($model: AsJson): 'read' | 'write' | 'delete'; | ||
export declare function toJson($model: 'read' | 'write' | 'delete'): AsJson; |
import { Modifications } from './modifications'; | ||
import { ResourceContextOperationsItem } from './resource-context-operations-item'; | ||
/** | ||
@@ -10,3 +9,3 @@ * The resource context, which contains additional permission information about the object. | ||
*/ | ||
operations: ResourceContextOperationsItem[]; | ||
operations: Array<'read' | 'write' | 'delete'>; | ||
/** | ||
@@ -13,0 +12,0 @@ * The additional modification details for this settings object. |
@@ -0,1 +1,4 @@ | ||
/** | ||
* @deprecated Use literal values. | ||
*/ | ||
export declare enum SinglePermissionRequestPermission { | ||
@@ -2,0 +5,0 @@ AppSettingsObjectsRead = "app-settings:objects:read", |
@@ -1,4 +0,3 @@ | ||
import { SinglePermissionRequestPermission } from './single-permission-request-permission'; | ||
export type AsJson = string; | ||
export declare function fromJson($model: AsJson): SinglePermissionRequestPermission; | ||
export declare function toJson($model: SinglePermissionRequestPermission): AsJson; | ||
export declare function fromJson($model: AsJson): 'app-settings:objects:read' | 'app-settings:objects:write'; | ||
export declare function toJson($model: 'app-settings:objects:read' | 'app-settings:objects:write'): AsJson; |
import { PermissionContext } from './permission-context'; | ||
import { SinglePermissionRequestPermission } from './single-permission-request-permission'; | ||
/** | ||
@@ -7,4 +6,4 @@ * optional generic set of context data | ||
export interface SinglePermissionRequest { | ||
permission: SinglePermissionRequestPermission; | ||
permission: 'app-settings:objects:read' | 'app-settings:objects:write'; | ||
context?: PermissionContext; | ||
} |
6074
269889