Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dynatrace-sdk/client-app-engine-registry

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dynatrace-sdk/client-app-engine-registry - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

types/packages/client/app-engine-registry/src/lib/models/app-default-csp-policy-directives.transformation.d.ts

13

CHANGELOG.md

@@ -5,2 +5,15 @@ # App Engine - Registry

## 1.1.0
### Minor Changes
- 6aca01cb: Export model transformations
## 1.0.5
### Patch Changes
- Move model transformations to a separate module
- Update `@dynatrace-sdk/http-client` to `^1.0.3`
## 1.0.4

@@ -7,0 +20,0 @@

1375

cjs/index.js

@@ -46,30 +46,30 @@ /**

SubResourceStatusSubResourceType: () => SubResourceStatusSubResourceType,
_AppDefaultCspPolicyDirectivesTransformation: () => _AppDefaultCspPolicyDirectivesTransformation,
_AppDefaultCspTransformation: () => _AppDefaultCspTransformation,
_AppIconTransformation: () => _AppIconTransformation,
_AppInfoListTransformation: () => _AppInfoListTransformation,
_AppInfoManifestTransformation: () => _AppInfoManifestTransformation,
_AppInfoTransformation: () => _AppInfoTransformation,
_AppIsolatedUriTransformation: () => _AppIsolatedUriTransformation,
_AppSignatureInfoTransformation: () => _AppSignatureInfoTransformation,
_AppStubTransformation: () => _AppStubTransformation,
_ConstraintViolationTransformation: () => _ConstraintViolationTransformation,
_ErrorDetailsTransformation: () => _ErrorDetailsTransformation,
_ErrorEnvelopeTransformation: () => _ErrorEnvelopeTransformation,
_ErrorTransformation: () => _ErrorTransformation,
_ModificationInfoTransformation: () => _ModificationInfoTransformation,
_ResourceContextOperationsItemTransformation: () => _ResourceContextOperationsItemTransformation,
_ResourceContextTransformation: () => _ResourceContextTransformation,
_ResourceStatusOperationStateBeforeErrorTransformation: () => _ResourceStatusOperationStateBeforeErrorTransformation,
_ResourceStatusPendingOperationTransformation: () => _ResourceStatusPendingOperationTransformation,
_ResourceStatusStatusTransformation: () => _ResourceStatusStatusTransformation,
_ResourceStatusTransformation: () => _ResourceStatusTransformation,
_SearchAppActionActionsItemTransformation: () => _SearchAppActionActionsItemTransformation,
_SearchAppActionListTransformation: () => _SearchAppActionListTransformation,
_SearchAppActionTransformation: () => _SearchAppActionTransformation,
_SubResourceConstraintViolationTransformation: () => _SubResourceConstraintViolationTransformation,
_SubResourceErrorTransformation: () => _SubResourceErrorTransformation,
_SubResourceStatusStatusTransformation: () => _SubResourceStatusStatusTransformation,
_SubResourceStatusSubResourceTypeTransformation: () => _SubResourceStatusSubResourceTypeTransformation,
_SubResourceStatusTransformation: () => _SubResourceStatusTransformation,
_AppDefaultCspPolicyDirectivesTransformation: () => app_default_csp_policy_directives_transformation_exports,
_AppDefaultCspTransformation: () => app_default_csp_transformation_exports,
_AppIconTransformation: () => app_icon_transformation_exports,
_AppInfoListTransformation: () => app_info_list_transformation_exports,
_AppInfoManifestTransformation: () => app_info_manifest_transformation_exports,
_AppInfoTransformation: () => app_info_transformation_exports,
_AppIsolatedUriTransformation: () => app_isolated_uri_transformation_exports,
_AppSignatureInfoTransformation: () => app_signature_info_transformation_exports,
_AppStubTransformation: () => app_stub_transformation_exports,
_ConstraintViolationTransformation: () => constraint_violation_transformation_exports,
_ErrorDetailsTransformation: () => error_details_transformation_exports,
_ErrorEnvelopeTransformation: () => error_envelope_transformation_exports,
_ErrorTransformation: () => error_transformation_exports,
_ModificationInfoTransformation: () => modification_info_transformation_exports,
_ResourceContextOperationsItemTransformation: () => resource_context_operations_item_transformation_exports,
_ResourceContextTransformation: () => resource_context_transformation_exports,
_ResourceStatusOperationStateBeforeErrorTransformation: () => resource_status_operation_state_before_error_transformation_exports,
_ResourceStatusPendingOperationTransformation: () => resource_status_pending_operation_transformation_exports,
_ResourceStatusStatusTransformation: () => resource_status_status_transformation_exports,
_ResourceStatusTransformation: () => resource_status_transformation_exports,
_SearchAppActionActionsItemTransformation: () => search_app_action_actions_item_transformation_exports,
_SearchAppActionListTransformation: () => search_app_action_list_transformation_exports,
_SearchAppActionTransformation: () => search_app_action_transformation_exports,
_SubResourceConstraintViolationTransformation: () => sub_resource_constraint_violation_transformation_exports,
_SubResourceErrorTransformation: () => sub_resource_error_transformation_exports,
_SubResourceStatusStatusTransformation: () => sub_resource_status_status_transformation_exports,
_SubResourceStatusSubResourceTypeTransformation: () => sub_resource_status_sub_resource_type_transformation_exports,
_SubResourceStatusTransformation: () => sub_resource_status_transformation_exports,
appEngineRegistryAppsClient: () => appEngineRegistryAppsClient,

@@ -150,3 +150,4 @@ appEngineRegistrySchemaManifestClient: () => appEngineRegistrySchemaManifestClient,

type: "Http Error" /* HTTP */,
body: error.body
body: error.body,
...getOptionalErrorRef(error.body)
};

@@ -169,2 +170,8 @@ } else if (isApiClientError(error)) {

}
function getOptionalErrorRef(body) {
if (body && typeof body === "object" && body.error?.details?.errorRef) {
return { errorRef: body.error.details.errorRef };
}
return {};
}

@@ -187,581 +194,600 @@ // packages/client/app-engine-registry/src/lib/error-envelopes/invalid-response-error.ts

