Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/sixty-pants-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sitecore-marketplace-sdk/core': patch
---

Extend touchpoints context
23 changes: 23 additions & 0 deletions packages/core/src/shared-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ export class GenericResponseData {
}
}

/**
* Represents a resource in an application runtime context.
*/
export interface ApplicationResourceContext {
resourceId: string;
tenantId: string;
Expand All @@ -111,9 +114,27 @@ export interface ApplicationResourceContext {
[key: string]: any;
}

/**
* Represents a touchpoint metadata in an application runtime context.
*/
export interface ApplicationTouchpointMetaContext {
route: string;
id: string;
title?: string;
description?: string;
iconUrl?: string;
pictureUrl?: string;
developerName?: string;
[key: string]: any;
}

/**
* Represents a touchpoint in an application runtime context.
*/
export interface ApplicationTouchpointContext {
touchpointId: string;
route?: string;
meta?: ApplicationTouchpointMetaContext[];
[key: string]: any;
}

Expand Down Expand Up @@ -142,9 +163,11 @@ export interface ApplicationRuntimeContext {
url: string;
iconUrl?: string;
state: string;
[key: string]: any;
};
resources: ApplicationResourceContext[];
touchpoints: ApplicationTouchpointContext[];
[key: string]: any;
}

/**
Expand Down