SDK
API Documentation
asset-core
variables
Assettypepolicy

Variable: assetTypePolicy

const assetTypePolicy: object

Type declaration

GroupedAssetOutput

GroupedAssetOutput: object

GroupedAssetOutput.fields

GroupedAssetOutput.fields: object

GroupedAssetOutput.fields.thumbnailPath

GroupedAssetOutput.fields.thumbnailPath: object

GroupedAssetOutput.fields.thumbnailPath.merge()

GroupedAssetOutput.fields.thumbnailPath.merge: (existing?, incomming?) => undefined | null | string = mergePresignedImagePath

Every time the API responds with an item that has an image attached, the presigned signature (that is there for authentication purposes) of that image gets changed. This prevents the browser from caching these images and forces a slow reload that is noticable in the UI.

To prevent this we compare the base path of the image without the signature part and simply don't replace the image in the cache if it hasn't changed.

Parameters

ParameterType
existing?string
incomming?string

Returns

undefined | null | string

ProjectMemberOutput

ProjectMemberOutput: object

ProjectMemberOutput.keyFields

ProjectMemberOutput.keyFields: string[]

ProjectOutput

ProjectOutput: object

ProjectOutput.fields

ProjectOutput.fields: object

ProjectOutput.fields.thumbnailPath

ProjectOutput.fields.thumbnailPath: object

ProjectOutput.fields.thumbnailPath.merge()

ProjectOutput.fields.thumbnailPath.merge: (existing?, incomming?) => undefined | null | string = mergePresignedImagePath

Every time the API responds with an item that has an image attached, the presigned signature (that is there for authentication purposes) of that image gets changed. This prevents the browser from caching these images and forces a slow reload that is noticable in the UI.

To prevent this we compare the base path of the image without the signature part and simply don't replace the image in the cache if it hasn't changed.

Parameters

ParameterType
existing?string
incomming?string

Returns

undefined | null | string

SearchOutput

SearchOutput: object

SearchOutput.keyFields

SearchOutput.keyFields: string[]

SimpleUserProfileOutput

SimpleUserProfileOutput: object

SimpleUserProfileOutput.fields

SimpleUserProfileOutput.fields: object

SimpleUserProfileOutput.fields.profilePictureUrl

SimpleUserProfileOutput.fields.profilePictureUrl: object

SimpleUserProfileOutput.fields.profilePictureUrl.merge()

SimpleUserProfileOutput.fields.profilePictureUrl.merge: (existing?, incomming?) => undefined | null | string = mergePresignedImagePath

Every time the API responds with an item that has an image attached, the presigned signature (that is there for authentication purposes) of that image gets changed. This prevents the browser from caching these images and forces a slow reload that is noticable in the UI.

To prevent this we compare the base path of the image without the signature part and simply don't replace the image in the cache if it hasn't changed.

Parameters

ParameterType
existing?string
incomming?string

Returns

undefined | null | string

UserProfileOutput

UserProfileOutput: object

UserProfileOutput.fields

UserProfileOutput.fields: object

UserProfileOutput.fields.profilePictureUrl

UserProfileOutput.fields.profilePictureUrl: object

UserProfileOutput.fields.profilePictureUrl.merge()

UserProfileOutput.fields.profilePictureUrl.merge: (existing?, incomming?) => undefined | null | string = mergePresignedImagePath

Every time the API responds with an item that has an image attached, the presigned signature (that is there for authentication purposes) of that image gets changed. This prevents the browser from caching these images and forces a slow reload that is noticable in the UI.

To prevent this we compare the base path of the image without the signature part and simply don't replace the image in the cache if it hasn't changed.

Parameters

ParameterType
existing?string
incomming?string

Returns

undefined | null | string

Defined in

api/assetTypePolicy.ts:19 (opens in a new tab)