@spottoai/types-package 1.0.2-beta.164 → 1.0.2-beta.166
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,18 +4,19 @@ export type ResourceRecommendationStatesQuery = {
|
|
|
4
4
|
providerName: ProviderName;
|
|
5
5
|
scope: 'resource';
|
|
6
6
|
resourceId: string;
|
|
7
|
-
recommendationId
|
|
8
|
-
providerScopeId?:
|
|
7
|
+
recommendationId: string;
|
|
8
|
+
providerScopeId?: never;
|
|
9
9
|
};
|
|
10
10
|
export type ProviderScopeRecommendationStatesQuery = {
|
|
11
11
|
providerName: ProviderName;
|
|
12
12
|
scope: 'providerScope';
|
|
13
13
|
providerScopeId: string;
|
|
14
|
-
recommendationId
|
|
15
|
-
resourceId?:
|
|
14
|
+
recommendationId: string;
|
|
15
|
+
resourceId?: never;
|
|
16
16
|
};
|
|
17
17
|
/** @deprecated Use ProviderScopeRecommendationStatesQuery */
|
|
18
18
|
export type SubscriptionRecommendationStatesQuery = ProviderScopeRecommendationStatesQuery;
|
|
19
|
+
/** @deprecated Use GetRecommendationStatesQuery */
|
|
19
20
|
export type LegacyGetRecommendationStatesQuery = {
|
|
20
21
|
providerName: ProviderName;
|
|
21
22
|
resourceId: string;
|
|
@@ -27,16 +28,9 @@ export type LegacyGetRecommendationStatesQuery = {
|
|
|
27
28
|
resourceId?: string;
|
|
28
29
|
providerScopeId: string;
|
|
29
30
|
};
|
|
30
|
-
export type GetRecommendationStatesQuery = ResourceRecommendationStatesQuery | ProviderScopeRecommendationStatesQuery
|
|
31
|
-
/**
|
|
32
|
-
export interface
|
|
33
|
-
/**
|
|
34
|
-
* Scope discriminator for recommendation commentary identity.
|
|
35
|
-
* Optional for backward compatibility with legacy payloads.
|
|
36
|
-
*/
|
|
37
|
-
scope?: CommentScope;
|
|
38
|
-
/** Partition Key: resourceId (Hash) */
|
|
39
|
-
resourceId: string;
|
|
31
|
+
export type GetRecommendationStatesQuery = ResourceRecommendationStatesQuery | ProviderScopeRecommendationStatesQuery;
|
|
32
|
+
/** Shared recommendation-state properties across scope variants. */
|
|
33
|
+
export interface RecommendationStateBase extends ProviderScope {
|
|
40
34
|
/**
|
|
41
35
|
* Deprecated alias retained for compatibility with older UI consumers.
|
|
42
36
|
* Prefer `providerScopeId`.
|
|
@@ -60,6 +54,10 @@ export interface RecommendationState extends ProviderScope {
|
|
|
60
54
|
updatedAt?: Date;
|
|
61
55
|
/** true if the recommendation is flagged */
|
|
62
56
|
flagged: boolean;
|
|
57
|
+
/** Latest successful share provider (normalized lowercase channel name). */
|
|
58
|
+
integrationProviderName?: string;
|
|
59
|
+
/** Latest successful share reference (ticket id, recipient email, or provider identifier). */
|
|
60
|
+
integrationTicketId?: string;
|
|
63
61
|
comments: Comment[];
|
|
64
62
|
/** ID of the pinned comment */
|
|
65
63
|
pinnedCommentId?: string;
|
|
@@ -70,16 +68,34 @@ export interface RecommendationState extends ProviderScope {
|
|
|
70
68
|
/** Date when the status is expected to change */
|
|
71
69
|
statusEndAt?: string;
|
|
72
70
|
}
|
|
73
|
-
export
|
|
71
|
+
export interface ResourceRecommendationState extends RecommendationStateBase {
|
|
72
|
+
/**
|
|
73
|
+
* Scope discriminator for recommendation commentary identity.
|
|
74
|
+
* Resource scope identity is keyed by `resourceId + recommendationId`.
|
|
75
|
+
*/
|
|
74
76
|
scope: 'resource';
|
|
77
|
+
/** Partition Key: resourceId (Hash) */
|
|
75
78
|
resourceId: string;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
}
|
|
80
|
+
export interface ProviderScopeRecommendationState extends RecommendationStateBase {
|
|
81
|
+
/**
|
|
82
|
+
* Scope discriminator for recommendation commentary identity.
|
|
83
|
+
* Provider scope identity is keyed by `providerScopeId + recommendationId`.
|
|
84
|
+
*/
|
|
79
85
|
scope: 'providerScope';
|
|
80
|
-
|
|
81
|
-
resourceId?:
|
|
86
|
+
/** Provider-scope commentary must not rely on resource identity. */
|
|
87
|
+
resourceId?: never;
|
|
88
|
+
}
|
|
89
|
+
export type RecommendationState = ResourceRecommendationState | ProviderScopeRecommendationState;
|
|
90
|
+
/** @deprecated Use RecommendationState */
|
|
91
|
+
export type LegacyRecommendationState = RecommendationStateBase & {
|
|
92
|
+
scope?: CommentScope;
|
|
93
|
+
resourceId: string;
|
|
82
94
|
};
|
|
95
|
+
/** @deprecated Use RecommendationState */
|
|
96
|
+
export type RecommendationStateRecord = RecommendationState | LegacyRecommendationState;
|
|
97
|
+
export type ResourceRecommendationStateWriteRequest = ResourceRecommendationState;
|
|
98
|
+
export type ProviderScopeRecommendationStateWriteRequest = ProviderScopeRecommendationState;
|
|
83
99
|
/** @deprecated Use ProviderScopeRecommendationStateWriteRequest */
|
|
84
100
|
export type SubscriptionRecommendationStateWriteRequest = ProviderScopeRecommendationStateWriteRequest;
|
|
85
101
|
export type SaveRecommendationStateRequest = ResourceRecommendationStateWriteRequest | ProviderScopeRecommendationStateWriteRequest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recommendationState.d.ts","sourceRoot":"","sources":["../../src/azure/recommendationState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEtE,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,eAAe,CAAC;AAExD,MAAM,MAAM,iCAAiC,GAAG;IAC9C,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,EAAE,UAAU,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"recommendationState.d.ts","sourceRoot":"","sources":["../../src/azure/recommendationState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEtE,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,eAAe,CAAC;AAExD,MAAM,MAAM,iCAAiC,GAAG;IAC9C,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