@dynatrace-sdk/client-app-engine-registry
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -1,5 +0,13 @@ | ||
# App Engine - Registry | ||
# AppEngine - Registry | ||
@dynatrace-sdk/client-app-engine-registry | ||
## 1.2.0 | ||
### Minor Changes | ||
- 61f5dfaa: Added help property to Error dto | ||
- 61f5dfaa: Added errorCode and errorCodeProperties to ErrorDetails dto | ||
- 61f5dfaa: Renamed AppEngine | ||
## 1.1.0 | ||
@@ -6,0 +14,0 @@ |
155
cjs/index.js
@@ -40,2 +40,3 @@ /** | ||
AppEngineRegistrySchemaManifestClient: () => AppEngineRegistrySchemaManifestClient, | ||
ErrorDetailsErrorCode: () => ErrorDetailsErrorCode, | ||
ResourceContextOperationsItem: () => ResourceContextOperationsItem, | ||
@@ -57,2 +58,4 @@ ResourceStatusOperationStateBeforeError: () => ResourceStatusOperationStateBeforeError, | ||
_ConstraintViolationTransformation: () => constraint_violation_transformation_exports, | ||
_ErrorDetailsErrorCodePropertiesTransformation: () => error_details_error_code_properties_transformation_exports, | ||
_ErrorDetailsErrorCodeTransformation: () => error_details_error_code_transformation_exports, | ||
_ErrorDetailsTransformation: () => error_details_transformation_exports, | ||
@@ -629,5 +632,5 @@ _ErrorEnvelopeTransformation: () => error_envelope_transformation_exports, | ||
fromFormData: () => fromFormData2, | ||
fromJson: () => fromJson23, | ||
fromJson: () => fromJson25, | ||
toFormData: () => toFormData2, | ||
toJson: () => toJson23 | ||
toJson: () => toJson25 | ||
}); | ||
@@ -638,4 +641,4 @@ | ||
__export(error_transformation_exports, { | ||
fromJson: () => fromJson22, | ||
toJson: () => toJson22 | ||
fromJson: () => fromJson24, | ||
toJson: () => toJson24 | ||
}); | ||
@@ -646,4 +649,4 @@ | ||
__export(error_details_transformation_exports, { | ||
fromJson: () => fromJson21, | ||
toJson: () => toJson21 | ||
fromJson: () => fromJson23, | ||
toJson: () => toJson23 | ||
}); | ||
@@ -672,16 +675,50 @@ | ||
// packages/client/app-engine-registry/src/lib/models/error-details.transformation.ts | ||
// packages/client/app-engine-registry/src/lib/models/error-details-error-code-properties.transformation.ts | ||
var error_details_error_code_properties_transformation_exports = {}; | ||
__export(error_details_error_code_properties_transformation_exports, { | ||
fromJson: () => fromJson21, | ||
toJson: () => toJson21 | ||
}); | ||
function fromJson21($model) { | ||
const { errorRef, errorCode, constraintViolations } = $model; | ||
const { customAppLimit } = $model; | ||
return { | ||
customAppLimit | ||
}; | ||
} | ||
function toJson21($model) { | ||
const { customAppLimit } = $model; | ||
return { | ||
customAppLimit | ||
}; | ||
} | ||
// packages/client/app-engine-registry/src/lib/models/error-details-error-code.transformation.ts | ||
var error_details_error_code_transformation_exports = {}; | ||
__export(error_details_error_code_transformation_exports, { | ||
fromJson: () => fromJson22, | ||
toJson: () => toJson22 | ||
}); | ||
function fromJson22($model) { | ||
return String($model); | ||
} | ||
function toJson22($model) { | ||
return String($model); | ||
} | ||
// packages/client/app-engine-registry/src/lib/models/error-details.transformation.ts | ||
function fromJson23($model) { | ||
const { errorRef, errorCode, errorCodeProperties, constraintViolations } = $model; | ||
return { | ||
errorRef, | ||
errorCode, | ||
errorCode: errorCode !== void 0 && errorCode !== null ? fromJson22(errorCode) : void 0, | ||
errorCodeProperties: errorCodeProperties !== void 0 && errorCodeProperties !== null ? fromJson21(errorCodeProperties) : void 0, | ||
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map((innerValue) => fromJson20(innerValue)) : void 0 | ||
}; | ||
} | ||
function toJson21($model) { | ||
const { errorRef, errorCode, constraintViolations } = $model; | ||
function toJson23($model) { | ||
const { errorRef, errorCode, errorCodeProperties, constraintViolations } = $model; | ||
return { | ||
errorRef, | ||
errorCode, | ||
errorCode: errorCode !== void 0 && errorCode !== null ? toJson22(errorCode) : void 0, | ||
errorCodeProperties: errorCodeProperties !== void 0 && errorCodeProperties !== null ? toJson21(errorCodeProperties) : void 0, | ||
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map((innerValue) => toJson20(innerValue)) : void 0 | ||
@@ -692,16 +729,18 @@ }; | ||
// packages/client/app-engine-registry/src/lib/models/error.transformation.ts | ||
function fromJson22($model) { | ||
const { code, message, details } = $model; | ||
function fromJson24($model) { | ||
const { code, message, details, help } = $model; | ||
return { | ||
code, | ||
message, | ||
details: details !== void 0 && details !== null ? fromJson21(details) : void 0 | ||
details: details !== void 0 && details !== null ? fromJson23(details) : void 0, | ||
help | ||
}; | ||
} | ||
function toJson22($model) { | ||
const { code, message, details } = $model; | ||
function toJson24($model) { | ||
const { code, message, details, help } = $model; | ||
return { | ||
code, | ||
message, | ||
details: details !== void 0 && details !== null ? toJson21(details) : void 0 | ||
details: details !== void 0 && details !== null ? toJson23(details) : void 0, | ||
help | ||
}; | ||
@@ -711,12 +750,12 @@ } | ||
// packages/client/app-engine-registry/src/lib/models/error-envelope.transformation.ts | ||
function fromJson23($model) { | ||
function fromJson25($model) { | ||
const { error } = $model; | ||
return { | ||
error: fromJson22(error) | ||
error: fromJson24(error) | ||
}; | ||
} | ||
function toJson23($model) { | ||
function toJson25($model) { | ||
const { error } = $model; | ||
return { | ||
error: toJson22(error) | ||
error: toJson24(error) | ||
}; | ||
@@ -727,7 +766,7 @@ } | ||
return { | ||
error: fromJson22(JSON.parse(formDataEntries["error"])) | ||
error: fromJson24(JSON.parse(formDataEntries["error"])) | ||
}; | ||
} | ||
function toFormData2($model) { | ||
const json = toJson23($model); | ||
const json = toJson25($model); | ||
const body = [{ name: "error", type: "json", value: json["error"] }]; | ||
@@ -740,4 +779,4 @@ return body; | ||
__export(search_app_action_list_transformation_exports, { | ||
fromJson: () => fromJson26, | ||
toJson: () => toJson26 | ||
fromJson: () => fromJson28, | ||
toJson: () => toJson28 | ||
}); | ||
@@ -748,4 +787,4 @@ | ||
__export(search_app_action_transformation_exports, { | ||
fromJson: () => fromJson25, | ||
toJson: () => toJson25 | ||
fromJson: () => fromJson27, | ||
toJson: () => toJson27 | ||
}); | ||
@@ -756,9 +795,9 @@ | ||
__export(search_app_action_actions_item_transformation_exports, { | ||
fromJson: () => fromJson24, | ||
toJson: () => toJson24 | ||
fromJson: () => fromJson26, | ||
toJson: () => toJson26 | ||
}); | ||
function fromJson24($model) { | ||
function fromJson26($model) { | ||
return JSON.parse(JSON.stringify($model)); | ||
} | ||
function toJson24($model) { | ||
function toJson26($model) { | ||
return JSON.parse(JSON.stringify($model)); | ||
@@ -768,3 +807,3 @@ } | ||
// packages/client/app-engine-registry/src/lib/models/search-app-action.transformation.ts | ||
function fromJson25($model) { | ||
function fromJson27($model) { | ||
const { id, name: _name, actions } = $model; | ||
@@ -774,6 +813,6 @@ return { | ||
name: _name, | ||
actions: actions?.map((innerValue) => fromJson24(innerValue)) | ||
actions: actions?.map((innerValue) => fromJson26(innerValue)) | ||
}; | ||
} | ||
function toJson25($model) { | ||
function toJson27($model) { | ||
const { id, name: _name, actions } = $model; | ||
@@ -783,3 +822,3 @@ return { | ||
name: _name, | ||
actions: actions?.map((innerValue) => toJson24(innerValue)) | ||
actions: actions?.map((innerValue) => toJson26(innerValue)) | ||
}; | ||
@@ -789,13 +828,13 @@ } | ||
// packages/client/app-engine-registry/src/lib/models/search-app-action-list.transformation.ts | ||
function fromJson26($model) { | ||
function fromJson28($model) { | ||
const { apps, totalCount } = $model; | ||
return { | ||
apps: apps?.map((innerValue) => fromJson25(innerValue)), | ||
apps: apps?.map((innerValue) => fromJson27(innerValue)), | ||
totalCount | ||
}; | ||
} | ||
function toJson26($model) { | ||
function toJson28($model) { | ||
const { apps, totalCount } = $model; | ||
return { | ||
apps: apps?.map((innerValue) => toJson25(innerValue)), | ||
apps: apps?.map((innerValue) => toJson27(innerValue)), | ||
totalCount | ||
@@ -877,3 +916,3 @@ }; | ||
try { | ||
const errorBody = fromJson23(responseValue); | ||
const errorBody = fromJson25(responseValue); | ||
throw new ErrorEnvelopeError("400", response, errorBody, "Bad Request"); | ||
@@ -933,3 +972,3 @@ } catch (err) { | ||
try { | ||
return fromJson26(responseValue); | ||
return fromJson28(responseValue); | ||
} catch (err) { | ||
@@ -989,5 +1028,5 @@ throw new InvalidResponseError( | ||
fromFormData: () => fromFormData3, | ||
fromJson: () => fromJson28, | ||
fromJson: () => fromJson30, | ||
toFormData: () => toFormData3, | ||
toJson: () => toJson28 | ||
toJson: () => toJson30 | ||
}); | ||
@@ -998,6 +1037,6 @@ | ||
__export(app_default_csp_policy_directives_transformation_exports, { | ||
fromJson: () => fromJson27, | ||
toJson: () => toJson27 | ||
fromJson: () => fromJson29, | ||
toJson: () => toJson29 | ||
}); | ||
function fromJson27($model) { | ||
function fromJson29($model) { | ||
const additionalProps = $model; | ||
@@ -1013,3 +1052,3 @@ return { | ||
} | ||
function toJson27($model) { | ||
function toJson29($model) { | ||
const additionalProps = $model; | ||
@@ -1027,12 +1066,12 @@ return { | ||
// packages/client/app-engine-registry/src/lib/models/app-default-csp.transformation.ts | ||
function fromJson28($model) { | ||
function fromJson30($model) { | ||
const { policyDirectives } = $model; | ||
return { | ||
policyDirectives: fromJson27(policyDirectives) | ||
policyDirectives: fromJson29(policyDirectives) | ||
}; | ||
} | ||
function toJson28($model) { | ||
function toJson30($model) { | ||
const { policyDirectives } = $model; | ||
return { | ||
policyDirectives: toJson27(policyDirectives) | ||
policyDirectives: toJson29(policyDirectives) | ||
}; | ||
@@ -1043,3 +1082,3 @@ } | ||
return { | ||
policyDirectives: fromJson27( | ||
policyDirectives: fromJson29( | ||
JSON.parse(formDataEntries["policyDirectives"]) | ||
@@ -1050,3 +1089,3 @@ ) | ||
function toFormData3($model) { | ||
const json = toJson28($model); | ||
const json = toJson30($model); | ||
const body = [{ name: "policyDirectives", type: "json", value: json["policyDirectives"] }]; | ||
@@ -1096,3 +1135,3 @@ return body; | ||
try { | ||
return fromJson28(responseValue); | ||
return fromJson30(responseValue); | ||
} catch (err) { | ||
@@ -1113,2 +1152,8 @@ throw new InvalidResponseError( | ||
// packages/client/app-engine-registry/src/lib/models/error-details-error-code.ts | ||
var ErrorDetailsErrorCode = /* @__PURE__ */ ((ErrorDetailsErrorCode2) => { | ||
ErrorDetailsErrorCode2["MaxNumberOfInstalledCustomAppsExceeded"] = "MaxNumberOfInstalledCustomAppsExceeded"; | ||
return ErrorDetailsErrorCode2; | ||
})(ErrorDetailsErrorCode || {}); | ||
// packages/client/app-engine-registry/src/lib/models/resource-context-operations-item.ts | ||
@@ -1115,0 +1160,0 @@ var ResourceContextOperationsItem = /* @__PURE__ */ ((ResourceContextOperationsItem2) => { |
@@ -1,4 +0,4 @@ | ||
# App Engine - Registry | ||
# AppEngine - Registry | ||
SDK package version **1.1.0** | ||
SDK package version **1.2.0** | ||
@@ -19,5 +19,2 @@ ```bash | ||
**Please note:** This might cause an unexpected response, if e.g. `/apps/{id}` is called | ||
immediately after uploading the app bundle might result in a 404 response code. | ||
The current status of the app is provided by the status in the response body of the | ||
@@ -917,2 +914,14 @@ respective GET request, e.g. `/apps/{id}`. | ||
<div class="padding-left--md padding-bottom--md"> | ||
<strong>help</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | ||
<div class="padding-left--md"> | ||
Additional information related to the error | ||
</div> | ||
</div> | ||
<div class="padding-left--md padding-bottom--md"> | ||
<strong>message</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | ||
@@ -954,7 +963,7 @@ <div class="padding-left--md"> | ||
<div class="padding-left--md padding-bottom--md"> | ||
<strong>errorCode</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | ||
<strong>errorCode</strong>: <a href="#maxnumberofinstalledcustomappsexceeded">MaxNumberOfInstalledCustomAppsExceeded</a> | ||
<div class="padding-left--md"> | ||
An error code that contains more detailed error information than the HTTP response code alone | ||
</div> | ||
@@ -967,2 +976,14 @@ | ||
<div class="padding-left--md padding-bottom--md"> | ||
<strong>errorCodeProperties</strong>: <a href="#errordetailserrorcodeproperties">ErrorDetailsErrorCodeProperties</a> | ||
<div class="padding-left--md"> | ||
</div> | ||
</div> | ||
<div class="padding-left--md padding-bottom--md"> | ||
<strong>errorRef</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | ||
@@ -984,2 +1005,26 @@ <div class="padding-left--md"> | ||
### ErrorDetailsErrorCodeProperties | ||
<div class="padding-left--md"> | ||
Additional properties related to the provided error code | ||
<div class="padding-left--md padding-bottom--md"> | ||
<strong>customAppLimit</strong>: <a href="https://developer.mozilla.org/en-US/docs/Glossary/String">string</a> | ||
<div class="padding-left--md"> | ||
Limit for max amount of installed custom apps in a tenant | ||
</div> | ||
</div> | ||
</div> | ||
### ErrorEnvelope | ||
@@ -1392,2 +1437,25 @@ <div class="padding-left--md"> | ||
### ErrorDetailsErrorCode | ||
<div class="padding-left--md"> | ||
An optional error code that contains more detailed error information than the HTTP response code alone. | ||
Possible error codes: | ||
* `MaxNumberOfInstalledCustomAppsExceeded`: The app bundle could not be uploaded because the max number of custom apps was exceeded. Learn more: https://dt-url.net/upgrade-license | ||
#### Enum keys | ||
<div class="padding-left--md"> | ||
`MaxNumberOfInstalledCustomAppsExceeded` | ||
</div> | ||
</div> | ||
### ResourceContextOperationsItem | ||
@@ -1394,0 +1462,0 @@ |
{ | ||
"dynagen": { | ||
"version": "0.10.7", | ||
"version": "0.10.8", | ||
"generatedAt": "", | ||
@@ -11,3 +11,3 @@ "template": { | ||
"spec": { | ||
"title": "App Engine - Registry", | ||
"title": "AppEngine - Registry", | ||
"version": "1.0.0", | ||
@@ -17,4 +17,4 @@ "baseUrl": "/platform/app-engine/registry/v1" | ||
"docs": { | ||
"title": "App Engine - Registry" | ||
"title": "AppEngine - Registry" | ||
} | ||
} |
155
esm/index.js
@@ -567,5 +567,5 @@ /** | ||
fromFormData: () => fromFormData2, | ||
fromJson: () => fromJson23, | ||
fromJson: () => fromJson25, | ||
toFormData: () => toFormData2, | ||
toJson: () => toJson23 | ||
toJson: () => toJson25 | ||
}); | ||
@@ -576,4 +576,4 @@ | ||
__export(error_transformation_exports, { | ||
fromJson: () => fromJson22, | ||
toJson: () => toJson22 | ||
fromJson: () => fromJson24, | ||
toJson: () => toJson24 | ||
}); | ||
@@ -584,4 +584,4 @@ | ||
__export(error_details_transformation_exports, { | ||
fromJson: () => fromJson21, | ||
toJson: () => toJson21 | ||
fromJson: () => fromJson23, | ||
toJson: () => toJson23 | ||
}); | ||
@@ -610,16 +610,50 @@ | ||
// packages/client/app-engine-registry/src/lib/models/error-details.transformation.ts | ||
// packages/client/app-engine-registry/src/lib/models/error-details-error-code-properties.transformation.ts | ||
var error_details_error_code_properties_transformation_exports = {}; | ||
__export(error_details_error_code_properties_transformation_exports, { | ||
fromJson: () => fromJson21, | ||
toJson: () => toJson21 | ||
}); | ||
function fromJson21($model) { | ||
const { errorRef, errorCode, constraintViolations } = $model; | ||
const { customAppLimit } = $model; | ||
return { | ||
customAppLimit | ||
}; | ||
} | ||
function toJson21($model) { | ||
const { customAppLimit } = $model; | ||
return { | ||
customAppLimit | ||
}; | ||
} | ||
// packages/client/app-engine-registry/src/lib/models/error-details-error-code.transformation.ts | ||
var error_details_error_code_transformation_exports = {}; | ||
__export(error_details_error_code_transformation_exports, { | ||
fromJson: () => fromJson22, | ||
toJson: () => toJson22 | ||
}); | ||
function fromJson22($model) { | ||
return String($model); | ||
} | ||
function toJson22($model) { | ||
return String($model); | ||
} | ||
// packages/client/app-engine-registry/src/lib/models/error-details.transformation.ts | ||
function fromJson23($model) { | ||
const { errorRef, errorCode, errorCodeProperties, constraintViolations } = $model; | ||
return { | ||
errorRef, | ||
errorCode, | ||
errorCode: errorCode !== void 0 && errorCode !== null ? fromJson22(errorCode) : void 0, | ||
errorCodeProperties: errorCodeProperties !== void 0 && errorCodeProperties !== null ? fromJson21(errorCodeProperties) : void 0, | ||
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map((innerValue) => fromJson20(innerValue)) : void 0 | ||
}; | ||
} | ||
function toJson21($model) { | ||
const { errorRef, errorCode, constraintViolations } = $model; | ||
function toJson23($model) { | ||
const { errorRef, errorCode, errorCodeProperties, constraintViolations } = $model; | ||
return { | ||
errorRef, | ||
errorCode, | ||
errorCode: errorCode !== void 0 && errorCode !== null ? toJson22(errorCode) : void 0, | ||
errorCodeProperties: errorCodeProperties !== void 0 && errorCodeProperties !== null ? toJson21(errorCodeProperties) : void 0, | ||
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map((innerValue) => toJson20(innerValue)) : void 0 | ||
@@ -630,16 +664,18 @@ }; | ||
// packages/client/app-engine-registry/src/lib/models/error.transformation.ts | ||
function fromJson22($model) { | ||
const { code, message, details } = $model; | ||
function fromJson24($model) { | ||
const { code, message, details, help } = $model; | ||
return { | ||
code, | ||
message, | ||
details: details !== void 0 && details !== null ? fromJson21(details) : void 0 | ||
details: details !== void 0 && details !== null ? fromJson23(details) : void 0, | ||
help | ||
}; | ||
} | ||
function toJson22($model) { | ||
const { code, message, details } = $model; | ||
function toJson24($model) { | ||
const { code, message, details, help } = $model; | ||
return { | ||
code, | ||
message, | ||
details: details !== void 0 && details !== null ? toJson21(details) : void 0 | ||
details: details !== void 0 && details !== null ? toJson23(details) : void 0, | ||
help | ||
}; | ||
@@ -649,12 +685,12 @@ } | ||
// packages/client/app-engine-registry/src/lib/models/error-envelope.transformation.ts | ||
function fromJson23($model) { | ||
function fromJson25($model) { | ||
const { error } = $model; | ||
return { | ||
error: fromJson22(error) | ||
error: fromJson24(error) | ||
}; | ||
} | ||
function toJson23($model) { | ||
function toJson25($model) { | ||
const { error } = $model; | ||
return { | ||
error: toJson22(error) | ||
error: toJson24(error) | ||
}; | ||
@@ -665,7 +701,7 @@ } | ||
return { | ||
error: fromJson22(JSON.parse(formDataEntries["error"])) | ||
error: fromJson24(JSON.parse(formDataEntries["error"])) | ||
}; | ||
} | ||
function toFormData2($model) { | ||
const json = toJson23($model); | ||
const json = toJson25($model); | ||
const body = [{ name: "error", type: "json", value: json["error"] }]; | ||
@@ -678,4 +714,4 @@ return body; | ||
__export(search_app_action_list_transformation_exports, { | ||
fromJson: () => fromJson26, | ||
toJson: () => toJson26 | ||
fromJson: () => fromJson28, | ||
toJson: () => toJson28 | ||
}); | ||
@@ -686,4 +722,4 @@ | ||
__export(search_app_action_transformation_exports, { | ||
fromJson: () => fromJson25, | ||
toJson: () => toJson25 | ||
fromJson: () => fromJson27, | ||
toJson: () => toJson27 | ||
}); | ||
@@ -694,9 +730,9 @@ | ||
__export(search_app_action_actions_item_transformation_exports, { | ||
fromJson: () => fromJson24, | ||
toJson: () => toJson24 | ||
fromJson: () => fromJson26, | ||
toJson: () => toJson26 | ||
}); | ||
function fromJson24($model) { | ||
function fromJson26($model) { | ||
return JSON.parse(JSON.stringify($model)); | ||
} | ||
function toJson24($model) { | ||
function toJson26($model) { | ||
return JSON.parse(JSON.stringify($model)); | ||
@@ -706,3 +742,3 @@ } | ||
// packages/client/app-engine-registry/src/lib/models/search-app-action.transformation.ts | ||
function fromJson25($model) { | ||
function fromJson27($model) { | ||
const { id, name: _name, actions } = $model; | ||
@@ -712,6 +748,6 @@ return { | ||
name: _name, | ||
actions: actions?.map((innerValue) => fromJson24(innerValue)) | ||
actions: actions?.map((innerValue) => fromJson26(innerValue)) | ||
}; | ||
} | ||
function toJson25($model) { | ||
function toJson27($model) { | ||
const { id, name: _name, actions } = $model; | ||
@@ -721,3 +757,3 @@ return { | ||
name: _name, | ||
actions: actions?.map((innerValue) => toJson24(innerValue)) | ||
actions: actions?.map((innerValue) => toJson26(innerValue)) | ||
}; | ||
@@ -727,13 +763,13 @@ } | ||
// packages/client/app-engine-registry/src/lib/models/search-app-action-list.transformation.ts | ||
function fromJson26($model) { | ||
function fromJson28($model) { | ||
const { apps, totalCount } = $model; | ||
return { | ||
apps: apps?.map((innerValue) => fromJson25(innerValue)), | ||
apps: apps?.map((innerValue) => fromJson27(innerValue)), | ||
totalCount | ||
}; | ||
} | ||
function toJson26($model) { | ||
function toJson28($model) { | ||
const { apps, totalCount } = $model; | ||
return { | ||
apps: apps?.map((innerValue) => toJson25(innerValue)), | ||
apps: apps?.map((innerValue) => toJson27(innerValue)), | ||
totalCount | ||
@@ -815,3 +851,3 @@ }; | ||
try { | ||
const errorBody = fromJson23(responseValue); | ||
const errorBody = fromJson25(responseValue); | ||
throw new ErrorEnvelopeError("400", response, errorBody, "Bad Request"); | ||
@@ -871,3 +907,3 @@ } catch (err) { | ||
try { | ||
return fromJson26(responseValue); | ||
return fromJson28(responseValue); | ||
} catch (err) { | ||
@@ -927,5 +963,5 @@ throw new InvalidResponseError( | ||
fromFormData: () => fromFormData3, | ||
fromJson: () => fromJson28, | ||
fromJson: () => fromJson30, | ||
toFormData: () => toFormData3, | ||
toJson: () => toJson28 | ||
toJson: () => toJson30 | ||
}); | ||
@@ -936,6 +972,6 @@ | ||
__export(app_default_csp_policy_directives_transformation_exports, { | ||
fromJson: () => fromJson27, | ||
toJson: () => toJson27 | ||
fromJson: () => fromJson29, | ||
toJson: () => toJson29 | ||
}); | ||
function fromJson27($model) { | ||
function fromJson29($model) { | ||
const additionalProps = $model; | ||
@@ -951,3 +987,3 @@ return { | ||
} | ||
function toJson27($model) { | ||
function toJson29($model) { | ||
const additionalProps = $model; | ||
@@ -965,12 +1001,12 @@ return { | ||
// packages/client/app-engine-registry/src/lib/models/app-default-csp.transformation.ts | ||
function fromJson28($model) { | ||
function fromJson30($model) { | ||
const { policyDirectives } = $model; | ||
return { | ||
policyDirectives: fromJson27(policyDirectives) | ||
policyDirectives: fromJson29(policyDirectives) | ||
}; | ||
} | ||
function toJson28($model) { | ||
function toJson30($model) { | ||
const { policyDirectives } = $model; | ||
return { | ||
policyDirectives: toJson27(policyDirectives) | ||
policyDirectives: toJson29(policyDirectives) | ||
}; | ||
@@ -981,3 +1017,3 @@ } | ||
return { | ||
policyDirectives: fromJson27( | ||
policyDirectives: fromJson29( | ||
JSON.parse(formDataEntries["policyDirectives"]) | ||
@@ -988,3 +1024,3 @@ ) | ||
function toFormData3($model) { | ||
const json = toJson28($model); | ||
const json = toJson30($model); | ||
const body = [{ name: "policyDirectives", type: "json", value: json["policyDirectives"] }]; | ||
@@ -1034,3 +1070,3 @@ return body; | ||
try { | ||
return fromJson28(responseValue); | ||
return fromJson30(responseValue); | ||
} catch (err) { | ||
@@ -1051,2 +1087,8 @@ throw new InvalidResponseError( | ||
// packages/client/app-engine-registry/src/lib/models/error-details-error-code.ts | ||
var ErrorDetailsErrorCode = /* @__PURE__ */ ((ErrorDetailsErrorCode2) => { | ||
ErrorDetailsErrorCode2["MaxNumberOfInstalledCustomAppsExceeded"] = "MaxNumberOfInstalledCustomAppsExceeded"; | ||
return ErrorDetailsErrorCode2; | ||
})(ErrorDetailsErrorCode || {}); | ||
// packages/client/app-engine-registry/src/lib/models/resource-context-operations-item.ts | ||
@@ -1105,2 +1147,3 @@ var ResourceContextOperationsItem = /* @__PURE__ */ ((ResourceContextOperationsItem2) => { | ||
AppEngineRegistrySchemaManifestClient, | ||
ErrorDetailsErrorCode, | ||
ResourceContextOperationsItem, | ||
@@ -1122,2 +1165,4 @@ ResourceStatusOperationStateBeforeError, | ||
constraint_violation_transformation_exports as _ConstraintViolationTransformation, | ||
error_details_error_code_properties_transformation_exports as _ErrorDetailsErrorCodePropertiesTransformation, | ||
error_details_error_code_transformation_exports as _ErrorDetailsErrorCodeTransformation, | ||
error_details_transformation_exports as _ErrorDetailsTransformation, | ||
@@ -1124,0 +1169,0 @@ error_envelope_transformation_exports as _ErrorEnvelopeTransformation, |
{ | ||
"name": "@dynatrace-sdk/client-app-engine-registry", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "@dynatrace-sdk/http-client": "^1.0.3" |
@@ -1,2 +0,2 @@ | ||
# App Engine - Registry | ||
# AppEngine - Registry | ||
API version: `1.0.0`. | ||
@@ -17,5 +17,2 @@ | ||
**Please note:** This might cause an unexpected response, if e.g. `/apps/{id}` is called | ||
immediately after uploading the app bundle might result in a 404 response code. | ||
The current status of the app is provided by the status in the response body of the | ||
@@ -22,0 +19,0 @@ respective GET request, e.g. `/apps/{id}`. |
import { ConstraintViolation } from './constraint-violation'; | ||
import { ErrorDetailsErrorCode } from './error-details-error-code'; | ||
import { ErrorDetailsErrorCodeProperties } from './error-details-error-code-properties'; | ||
/** | ||
@@ -10,7 +12,5 @@ * Contains details for 4xx and 5xx errors. | ||
errorRef?: string; | ||
errorCode?: ErrorDetailsErrorCode; | ||
errorCodeProperties?: ErrorDetailsErrorCodeProperties; | ||
/** | ||
* An error code that contains more detailed error information than the HTTP response code alone | ||
*/ | ||
errorCode?: string; | ||
/** | ||
* A list of constraint violations | ||
@@ -17,0 +17,0 @@ */ |
import * as _ConstraintViolationTransformation from './constraint-violation.transformation'; | ||
import { ErrorDetails } from './error-details'; | ||
import * as _ErrorDetailsErrorCodePropertiesTransformation from './error-details-error-code-properties.transformation'; | ||
import * as _ErrorDetailsErrorCodeTransformation from './error-details-error-code.transformation'; | ||
export interface AsJson { | ||
errorRef?: string; | ||
errorCode?: string; | ||
errorCode?: _ErrorDetailsErrorCodeTransformation.AsJson; | ||
errorCodeProperties?: _ErrorDetailsErrorCodePropertiesTransformation.AsJson; | ||
constraintViolations?: _ConstraintViolationTransformation.AsJson[]; | ||
@@ -7,0 +10,0 @@ } |
@@ -15,2 +15,6 @@ import { ErrorDetails } from './error-details'; | ||
details?: ErrorDetails; | ||
/** | ||
* Additional information related to the error | ||
*/ | ||
help?: string; | ||
} |
@@ -7,4 +7,5 @@ import { Error } from './error'; | ||
details?: _ErrorDetailsTransformation.AsJson; | ||
help?: string; | ||
} | ||
export declare function fromJson($model: AsJson): Error; | ||
export declare function toJson($model: Error): AsJson; |
@@ -25,2 +25,6 @@ export * from './app-default-csp'; | ||
export * as _ErrorDetailsTransformation from './error-details.transformation'; | ||
export * from './error-details-error-code'; | ||
export * as _ErrorDetailsErrorCodeTransformation from './error-details-error-code.transformation'; | ||
export * from './error-details-error-code-properties'; | ||
export * as _ErrorDetailsErrorCodePropertiesTransformation from './error-details-error-code-properties.transformation'; | ||
export * from './error-envelope'; | ||
@@ -27,0 +31,0 @@ export * as _ErrorEnvelopeTransformation from './error-envelope.transformation'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
178340
133
3743
67