// packages/client/app-engine-registry/src/lib/models/app-icon.ts
var _AppIconTransformation;
((_AppIconTransformation2) => {
function fromJson($model) {
const { href } = $model;
return {
href
};
}
_AppIconTransformation2.fromJson = fromJson;
function toJson($model) {
const { href } = $model;
return {
href
};
}
_AppIconTransformation2.toJson = toJson;
})(_AppIconTransformation || (_AppIconTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-info-list.transformation.ts
var app_info_list_transformation_exports = {};
__export(app_info_list_transformation_exports, {
fromJson: () => fromJson18,
toJson: () => toJson18
});
// packages/client/app-engine-registry/src/lib/models/app-info-manifest.ts
var _AppInfoManifestTransformation;
((_AppInfoManifestTransformation2) => {
function fromJson(model) {
return JSON.parse(JSON.stringify(model));
}
_AppInfoManifestTransformation2.fromJson = fromJson;
function toJson(model) {
return JSON.parse(JSON.stringify(model));
}
_AppInfoManifestTransformation2.toJson = toJson;
})(_AppInfoManifestTransformation || (_AppInfoManifestTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-info.transformation.ts
var app_info_transformation_exports = {};
__export(app_info_transformation_exports, {
fromJson: () => fromJson17,
toJson: () => toJson17
});
// packages/client/app-engine-registry/src/lib/models/app-isolated-uri.ts
var _AppIsolatedUriTransformation;
((_AppIsolatedUriTransformation2) => {
function fromJson($model) {
const { url, baseUrl, widgetUrl } = $model;
return {
url,
baseUrl,
widgetUrl
};
}
_AppIsolatedUriTransformation2.fromJson = fromJson;
function toJson($model) {
const { url, baseUrl, widgetUrl } = $model;
return {
url,
baseUrl,
widgetUrl
};
}
_AppIsolatedUriTransformation2.toJson = toJson;
})(_AppIsolatedUriTransformation || (_AppIsolatedUriTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-icon.transformation.ts
var app_icon_transformation_exports = {};
__export(app_icon_transformation_exports, {
fromJson: () => fromJson,
toJson: () => toJson
});
function fromJson($model) {
const { href } = $model;
return {
href
};
}
function toJson($model) {
const { href } = $model;
return {
href
};
}
// packages/client/app-engine-registry/src/lib/models/app-signature-info.ts
var _AppSignatureInfoTransformation;
((_AppSignatureInfoTransformation2) => {
function fromJson($model) {
const { signed, publisher } = $model;
return {
signed,
publisher
};
}
_AppSignatureInfoTransformation2.fromJson = fromJson;
function toJson($model) {
const { signed, publisher } = $model;
return {
signed,
publisher
};
}
_AppSignatureInfoTransformation2.toJson = toJson;
})(_AppSignatureInfoTransformation || (_AppSignatureInfoTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-info-manifest.transformation.ts
var app_info_manifest_transformation_exports = {};
__export(app_info_manifest_transformation_exports, {
fromJson: () => fromJson2,
toJson: () => toJson2
});
function fromJson2($model) {
return JSON.parse(JSON.stringify($model));
}
function toJson2($model) {
return JSON.parse(JSON.stringify($model));
}
// packages/client/app-engine-registry/src/lib/models/modification-info.ts
var _ModificationInfoTransformation;
((_ModificationInfoTransformation2) => {
function fromJson($model) {
const { createdBy, createdAt, lastModifiedBy, lastModifiedAt } = $model;
return {
createdBy,
createdAt,
lastModifiedBy,
lastModifiedAt
};
}
_ModificationInfoTransformation2.fromJson = fromJson;
function toJson($model) {
const { createdBy, createdAt, lastModifiedBy, lastModifiedAt } = $model;
return {
createdBy,
createdAt,
lastModifiedBy,
lastModifiedAt
};
}
_ModificationInfoTransformation2.toJson = toJson;
})(_ModificationInfoTransformation || (_ModificationInfoTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-isolated-uri.transformation.ts
var app_isolated_uri_transformation_exports = {};
__export(app_isolated_uri_transformation_exports, {
fromJson: () => fromJson3,
toJson: () => toJson3
});
function fromJson3($model) {
const { url, baseUrl, widgetUrl } = $model;
return {
url,
baseUrl,
widgetUrl
};
}
function toJson3($model) {
const { url, baseUrl, widgetUrl } = $model;
return {
url,
baseUrl,
widgetUrl
};
}
// packages/client/app-engine-registry/src/lib/models/resource-context-operations-item.ts
var ResourceContextOperationsItem = /* @__PURE__ */ ((ResourceContextOperationsItem3) => {
ResourceContextOperationsItem3["Run"] = "run";
ResourceContextOperationsItem3["Update"] = "update";
ResourceContextOperationsItem3["Uninstall"] = "uninstall";
return ResourceContextOperationsItem3;
})(ResourceContextOperationsItem || {});
var _ResourceContextOperationsItemTransformation;
((_ResourceContextOperationsItemTransformation2) => {
_ResourceContextOperationsItemTransformation2.toJson = (value) => value;
_ResourceContextOperationsItemTransformation2.fromJson = (value) => value;
})(_ResourceContextOperationsItemTransformation || (_ResourceContextOperationsItemTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-signature-info.transformation.ts
var app_signature_info_transformation_exports = {};
__export(app_signature_info_transformation_exports, {
fromJson: () => fromJson4,
toJson: () => toJson4
});
function fromJson4($model) {
const { signed, publisher } = $model;
return {
signed,
publisher
};
}
function toJson4($model) {
const { signed, publisher } = $model;
return {
signed,
publisher
};
}
// packages/client/app-engine-registry/src/lib/models/resource-context.ts
var _ResourceContextTransformation;
((_ResourceContextTransformation2) => {
function fromJson($model) {
const { operations } = $model;
return {
operations: operations !== void 0 && operations !== null ? operations?.map((innerValue) => _ResourceContextOperationsItemTransformation.fromJson(innerValue)) : void 0
};
}
_ResourceContextTransformation2.fromJson = fromJson;
function toJson($model) {
const { operations } = $model;
return {
operations: operations !== void 0 && operations !== null ? operations?.map((innerValue) => _ResourceContextOperationsItemTransformation.toJson(innerValue)) : void 0
};
}
_ResourceContextTransformation2.toJson = toJson;
})(_ResourceContextTransformation || (_ResourceContextTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/modification-info.transformation.ts
var modification_info_transformation_exports = {};
__export(modification_info_transformation_exports, {
fromJson: () => fromJson5,
toJson: () => toJson5
});
function fromJson5($model) {
const { createdBy, createdAt, lastModifiedBy, lastModifiedAt } = $model;
return {
createdBy,
createdAt,
lastModifiedBy,
lastModifiedAt
};
}
function toJson5($model) {
const { createdBy, createdAt, lastModifiedBy, lastModifiedAt } = $model;
return {
createdBy,
createdAt,
lastModifiedBy,
lastModifiedAt
};
}
// packages/client/app-engine-registry/src/lib/models/resource-status-operation-state-before-error.ts
var ResourceStatusOperationStateBeforeError = /* @__PURE__ */ ((ResourceStatusOperationStateBeforeError3) => {
ResourceStatusOperationStateBeforeError3["PendingInstall"] = "PENDING_INSTALL";
ResourceStatusOperationStateBeforeError3["PendingUpdate"] = "PENDING_UPDATE";
ResourceStatusOperationStateBeforeError3["PendingDelete"] = "PENDING_DELETE";
ResourceStatusOperationStateBeforeError3["Ok"] = "OK";
return ResourceStatusOperationStateBeforeError3;
})(ResourceStatusOperationStateBeforeError || {});
var _ResourceStatusOperationStateBeforeErrorTransformation;
((_ResourceStatusOperationStateBeforeErrorTransformation2) => {
_ResourceStatusOperationStateBeforeErrorTransformation2.toJson = (value) => value;
_ResourceStatusOperationStateBeforeErrorTransformation2.fromJson = (value) => value;
})(_ResourceStatusOperationStateBeforeErrorTransformation || (_ResourceStatusOperationStateBeforeErrorTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/resource-context.transformation.ts
var resource_context_transformation_exports = {};
__export(resource_context_transformation_exports, {
fromJson: () => fromJson7,
toJson: () => toJson7
});
// packages/client/app-engine-registry/src/lib/models/resource-status-pending-operation.ts
var ResourceStatusPendingOperation = /* @__PURE__ */ ((ResourceStatusPendingOperation3) => {
ResourceStatusPendingOperation3["Install"] = "INSTALL";
ResourceStatusPendingOperation3["Update"] = "UPDATE";
ResourceStatusPendingOperation3["Delete"] = "DELETE";
return ResourceStatusPendingOperation3;
})(ResourceStatusPendingOperation || {});
var _ResourceStatusPendingOperationTransformation;
((_ResourceStatusPendingOperationTransformation2) => {
_ResourceStatusPendingOperationTransformation2.toJson = (value) => value;
_ResourceStatusPendingOperationTransformation2.fromJson = (value) => value;
})(_ResourceStatusPendingOperationTransformation || (_ResourceStatusPendingOperationTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/resource-context-operations-item.transformation.ts
var resource_context_operations_item_transformation_exports = {};
__export(resource_context_operations_item_transformation_exports, {
fromJson: () => fromJson6,
toJson: () => toJson6
});
function fromJson6($model) {
return String($model);
}
function toJson6($model) {
return String($model);
}
// packages/client/app-engine-registry/src/lib/models/resource-status-status.ts
var ResourceStatusStatus = /* @__PURE__ */ ((ResourceStatusStatus3) => {
ResourceStatusStatus3["Ok"] = "OK";
ResourceStatusStatus3["Pending"] = "PENDING";
ResourceStatusStatus3["Error"] = "ERROR";
return ResourceStatusStatus3;
})(ResourceStatusStatus || {});
var _ResourceStatusStatusTransformation;
((_ResourceStatusStatusTransformation2) => {
_ResourceStatusStatusTransformation2.toJson = (value) => value;
_ResourceStatusStatusTransformation2.fromJson = (value) => value;
})(_ResourceStatusStatusTransformation || (_ResourceStatusStatusTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/resource-context.transformation.ts
function fromJson7($model) {
const { operations } = $model;
return {
operations: operations !== void 0 && operations !== null ? operations?.map((innerValue) => fromJson6(innerValue)) : void 0
};
}
function toJson7($model) {
const { operations } = $model;
return {
operations: operations !== void 0 && operations !== null ? operations?.map((innerValue) => toJson6(innerValue)) : void 0
};
}
// packages/client/app-engine-registry/src/lib/models/sub-resource-constraint-violation.ts
var _SubResourceConstraintViolationTransformation;
((_SubResourceConstraintViolationTransformation2) => {
function fromJson($model) {
const { path, message } = $model;
return {
path,
message
};
}
_SubResourceConstraintViolationTransformation2.fromJson = fromJson;
function toJson($model) {
const { path, message } = $model;
return {
path,
message
};
}
_SubResourceConstraintViolationTransformation2.toJson = toJson;
})(_SubResourceConstraintViolationTransformation || (_SubResourceConstraintViolationTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/resource-status.transformation.ts
var resource_status_transformation_exports = {};
__export(resource_status_transformation_exports, {
fromJson: () => fromJson16,
toJson: () => toJson16
});
// packages/client/app-engine-registry/src/lib/models/sub-resource-error.ts
var _SubResourceErrorTransformation;
((_SubResourceErrorTransformation2) => {
function fromJson($model) {
const { message, errorCode, errorRef, constraintViolations } = $model;
return {
message,
errorCode,
errorRef,
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map(
(innerValue) => _SubResourceConstraintViolationTransformation.fromJson(innerValue)
) : void 0
};
}
_SubResourceErrorTransformation2.fromJson = fromJson;
function toJson($model) {
const { message, errorCode, errorRef, constraintViolations } = $model;
return {
message,
errorCode,
errorRef,
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map(
(innerValue) => _SubResourceConstraintViolationTransformation.toJson(innerValue)
) : void 0
};
}
_SubResourceErrorTransformation2.toJson = toJson;
})(_SubResourceErrorTransformation || (_SubResourceErrorTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/resource-status-operation-state-before-error.transformation.ts
var resource_status_operation_state_before_error_transformation_exports = {};
__export(resource_status_operation_state_before_error_transformation_exports, {
fromJson: () => fromJson8,
toJson: () => toJson8
});
function fromJson8($model) {
return String($model);
}
function toJson8($model) {
return String($model);
}
// packages/client/app-engine-registry/src/lib/models/sub-resource-status-status.ts
var SubResourceStatusStatus = /* @__PURE__ */ ((SubResourceStatusStatus3) => {
SubResourceStatusStatus3["Scheduled"] = "SCHEDULED";
SubResourceStatusStatus3["Deploying"] = "DEPLOYING";
SubResourceStatusStatus3["Deployed"] = "DEPLOYED";
SubResourceStatusStatus3["Failed"] = "FAILED";
SubResourceStatusStatus3["NoResources"] = "NO_RESOURCES";
return SubResourceStatusStatus3;
})(SubResourceStatusStatus || {});
var _SubResourceStatusStatusTransformation;
((_SubResourceStatusStatusTransformation2) => {
_SubResourceStatusStatusTransformation2.toJson = (value) => value;
_SubResourceStatusStatusTransformation2.fromJson = (value) => value;
})(_SubResourceStatusStatusTransformation || (_SubResourceStatusStatusTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/resource-status-pending-operation.transformation.ts
var resource_status_pending_operation_transformation_exports = {};
__export(resource_status_pending_operation_transformation_exports, {
fromJson: () => fromJson9,
toJson: () => toJson9
});
function fromJson9($model) {
return String($model);
}
function toJson9($model) {
return String($model);
}
// packages/client/app-engine-registry/src/lib/models/sub-resource-status-sub-resource-type.ts
var SubResourceStatusSubResourceType = /* @__PURE__ */ ((SubResourceStatusSubResourceType3) => {
SubResourceStatusSubResourceType3["Functions"] = "FUNCTIONS";
SubResourceStatusSubResourceType3["Files"] = "FILES";
SubResourceStatusSubResourceType3["SettingsSchemas"] = "SETTINGS_SCHEMAS";
return SubResourceStatusSubResourceType3;
})(SubResourceStatusSubResourceType || {});
var _SubResourceStatusSubResourceTypeTransformation;
((_SubResourceStatusSubResourceTypeTransformation2) => {
_SubResourceStatusSubResourceTypeTransformation2.toJson = (value) => value;
_SubResourceStatusSubResourceTypeTransformation2.fromJson = (value) => value;
})(_SubResourceStatusSubResourceTypeTransformation || (_SubResourceStatusSubResourceTypeTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/resource-status-status.transformation.ts
var resource_status_status_transformation_exports = {};
__export(resource_status_status_transformation_exports, {
fromJson: () => fromJson10,
toJson: () => toJson10
});
function fromJson10($model) {
return String($model);
}
function toJson10($model) {
return String($model);
}
// packages/client/app-engine-registry/src/lib/models/sub-resource-status.ts
var _SubResourceStatusTransformation;
((_SubResourceStatusTransformation2) => {
function fromJson($model) {
const { subResourceType, status, error } = $model;
return {
subResourceType: _SubResourceStatusSubResourceTypeTransformation.fromJson(subResourceType),
status: _SubResourceStatusStatusTransformation.fromJson(status),
error: error !== void 0 && error !== null ? _SubResourceErrorTransformation.fromJson(error) : void 0
};
}
_SubResourceStatusTransformation2.fromJson = fromJson;
function toJson($model) {
const { subResourceType, status, error } = $model;
return {
subResourceType: _SubResourceStatusSubResourceTypeTransformation.toJson(subResourceType),
status: _SubResourceStatusStatusTransformation.toJson(status),
error: error !== void 0 && error !== null ? _SubResourceErrorTransformation.toJson(error) : void 0
};
}
_SubResourceStatusTransformation2.toJson = toJson;
function fromFormData(formData) {
const formDataEntries = Object.fromEntries(formData.map((data) => [data.name, data.value]));
return {
subResourceType: _SubResourceStatusSubResourceTypeTransformation.fromJson(
JSON.parse(formDataEntries["subResourceType"])
),
status: _SubResourceStatusStatusTransformation.fromJson(JSON.parse(formDataEntries["status"])),
error: _SubResourceErrorTransformation.fromJson(JSON.parse(formDataEntries["error"]))
};
}
_SubResourceStatusTransformation2.fromFormData = fromFormData;
function toFormData($model) {
const json = toJson($model);
const body = [
{ name: "subResourceType", type: "json", value: json["subResourceType"] },
{ name: "status", type: "json", value: json["status"] }
];
if (json["error"]) {
body.push({ name: "error", type: "json", value: json["error"] });
}
return body;
}
_SubResourceStatusTransformation2.toFormData = toFormData;
})(_SubResourceStatusTransformation || (_SubResourceStatusTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/sub-resource-status.transformation.ts
var sub_resource_status_transformation_exports = {};
__export(sub_resource_status_transformation_exports, {
fromFormData: () => fromFormData,
fromJson: () => fromJson15,
toFormData: () => toFormData,
toJson: () => toJson15
});
// packages/client/app-engine-registry/src/lib/models/resource-status.ts
var _ResourceStatusTransformation;
((_ResourceStatusTransformation2) => {
function fromJson($model) {
const { status, subResourceStatuses, pendingOperation, operationStateBeforeError } = $model;
return {
status: _ResourceStatusStatusTransformation.fromJson(status),
subResourceStatuses: subResourceStatuses !== void 0 && subResourceStatuses !== null ? subResourceStatuses?.map((innerValue) => _SubResourceStatusTransformation.fromJson(innerValue)) : void 0,
pendingOperation: pendingOperation !== void 0 && pendingOperation !== null ? _ResourceStatusPendingOperationTransformation.fromJson(pendingOperation) : void 0,
operationStateBeforeError: operationStateBeforeError !== void 0 && operationStateBeforeError !== null ? _ResourceStatusOperationStateBeforeErrorTransformation.fromJson(operationStateBeforeError) : void 0
};
}
_ResourceStatusTransformation2.fromJson = fromJson;
function toJson($model) {
const { status, subResourceStatuses, pendingOperation, operationStateBeforeError } = $model;
return {
status: _ResourceStatusStatusTransformation.toJson(status),
subResourceStatuses: subResourceStatuses !== void 0 && subResourceStatuses !== null ? subResourceStatuses?.map((innerValue) => _SubResourceStatusTransformation.toJson(innerValue)) : void 0,
pendingOperation: pendingOperation !== void 0 && pendingOperation !== null ? _ResourceStatusPendingOperationTransformation.toJson(pendingOperation) : void 0,
operationStateBeforeError: operationStateBeforeError !== void 0 && operationStateBeforeError !== null ? _ResourceStatusOperationStateBeforeErrorTransformation.toJson(operationStateBeforeError) : void 0
};
}
_ResourceStatusTransformation2.toJson = toJson;
})(_ResourceStatusTransformation || (_ResourceStatusTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/sub-resource-error.transformation.ts
var sub_resource_error_transformation_exports = {};
__export(sub_resource_error_transformation_exports, {
fromJson: () => fromJson12,
toJson: () => toJson12
});
// packages/client/app-engine-registry/src/lib/models/app-info.ts
var _AppInfoTransformation;
((_AppInfoTransformation2) => {
function fromJson($model) {
const {
id,
name: _name,
version,
description,
manifest,
resourceStatus,
appIcon,
isolatedUri,
signatureInfo,
modificationInfo,
resourceContext
} = $model;
return {
id,
name: _name,
version,
description,
manifest: manifest !== void 0 && manifest !== null ? _AppInfoManifestTransformation.fromJson(manifest) : void 0,
resourceStatus: _ResourceStatusTransformation.fromJson(resourceStatus),
appIcon: appIcon !== void 0 && appIcon !== null ? _AppIconTransformation.fromJson(appIcon) : void 0,
isolatedUri: isolatedUri !== void 0 && isolatedUri !== null ? _AppIsolatedUriTransformation.fromJson(isolatedUri) : void 0,
signatureInfo: _AppSignatureInfoTransformation.fromJson(signatureInfo),
modificationInfo: _ModificationInfoTransformation.fromJson(modificationInfo),
resourceContext: resourceContext !== void 0 && resourceContext !== null ? _ResourceContextTransformation.fromJson(resourceContext) : void 0
};
}
_AppInfoTransformation2.fromJson = fromJson;
function toJson($model) {
const {
id,
name: _name,
version,
description,
manifest,
resourceStatus,
appIcon,
isolatedUri,
signatureInfo,
modificationInfo,
resourceContext
} = $model;
return {
id,
name: _name,
version,
description,
manifest: manifest !== void 0 && manifest !== null ? _AppInfoManifestTransformation.toJson(manifest) : void 0,
resourceStatus: _ResourceStatusTransformation.toJson(resourceStatus),
appIcon: appIcon !== void 0 && appIcon !== null ? _AppIconTransformation.toJson(appIcon) : void 0,
isolatedUri: isolatedUri !== void 0 && isolatedUri !== null ? _AppIsolatedUriTransformation.toJson(isolatedUri) : void 0,
signatureInfo: _AppSignatureInfoTransformation.toJson(signatureInfo),
modificationInfo: _ModificationInfoTransformation.toJson(modificationInfo),
resourceContext: resourceContext !== void 0 && resourceContext !== null ? _ResourceContextTransformation.toJson(resourceContext) : void 0
};
}
_AppInfoTransformation2.toJson = toJson;
})(_AppInfoTransformation || (_AppInfoTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/sub-resource-constraint-violation.transformation.ts
var sub_resource_constraint_violation_transformation_exports = {};
__export(sub_resource_constraint_violation_transformation_exports, {
fromJson: () => fromJson11,
toJson: () => toJson11
});
function fromJson11($model) {
const { path, message } = $model;
return {
path,
message
};
}
function toJson11($model) {
const { path, message } = $model;
return {
path,
message
};
}
// packages/client/app-engine-registry/src/lib/models/app-info-list.ts
var _AppInfoListTransformation;
((_AppInfoListTransformation2) => {
function fromJson($model) {
const { apps } = $model;
return {
apps: apps?.map((innerValue) => _AppInfoTransformation.fromJson(innerValue))
};
}
_AppInfoListTransformation2.fromJson = fromJson;
function toJson($model) {
const { apps } = $model;
return {
apps: apps?.map((innerValue) => _AppInfoTransformation.toJson(innerValue))
};
}
_AppInfoListTransformation2.toJson = toJson;
})(_AppInfoListTransformation || (_AppInfoListTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/sub-resource-error.transformation.ts
function fromJson12($model) {
const { message, errorCode, errorRef, constraintViolations } = $model;
return {
message,
errorCode,
errorRef,
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map(
(innerValue) => fromJson11(innerValue)
) : void 0
};
}
function toJson12($model) {
const { message, errorCode, errorRef, constraintViolations } = $model;
return {
message,
errorCode,
errorRef,
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map(
(innerValue) => toJson11(innerValue)
) : void 0
};
}
// packages/client/app-engine-registry/src/lib/models/app-stub.ts
var _AppStubTransformation;
((_AppStubTransformation2) => {
function fromJson($model) {
const { id } = $model;
return {
id
};
}
_AppStubTransformation2.fromJson = fromJson;
function toJson($model) {
const { id } = $model;
return {
id
};
}
_AppStubTransformation2.toJson = toJson;
})(_AppStubTransformation || (_AppStubTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/sub-resource-status-status.transformation.ts
var sub_resource_status_status_transformation_exports = {};
__export(sub_resource_status_status_transformation_exports, {
fromJson: () => fromJson13,
toJson: () => toJson13
});
function fromJson13($model) {
return String($model);
}
function toJson13($model) {
return String($model);
}
// packages/client/app-engine-registry/src/lib/models/constraint-violation.ts
var _ConstraintViolationTransformation;
((_ConstraintViolationTransformation2) => {
function fromJson($model) {
const { path, message } = $model;
return {
path,
message
};
}
_ConstraintViolationTransformation2.fromJson = fromJson;
function toJson($model) {
const { path, message } = $model;
return {
path,
message
};
}
_ConstraintViolationTransformation2.toJson = toJson;
})(_ConstraintViolationTransformation || (_ConstraintViolationTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/sub-resource-status-sub-resource-type.transformation.ts
var sub_resource_status_sub_resource_type_transformation_exports = {};
__export(sub_resource_status_sub_resource_type_transformation_exports, {
fromJson: () => fromJson14,
toJson: () => toJson14
});
function fromJson14($model) {
return String($model);
}
function toJson14($model) {
return String($model);
}
// packages/client/app-engine-registry/src/lib/models/error-details.ts
var _ErrorDetailsTransformation;
((_ErrorDetailsTransformation2) => {
function fromJson($model) {
const { errorRef, errorCode, constraintViolations } = $model;
return {
errorRef,
errorCode,
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map((innerValue) => _ConstraintViolationTransformation.fromJson(innerValue)) : void 0
};
// packages/client/app-engine-registry/src/lib/models/sub-resource-status.transformation.ts
function fromJson15($model) {
const { subResourceType, status, error } = $model;
return {
subResourceType: fromJson14(subResourceType),
status: fromJson13(status),
error: error !== void 0 && error !== null ? fromJson12(error) : void 0
};
}
function toJson15($model) {
const { subResourceType, status, error } = $model;
return {
subResourceType: toJson14(subResourceType),
status: toJson13(status),
error: error !== void 0 && error !== null ? toJson12(error) : void 0
};
}
function fromFormData(formData) {
const formDataEntries = Object.fromEntries(formData.map((data) => [data.name, data.value]));
return {
subResourceType: fromJson14(
JSON.parse(formDataEntries["subResourceType"])
),
status: fromJson13(JSON.parse(formDataEntries["status"])),
error: fromJson12(JSON.parse(formDataEntries["error"]))
};
}
function toFormData($model) {
const json = toJson15($model);
const body = [
{ name: "subResourceType", type: "json", value: json["subResourceType"] },
{ name: "status", type: "json", value: json["status"] }
];
if (json["error"]) {
body.push({ name: "error", type: "json", value: json["error"] });
}
_ErrorDetailsTransformation2.fromJson = fromJson;
function toJson($model) {
const { errorRef, errorCode, constraintViolations } = $model;
return {
errorRef,
errorCode,
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map((innerValue) => _ConstraintViolationTransformation.toJson(innerValue)) : void 0
};
}
_ErrorDetailsTransformation2.toJson = toJson;
})(_ErrorDetailsTransformation || (_ErrorDetailsTransformation = {}));
return body;
}
// packages/client/app-engine-registry/src/lib/models/error.ts
var _ErrorTransformation;
((_ErrorTransformation2) => {
function fromJson($model) {
const { code, message, details } = $model;
return {
code,
message,
details: details !== void 0 && details !== null ? _ErrorDetailsTransformation.fromJson(details) : void 0
};
}
_ErrorTransformation2.fromJson = fromJson;
function toJson($model) {
const { code, message, details } = $model;
return {
code,
message,
details: details !== void 0 && details !== null ? _ErrorDetailsTransformation.toJson(details) : void 0
};
}
_ErrorTransformation2.toJson = toJson;
})(_ErrorTransformation || (_ErrorTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/resource-status.transformation.ts
function fromJson16($model) {
const { status, subResourceStatuses, pendingOperation, operationStateBeforeError } = $model;
return {
status: fromJson10(status),
subResourceStatuses: subResourceStatuses !== void 0 && subResourceStatuses !== null ? subResourceStatuses?.map((innerValue) => fromJson15(innerValue)) : void 0,
pendingOperation: pendingOperation !== void 0 && pendingOperation !== null ? fromJson9(pendingOperation) : void 0,
operationStateBeforeError: operationStateBeforeError !== void 0 && operationStateBeforeError !== null ? fromJson8(operationStateBeforeError) : void 0
};
}
function toJson16($model) {
const { status, subResourceStatuses, pendingOperation, operationStateBeforeError } = $model;
return {
status: toJson10(status),
subResourceStatuses: subResourceStatuses !== void 0 && subResourceStatuses !== null ? subResourceStatuses?.map((innerValue) => toJson15(innerValue)) : void 0,
pendingOperation: pendingOperation !== void 0 && pendingOperation !== null ? toJson9(pendingOperation) : void 0,
operationStateBeforeError: operationStateBeforeError !== void 0 && operationStateBeforeError !== null ? toJson8(operationStateBeforeError) : void 0
};
}
// packages/client/app-engine-registry/src/lib/models/error-envelope.ts
var _ErrorEnvelopeTransformation;
((_ErrorEnvelopeTransformation2) => {
function fromJson($model) {
const { error } = $model;
return {
error: _ErrorTransformation.fromJson(error)
};
}
_ErrorEnvelopeTransformation2.fromJson = fromJson;
function toJson($model) {
const { error } = $model;
return {
error: _ErrorTransformation.toJson(error)
};
}
_ErrorEnvelopeTransformation2.toJson = toJson;
function fromFormData(formData) {
const formDataEntries = Object.fromEntries(formData.map((data) => [data.name, data.value]));
return {
error: _ErrorTransformation.fromJson(JSON.parse(formDataEntries["error"]))
};
}
_ErrorEnvelopeTransformation2.fromFormData = fromFormData;
function toFormData($model) {
const json = toJson($model);
const body = [{ name: "error", type: "json", value: json["error"] }];
return body;
}
_ErrorEnvelopeTransformation2.toFormData = toFormData;
})(_ErrorEnvelopeTransformation || (_ErrorEnvelopeTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-info.transformation.ts
function fromJson17($model) {
const {
id,
name: _name,
version,
description,
manifest,
resourceStatus,
appIcon,
isolatedUri,
signatureInfo,
modificationInfo,
resourceContext
} = $model;
return {
id,
name: _name,
version,
description,
manifest: manifest !== void 0 && manifest !== null ? fromJson2(manifest) : void 0,
resourceStatus: fromJson16(resourceStatus),
appIcon: appIcon !== void 0 && appIcon !== null ? fromJson(appIcon) : void 0,
isolatedUri: isolatedUri !== void 0 && isolatedUri !== null ? fromJson3(isolatedUri) : void 0,
signatureInfo: fromJson4(signatureInfo),
modificationInfo: fromJson5(modificationInfo),
resourceContext: resourceContext !== void 0 && resourceContext !== null ? fromJson7(resourceContext) : void 0
};
}
function toJson17($model) {
const {
id,
name: _name,
version,
description,
manifest,
resourceStatus,
appIcon,
isolatedUri,
signatureInfo,
modificationInfo,
resourceContext
} = $model;
return {
id,
name: _name,
version,
description,
manifest: manifest !== void 0 && manifest !== null ? toJson2(manifest) : void 0,
resourceStatus: toJson16(resourceStatus),
appIcon: appIcon !== void 0 && appIcon !== null ? toJson(appIcon) : void 0,
isolatedUri: isolatedUri !== void 0 && isolatedUri !== null ? toJson3(isolatedUri) : void 0,
signatureInfo: toJson4(signatureInfo),
modificationInfo: toJson5(modificationInfo),
resourceContext: resourceContext !== void 0 && resourceContext !== null ? toJson7(resourceContext) : void 0
};
}
// packages/client/app-engine-registry/src/lib/models/search-app-action-actions-item.ts
var _SearchAppActionActionsItemTransformation;
((_SearchAppActionActionsItemTransformation2) => {
function fromJson(model) {
return JSON.parse(JSON.stringify(model));
}
_SearchAppActionActionsItemTransformation2.fromJson = fromJson;
function toJson(model) {
return JSON.parse(JSON.stringify(model));
}
_SearchAppActionActionsItemTransformation2.toJson = toJson;
})(_SearchAppActionActionsItemTransformation || (_SearchAppActionActionsItemTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-info-list.transformation.ts
function fromJson18($model) {
const { apps } = $model;
return {
apps: apps?.map((innerValue) => fromJson17(innerValue))
};
}
function toJson18($model) {
const { apps } = $model;
return {
apps: apps?.map((innerValue) => toJson17(innerValue))
};
}
// packages/client/app-engine-registry/src/lib/models/search-app-action.ts
var _SearchAppActionTransformation;
((_SearchAppActionTransformation2) => {
function fromJson($model) {
const { id, name: _name, actions } = $model;
return {
id,
name: _name,
actions: actions?.map((innerValue) => _SearchAppActionActionsItemTransformation.fromJson(innerValue))
};
}
_SearchAppActionTransformation2.fromJson = fromJson;
function toJson($model) {
const { id, name: _name, actions } = $model;
return {
id,
name: _name,
actions: actions?.map((innerValue) => _SearchAppActionActionsItemTransformation.toJson(innerValue))
};
}
_SearchAppActionTransformation2.toJson = toJson;
})(_SearchAppActionTransformation || (_SearchAppActionTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-stub.transformation.ts
var app_stub_transformation_exports = {};
__export(app_stub_transformation_exports, {
fromJson: () => fromJson19,
toJson: () => toJson19
});
function fromJson19($model) {
const { id } = $model;
return {
id
};
}
function toJson19($model) {
const { id } = $model;
return {
id
};
}
// packages/client/app-engine-registry/src/lib/models/search-app-action-list.ts
var _SearchAppActionListTransformation;
((_SearchAppActionListTransformation2) => {
function fromJson($model) {
const { apps, totalCount } = $model;
return {
apps: apps?.map((innerValue) => _SearchAppActionTransformation.fromJson(innerValue)),
totalCount
};
}
_SearchAppActionListTransformation2.fromJson = fromJson;
function toJson($model) {
const { apps, totalCount } = $model;
return {
apps: apps?.map((innerValue) => _SearchAppActionTransformation.toJson(innerValue)),
totalCount
};
}
_SearchAppActionListTransformation2.toJson = toJson;
})(_SearchAppActionListTransformation || (_SearchAppActionListTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/error-envelope.transformation.ts
var error_envelope_transformation_exports = {};
__export(error_envelope_transformation_exports, {
fromFormData: () => fromFormData2,
fromJson: () => fromJson23,
toFormData: () => toFormData2,
toJson: () => toJson23
});
// packages/client/app-engine-registry/src/lib/models/error.transformation.ts
var error_transformation_exports = {};
__export(error_transformation_exports, {
fromJson: () => fromJson22,
toJson: () => toJson22
});
// packages/client/app-engine-registry/src/lib/models/error-details.transformation.ts
var error_details_transformation_exports = {};
__export(error_details_transformation_exports, {
fromJson: () => fromJson21,
toJson: () => toJson21
});
// packages/client/app-engine-registry/src/lib/models/constraint-violation.transformation.ts
var constraint_violation_transformation_exports = {};
__export(constraint_violation_transformation_exports, {
fromJson: () => fromJson20,
toJson: () => toJson20
});
function fromJson20($model) {
const { path, message } = $model;
return {
path,
message
};
}
function toJson20($model) {
const { path, message } = $model;
return {
path,
message
};
}
// packages/client/app-engine-registry/src/lib/models/error-details.transformation.ts
function fromJson21($model) {
const { errorRef, errorCode, constraintViolations } = $model;
return {
errorRef,
errorCode,
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map((innerValue) => fromJson20(innerValue)) : void 0
};
}
function toJson21($model) {
const { errorRef, errorCode, constraintViolations } = $model;
return {
errorRef,
errorCode,
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map((innerValue) => toJson20(innerValue)) : void 0
};
}
// packages/client/app-engine-registry/src/lib/models/error.transformation.ts
function fromJson22($model) {
const { code, message, details } = $model;
return {
code,
message,
details: details !== void 0 && details !== null ? fromJson21(details) : void 0
};
}
function toJson22($model) {
const { code, message, details } = $model;
return {
code,
message,
details: details !== void 0 && details !== null ? toJson21(details) : void 0
};
}
// packages/client/app-engine-registry/src/lib/models/error-envelope.transformation.ts
function fromJson23($model) {
const { error } = $model;
return {
error: fromJson22(error)
};
}
function toJson23($model) {
const { error } = $model;
return {
error: toJson22(error)
};
}
function fromFormData2(formData) {
const formDataEntries = Object.fromEntries(formData.map((data) => [data.name, data.value]));
return {
error: fromJson22(JSON.parse(formDataEntries["error"]))
};
}
function toFormData2($model) {
const json = toJson23($model);
const body = [{ name: "error", type: "json", value: json["error"] }];
return body;
}
// packages/client/app-engine-registry/src/lib/models/search-app-action-list.transformation.ts
var search_app_action_list_transformation_exports = {};
__export(search_app_action_list_transformation_exports, {
fromJson: () => fromJson26,
toJson: () => toJson26
});
// packages/client/app-engine-registry/src/lib/models/search-app-action.transformation.ts
var search_app_action_transformation_exports = {};
__export(search_app_action_transformation_exports, {
fromJson: () => fromJson25,
toJson: () => toJson25
});
// packages/client/app-engine-registry/src/lib/models/search-app-action-actions-item.transformation.ts
var search_app_action_actions_item_transformation_exports = {};
__export(search_app_action_actions_item_transformation_exports, {
fromJson: () => fromJson24,
toJson: () => toJson24
});
function fromJson24($model) {
return JSON.parse(JSON.stringify($model));
}
function toJson24($model) {
return JSON.parse(JSON.stringify($model));
}
// packages/client/app-engine-registry/src/lib/models/search-app-action.transformation.ts
function fromJson25($model) {
const { id, name: _name, actions } = $model;
return {
id,
name: _name,
actions: actions?.map((innerValue) => fromJson24(innerValue))
};
}
function toJson25($model) {
const { id, name: _name, actions } = $model;
return {
id,
name: _name,
actions: actions?.map((innerValue) => toJson24(innerValue))
};
}
// packages/client/app-engine-registry/src/lib/models/search-app-action-list.transformation.ts
function fromJson26($model) {
const { apps, totalCount } = $model;
return {
apps: apps?.map((innerValue) => fromJson25(innerValue)),
totalCount
};
}
function toJson26($model) {
const { apps, totalCount } = $model;
return {
apps: apps?.map((innerValue) => toJson25(innerValue)),
totalCount
};
}
// packages/client/app-engine-registry/src/lib/utils/url-helpers.ts

@@ -806,3 +832,3 @@ var encodeQueryParam = (key, value) => {

try {
return _AppInfoListTransformation.fromJson(responseValue);
return fromJson18(responseValue);
} catch (err) {

@@ -840,3 +866,3 @@ throw new InvalidResponseError(

try {
const errorBody = _ErrorEnvelopeTransformation.fromJson(responseValue);
const errorBody = fromJson23(responseValue);
throw new ErrorEnvelopeError("400", response, errorBody, "Bad Request");

@@ -859,3 +885,3 @@ } catch (err) {

try {
return _AppStubTransformation.fromJson(responseValue);
return fromJson19(responseValue);
} catch (err) {

@@ -897,3 +923,3 @@ throw new InvalidResponseError(

try {
return _SearchAppActionListTransformation.fromJson(responseValue);
return fromJson26(responseValue);
} catch (err) {

@@ -924,3 +950,3 @@ throw new InvalidResponseError(

try {
return _AppInfoTransformation.fromJson(responseValue);
return fromJson17(responseValue);
} catch (err) {

@@ -950,65 +976,67 @@ throw new InvalidResponseError(

// packages/client/app-engine-registry/src/lib/models/app-default-csp-policy-directives.ts
var _AppDefaultCspPolicyDirectivesTransformation;
((_AppDefaultCspPolicyDirectivesTransformation2) => {
function fromJson($model) {
const additionalProps = $model;
return {
...Object.fromEntries(
Object.entries(additionalProps).map(([propName, value]) => [
propName,
value !== void 0 && value !== null ? value?.slice(0) : void 0
])
)
};
}
_AppDefaultCspPolicyDirectivesTransformation2.fromJson = fromJson;
function toJson($model) {
const additionalProps = $model;
return {
...Object.fromEntries(
Object.entries(additionalProps).map(([propName, value]) => [
propName,
value !== void 0 && value !== null ? value?.slice(0) : void 0
])
)
};
}
_AppDefaultCspPolicyDirectivesTransformation2.toJson = toJson;
})(_AppDefaultCspPolicyDirectivesTransformation || (_AppDefaultCspPolicyDirectivesTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-default-csp.transformation.ts
var app_default_csp_transformation_exports = {};
__export(app_default_csp_transformation_exports, {
fromFormData: () => fromFormData3,
fromJson: () => fromJson28,
toFormData: () => toFormData3,
toJson: () => toJson28
});
// packages/client/app-engine-registry/src/lib/models/app-default-csp.ts
var _AppDefaultCspTransformation;
((_AppDefaultCspTransformation2) => {
function fromJson($model) {
const { policyDirectives } = $model;
return {
policyDirectives: _AppDefaultCspPolicyDirectivesTransformation.fromJson(policyDirectives)
};
}
_AppDefaultCspTransformation2.fromJson = fromJson;
function toJson($model) {
const { policyDirectives } = $model;
return {
policyDirectives: _AppDefaultCspPolicyDirectivesTransformation.toJson(policyDirectives)
};
}
_AppDefaultCspTransformation2.toJson = toJson;
function fromFormData(formData) {
const formDataEntries = Object.fromEntries(formData.map((data) => [data.name, data.value]));
return {
policyDirectives: _AppDefaultCspPolicyDirectivesTransformation.fromJson(
JSON.parse(formDataEntries["policyDirectives"])
)
};
}
_AppDefaultCspTransformation2.fromFormData = fromFormData;
function toFormData($model) {
const json = toJson($model);
const body = [{ name: "policyDirectives", type: "json", value: json["policyDirectives"] }];
return body;
}
_AppDefaultCspTransformation2.toFormData = toFormData;
})(_AppDefaultCspTransformation || (_AppDefaultCspTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-default-csp-policy-directives.transformation.ts
var app_default_csp_policy_directives_transformation_exports = {};
__export(app_default_csp_policy_directives_transformation_exports, {
fromJson: () => fromJson27,
toJson: () => toJson27
});
function fromJson27($model) {
const additionalProps = $model;
return {
...Object.fromEntries(
Object.entries(additionalProps).map(([propName, value]) => [
propName,
value !== void 0 && value !== null ? value?.slice(0) : void 0
])
)
};
}
function toJson27($model) {
const additionalProps = $model;
return {
...Object.fromEntries(
Object.entries(additionalProps).map(([propName, value]) => [
propName,
value !== void 0 && value !== null ? value?.slice(0) : void 0
])
)
};
}
// packages/client/app-engine-registry/src/lib/models/app-default-csp.transformation.ts
function fromJson28($model) {
const { policyDirectives } = $model;
return {
policyDirectives: fromJson27(policyDirectives)
};
}
function toJson28($model) {
const { policyDirectives } = $model;
return {
policyDirectives: toJson27(policyDirectives)
};
}
function fromFormData3(formData) {
const formDataEntries = Object.fromEntries(formData.map((data) => [data.name, data.value]));
return {
policyDirectives: fromJson27(
JSON.parse(formDataEntries["policyDirectives"])
)
};
}
function toFormData3($model) {
const json = toJson28($model);
const body = [{ name: "policyDirectives", type: "json", value: json["policyDirectives"] }];
return body;
}
// packages/client/app-engine-registry/src/lib/apis/app-engine-registry-schema-manifest-api.ts

@@ -1054,3 +1082,3 @@ var AppEngineRegistrySchemaManifestClient = class {

try {
return _AppDefaultCspTransformation.fromJson(responseValue);
return fromJson28(responseValue);
} catch (err) {

@@ -1070,1 +1098,52 @@ throw new InvalidResponseError(

);
// packages/client/app-engine-registry/src/lib/models/resource-context-operations-item.ts
var ResourceContextOperationsItem = /* @__PURE__ */ ((ResourceContextOperationsItem2) => {
ResourceContextOperationsItem2["Run"] = "run";
ResourceContextOperationsItem2["Update"] = "update";
ResourceContextOperationsItem2["Uninstall"] = "uninstall";
return ResourceContextOperationsItem2;
})(ResourceContextOperationsItem || {});
// packages/client/app-engine-registry/src/lib/models/resource-status-operation-state-before-error.ts
var ResourceStatusOperationStateBeforeError = /* @__PURE__ */ ((ResourceStatusOperationStateBeforeError2) => {
ResourceStatusOperationStateBeforeError2["PendingInstall"] = "PENDING_INSTALL";
ResourceStatusOperationStateBeforeError2["PendingUpdate"] = "PENDING_UPDATE";
ResourceStatusOperationStateBeforeError2["PendingDelete"] = "PENDING_DELETE";
ResourceStatusOperationStateBeforeError2["Ok"] = "OK";
return ResourceStatusOperationStateBeforeError2;
})(ResourceStatusOperationStateBeforeError || {});
// packages/client/app-engine-registry/src/lib/models/resource-status-pending-operation.ts
var ResourceStatusPendingOperation = /* @__PURE__ */ ((ResourceStatusPendingOperation2) => {
ResourceStatusPendingOperation2["Install"] = "INSTALL";
ResourceStatusPendingOperation2["Update"] = "UPDATE";
ResourceStatusPendingOperation2["Delete"] = "DELETE";
return ResourceStatusPendingOperation2;
})(ResourceStatusPendingOperation || {});
// packages/client/app-engine-registry/src/lib/models/resource-status-status.ts
var ResourceStatusStatus = /* @__PURE__ */ ((ResourceStatusStatus2) => {
ResourceStatusStatus2["Ok"] = "OK";
ResourceStatusStatus2["Pending"] = "PENDING";
ResourceStatusStatus2["Error"] = "ERROR";
return ResourceStatusStatus2;
})(ResourceStatusStatus || {});
// packages/client/app-engine-registry/src/lib/models/sub-resource-status-status.ts
var SubResourceStatusStatus = /* @__PURE__ */ ((SubResourceStatusStatus2) => {
SubResourceStatusStatus2["Scheduled"] = "SCHEDULED";
SubResourceStatusStatus2["Deploying"] = "DEPLOYING";
SubResourceStatusStatus2["Deployed"] = "DEPLOYED";
SubResourceStatusStatus2["Failed"] = "FAILED";
SubResourceStatusStatus2["NoResources"] = "NO_RESOURCES";
return SubResourceStatusStatus2;
})(SubResourceStatusStatus || {});
// packages/client/app-engine-registry/src/lib/models/sub-resource-status-sub-resource-type.ts
var SubResourceStatusSubResourceType = /* @__PURE__ */ ((SubResourceStatusSubResourceType2) => {
SubResourceStatusSubResourceType2["Functions"] = "FUNCTIONS";
SubResourceStatusSubResourceType2["Files"] = "FILES";
SubResourceStatusSubResourceType2["SettingsSchemas"] = "SETTINGS_SCHEMAS";
return SubResourceStatusSubResourceType2;
})(SubResourceStatusSubResourceType || {});
# App Engine - Registry
SDK package version **1.0.4**
SDK package version **1.1.0**

@@ -5,0 +5,0 @@ ```bash

{
"dynagen": {
"version": "0.10.6",
"version": "0.10.7",
"generatedAt": "",
"template": {
"name": "@dynatrace-sdk/template-typescript-client",
"version": "0.14.1"
"version": "0.17.0"
}

@@ -9,0 +9,0 @@ },

@@ -16,2 +16,7 @@ /**

*/
var __defProp = Object.defineProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};

@@ -85,3 +90,4 @@ // packages/client/app-engine-registry/src/lib/apis/app-engine-registry-apps-api.ts

type: "Http Error" /* HTTP */,
body: error.body
body: error.body,
...getOptionalErrorRef(error.body)
};

@@ -104,2 +110,8 @@ } else if (isApiClientError(error)) {

}
function getOptionalErrorRef(body) {
if (body && typeof body === "object" && body.error?.details?.errorRef) {
return { errorRef: body.error.details.errorRef };
}
return {};
}

@@ -122,581 +134,600 @@ // packages/client/app-engine-registry/src/lib/error-envelopes/invalid-response-error.ts

// packages/client/app-engine-registry/src/lib/models/app-icon.ts
var _AppIconTransformation;
((_AppIconTransformation2) => {
function fromJson($model) {
const { href } = $model;
return {
href
};
}
_AppIconTransformation2.fromJson = fromJson;
function toJson($model) {
const { href } = $model;
return {
href
};
}
_AppIconTransformation2.toJson = toJson;
})(_AppIconTransformation || (_AppIconTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-info-list.transformation.ts
var app_info_list_transformation_exports = {};
__export(app_info_list_transformation_exports, {
fromJson: () => fromJson18,
toJson: () => toJson18
});
// packages/client/app-engine-registry/src/lib/models/app-info-manifest.ts
var _AppInfoManifestTransformation;
((_AppInfoManifestTransformation2) => {
function fromJson(model) {
return JSON.parse(JSON.stringify(model));
}
_AppInfoManifestTransformation2.fromJson = fromJson;
function toJson(model) {
return JSON.parse(JSON.stringify(model));
}
_AppInfoManifestTransformation2.toJson = toJson;
})(_AppInfoManifestTransformation || (_AppInfoManifestTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-info.transformation.ts
var app_info_transformation_exports = {};
__export(app_info_transformation_exports, {
fromJson: () => fromJson17,
toJson: () => toJson17
});
// packages/client/app-engine-registry/src/lib/models/app-isolated-uri.ts
var _AppIsolatedUriTransformation;
((_AppIsolatedUriTransformation2) => {
function fromJson($model) {
const { url, baseUrl, widgetUrl } = $model;
return {
url,
baseUrl,
widgetUrl
};
}
_AppIsolatedUriTransformation2.fromJson = fromJson;
function toJson($model) {
const { url, baseUrl, widgetUrl } = $model;
return {
url,
baseUrl,
widgetUrl
};
}
_AppIsolatedUriTransformation2.toJson = toJson;
})(_AppIsolatedUriTransformation || (_AppIsolatedUriTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-icon.transformation.ts
var app_icon_transformation_exports = {};
__export(app_icon_transformation_exports, {
fromJson: () => fromJson,
toJson: () => toJson
});
function fromJson($model) {
const { href } = $model;
return {
href
};
}
function toJson($model) {
const { href } = $model;
return {
href
};
}
// packages/client/app-engine-registry/src/lib/models/app-signature-info.ts
var _AppSignatureInfoTransformation;
((_AppSignatureInfoTransformation2) => {
function fromJson($model) {
const { signed, publisher } = $model;
return {
signed,
publisher
};
}
_AppSignatureInfoTransformation2.fromJson = fromJson;
function toJson($model) {
const { signed, publisher } = $model;
return {
signed,
publisher
};
}
_AppSignatureInfoTransformation2.toJson = toJson;
})(_AppSignatureInfoTransformation || (_AppSignatureInfoTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-info-manifest.transformation.ts
var app_info_manifest_transformation_exports = {};
__export(app_info_manifest_transformation_exports, {
fromJson: () => fromJson2,
toJson: () => toJson2
});
function fromJson2($model) {
return JSON.parse(JSON.stringify($model));
}
function toJson2($model) {
return JSON.parse(JSON.stringify($model));
}
// packages/client/app-engine-registry/src/lib/models/modification-info.ts
var _ModificationInfoTransformation;
((_ModificationInfoTransformation2) => {
function fromJson($model) {
const { createdBy, createdAt, lastModifiedBy, lastModifiedAt } = $model;
return {
createdBy,
createdAt,
lastModifiedBy,
lastModifiedAt
};
}
_ModificationInfoTransformation2.fromJson = fromJson;
function toJson($model) {
const { createdBy, createdAt, lastModifiedBy, lastModifiedAt } = $model;
return {
createdBy,
createdAt,
lastModifiedBy,
lastModifiedAt
};
}
_ModificationInfoTransformation2.toJson = toJson;
})(_ModificationInfoTransformation || (_ModificationInfoTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-isolated-uri.transformation.ts
var app_isolated_uri_transformation_exports = {};
__export(app_isolated_uri_transformation_exports, {
fromJson: () => fromJson3,
toJson: () => toJson3
});
function fromJson3($model) {
const { url, baseUrl, widgetUrl } = $model;
return {
url,
baseUrl,
widgetUrl
};
}
function toJson3($model) {
const { url, baseUrl, widgetUrl } = $model;
return {
url,
baseUrl,
widgetUrl
};
}
// packages/client/app-engine-registry/src/lib/models/resource-context-operations-item.ts
var ResourceContextOperationsItem = /* @__PURE__ */ ((ResourceContextOperationsItem3) => {
ResourceContextOperationsItem3["Run"] = "run";
ResourceContextOperationsItem3["Update"] = "update";
ResourceContextOperationsItem3["Uninstall"] = "uninstall";
return ResourceContextOperationsItem3;
})(ResourceContextOperationsItem || {});
var _ResourceContextOperationsItemTransformation;
((_ResourceContextOperationsItemTransformation2) => {
_ResourceContextOperationsItemTransformation2.toJson = (value) => value;
_ResourceContextOperationsItemTransformation2.fromJson = (value) => value;
})(_ResourceContextOperationsItemTransformation || (_ResourceContextOperationsItemTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-signature-info.transformation.ts
var app_signature_info_transformation_exports = {};
__export(app_signature_info_transformation_exports, {
fromJson: () => fromJson4,
toJson: () => toJson4
});
function fromJson4($model) {
const { signed, publisher } = $model;
return {
signed,
publisher
};
}
function toJson4($model) {
const { signed, publisher } = $model;
return {
signed,
publisher
};
}
// packages/client/app-engine-registry/src/lib/models/resource-context.ts
var _ResourceContextTransformation;
((_ResourceContextTransformation2) => {
function fromJson($model) {
const { operations } = $model;
return {
operations: operations !== void 0 && operations !== null ? operations?.map((innerValue) => _ResourceContextOperationsItemTransformation.fromJson(innerValue)) : void 0
};
}
_ResourceContextTransformation2.fromJson = fromJson;
function toJson($model) {
const { operations } = $model;
return {
operations: operations !== void 0 && operations !== null ? operations?.map((innerValue) => _ResourceContextOperationsItemTransformation.toJson(innerValue)) : void 0
};
}
_ResourceContextTransformation2.toJson = toJson;
})(_ResourceContextTransformation || (_ResourceContextTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/modification-info.transformation.ts
var modification_info_transformation_exports = {};
__export(modification_info_transformation_exports, {
fromJson: () => fromJson5,
toJson: () => toJson5
});
function fromJson5($model) {
const { createdBy, createdAt, lastModifiedBy, lastModifiedAt } = $model;
return {
createdBy,
createdAt,
lastModifiedBy,
lastModifiedAt
};
}
function toJson5($model) {
const { createdBy, createdAt, lastModifiedBy, lastModifiedAt } = $model;
return {
createdBy,
createdAt,
lastModifiedBy,
lastModifiedAt
};
}
// packages/client/app-engine-registry/src/lib/models/resource-status-operation-state-before-error.ts
var ResourceStatusOperationStateBeforeError = /* @__PURE__ */ ((ResourceStatusOperationStateBeforeError3) => {
ResourceStatusOperationStateBeforeError3["PendingInstall"] = "PENDING_INSTALL";
ResourceStatusOperationStateBeforeError3["PendingUpdate"] = "PENDING_UPDATE";
ResourceStatusOperationStateBeforeError3["PendingDelete"] = "PENDING_DELETE";
ResourceStatusOperationStateBeforeError3["Ok"] = "OK";
return ResourceStatusOperationStateBeforeError3;
})(ResourceStatusOperationStateBeforeError || {});
var _ResourceStatusOperationStateBeforeErrorTransformation;
((_ResourceStatusOperationStateBeforeErrorTransformation2) => {
_ResourceStatusOperationStateBeforeErrorTransformation2.toJson = (value) => value;
_ResourceStatusOperationStateBeforeErrorTransformation2.fromJson = (value) => value;
})(_ResourceStatusOperationStateBeforeErrorTransformation || (_ResourceStatusOperationStateBeforeErrorTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/resource-context.transformation.ts
var resource_context_transformation_exports = {};
__export(resource_context_transformation_exports, {
fromJson: () => fromJson7,
toJson: () => toJson7
});
// packages/client/app-engine-registry/src/lib/models/resource-status-pending-operation.ts
var ResourceStatusPendingOperation = /* @__PURE__ */ ((ResourceStatusPendingOperation3) => {
ResourceStatusPendingOperation3["Install"] = "INSTALL";
ResourceStatusPendingOperation3["Update"] = "UPDATE";
ResourceStatusPendingOperation3["Delete"] = "DELETE";
return ResourceStatusPendingOperation3;
})(ResourceStatusPendingOperation || {});
var _ResourceStatusPendingOperationTransformation;
((_ResourceStatusPendingOperationTransformation2) => {
_ResourceStatusPendingOperationTransformation2.toJson = (value) => value;
_ResourceStatusPendingOperationTransformation2.fromJson = (value) => value;
})(_ResourceStatusPendingOperationTransformation || (_ResourceStatusPendingOperationTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/resource-context-operations-item.transformation.ts
var resource_context_operations_item_transformation_exports = {};
__export(resource_context_operations_item_transformation_exports, {
fromJson: () => fromJson6,
toJson: () => toJson6
});
function fromJson6($model) {
return String($model);
}
function toJson6($model) {
return String($model);
}
// packages/client/app-engine-registry/src/lib/models/resource-status-status.ts
var ResourceStatusStatus = /* @__PURE__ */ ((ResourceStatusStatus3) => {
ResourceStatusStatus3["Ok"] = "OK";
ResourceStatusStatus3["Pending"] = "PENDING";
ResourceStatusStatus3["Error"] = "ERROR";
return ResourceStatusStatus3;
})(ResourceStatusStatus || {});
var _ResourceStatusStatusTransformation;
((_ResourceStatusStatusTransformation2) => {
_ResourceStatusStatusTransformation2.toJson = (value) => value;
_ResourceStatusStatusTransformation2.fromJson = (value) => value;
})(_ResourceStatusStatusTransformation || (_ResourceStatusStatusTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/resource-context.transformation.ts
function fromJson7($model) {
const { operations } = $model;
return {
operations: operations !== void 0 && operations !== null ? operations?.map((innerValue) => fromJson6(innerValue)) : void 0
};
}
function toJson7($model) {
const { operations } = $model;
return {
operations: operations !== void 0 && operations !== null ? operations?.map((innerValue) => toJson6(innerValue)) : void 0
};
}
// packages/client/app-engine-registry/src/lib/models/sub-resource-constraint-violation.ts
var _SubResourceConstraintViolationTransformation;
((_SubResourceConstraintViolationTransformation2) => {
function fromJson($model) {
const { path, message } = $model;
return {
path,
message
};
}
_SubResourceConstraintViolationTransformation2.fromJson = fromJson;
function toJson($model) {
const { path, message } = $model;
return {
path,
message
};
}
_SubResourceConstraintViolationTransformation2.toJson = toJson;
})(_SubResourceConstraintViolationTransformation || (_SubResourceConstraintViolationTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/resource-status.transformation.ts
var resource_status_transformation_exports = {};
__export(resource_status_transformation_exports, {
fromJson: () => fromJson16,
toJson: () => toJson16
});
// packages/client/app-engine-registry/src/lib/models/sub-resource-error.ts
var _SubResourceErrorTransformation;
((_SubResourceErrorTransformation2) => {
function fromJson($model) {
const { message, errorCode, errorRef, constraintViolations } = $model;
return {
message,
errorCode,
errorRef,
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map(
(innerValue) => _SubResourceConstraintViolationTransformation.fromJson(innerValue)
) : void 0
};
}
_SubResourceErrorTransformation2.fromJson = fromJson;
function toJson($model) {
const { message, errorCode, errorRef, constraintViolations } = $model;
return {
message,
errorCode,
errorRef,
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map(
(innerValue) => _SubResourceConstraintViolationTransformation.toJson(innerValue)
) : void 0
};
}
_SubResourceErrorTransformation2.toJson = toJson;
})(_SubResourceErrorTransformation || (_SubResourceErrorTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/resource-status-operation-state-before-error.transformation.ts
var resource_status_operation_state_before_error_transformation_exports = {};
__export(resource_status_operation_state_before_error_transformation_exports, {
fromJson: () => fromJson8,
toJson: () => toJson8
});
function fromJson8($model) {
return String($model);
}
function toJson8($model) {
return String($model);
}
// packages/client/app-engine-registry/src/lib/models/sub-resource-status-status.ts
var SubResourceStatusStatus = /* @__PURE__ */ ((SubResourceStatusStatus3) => {
SubResourceStatusStatus3["Scheduled"] = "SCHEDULED";
SubResourceStatusStatus3["Deploying"] = "DEPLOYING";
SubResourceStatusStatus3["Deployed"] = "DEPLOYED";
SubResourceStatusStatus3["Failed"] = "FAILED";
SubResourceStatusStatus3["NoResources"] = "NO_RESOURCES";
return SubResourceStatusStatus3;
})(SubResourceStatusStatus || {});
var _SubResourceStatusStatusTransformation;
((_SubResourceStatusStatusTransformation2) => {
_SubResourceStatusStatusTransformation2.toJson = (value) => value;
_SubResourceStatusStatusTransformation2.fromJson = (value) => value;
})(_SubResourceStatusStatusTransformation || (_SubResourceStatusStatusTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/resource-status-pending-operation.transformation.ts
var resource_status_pending_operation_transformation_exports = {};
__export(resource_status_pending_operation_transformation_exports, {
fromJson: () => fromJson9,
toJson: () => toJson9
});
function fromJson9($model) {
return String($model);
}
function toJson9($model) {
return String($model);
}
// packages/client/app-engine-registry/src/lib/models/sub-resource-status-sub-resource-type.ts
var SubResourceStatusSubResourceType = /* @__PURE__ */ ((SubResourceStatusSubResourceType3) => {
SubResourceStatusSubResourceType3["Functions"] = "FUNCTIONS";
SubResourceStatusSubResourceType3["Files"] = "FILES";
SubResourceStatusSubResourceType3["SettingsSchemas"] = "SETTINGS_SCHEMAS";
return SubResourceStatusSubResourceType3;
})(SubResourceStatusSubResourceType || {});
var _SubResourceStatusSubResourceTypeTransformation;
((_SubResourceStatusSubResourceTypeTransformation2) => {
_SubResourceStatusSubResourceTypeTransformation2.toJson = (value) => value;
_SubResourceStatusSubResourceTypeTransformation2.fromJson = (value) => value;
})(_SubResourceStatusSubResourceTypeTransformation || (_SubResourceStatusSubResourceTypeTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/resource-status-status.transformation.ts
var resource_status_status_transformation_exports = {};
__export(resource_status_status_transformation_exports, {
fromJson: () => fromJson10,
toJson: () => toJson10
});
function fromJson10($model) {
return String($model);
}
function toJson10($model) {
return String($model);
}
// packages/client/app-engine-registry/src/lib/models/sub-resource-status.ts
var _SubResourceStatusTransformation;
((_SubResourceStatusTransformation2) => {
function fromJson($model) {
const { subResourceType, status, error } = $model;
return {
subResourceType: _SubResourceStatusSubResourceTypeTransformation.fromJson(subResourceType),
status: _SubResourceStatusStatusTransformation.fromJson(status),
error: error !== void 0 && error !== null ? _SubResourceErrorTransformation.fromJson(error) : void 0
};
}
_SubResourceStatusTransformation2.fromJson = fromJson;
function toJson($model) {
const { subResourceType, status, error } = $model;
return {
subResourceType: _SubResourceStatusSubResourceTypeTransformation.toJson(subResourceType),
status: _SubResourceStatusStatusTransformation.toJson(status),
error: error !== void 0 && error !== null ? _SubResourceErrorTransformation.toJson(error) : void 0
};
}
_SubResourceStatusTransformation2.toJson = toJson;
function fromFormData(formData) {
const formDataEntries = Object.fromEntries(formData.map((data) => [data.name, data.value]));
return {
subResourceType: _SubResourceStatusSubResourceTypeTransformation.fromJson(
JSON.parse(formDataEntries["subResourceType"])
),
status: _SubResourceStatusStatusTransformation.fromJson(JSON.parse(formDataEntries["status"])),
error: _SubResourceErrorTransformation.fromJson(JSON.parse(formDataEntries["error"]))
};
}
_SubResourceStatusTransformation2.fromFormData = fromFormData;
function toFormData($model) {
const json = toJson($model);
const body = [
{ name: "subResourceType", type: "json", value: json["subResourceType"] },
{ name: "status", type: "json", value: json["status"] }
];
if (json["error"]) {
body.push({ name: "error", type: "json", value: json["error"] });
}
return body;
}
_SubResourceStatusTransformation2.toFormData = toFormData;
})(_SubResourceStatusTransformation || (_SubResourceStatusTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/sub-resource-status.transformation.ts
var sub_resource_status_transformation_exports = {};
__export(sub_resource_status_transformation_exports, {
fromFormData: () => fromFormData,
fromJson: () => fromJson15,
toFormData: () => toFormData,
toJson: () => toJson15
});
// packages/client/app-engine-registry/src/lib/models/resource-status.ts
var _ResourceStatusTransformation;
((_ResourceStatusTransformation2) => {
function fromJson($model) {
const { status, subResourceStatuses, pendingOperation, operationStateBeforeError } = $model;
return {
status: _ResourceStatusStatusTransformation.fromJson(status),
subResourceStatuses: subResourceStatuses !== void 0 && subResourceStatuses !== null ? subResourceStatuses?.map((innerValue) => _SubResourceStatusTransformation.fromJson(innerValue)) : void 0,
pendingOperation: pendingOperation !== void 0 && pendingOperation !== null ? _ResourceStatusPendingOperationTransformation.fromJson(pendingOperation) : void 0,
operationStateBeforeError: operationStateBeforeError !== void 0 && operationStateBeforeError !== null ? _ResourceStatusOperationStateBeforeErrorTransformation.fromJson(operationStateBeforeError) : void 0
};
}
_ResourceStatusTransformation2.fromJson = fromJson;
function toJson($model) {
const { status, subResourceStatuses, pendingOperation, operationStateBeforeError } = $model;
return {
status: _ResourceStatusStatusTransformation.toJson(status),
subResourceStatuses: subResourceStatuses !== void 0 && subResourceStatuses !== null ? subResourceStatuses?.map((innerValue) => _SubResourceStatusTransformation.toJson(innerValue)) : void 0,
pendingOperation: pendingOperation !== void 0 && pendingOperation !== null ? _ResourceStatusPendingOperationTransformation.toJson(pendingOperation) : void 0,
operationStateBeforeError: operationStateBeforeError !== void 0 && operationStateBeforeError !== null ? _ResourceStatusOperationStateBeforeErrorTransformation.toJson(operationStateBeforeError) : void 0
};
}
_ResourceStatusTransformation2.toJson = toJson;
})(_ResourceStatusTransformation || (_ResourceStatusTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/sub-resource-error.transformation.ts
var sub_resource_error_transformation_exports = {};
__export(sub_resource_error_transformation_exports, {
fromJson: () => fromJson12,
toJson: () => toJson12
});
// packages/client/app-engine-registry/src/lib/models/app-info.ts
var _AppInfoTransformation;
((_AppInfoTransformation2) => {
function fromJson($model) {
const {
id,
name: _name,
version,
description,
manifest,
resourceStatus,
appIcon,
isolatedUri,
signatureInfo,
modificationInfo,
resourceContext
} = $model;
return {
id,
name: _name,
version,
description,
manifest: manifest !== void 0 && manifest !== null ? _AppInfoManifestTransformation.fromJson(manifest) : void 0,
resourceStatus: _ResourceStatusTransformation.fromJson(resourceStatus),
appIcon: appIcon !== void 0 && appIcon !== null ? _AppIconTransformation.fromJson(appIcon) : void 0,
isolatedUri: isolatedUri !== void 0 && isolatedUri !== null ? _AppIsolatedUriTransformation.fromJson(isolatedUri) : void 0,
signatureInfo: _AppSignatureInfoTransformation.fromJson(signatureInfo),
modificationInfo: _ModificationInfoTransformation.fromJson(modificationInfo),
resourceContext: resourceContext !== void 0 && resourceContext !== null ? _ResourceContextTransformation.fromJson(resourceContext) : void 0
};
}
_AppInfoTransformation2.fromJson = fromJson;
function toJson($model) {
const {
id,
name: _name,
version,
description,
manifest,
resourceStatus,
appIcon,
isolatedUri,
signatureInfo,
modificationInfo,
resourceContext
} = $model;
return {
id,
name: _name,
version,
description,
manifest: manifest !== void 0 && manifest !== null ? _AppInfoManifestTransformation.toJson(manifest) : void 0,
resourceStatus: _ResourceStatusTransformation.toJson(resourceStatus),
appIcon: appIcon !== void 0 && appIcon !== null ? _AppIconTransformation.toJson(appIcon) : void 0,
isolatedUri: isolatedUri !== void 0 && isolatedUri !== null ? _AppIsolatedUriTransformation.toJson(isolatedUri) : void 0,
signatureInfo: _AppSignatureInfoTransformation.toJson(signatureInfo),
modificationInfo: _ModificationInfoTransformation.toJson(modificationInfo),
resourceContext: resourceContext !== void 0 && resourceContext !== null ? _ResourceContextTransformation.toJson(resourceContext) : void 0
};
}
_AppInfoTransformation2.toJson = toJson;
})(_AppInfoTransformation || (_AppInfoTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/sub-resource-constraint-violation.transformation.ts
var sub_resource_constraint_violation_transformation_exports = {};
__export(sub_resource_constraint_violation_transformation_exports, {
fromJson: () => fromJson11,
toJson: () => toJson11
});
function fromJson11($model) {
const { path, message } = $model;
return {
path,
message
};
}
function toJson11($model) {
const { path, message } = $model;
return {
path,
message
};
}
// packages/client/app-engine-registry/src/lib/models/app-info-list.ts
var _AppInfoListTransformation;
((_AppInfoListTransformation2) => {
function fromJson($model) {
const { apps } = $model;
return {
apps: apps?.map((innerValue) => _AppInfoTransformation.fromJson(innerValue))
};
}
_AppInfoListTransformation2.fromJson = fromJson;
function toJson($model) {
const { apps } = $model;
return {
apps: apps?.map((innerValue) => _AppInfoTransformation.toJson(innerValue))
};
}
_AppInfoListTransformation2.toJson = toJson;
})(_AppInfoListTransformation || (_AppInfoListTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/sub-resource-error.transformation.ts
function fromJson12($model) {
const { message, errorCode, errorRef, constraintViolations } = $model;
return {
message,
errorCode,
errorRef,
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map(
(innerValue) => fromJson11(innerValue)
) : void 0
};
}
function toJson12($model) {
const { message, errorCode, errorRef, constraintViolations } = $model;
return {
message,
errorCode,
errorRef,
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map(
(innerValue) => toJson11(innerValue)
) : void 0
};
}
// packages/client/app-engine-registry/src/lib/models/app-stub.ts
var _AppStubTransformation;
((_AppStubTransformation2) => {
function fromJson($model) {
const { id } = $model;
return {
id
};
}
_AppStubTransformation2.fromJson = fromJson;
function toJson($model) {
const { id } = $model;
return {
id
};
}
_AppStubTransformation2.toJson = toJson;
})(_AppStubTransformation || (_AppStubTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/sub-resource-status-status.transformation.ts
var sub_resource_status_status_transformation_exports = {};
__export(sub_resource_status_status_transformation_exports, {
fromJson: () => fromJson13,
toJson: () => toJson13
});
function fromJson13($model) {
return String($model);
}
function toJson13($model) {
return String($model);
}
// packages/client/app-engine-registry/src/lib/models/constraint-violation.ts
var _ConstraintViolationTransformation;
((_ConstraintViolationTransformation2) => {
function fromJson($model) {
const { path, message } = $model;
return {
path,
message
};
}
_ConstraintViolationTransformation2.fromJson = fromJson;
function toJson($model) {
const { path, message } = $model;
return {
path,
message
};
}
_ConstraintViolationTransformation2.toJson = toJson;
})(_ConstraintViolationTransformation || (_ConstraintViolationTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/sub-resource-status-sub-resource-type.transformation.ts
var sub_resource_status_sub_resource_type_transformation_exports = {};
__export(sub_resource_status_sub_resource_type_transformation_exports, {
fromJson: () => fromJson14,
toJson: () => toJson14
});
function fromJson14($model) {
return String($model);
}
function toJson14($model) {
return String($model);
}
// packages/client/app-engine-registry/src/lib/models/error-details.ts
var _ErrorDetailsTransformation;
((_ErrorDetailsTransformation2) => {
function fromJson($model) {
const { errorRef, errorCode, constraintViolations } = $model;
return {
errorRef,
errorCode,
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map((innerValue) => _ConstraintViolationTransformation.fromJson(innerValue)) : void 0
};
// packages/client/app-engine-registry/src/lib/models/sub-resource-status.transformation.ts
function fromJson15($model) {
const { subResourceType, status, error } = $model;
return {
subResourceType: fromJson14(subResourceType),
status: fromJson13(status),
error: error !== void 0 && error !== null ? fromJson12(error) : void 0
};
}
function toJson15($model) {
const { subResourceType, status, error } = $model;
return {
subResourceType: toJson14(subResourceType),
status: toJson13(status),
error: error !== void 0 && error !== null ? toJson12(error) : void 0
};
}
function fromFormData(formData) {
const formDataEntries = Object.fromEntries(formData.map((data) => [data.name, data.value]));
return {
subResourceType: fromJson14(
JSON.parse(formDataEntries["subResourceType"])
),
status: fromJson13(JSON.parse(formDataEntries["status"])),
error: fromJson12(JSON.parse(formDataEntries["error"]))
};
}
function toFormData($model) {
const json = toJson15($model);
const body = [
{ name: "subResourceType", type: "json", value: json["subResourceType"] },
{ name: "status", type: "json", value: json["status"] }
];
if (json["error"]) {
body.push({ name: "error", type: "json", value: json["error"] });
}
_ErrorDetailsTransformation2.fromJson = fromJson;
function toJson($model) {
const { errorRef, errorCode, constraintViolations } = $model;
return {
errorRef,
errorCode,
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map((innerValue) => _ConstraintViolationTransformation.toJson(innerValue)) : void 0
};
}
_ErrorDetailsTransformation2.toJson = toJson;
})(_ErrorDetailsTransformation || (_ErrorDetailsTransformation = {}));
return body;
}
// packages/client/app-engine-registry/src/lib/models/error.ts
var _ErrorTransformation;
((_ErrorTransformation2) => {
function fromJson($model) {
const { code, message, details } = $model;
return {
code,
message,
details: details !== void 0 && details !== null ? _ErrorDetailsTransformation.fromJson(details) : void 0
};
}
_ErrorTransformation2.fromJson = fromJson;
function toJson($model) {
const { code, message, details } = $model;
return {
code,
message,
details: details !== void 0 && details !== null ? _ErrorDetailsTransformation.toJson(details) : void 0
};
}
_ErrorTransformation2.toJson = toJson;
})(_ErrorTransformation || (_ErrorTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/resource-status.transformation.ts
function fromJson16($model) {
const { status, subResourceStatuses, pendingOperation, operationStateBeforeError } = $model;
return {
status: fromJson10(status),
subResourceStatuses: subResourceStatuses !== void 0 && subResourceStatuses !== null ? subResourceStatuses?.map((innerValue) => fromJson15(innerValue)) : void 0,
pendingOperation: pendingOperation !== void 0 && pendingOperation !== null ? fromJson9(pendingOperation) : void 0,
operationStateBeforeError: operationStateBeforeError !== void 0 && operationStateBeforeError !== null ? fromJson8(operationStateBeforeError) : void 0
};
}
function toJson16($model) {
const { status, subResourceStatuses, pendingOperation, operationStateBeforeError } = $model;
return {
status: toJson10(status),
subResourceStatuses: subResourceStatuses !== void 0 && subResourceStatuses !== null ? subResourceStatuses?.map((innerValue) => toJson15(innerValue)) : void 0,
pendingOperation: pendingOperation !== void 0 && pendingOperation !== null ? toJson9(pendingOperation) : void 0,
operationStateBeforeError: operationStateBeforeError !== void 0 && operationStateBeforeError !== null ? toJson8(operationStateBeforeError) : void 0
};
}
// packages/client/app-engine-registry/src/lib/models/error-envelope.ts
var _ErrorEnvelopeTransformation;
((_ErrorEnvelopeTransformation2) => {
function fromJson($model) {
const { error } = $model;
return {
error: _ErrorTransformation.fromJson(error)
};
}
_ErrorEnvelopeTransformation2.fromJson = fromJson;
function toJson($model) {
const { error } = $model;
return {
error: _ErrorTransformation.toJson(error)
};
}
_ErrorEnvelopeTransformation2.toJson = toJson;
function fromFormData(formData) {
const formDataEntries = Object.fromEntries(formData.map((data) => [data.name, data.value]));
return {
error: _ErrorTransformation.fromJson(JSON.parse(formDataEntries["error"]))
};
}
_ErrorEnvelopeTransformation2.fromFormData = fromFormData;
function toFormData($model) {
const json = toJson($model);
const body = [{ name: "error", type: "json", value: json["error"] }];
return body;
}
_ErrorEnvelopeTransformation2.toFormData = toFormData;
})(_ErrorEnvelopeTransformation || (_ErrorEnvelopeTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-info.transformation.ts
function fromJson17($model) {
const {
id,
name: _name,
version,
description,
manifest,
resourceStatus,
appIcon,
isolatedUri,
signatureInfo,
modificationInfo,
resourceContext
} = $model;
return {
id,
name: _name,
version,
description,
manifest: manifest !== void 0 && manifest !== null ? fromJson2(manifest) : void 0,
resourceStatus: fromJson16(resourceStatus),
appIcon: appIcon !== void 0 && appIcon !== null ? fromJson(appIcon) : void 0,
isolatedUri: isolatedUri !== void 0 && isolatedUri !== null ? fromJson3(isolatedUri) : void 0,
signatureInfo: fromJson4(signatureInfo),
modificationInfo: fromJson5(modificationInfo),
resourceContext: resourceContext !== void 0 && resourceContext !== null ? fromJson7(resourceContext) : void 0
};
}
function toJson17($model) {
const {
id,
name: _name,
version,
description,
manifest,
resourceStatus,
appIcon,
isolatedUri,
signatureInfo,
modificationInfo,
resourceContext
} = $model;
return {
id,
name: _name,
version,
description,
manifest: manifest !== void 0 && manifest !== null ? toJson2(manifest) : void 0,
resourceStatus: toJson16(resourceStatus),
appIcon: appIcon !== void 0 && appIcon !== null ? toJson(appIcon) : void 0,
isolatedUri: isolatedUri !== void 0 && isolatedUri !== null ? toJson3(isolatedUri) : void 0,
signatureInfo: toJson4(signatureInfo),
modificationInfo: toJson5(modificationInfo),
resourceContext: resourceContext !== void 0 && resourceContext !== null ? toJson7(resourceContext) : void 0
};
}
// packages/client/app-engine-registry/src/lib/models/search-app-action-actions-item.ts
var _SearchAppActionActionsItemTransformation;
((_SearchAppActionActionsItemTransformation2) => {
function fromJson(model) {
return JSON.parse(JSON.stringify(model));
}
_SearchAppActionActionsItemTransformation2.fromJson = fromJson;
function toJson(model) {
return JSON.parse(JSON.stringify(model));
}
_SearchAppActionActionsItemTransformation2.toJson = toJson;
})(_SearchAppActionActionsItemTransformation || (_SearchAppActionActionsItemTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-info-list.transformation.ts
function fromJson18($model) {
const { apps } = $model;
return {
apps: apps?.map((innerValue) => fromJson17(innerValue))
};
}
function toJson18($model) {
const { apps } = $model;
return {
apps: apps?.map((innerValue) => toJson17(innerValue))
};
}
// packages/client/app-engine-registry/src/lib/models/search-app-action.ts
var _SearchAppActionTransformation;
((_SearchAppActionTransformation2) => {
function fromJson($model) {
const { id, name: _name, actions } = $model;
return {
id,
name: _name,
actions: actions?.map((innerValue) => _SearchAppActionActionsItemTransformation.fromJson(innerValue))
};
}
_SearchAppActionTransformation2.fromJson = fromJson;
function toJson($model) {
const { id, name: _name, actions } = $model;
return {
id,
name: _name,
actions: actions?.map((innerValue) => _SearchAppActionActionsItemTransformation.toJson(innerValue))
};
}
_SearchAppActionTransformation2.toJson = toJson;
})(_SearchAppActionTransformation || (_SearchAppActionTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-stub.transformation.ts
var app_stub_transformation_exports = {};
__export(app_stub_transformation_exports, {
fromJson: () => fromJson19,
toJson: () => toJson19
});
function fromJson19($model) {
const { id } = $model;
return {
id
};
}
function toJson19($model) {
const { id } = $model;
return {
id
};
}
// packages/client/app-engine-registry/src/lib/models/search-app-action-list.ts
var _SearchAppActionListTransformation;
((_SearchAppActionListTransformation2) => {
function fromJson($model) {
const { apps, totalCount } = $model;
return {
apps: apps?.map((innerValue) => _SearchAppActionTransformation.fromJson(innerValue)),
totalCount
};
}
_SearchAppActionListTransformation2.fromJson = fromJson;
function toJson($model) {
const { apps, totalCount } = $model;
return {
apps: apps?.map((innerValue) => _SearchAppActionTransformation.toJson(innerValue)),
totalCount
};
}
_SearchAppActionListTransformation2.toJson = toJson;
})(_SearchAppActionListTransformation || (_SearchAppActionListTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/error-envelope.transformation.ts
var error_envelope_transformation_exports = {};
__export(error_envelope_transformation_exports, {
fromFormData: () => fromFormData2,
fromJson: () => fromJson23,
toFormData: () => toFormData2,
toJson: () => toJson23
});
// packages/client/app-engine-registry/src/lib/models/error.transformation.ts
var error_transformation_exports = {};
__export(error_transformation_exports, {
fromJson: () => fromJson22,
toJson: () => toJson22
});
// packages/client/app-engine-registry/src/lib/models/error-details.transformation.ts
var error_details_transformation_exports = {};
__export(error_details_transformation_exports, {
fromJson: () => fromJson21,
toJson: () => toJson21
});
// packages/client/app-engine-registry/src/lib/models/constraint-violation.transformation.ts
var constraint_violation_transformation_exports = {};
__export(constraint_violation_transformation_exports, {
fromJson: () => fromJson20,
toJson: () => toJson20
});
function fromJson20($model) {
const { path, message } = $model;
return {
path,
message
};
}
function toJson20($model) {
const { path, message } = $model;
return {
path,
message
};
}
// packages/client/app-engine-registry/src/lib/models/error-details.transformation.ts
function fromJson21($model) {
const { errorRef, errorCode, constraintViolations } = $model;
return {
errorRef,
errorCode,
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map((innerValue) => fromJson20(innerValue)) : void 0
};
}
function toJson21($model) {
const { errorRef, errorCode, constraintViolations } = $model;
return {
errorRef,
errorCode,
constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map((innerValue) => toJson20(innerValue)) : void 0
};
}
// packages/client/app-engine-registry/src/lib/models/error.transformation.ts
function fromJson22($model) {
const { code, message, details } = $model;
return {
code,
message,
details: details !== void 0 && details !== null ? fromJson21(details) : void 0
};
}
function toJson22($model) {
const { code, message, details } = $model;
return {
code,
message,
details: details !== void 0 && details !== null ? toJson21(details) : void 0
};
}
// packages/client/app-engine-registry/src/lib/models/error-envelope.transformation.ts
function fromJson23($model) {
const { error } = $model;
return {
error: fromJson22(error)
};
}
function toJson23($model) {
const { error } = $model;
return {
error: toJson22(error)
};
}
function fromFormData2(formData) {
const formDataEntries = Object.fromEntries(formData.map((data) => [data.name, data.value]));
return {
error: fromJson22(JSON.parse(formDataEntries["error"]))
};
}
function toFormData2($model) {
const json = toJson23($model);
const body = [{ name: "error", type: "json", value: json["error"] }];
return body;
}
// packages/client/app-engine-registry/src/lib/models/search-app-action-list.transformation.ts
var search_app_action_list_transformation_exports = {};
__export(search_app_action_list_transformation_exports, {
fromJson: () => fromJson26,
toJson: () => toJson26
});
// packages/client/app-engine-registry/src/lib/models/search-app-action.transformation.ts
var search_app_action_transformation_exports = {};
__export(search_app_action_transformation_exports, {
fromJson: () => fromJson25,
toJson: () => toJson25
});
// packages/client/app-engine-registry/src/lib/models/search-app-action-actions-item.transformation.ts
var search_app_action_actions_item_transformation_exports = {};
__export(search_app_action_actions_item_transformation_exports, {
fromJson: () => fromJson24,
toJson: () => toJson24
});
function fromJson24($model) {
return JSON.parse(JSON.stringify($model));
}
function toJson24($model) {
return JSON.parse(JSON.stringify($model));
}
// packages/client/app-engine-registry/src/lib/models/search-app-action.transformation.ts
function fromJson25($model) {
const { id, name: _name, actions } = $model;
return {
id,
name: _name,
actions: actions?.map((innerValue) => fromJson24(innerValue))
};
}
function toJson25($model) {
const { id, name: _name, actions } = $model;
return {
id,
name: _name,
actions: actions?.map((innerValue) => toJson24(innerValue))
};
}
// packages/client/app-engine-registry/src/lib/models/search-app-action-list.transformation.ts
function fromJson26($model) {
const { apps, totalCount } = $model;
return {
apps: apps?.map((innerValue) => fromJson25(innerValue)),
totalCount
};
}
function toJson26($model) {
const { apps, totalCount } = $model;
return {
apps: apps?.map((innerValue) => toJson25(innerValue)),
totalCount
};
}
// packages/client/app-engine-registry/src/lib/utils/url-helpers.ts

@@ -741,3 +772,3 @@ var encodeQueryParam = (key, value) => {

try {
return _AppInfoListTransformation.fromJson(responseValue);
return fromJson18(responseValue);
} catch (err) {

@@ -775,3 +806,3 @@ throw new InvalidResponseError(

try {
const errorBody = _ErrorEnvelopeTransformation.fromJson(responseValue);
const errorBody = fromJson23(responseValue);
throw new ErrorEnvelopeError("400", response, errorBody, "Bad Request");

@@ -794,3 +825,3 @@ } catch (err) {

try {
return _AppStubTransformation.fromJson(responseValue);
return fromJson19(responseValue);
} catch (err) {

@@ -832,3 +863,3 @@ throw new InvalidResponseError(

try {
return _SearchAppActionListTransformation.fromJson(responseValue);
return fromJson26(responseValue);
} catch (err) {

@@ -859,3 +890,3 @@ throw new InvalidResponseError(

try {
return _AppInfoTransformation.fromJson(responseValue);
return fromJson17(responseValue);
} catch (err) {

@@ -885,65 +916,67 @@ throw new InvalidResponseError(

// packages/client/app-engine-registry/src/lib/models/app-default-csp-policy-directives.ts
var _AppDefaultCspPolicyDirectivesTransformation;
((_AppDefaultCspPolicyDirectivesTransformation2) => {
function fromJson($model) {
const additionalProps = $model;
return {
...Object.fromEntries(
Object.entries(additionalProps).map(([propName, value]) => [
propName,
value !== void 0 && value !== null ? value?.slice(0) : void 0
])
)
};
}
_AppDefaultCspPolicyDirectivesTransformation2.fromJson = fromJson;
function toJson($model) {
const additionalProps = $model;
return {
...Object.fromEntries(
Object.entries(additionalProps).map(([propName, value]) => [
propName,
value !== void 0 && value !== null ? value?.slice(0) : void 0
])
)
};
}
_AppDefaultCspPolicyDirectivesTransformation2.toJson = toJson;
})(_AppDefaultCspPolicyDirectivesTransformation || (_AppDefaultCspPolicyDirectivesTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-default-csp.transformation.ts
var app_default_csp_transformation_exports = {};
__export(app_default_csp_transformation_exports, {
fromFormData: () => fromFormData3,
fromJson: () => fromJson28,
toFormData: () => toFormData3,
toJson: () => toJson28
});
// packages/client/app-engine-registry/src/lib/models/app-default-csp.ts
var _AppDefaultCspTransformation;
((_AppDefaultCspTransformation2) => {
function fromJson($model) {
const { policyDirectives } = $model;
return {
policyDirectives: _AppDefaultCspPolicyDirectivesTransformation.fromJson(policyDirectives)
};
}
_AppDefaultCspTransformation2.fromJson = fromJson;
function toJson($model) {
const { policyDirectives } = $model;
return {
policyDirectives: _AppDefaultCspPolicyDirectivesTransformation.toJson(policyDirectives)
};
}
_AppDefaultCspTransformation2.toJson = toJson;
function fromFormData(formData) {
const formDataEntries = Object.fromEntries(formData.map((data) => [data.name, data.value]));
return {
policyDirectives: _AppDefaultCspPolicyDirectivesTransformation.fromJson(
JSON.parse(formDataEntries["policyDirectives"])
)
};
}
_AppDefaultCspTransformation2.fromFormData = fromFormData;
function toFormData($model) {
const json = toJson($model);
const body = [{ name: "policyDirectives", type: "json", value: json["policyDirectives"] }];
return body;
}
_AppDefaultCspTransformation2.toFormData = toFormData;
})(_AppDefaultCspTransformation || (_AppDefaultCspTransformation = {}));
// packages/client/app-engine-registry/src/lib/models/app-default-csp-policy-directives.transformation.ts
var app_default_csp_policy_directives_transformation_exports = {};
__export(app_default_csp_policy_directives_transformation_exports, {
fromJson: () => fromJson27,
toJson: () => toJson27
});
function fromJson27($model) {
const additionalProps = $model;
return {
...Object.fromEntries(
Object.entries(additionalProps).map(([propName, value]) => [
propName,
value !== void 0 && value !== null ? value?.slice(0) : void 0
])
)
};
}
function toJson27($model) {
const additionalProps = $model;
return {
...Object.fromEntries(
Object.entries(additionalProps).map(([propName, value]) => [
propName,
value !== void 0 && value !== null ? value?.slice(0) : void 0
])
)
};
}
// packages/client/app-engine-registry/src/lib/models/app-default-csp.transformation.ts
function fromJson28($model) {
const { policyDirectives } = $model;
return {
policyDirectives: fromJson27(policyDirectives)
};
}
function toJson28($model) {
const { policyDirectives } = $model;
return {
policyDirectives: toJson27(policyDirectives)
};
}
function fromFormData3(formData) {
const formDataEntries = Object.fromEntries(formData.map((data) => [data.name, data.value]));
return {
policyDirectives: fromJson27(
JSON.parse(formDataEntries["policyDirectives"])
)
};
}
function toFormData3($model) {
const json = toJson28($model);
const body = [{ name: "policyDirectives", type: "json", value: json["policyDirectives"] }];
return body;
}
// packages/client/app-engine-registry/src/lib/apis/app-engine-registry-schema-manifest-api.ts

@@ -989,3 +1022,3 @@ var AppEngineRegistrySchemaManifestClient = class {

try {
return _AppDefaultCspTransformation.fromJson(responseValue);
return fromJson28(responseValue);
} catch (err) {

@@ -1005,2 +1038,53 @@ throw new InvalidResponseError(

);
// packages/client/app-engine-registry/src/lib/models/resource-context-operations-item.ts
var ResourceContextOperationsItem = /* @__PURE__ */ ((ResourceContextOperationsItem2) => {
ResourceContextOperationsItem2["Run"] = "run";
ResourceContextOperationsItem2["Update"] = "update";
ResourceContextOperationsItem2["Uninstall"] = "uninstall";
return ResourceContextOperationsItem2;
})(ResourceContextOperationsItem || {});
// packages/client/app-engine-registry/src/lib/models/resource-status-operation-state-before-error.ts
var ResourceStatusOperationStateBeforeError = /* @__PURE__ */ ((ResourceStatusOperationStateBeforeError2) => {
ResourceStatusOperationStateBeforeError2["PendingInstall"] = "PENDING_INSTALL";
ResourceStatusOperationStateBeforeError2["PendingUpdate"] = "PENDING_UPDATE";
ResourceStatusOperationStateBeforeError2["PendingDelete"] = "PENDING_DELETE";
ResourceStatusOperationStateBeforeError2["Ok"] = "OK";
return ResourceStatusOperationStateBeforeError2;
})(ResourceStatusOperationStateBeforeError || {});
// packages/client/app-engine-registry/src/lib/models/resource-status-pending-operation.ts
var ResourceStatusPendingOperation = /* @__PURE__ */ ((ResourceStatusPendingOperation2) => {
ResourceStatusPendingOperation2["Install"] = "INSTALL";
ResourceStatusPendingOperation2["Update"] = "UPDATE";
ResourceStatusPendingOperation2["Delete"] = "DELETE";
return ResourceStatusPendingOperation2;
})(ResourceStatusPendingOperation || {});
// packages/client/app-engine-registry/src/lib/models/resource-status-status.ts
var ResourceStatusStatus = /* @__PURE__ */ ((ResourceStatusStatus2) => {
ResourceStatusStatus2["Ok"] = "OK";
ResourceStatusStatus2["Pending"] = "PENDING";
ResourceStatusStatus2["Error"] = "ERROR";
return ResourceStatusStatus2;
})(ResourceStatusStatus || {});
// packages/client/app-engine-registry/src/lib/models/sub-resource-status-status.ts
var SubResourceStatusStatus = /* @__PURE__ */ ((SubResourceStatusStatus2) => {
SubResourceStatusStatus2["Scheduled"] = "SCHEDULED";
SubResourceStatusStatus2["Deploying"] = "DEPLOYING";
SubResourceStatusStatus2["Deployed"] = "DEPLOYED";
SubResourceStatusStatus2["Failed"] = "FAILED";
SubResourceStatusStatus2["NoResources"] = "NO_RESOURCES";
return SubResourceStatusStatus2;
})(SubResourceStatusStatus || {});
// packages/client/app-engine-registry/src/lib/models/sub-resource-status-sub-resource-type.ts
var SubResourceStatusSubResourceType = /* @__PURE__ */ ((SubResourceStatusSubResourceType2) => {
SubResourceStatusSubResourceType2["Functions"] = "FUNCTIONS";
SubResourceStatusSubResourceType2["Files"] = "FILES";
SubResourceStatusSubResourceType2["SettingsSchemas"] = "SETTINGS_SCHEMAS";
return SubResourceStatusSubResourceType2;
})(SubResourceStatusSubResourceType || {});
export {

@@ -1015,30 +1099,30 @@ AppEngineRegistryAppsClient,

SubResourceStatusSubResourceType,
_AppDefaultCspPolicyDirectivesTransformation,
_AppDefaultCspTransformation,
_AppIconTransformation,
_AppInfoListTransformation,
_AppInfoManifestTransformation,
_AppInfoTransformation,
_AppIsolatedUriTransformation,
_AppSignatureInfoTransformation,
_AppStubTransformation,
_ConstraintViolationTransformation,
_ErrorDetailsTransformation,
_ErrorEnvelopeTransformation,
_ErrorTransformation,
_ModificationInfoTransformation,
_ResourceContextOperationsItemTransformation,
_ResourceContextTransformation,
_ResourceStatusOperationStateBeforeErrorTransformation,
_ResourceStatusPendingOperationTransformation,
_ResourceStatusStatusTransformation,
_ResourceStatusTransformation,
_SearchAppActionActionsItemTransformation,
_SearchAppActionListTransformation,
_SearchAppActionTransformation,
_SubResourceConstraintViolationTransformation,
_SubResourceErrorTransformation,
_SubResourceStatusStatusTransformation,
_SubResourceStatusSubResourceTypeTransformation,
_SubResourceStatusTransformation,
app_default_csp_policy_directives_transformation_exports as _AppDefaultCspPolicyDirectivesTransformation,
app_default_csp_transformation_exports as _AppDefaultCspTransformation,
app_icon_transformation_exports as _AppIconTransformation,
app_info_list_transformation_exports as _AppInfoListTransformation,
app_info_manifest_transformation_exports as _AppInfoManifestTransformation,
app_info_transformation_exports as _AppInfoTransformation,
app_isolated_uri_transformation_exports as _AppIsolatedUriTransformation,
app_signature_info_transformation_exports as _AppSignatureInfoTransformation,
app_stub_transformation_exports as _AppStubTransformation,
constraint_violation_transformation_exports as _ConstraintViolationTransformation,
error_details_transformation_exports as _ErrorDetailsTransformation,
error_envelope_transformation_exports as _ErrorEnvelopeTransformation,
error_transformation_exports as _ErrorTransformation,
modification_info_transformation_exports as _ModificationInfoTransformation,
resource_context_operations_item_transformation_exports as _ResourceContextOperationsItemTransformation,
resource_context_transformation_exports as _ResourceContextTransformation,
resource_status_operation_state_before_error_transformation_exports as _ResourceStatusOperationStateBeforeErrorTransformation,
resource_status_pending_operation_transformation_exports as _ResourceStatusPendingOperationTransformation,
resource_status_status_transformation_exports as _ResourceStatusStatusTransformation,
resource_status_transformation_exports as _ResourceStatusTransformation,
search_app_action_actions_item_transformation_exports as _SearchAppActionActionsItemTransformation,
search_app_action_list_transformation_exports as _SearchAppActionListTransformation,
search_app_action_transformation_exports as _SearchAppActionTransformation,
sub_resource_constraint_violation_transformation_exports as _SubResourceConstraintViolationTransformation,
sub_resource_error_transformation_exports as _SubResourceErrorTransformation,
sub_resource_status_status_transformation_exports as _SubResourceStatusStatusTransformation,
sub_resource_status_sub_resource_type_transformation_exports as _SubResourceStatusSubResourceTypeTransformation,
sub_resource_status_transformation_exports as _SubResourceStatusTransformation,
appEngineRegistryAppsClient,

@@ -1045,0 +1129,0 @@ appEngineRegistrySchemaManifestClient,

{
"name": "@dynatrace-sdk/client-app-engine-registry",
"version": "1.0.4",
"version": "1.1.0",
"dependencies": {
"@dynatrace-sdk/http-client": "^1.0.1"
"@dynatrace-sdk/http-client": "^1.0.3"
},

@@ -7,0 +7,0 @@ "license": "Apache-2.0",

@@ -7,9 +7,1 @@ /**

}
/** @ignore */
export declare namespace _AppDefaultCspPolicyDirectivesTransformation {
interface AsJson {
[propName: string]: string[] | undefined;
}
function fromJson($model: AsJson): AppDefaultCspPolicyDirectives;
function toJson($model: AppDefaultCspPolicyDirectives): AsJson;
}

@@ -1,3 +0,2 @@

import { FormDataRequestBody, FormDataResponseBody } from '@dynatrace-sdk/http-client';
import { AppDefaultCspPolicyDirectives, _AppDefaultCspPolicyDirectivesTransformation } from './app-default-csp-policy-directives';
import { AppDefaultCspPolicyDirectives } from './app-default-csp-policy-directives';
/**

@@ -9,11 +8,1 @@ * Default Content Security Policies for apps.

}
/** @ignore */
export declare namespace _AppDefaultCspTransformation {
interface AsJson {
policyDirectives: _AppDefaultCspPolicyDirectivesTransformation.AsJson;
}
function fromJson($model: AsJson): AppDefaultCsp;
function toJson($model: AppDefaultCsp): AsJson;
function fromFormData(formData: FormDataResponseBody): AppDefaultCsp;
function toFormData($model: AppDefaultCsp): FormDataRequestBody;
}

@@ -10,9 +10,1 @@ /**

}
/** @ignore */
export declare namespace _AppIconTransformation {
interface AsJson {
href: string;
}
function fromJson($model: AsJson): AppIcon;
function toJson($model: AppIcon): AsJson;
}

@@ -1,2 +0,2 @@

import { AppInfo, _AppInfoTransformation } from './app-info';
import { AppInfo } from './app-info';
/**

@@ -11,9 +11,1 @@ * A list of minimal app representations.

}
/** @ignore */
export declare namespace _AppInfoListTransformation {
interface AsJson {
apps: _AppInfoTransformation.AsJson[];
}
function fromJson($model: AsJson): AppInfoList;
function toJson($model: AppInfoList): AsJson;
}

@@ -7,7 +7,1 @@ /**

export declare type AppInfoManifest = any;
/** @ignore */
export declare namespace _AppInfoManifestTransformation {
type AsJson = any;
function fromJson(model: AsJson): AppInfoManifest;
function toJson(model: AppInfoManifest): AsJson;
}

@@ -1,8 +0,8 @@

import { AppIcon, _AppIconTransformation } from './app-icon';
import { AppInfoManifest, _AppInfoManifestTransformation } from './app-info-manifest';
import { AppIsolatedUri, _AppIsolatedUriTransformation } from './app-isolated-uri';
import { AppSignatureInfo, _AppSignatureInfoTransformation } from './app-signature-info';
import { ModificationInfo, _ModificationInfoTransformation } from './modification-info';
import { ResourceContext, _ResourceContextTransformation } from './resource-context';
import { ResourceStatus, _ResourceStatusTransformation } from './resource-status';
import { AppIcon } from './app-icon';
import { AppInfoManifest } from './app-info-manifest';
import { AppIsolatedUri } from './app-isolated-uri';
import { AppSignatureInfo } from './app-signature-info';
import { ModificationInfo } from './modification-info';
import { ResourceContext } from './resource-context';
import { ResourceStatus } from './resource-status';
/**

@@ -36,19 +36,1 @@ * A minimal representation of an app.

}
/** @ignore */
export declare namespace _AppInfoTransformation {
interface AsJson {
id: string;
name: string;
version: string;
description: string;
manifest?: _AppInfoManifestTransformation.AsJson;
resourceStatus: _ResourceStatusTransformation.AsJson;
appIcon?: _AppIconTransformation.AsJson;
isolatedUri?: _AppIsolatedUriTransformation.AsJson;
signatureInfo: _AppSignatureInfoTransformation.AsJson;
modificationInfo: _ModificationInfoTransformation.AsJson;
resourceContext?: _ResourceContextTransformation.AsJson;
}
function fromJson($model: AsJson): AppInfo;
function toJson($model: AppInfo): AsJson;
}

@@ -18,11 +18,1 @@ /**

}
/** @ignore */
export declare namespace _AppIsolatedUriTransformation {
interface AsJson {
url: string;
baseUrl: string;
widgetUrl: string;
}
function fromJson($model: AsJson): AppIsolatedUri;
function toJson($model: AppIsolatedUri): AsJson;
}

@@ -14,10 +14,1 @@ /**

}
/** @ignore */
export declare namespace _AppSignatureInfoTransformation {
interface AsJson {
signed: boolean;
publisher?: string;
}
function fromJson($model: AsJson): AppSignatureInfo;
function toJson($model: AppSignatureInfo): AsJson;
}

@@ -10,9 +10,1 @@ /**

}
/** @ignore */
export declare namespace _AppStubTransformation {
interface AsJson {
id: string;
}
function fromJson($model: AsJson): AppStub;
function toJson($model: AppStub): AsJson;
}

@@ -14,10 +14,1 @@ /**

}
/** @ignore */
export declare namespace _ConstraintViolationTransformation {
interface AsJson {
path: string;
message: string;
}
function fromJson($model: AsJson): ConstraintViolation;
function toJson($model: ConstraintViolation): AsJson;
}

@@ -1,2 +0,2 @@

import { ConstraintViolation, _ConstraintViolationTransformation } from './constraint-violation';
import { ConstraintViolation } from './constraint-violation';
/**

@@ -19,11 +19,1 @@ * Contains details for 4xx and 5xx errors.

}
/** @ignore */
export declare namespace _ErrorDetailsTransformation {
interface AsJson {
errorRef?: string;
errorCode?: string;
constraintViolations?: _ConstraintViolationTransformation.AsJson[];
}
function fromJson($model: AsJson): ErrorDetails;
function toJson($model: ErrorDetails): AsJson;
}

@@ -1,3 +0,2 @@

import { FormDataRequestBody, FormDataResponseBody } from '@dynatrace-sdk/http-client';
import { Error, _ErrorTransformation } from './error';
import { Error } from './error';
/**

@@ -9,11 +8,1 @@ * Error response for all 4xx and 5xx errors.

}
/** @ignore */
export declare namespace _ErrorEnvelopeTransformation {
interface AsJson {
error: _ErrorTransformation.AsJson;
}
function fromJson($model: AsJson): ErrorEnvelope;
function toJson($model: ErrorEnvelope): AsJson;
function fromFormData(formData: FormDataResponseBody): ErrorEnvelope;
function toFormData($model: ErrorEnvelope): FormDataRequestBody;
}

@@ -1,2 +0,2 @@

import { ErrorDetails, _ErrorDetailsTransformation } from './error-details';
import { ErrorDetails } from './error-details';
/**

@@ -16,11 +16,1 @@ * Contains information for 4xx and 5xx errors.

}
/** @ignore */
export declare namespace _ErrorTransformation {
interface AsJson {
code: number;
message: string;
details?: _ErrorDetailsTransformation.AsJson;
}
function fromJson($model: AsJson): Error;
function toJson($model: Error): AsJson;
}
export * from './app-default-csp';
export * as _AppDefaultCspTransformation from './app-default-csp.transformation';
export * from './app-default-csp-policy-directives';
export * as _AppDefaultCspPolicyDirectivesTransformation from './app-default-csp-policy-directives.transformation';
export * from './app-icon';
export * as _AppIconTransformation from './app-icon.transformation';
export * from './app-info';
export * as _AppInfoTransformation from './app-info.transformation';
export * from './app-info-list';
export * as _AppInfoListTransformation from './app-info-list.transformation';
export * from './app-info-manifest';
export * as _AppInfoManifestTransformation from './app-info-manifest.transformation';
export * from './app-isolated-uri';
export * as _AppIsolatedUriTransformation from './app-isolated-uri.transformation';
export * from './app-signature-info';
export * as _AppSignatureInfoTransformation from './app-signature-info.transformation';
export * from './app-stub';
export * as _AppStubTransformation from './app-stub.transformation';
export * from './constraint-violation';
export * as _ConstraintViolationTransformation from './constraint-violation.transformation';
export * from './error';
export * as _ErrorTransformation from './error.transformation';
export * from './error-details';
export * as _ErrorDetailsTransformation from './error-details.transformation';
export * from './error-envelope';
export * as _ErrorEnvelopeTransformation from './error-envelope.transformation';
export * from './modification-info';
export * as _ModificationInfoTransformation from './modification-info.transformation';
export * from './resource-context';
export * as _ResourceContextTransformation from './resource-context.transformation';
export * from './resource-context-operations-item';
export * as _ResourceContextOperationsItemTransformation from './resource-context-operations-item.transformation';
export * from './resource-status';
export * as _ResourceStatusTransformation from './resource-status.transformation';
export * from './resource-status-operation-state-before-error';
export * as _ResourceStatusOperationStateBeforeErrorTransformation from './resource-status-operation-state-before-error.transformation';
export * from './resource-status-pending-operation';
export * as _ResourceStatusPendingOperationTransformation from './resource-status-pending-operation.transformation';
export * from './resource-status-status';
export * as _ResourceStatusStatusTransformation from './resource-status-status.transformation';
export * from './search-app-action';
export * as _SearchAppActionTransformation from './search-app-action.transformation';
export * from './search-app-action-actions-item';
export * as _SearchAppActionActionsItemTransformation from './search-app-action-actions-item.transformation';
export * from './search-app-action-list';
export * as _SearchAppActionListTransformation from './search-app-action-list.transformation';
export * from './sub-resource-constraint-violation';
export * as _SubResourceConstraintViolationTransformation from './sub-resource-constraint-violation.transformation';
export * from './sub-resource-error';
export * as _SubResourceErrorTransformation from './sub-resource-error.transformation';
export * from './sub-resource-status';
export * as _SubResourceStatusTransformation from './sub-resource-status.transformation';
export * from './sub-resource-status-status';
export * as _SubResourceStatusStatusTransformation from './sub-resource-status-status.transformation';
export * from './sub-resource-status-sub-resource-type';
export * as _SubResourceStatusSubResourceTypeTransformation from './sub-resource-status-sub-resource-type.transformation';

@@ -22,12 +22,1 @@ /**

}
/** @ignore */
export declare namespace _ModificationInfoTransformation {
interface AsJson {
createdBy: string;
createdAt: string;
lastModifiedBy: string;
lastModifiedAt: string;
}
function fromJson($model: AsJson): ModificationInfo;
function toJson($model: ModificationInfo): AsJson;
}

@@ -6,7 +6,1 @@ export declare enum ResourceContextOperationsItem {

}
/** @ignore */
export declare namespace _ResourceContextOperationsItemTransformation {
type AsJson = ResourceContextOperationsItem;
const toJson: (value: ResourceContextOperationsItem) => AsJson;
const fromJson: (value: AsJson) => ResourceContextOperationsItem;
}

@@ -1,2 +0,2 @@

import { ResourceContextOperationsItem, _ResourceContextOperationsItemTransformation } from './resource-context-operations-item';
import { ResourceContextOperationsItem } from './resource-context-operations-item';
/**

@@ -14,9 +14,1 @@ * Additional resource context information

}
/** @ignore */
export declare namespace _ResourceContextTransformation {
interface AsJson {
operations?: _ResourceContextOperationsItemTransformation.AsJson[];
}
function fromJson($model: AsJson): ResourceContext;
function toJson($model: ResourceContext): AsJson;
}

@@ -14,7 +14,1 @@ /**

}
/** @ignore */
export declare namespace _ResourceStatusOperationStateBeforeErrorTransformation {
type AsJson = ResourceStatusOperationStateBeforeError;
const toJson: (value: ResourceStatusOperationStateBeforeError) => AsJson;
const fromJson: (value: AsJson) => ResourceStatusOperationStateBeforeError;
}

@@ -12,7 +12,1 @@ /**

}
/** @ignore */
export declare namespace _ResourceStatusPendingOperationTransformation {
type AsJson = ResourceStatusPendingOperation;
const toJson: (value: ResourceStatusPendingOperation) => AsJson;
const fromJson: (value: AsJson) => ResourceStatusPendingOperation;
}

@@ -12,7 +12,1 @@ /**

}
/** @ignore */
export declare namespace _ResourceStatusStatusTransformation {
type AsJson = ResourceStatusStatus;
const toJson: (value: ResourceStatusStatus) => AsJson;
const fromJson: (value: AsJson) => ResourceStatusStatus;
}

@@ -1,5 +0,5 @@

import { ResourceStatusOperationStateBeforeError, _ResourceStatusOperationStateBeforeErrorTransformation } from './resource-status-operation-state-before-error';
import { ResourceStatusPendingOperation, _ResourceStatusPendingOperationTransformation } from './resource-status-pending-operation';
import { ResourceStatusStatus, _ResourceStatusStatusTransformation } from './resource-status-status';
import { SubResourceStatus, _SubResourceStatusTransformation } from './sub-resource-status';
import { ResourceStatusOperationStateBeforeError } from './resource-status-operation-state-before-error';
import { ResourceStatusPendingOperation } from './resource-status-pending-operation';
import { ResourceStatusStatus } from './resource-status-status';
import { SubResourceStatus } from './sub-resource-status';
/**

@@ -17,12 +17,1 @@ * The status of the app plus additional details.

}
/** @ignore */
export declare namespace _ResourceStatusTransformation {
interface AsJson {
status: _ResourceStatusStatusTransformation.AsJson;
subResourceStatuses?: _SubResourceStatusTransformation.AsJson[];
pendingOperation?: _ResourceStatusPendingOperationTransformation.AsJson;
operationStateBeforeError?: _ResourceStatusOperationStateBeforeErrorTransformation.AsJson;
}
function fromJson($model: AsJson): ResourceStatus;
function toJson($model: ResourceStatus): AsJson;
}

@@ -7,7 +7,1 @@ /**

export declare type SearchAppActionActionsItem = any;
/** @ignore */
export declare namespace _SearchAppActionActionsItemTransformation {
type AsJson = any;
function fromJson(model: AsJson): SearchAppActionActionsItem;
function toJson(model: SearchAppActionActionsItem): AsJson;
}

@@ -1,2 +0,2 @@

import { SearchAppAction, _SearchAppActionTransformation } from './search-app-action';
import { SearchAppAction } from './search-app-action';
export interface SearchAppActionList {

@@ -9,10 +9,1 @@ apps: SearchAppAction[];

}
/** @ignore */
export declare namespace _SearchAppActionListTransformation {
interface AsJson {
apps: _SearchAppActionTransformation.AsJson[];
totalCount: number;
}
function fromJson($model: AsJson): SearchAppActionList;
function toJson($model: SearchAppActionList): AsJson;
}

@@ -1,2 +0,2 @@

import { SearchAppActionActionsItem, _SearchAppActionActionsItemTransformation } from './search-app-action-actions-item';
import { SearchAppActionActionsItem } from './search-app-action-actions-item';
/**

@@ -19,11 +19,1 @@ * List of apps with actions. Apps are sorted by name in ascending order.

}
/** @ignore */
export declare namespace _SearchAppActionTransformation {
interface AsJson {
id: string;
name: string;
actions: _SearchAppActionActionsItemTransformation.AsJson[];
}
function fromJson($model: AsJson): SearchAppAction;
function toJson($model: SearchAppAction): AsJson;
}

@@ -14,10 +14,1 @@ /**

}
/** @ignore */
export declare namespace _SubResourceConstraintViolationTransformation {
interface AsJson {
path?: string;
message: string;
}
function fromJson($model: AsJson): SubResourceConstraintViolation;
function toJson($model: SubResourceConstraintViolation): AsJson;
}

@@ -1,2 +0,2 @@

import { SubResourceConstraintViolation, _SubResourceConstraintViolationTransformation } from './sub-resource-constraint-violation';
import { SubResourceConstraintViolation } from './sub-resource-constraint-violation';
/**

@@ -23,12 +23,1 @@ * Additional error information that can be present if the sub resource `status` is `FAILED`

}
/** @ignore */
export declare namespace _SubResourceErrorTransformation {
interface AsJson {
message: string;
errorCode?: string;
errorRef?: string;
constraintViolations?: _SubResourceConstraintViolationTransformation.AsJson[];
}
function fromJson($model: AsJson): SubResourceError;
function toJson($model: SubResourceError): AsJson;
}

@@ -16,7 +16,1 @@ /**

}
/** @ignore */
export declare namespace _SubResourceStatusStatusTransformation {
type AsJson = SubResourceStatusStatus;
const toJson: (value: SubResourceStatusStatus) => AsJson;
const fromJson: (value: AsJson) => SubResourceStatusStatus;
}

@@ -12,7 +12,1 @@ /**

}
/** @ignore */
export declare namespace _SubResourceStatusSubResourceTypeTransformation {
type AsJson = SubResourceStatusSubResourceType;
const toJson: (value: SubResourceStatusSubResourceType) => AsJson;
const fromJson: (value: AsJson) => SubResourceStatusSubResourceType;
}

@@ -1,5 +0,4 @@

import { FormDataRequestBody, FormDataResponseBody } from '@dynatrace-sdk/http-client';
import { SubResourceError, _SubResourceErrorTransformation } from './sub-resource-error';
import { SubResourceStatusStatus, _SubResourceStatusStatusTransformation } from './sub-resource-status-status';
import { SubResourceStatusSubResourceType, _SubResourceStatusSubResourceTypeTransformation } from './sub-resource-status-sub-resource-type';
import { SubResourceError } from './sub-resource-error';
import { SubResourceStatusStatus } from './sub-resource-status-status';
import { SubResourceStatusSubResourceType } from './sub-resource-status-sub-resource-type';
/**

@@ -13,13 +12,1 @@ * The status of the sub resource.

}
/** @ignore */
export declare namespace _SubResourceStatusTransformation {
interface AsJson {
subResourceType: _SubResourceStatusSubResourceTypeTransformation.AsJson;
status: _SubResourceStatusStatusTransformation.AsJson;
error?: _SubResourceErrorTransformation.AsJson;
}
function fromJson($model: AsJson): SubResourceStatus;
function toJson($model: SubResourceStatus): AsJson;
function fromFormData(formData: FormDataResponseBody): SubResourceStatus;
function toFormData($model: SubResourceStatus): FormDataRequestBody;
}

@@ -10,2 +10,3 @@ import { ErrorType } from './error-type';

type: ErrorType.COMMON;
errorRef?: string;
}

@@ -12,2 +12,3 @@ import { ErrorType } from './error-type';

body?: unknown;
errorRef?: string;
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc