@antcde/connect-ts 0.4.26 → 0.4.27-rc.2
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.
- package/README.md +67 -3
- package/build/AntConnect.d.ts +8 -0
- package/build/AntConnect.d.ts.map +1 -1
- package/build/AntConnect.js +8 -0
- package/build/AntHttpClient.d.ts +0 -5
- package/build/AntHttpClient.d.ts.map +1 -1
- package/build/AntHttpClient.js +0 -5
- package/build/ai/index.d.ts +5 -0
- package/build/ai/index.d.ts.map +1 -0
- package/build/ai/index.js +3 -0
- package/build/ai/mutationDescriptors.d.ts +3 -0
- package/build/ai/mutationDescriptors.d.ts.map +1 -0
- package/build/ai/mutationDescriptors.js +207 -0
- package/build/ai/mutationTargets.d.ts +21 -0
- package/build/ai/mutationTargets.d.ts.map +1 -0
- package/build/ai/mutationTargets.js +72 -0
- package/build/ai/queryDescriptors.d.ts +3 -0
- package/build/ai/queryDescriptors.d.ts.map +1 -0
- package/build/ai/queryDescriptors.js +174 -0
- package/build/ai/types.d.ts +35 -0
- package/build/ai/types.d.ts.map +1 -0
- package/build/comms/client.js +1 -1
- package/build/comms/hostAPI.js +1 -1
- package/build/comms/models.d.ts +20 -2
- package/build/comms/models.d.ts.map +1 -1
- package/build/comms/signalChangeTypes.d.ts +27 -1
- package/build/comms/signalChangeTypes.d.ts.map +1 -1
- package/build/comms/signalChangeTypes.js +7 -0
- package/build/comms/signalTypes.d.ts +21 -3
- package/build/comms/signalTypes.d.ts.map +1 -1
- package/build/index.d.ts +8 -35
- package/build/index.d.ts.map +1 -1
- package/build/index.js +8 -3
- package/build/service-runtime.d.ts +9 -0
- package/build/service-runtime.d.ts.map +1 -0
- package/build/service-runtime.js +10 -0
- package/build/service-types-app.d.ts +2 -0
- package/build/service-types-app.d.ts.map +1 -0
- package/build/service-types-app.js +3 -0
- package/build/service-types.d.ts +37 -0
- package/build/service-types.d.ts.map +1 -0
- package/build/service-types.js +7 -0
- package/build/services/AiService.d.ts +18 -0
- package/build/services/AiService.d.ts.map +1 -0
- package/build/services/AiService.js +9 -0
- package/build/services/AppService/factory/accessRequests.d.ts +19 -0
- package/build/services/AppService/factory/accessRequests.d.ts.map +1 -0
- package/build/services/AppService/factory/accessRequests.js +17 -0
- package/build/services/AppService/factory/assignments.d.ts +57 -0
- package/build/services/AppService/factory/assignments.d.ts.map +1 -0
- package/build/services/AppService/factory/assignments.js +30 -0
- package/build/services/AppService/factory/channels.d.ts +35 -0
- package/build/services/AppService/factory/channels.d.ts.map +1 -0
- package/build/services/AppService/factory/channels.js +18 -0
- package/build/services/AppService/factory/formData.d.ts +14 -0
- package/build/services/AppService/factory/formData.d.ts.map +1 -0
- package/build/services/AppService/factory/formData.js +50 -0
- package/build/services/AppService/factory/media.d.ts +17 -0
- package/build/services/AppService/factory/media.d.ts.map +1 -0
- package/build/services/AppService/factory/media.js +10 -0
- package/build/services/AppService/factory/resourceAccess.d.ts +21 -0
- package/build/services/AppService/factory/resourceAccess.d.ts.map +1 -0
- package/build/services/AppService/factory/resourceAccess.js +37 -0
- package/build/services/AppService/factory/resourceCommerce.d.ts +52 -0
- package/build/services/AppService/factory/resourceCommerce.d.ts.map +1 -0
- package/build/services/AppService/factory/resourceCommerce.js +18 -0
- package/build/services/AppService/factory/resourceSnapshot.d.ts +62 -0
- package/build/services/AppService/factory/resourceSnapshot.d.ts.map +1 -0
- package/build/services/AppService/factory/resourceSnapshot.js +34 -0
- package/build/services/AppService/factory/resources.d.ts +153 -0
- package/build/services/AppService/factory/resources.d.ts.map +1 -0
- package/build/services/AppService/factory/resources.js +44 -0
- package/build/services/AppService/factory/subscriptions.d.ts +73 -0
- package/build/services/AppService/factory/subscriptions.d.ts.map +1 -0
- package/build/services/AppService/factory/subscriptions.js +39 -0
- package/build/services/AppService/index.d.ts +59 -0
- package/build/services/AppService/index.d.ts.map +1 -0
- package/build/services/AppService/index.js +76 -0
- package/build/services/AppService/types/accessRequests.d.ts +164 -0
- package/build/services/AppService/types/accessRequests.d.ts.map +1 -0
- package/build/services/AppService/types/app.d.ts +124 -0
- package/build/services/AppService/types/app.d.ts.map +1 -0
- package/build/services/AppService/types/app.js +6 -0
- package/build/services/AppService/types/appCategories.d.ts +16 -0
- package/build/services/AppService/types/appCategories.d.ts.map +1 -0
- package/build/services/AppService/types/appCategories.js +1 -0
- package/build/services/AppService/types/appChangelog.d.ts +31 -0
- package/build/services/AppService/types/appChangelog.d.ts.map +1 -0
- package/build/services/AppService/types/appChangelog.js +1 -0
- package/build/services/AppService/types/appConfigStatus.d.ts +68 -0
- package/build/services/AppService/types/appConfigStatus.d.ts.map +1 -0
- package/build/services/AppService/types/appConfigStatus.js +11 -0
- package/build/services/AppService/types/appList.d.ts +211 -0
- package/build/services/AppService/types/appList.d.ts.map +1 -0
- package/build/services/AppService/types/appList.js +1 -0
- package/build/services/AppService/types/appManifest.d.ts +100 -0
- package/build/services/AppService/types/appManifest.d.ts.map +1 -0
- package/build/services/AppService/types/appManifest.js +4 -0
- package/build/services/AppService/types/appMedia.d.ts +136 -0
- package/build/services/AppService/types/appMedia.d.ts.map +1 -0
- package/build/services/AppService/types/appMedia.js +1 -0
- package/build/services/AppService/types/appRequests.d.ts +126 -0
- package/build/services/AppService/types/appRequests.d.ts.map +1 -0
- package/build/services/AppService/types/appRequests.js +1 -0
- package/build/services/AppService/types/appScopes.d.ts +165 -0
- package/build/services/AppService/types/appScopes.d.ts.map +1 -0
- package/build/services/AppService/types/appScopes.js +1 -0
- package/build/services/AppService/types/channels.d.ts +45 -0
- package/build/services/AppService/types/channels.d.ts.map +1 -0
- package/build/services/AppService/types/channels.js +1 -0
- package/build/services/AppService/types/pricingTiers.d.ts +111 -0
- package/build/services/AppService/types/pricingTiers.d.ts.map +1 -0
- package/build/services/AppService/types/pricingTiers.js +1 -0
- package/build/services/AppService/types/publisherStats.d.ts +20 -0
- package/build/services/AppService/types/publisherStats.d.ts.map +1 -0
- package/build/services/AppService/types/publisherStats.js +1 -0
- package/build/services/AppService/types/releaseChannels.d.ts +127 -0
- package/build/services/AppService/types/releaseChannels.d.ts.map +1 -0
- package/build/services/AppService/types/releaseChannels.js +1 -0
- package/build/services/AppService/types/resourceEntitlements.d.ts +101 -0
- package/build/services/AppService/types/resourceEntitlements.d.ts.map +1 -0
- package/build/services/AppService/types/resourceEntitlements.js +1 -0
- package/build/services/AppService/types/resourceReleases.d.ts +143 -0
- package/build/services/AppService/types/resourceReleases.d.ts.map +1 -0
- package/build/services/AppService/types/resourceReleases.js +1 -0
- package/build/services/AppService/types/resourceRequests.d.ts +105 -0
- package/build/services/AppService/types/resourceRequests.d.ts.map +1 -0
- package/build/services/AppService/types/resourceRequests.js +1 -0
- package/build/services/AppService/types/seats.d.ts +220 -0
- package/build/services/AppService/types/seats.d.ts.map +1 -0
- package/build/services/AppService/types/seats.js +4 -0
- package/build/services/AppService/types/sellableResources.d.ts +189 -0
- package/build/services/AppService/types/sellableResources.d.ts.map +1 -0
- package/build/services/AppService/types/sellableResources.js +1 -0
- package/build/services/AppService/types/snapshotPayload.d.ts +146 -0
- package/build/services/AppService/types/snapshotPayload.d.ts.map +1 -0
- package/build/services/AppService/types/snapshotPayload.js +16 -0
- package/build/services/AppService/types/snapshotSources.d.ts +98 -0
- package/build/services/AppService/types/snapshotSources.d.ts.map +1 -0
- package/build/services/AppService/types/snapshotSources.js +7 -0
- package/build/services/AppService/types/subscriptions.d.ts +182 -0
- package/build/services/AppService/types/subscriptions.d.ts.map +1 -0
- package/build/services/AppService/types/subscriptions.js +1 -0
- package/build/services/AppService/types.d.ts +23 -0
- package/build/services/AppService/types.d.ts.map +1 -0
- package/build/services/AppService/types.js +25 -0
- package/build/services/DmsService.d.ts +13 -0
- package/build/services/DmsService.d.ts.map +1 -1
- package/build/services/DmsServiceImpl.d.ts.map +1 -1
- package/build/services/DmsServiceImpl.js +8 -0
- package/build/services/LicenseService.d.ts +1 -1
- package/build/services/LicenseService.d.ts.map +1 -1
- package/build/services/LicenseService.js +1 -1
- package/build/services/OAuthClientService.d.ts +20 -0
- package/build/services/OAuthClientService.d.ts.map +1 -0
- package/build/services/OAuthClientService.js +12 -0
- package/build/services/OAuthClientService.types.d.ts +37 -0
- package/build/services/OAuthClientService.types.d.ts.map +1 -0
- package/build/services/OAuthClientService.types.js +4 -0
- package/build/services/ProjectService.d.ts +1 -0
- package/build/services/ProjectService.d.ts.map +1 -1
- package/build/services/ReleaseService.d.ts +1 -0
- package/build/services/ReleaseService.d.ts.map +1 -1
- package/build/services/SecretService.d.ts +22 -0
- package/build/services/SecretService.d.ts.map +1 -0
- package/build/services/SecretService.js +21 -0
- package/build/services/SecretService.types.d.ts +147 -0
- package/build/services/SecretService.types.d.ts.map +1 -0
- package/build/services/SecretService.types.js +1 -0
- package/build/services/SecretSharing.types.d.ts +112 -0
- package/build/services/SecretSharing.types.d.ts.map +1 -0
- package/build/services/SecretSharing.types.js +1 -0
- package/build/services/TableService.js +7 -7
- package/build/services/TaskService.d.ts +3 -3
- package/build/services/TaskService.d.ts.map +1 -1
- package/build/services/TaskService.js +1 -1
- package/build/services/TaskService.types.d.ts +21 -4
- package/build/services/TaskService.types.d.ts.map +1 -1
- package/build/services/TaskServiceQueries.d.ts +2 -0
- package/build/services/TaskServiceQueries.d.ts.map +1 -1
- package/build/services/TaskServiceQueries.js +13 -2
- package/build/services/TaskTemplate.types.d.ts +74 -1
- package/build/services/TaskTemplate.types.d.ts.map +1 -1
- package/build/services/TokenService.d.ts +5 -1
- package/build/services/TokenService.d.ts.map +1 -1
- package/build/services/TokenService.js +1 -2
- package/build/services/UserService.d.ts +3 -0
- package/build/services/UserService.d.ts.map +1 -1
- package/build/services/UserService.js +4 -4
- package/build/services/Webhook/TriggerHistoryService.d.ts +1 -1
- package/build/services/Webhook/TriggerHistoryService.d.ts.map +1 -1
- package/build/services/Webhook/TriggerSecretService.d.ts +88 -0
- package/build/services/Webhook/TriggerSecretService.d.ts.map +1 -0
- package/build/services/Webhook/TriggerSecretService.js +9 -0
- package/build/services/Webhook/TriggerService.d.ts +28 -0
- package/build/services/Webhook/TriggerService.d.ts.map +1 -1
- package/build/services/Webhook/TriggerService.js +10 -0
- package/build/services/Websockets/StoreEvents.d.ts +44 -0
- package/build/services/Websockets/StoreEvents.d.ts.map +1 -0
- package/build/services/Websockets/StoreEvents.js +5 -0
- package/build/services/userPreferences.d.ts +37 -0
- package/build/services/userPreferences.d.ts.map +1 -0
- package/build/services/userPreferences.js +39 -0
- package/package.json +8 -7
- package/schemas/app-config.schema.json +85 -8
- package/build/services/AppManifest.d.ts +0 -39
- package/build/services/AppManifest.d.ts.map +0 -1
- package/build/services/AppService.d.ts +0 -57
- package/build/services/AppService.d.ts.map +0 -1
- package/build/services/AppService.js +0 -47
- package/build/services/AppService.types.d.ts +0 -173
- package/build/services/AppService.types.d.ts.map +0 -1
- /package/build/{services/AppManifest.js → ai/types.js} +0 -0
- /package/build/services/{AppService.types.js → AppService/types/accessRequests.js} +0 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import type { SnapshotPayloadConfig, SnapshotPayloadSchema } from './snapshotPayload';
|
|
2
|
+
import type { SnapshotErrorCode, SnapshotErrorContext } from './snapshotSources';
|
|
3
|
+
/**
|
|
4
|
+
* Release-side shapes for sellable resources (AAD-898): versions, channels, and
|
|
5
|
+
* the impact preview an unpublish is confirmed against.
|
|
6
|
+
*
|
|
7
|
+
* Split out of `sellableResources.ts` purely for file size; every type here is
|
|
8
|
+
* re-exported through the same barrel and the public surface is unchanged.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Whether a version's payload is ready to be served.
|
|
12
|
+
*
|
|
13
|
+
* **This is the asynchronous completion signal, and since AAD-939 it is genuinely
|
|
14
|
+
* asynchronous.** A `snapshot` version is created `pending` and a QUEUED JOB flips
|
|
15
|
+
* it to `ready` or `failed`. Poll `fetchResourceVersion()` until this leaves
|
|
16
|
+
* `pending`; on `failed`, show `payload_error`.
|
|
17
|
+
*
|
|
18
|
+
* Before AAD-939 every version came back `ready`, so code that ignored this field
|
|
19
|
+
* still worked by accident. It no longer does — a UI built against the create
|
|
20
|
+
* response silently shows nothing while the job runs, and its Publish button 422s.
|
|
21
|
+
*/
|
|
22
|
+
export type ResourcePayloadState = 'pending' | 'ready' | 'failed';
|
|
23
|
+
/** The trimmed version shape embedded on channels and entitlements. */
|
|
24
|
+
export interface ResourceVersionSummary {
|
|
25
|
+
id: string;
|
|
26
|
+
version: string;
|
|
27
|
+
payload_state: ResourcePayloadState;
|
|
28
|
+
}
|
|
29
|
+
export interface ResourceVersion {
|
|
30
|
+
id: string;
|
|
31
|
+
resource_id: string;
|
|
32
|
+
version: string;
|
|
33
|
+
release_notes: string | null;
|
|
34
|
+
payload_state: ResourcePayloadState;
|
|
35
|
+
/**
|
|
36
|
+
* Publisher-facing failure reason when `payload_state` is `failed`.
|
|
37
|
+
*
|
|
38
|
+
* English-only. Use it as the FALLBACK and branch on `payload_error_code` — a
|
|
39
|
+
* prose string cannot be localised for the nl/de builds, and the numbers in it
|
|
40
|
+
* cannot be read reliably.
|
|
41
|
+
*/
|
|
42
|
+
payload_error: string | null;
|
|
43
|
+
/** Machine-readable failure, for branching and translation (AAD-939). */
|
|
44
|
+
payload_error_code: SnapshotErrorCode | null;
|
|
45
|
+
/**
|
|
46
|
+
* The numbers behind the failure.
|
|
47
|
+
*
|
|
48
|
+
* This is the ONLY place they exist for a failed version: a version can fail
|
|
49
|
+
* without ever being previewed, because the source table grew between previewing
|
|
50
|
+
* and the job running — which is exactly the case the refuse-rather-than-truncate
|
|
51
|
+
* design exists for.
|
|
52
|
+
*/
|
|
53
|
+
payload_error_context: SnapshotErrorContext | null;
|
|
54
|
+
/**
|
|
55
|
+
* The declared field names/types/nullability/ordering of the payload. Null until
|
|
56
|
+
* the materialisation job records it; AAD-942 builds structural diffs on top.
|
|
57
|
+
*
|
|
58
|
+
* Typed for snapshots because they are the only payload type that records one
|
|
59
|
+
* today. Narrow with `isSnapshotPayloadSchema()` rather than casting if you render
|
|
60
|
+
* `fields` — AAD-899 may store a different shape here.
|
|
61
|
+
*/
|
|
62
|
+
payload_schema: SnapshotPayloadSchema | null;
|
|
63
|
+
/**
|
|
64
|
+
* What the publisher selected: source table, columns, filters, declarations
|
|
65
|
+
* (AAD-939).
|
|
66
|
+
*
|
|
67
|
+
* ⚠️ **PUBLISHER-ONLY, and ABSENT rather than null for anyone else.** It names the
|
|
68
|
+
* publisher's own dynamic table and its column ids, which a buyer is not entitled
|
|
69
|
+
* to — buyers get the data and the declared schema. Check presence, do not assume
|
|
70
|
+
* a null: the key is omitted entirely for a non-publisher.
|
|
71
|
+
*/
|
|
72
|
+
payload_config?: SnapshotPayloadConfig | Record<string, unknown> | null;
|
|
73
|
+
/**
|
|
74
|
+
* Rows in the materialised dataset, flattened out of `payload_schema`.
|
|
75
|
+
*
|
|
76
|
+
* Null before materialisation, so "not known yet" and "zero rows" stay
|
|
77
|
+
* distinguishable — a dataset genuinely can be empty.
|
|
78
|
+
*/
|
|
79
|
+
row_count: number | null;
|
|
80
|
+
/** Size in bytes of the canonical JSON representation. Null before materialisation. */
|
|
81
|
+
byte_size: number | null;
|
|
82
|
+
/**
|
|
83
|
+
* The channels this version is live on. A version can serve several.
|
|
84
|
+
*
|
|
85
|
+
* `published_at` is when this version became THAT channel's active version. Null
|
|
86
|
+
* if it was set outside the publish path.
|
|
87
|
+
*/
|
|
88
|
+
serving_channels: Array<{
|
|
89
|
+
id: string;
|
|
90
|
+
name: string;
|
|
91
|
+
is_default: boolean;
|
|
92
|
+
published_at: string | null;
|
|
93
|
+
}>;
|
|
94
|
+
/**
|
|
95
|
+
* When this version FIRST went live anywhere, or null if it never has.
|
|
96
|
+
*
|
|
97
|
+
* **This is the field to label "published".** `created_at` is when the version was
|
|
98
|
+
* registered and `payload_schema.materialised_at` is when the artifact was built —
|
|
99
|
+
* for a version created and published days apart, neither is the publish date. A
|
|
100
|
+
* later rollback onto this version does not rewrite it; first means first.
|
|
101
|
+
*/
|
|
102
|
+
first_published_at: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Which table this version publishes, available from the moment it is declared.
|
|
105
|
+
*
|
|
106
|
+
* Present even while `pending` or `failed`, when `payload_schema` is still null —
|
|
107
|
+
* the row that most needs to say where it came from is the one that failed.
|
|
108
|
+
*
|
|
109
|
+
* ⚠️ **PUBLISHER-ONLY, and ABSENT rather than null for anyone else**, for the same
|
|
110
|
+
* reason as `payload_config`: it names the publisher's table.
|
|
111
|
+
*/
|
|
112
|
+
source?: {
|
|
113
|
+
table_id: string;
|
|
114
|
+
table_name: string | null;
|
|
115
|
+
} | null;
|
|
116
|
+
created_at: string;
|
|
117
|
+
updated_at: string;
|
|
118
|
+
}
|
|
119
|
+
/** A release channel. `active_version` is null when the channel serves nothing. */
|
|
120
|
+
export interface ResourceChannel {
|
|
121
|
+
id: string;
|
|
122
|
+
resource_id: string;
|
|
123
|
+
name: string;
|
|
124
|
+
description: string | null;
|
|
125
|
+
color: string | null;
|
|
126
|
+
sort_order: number;
|
|
127
|
+
is_default: boolean;
|
|
128
|
+
active_version: ResourceVersionSummary | null;
|
|
129
|
+
/** Convenience mirror of `active_version !== null`. */
|
|
130
|
+
is_publishing: boolean;
|
|
131
|
+
created_at: string;
|
|
132
|
+
updated_at: string;
|
|
133
|
+
}
|
|
134
|
+
/** Who an unpublish would cut off. */
|
|
135
|
+
export interface ResourceUnpublishImpact {
|
|
136
|
+
licenses: number;
|
|
137
|
+
holders: Array<{
|
|
138
|
+
license_id: string;
|
|
139
|
+
license_name: string | null;
|
|
140
|
+
version_id: string | null;
|
|
141
|
+
}>;
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=resourceReleases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceReleases.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/resourceReleases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AACrF,OA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AI,CAAA;IACjC;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAA;IAC/D,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,mFAAmF;AACnF,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,OAAO,CAAA;IACnB,cAAc,EAAE,sBAAsB,GAAG,IAAI,CAAA;IAC7C,uDAAuD;IACvD,aAAa,EAAE,OAAO,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,sCAAsC;AACtC,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,KAAK,CAAC;QACb,UAAU,EAAE,MAAM,CAAA;QAClB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;QAC3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;KAC1B,CAAC,CAAA;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import type { AppTrustLevel } from './app';
|
|
2
|
+
import type { ResourceCategory, ResourcePayloadType } from './sellableResources';
|
|
3
|
+
import type { SnapshotPayloadConfig } from './snapshotPayload';
|
|
4
|
+
/**
|
|
5
|
+
* Request-side shapes for sellable resources (AAD-898): list params and the
|
|
6
|
+
* bodies sent when creating or acquiring.
|
|
7
|
+
*
|
|
8
|
+
* Split out of `sellableResources.ts` purely for file size; every type here is
|
|
9
|
+
* re-exported through the same barrel and the public surface is unchanged.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Which slice of the catalogue to list.
|
|
13
|
+
*
|
|
14
|
+
* - `browse` — publicly browsable, published listings
|
|
15
|
+
* - `owned` — this license's own listings, INCLUDING unpublished ones (the
|
|
16
|
+
* publisher's recovery surface, so the release gate does not apply)
|
|
17
|
+
* - `my_access` — listings this license is entitled to
|
|
18
|
+
*/
|
|
19
|
+
export type ResourceStoreMode = 'browse' | 'owned' | 'my_access';
|
|
20
|
+
/** Same sort vocabulary as `FetchAppsParams`, so a merged view can sort as one. */
|
|
21
|
+
export type ResourceSortOption = 'updated_at' | 'title_asc' | 'title_desc' | 'trust' | 'newest' | 'popular';
|
|
22
|
+
export interface FetchResourcesParams {
|
|
23
|
+
store_mode?: ResourceStoreMode;
|
|
24
|
+
search?: string;
|
|
25
|
+
category?: ResourceCategory;
|
|
26
|
+
payload_type?: ResourcePayloadType;
|
|
27
|
+
featured?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Publisher license id. Mirrors `FetchAppsParams` so Discover's publisher
|
|
30
|
+
* filter narrows BOTH lists — without it a merged grid filtered to one
|
|
31
|
+
* publisher kept showing every resource.
|
|
32
|
+
*/
|
|
33
|
+
publisher?: string;
|
|
34
|
+
/** Same vocabulary as apps, so the sidebar's trust filter applies to both. */
|
|
35
|
+
trust_level?: AppTrustLevel;
|
|
36
|
+
sort?: ResourceSortOption;
|
|
37
|
+
/**
|
|
38
|
+
* Optional cap, 1–50. The endpoint is otherwise UNPAGINATED, matching
|
|
39
|
+
* `/store/apps`. Do not introduce a default limit client-side — a featured
|
|
40
|
+
* rail derived by filtering an already-fetched response would silently drop
|
|
41
|
+
* entries past the cutoff.
|
|
42
|
+
*/
|
|
43
|
+
limit?: number;
|
|
44
|
+
}
|
|
45
|
+
export interface CreateSellableResourceData {
|
|
46
|
+
title: string;
|
|
47
|
+
tagline?: string | null;
|
|
48
|
+
description?: string | null;
|
|
49
|
+
icon?: string | null;
|
|
50
|
+
color?: string | null;
|
|
51
|
+
/** Fixed at creation — it decides which backend serves reads. */
|
|
52
|
+
payload_type: ResourcePayloadType;
|
|
53
|
+
category: ResourceCategory;
|
|
54
|
+
availability?: 'always_available' | 'request_access' | 'private';
|
|
55
|
+
access_model?: 'free' | 'subscription';
|
|
56
|
+
access_level?: 'community' | 'enterprise';
|
|
57
|
+
}
|
|
58
|
+
/** `payload_type` is absent deliberately: it cannot change after creation. */
|
|
59
|
+
export interface UpdateSellableResourceData {
|
|
60
|
+
title?: string;
|
|
61
|
+
tagline?: string | null;
|
|
62
|
+
description?: string | null;
|
|
63
|
+
icon?: string | null;
|
|
64
|
+
color?: string | null;
|
|
65
|
+
category?: ResourceCategory;
|
|
66
|
+
availability?: 'always_available' | 'request_access' | 'private';
|
|
67
|
+
access_model?: 'free' | 'subscription';
|
|
68
|
+
access_level?: 'community' | 'enterprise';
|
|
69
|
+
}
|
|
70
|
+
export interface CreateResourceVersionData {
|
|
71
|
+
/** Semantic, e.g. `1.0.0`. The store never renumbers a release. */
|
|
72
|
+
version: string;
|
|
73
|
+
release_notes?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Payload-type specific.
|
|
76
|
+
*
|
|
77
|
+
* For a `snapshot` resource this is REQUIRED and fully validated (AAD-939): the
|
|
78
|
+
* source table, the explicit column selection, and the personal-data declaration.
|
|
79
|
+
* Validate the selection with `previewResourceSnapshot()` first — it uses the same
|
|
80
|
+
* rules, so a selection that previews cleanly creates cleanly.
|
|
81
|
+
*
|
|
82
|
+
* For an `endpoint` resource it stays free-form until AAD-899 defines it.
|
|
83
|
+
*/
|
|
84
|
+
payload_config?: SnapshotPayloadConfig | Record<string, unknown> | null;
|
|
85
|
+
}
|
|
86
|
+
export interface CreateResourceChannelData {
|
|
87
|
+
name: string;
|
|
88
|
+
description?: string | null;
|
|
89
|
+
color?: string | null;
|
|
90
|
+
sort_order?: number;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Buying a resource.
|
|
94
|
+
*
|
|
95
|
+
* Omit `pricing_tier_id` for a FREE resource — it is acquired directly and the
|
|
96
|
+
* response is a `ResourceEntitlementSummary`. For a subscription resource
|
|
97
|
+
* the tier is required and the response is a `Subscription` in
|
|
98
|
+
* `pending_approval`, which grants NO access until the publisher approves.
|
|
99
|
+
*/
|
|
100
|
+
export interface AcquireResourceData {
|
|
101
|
+
pricing_tier_id?: string;
|
|
102
|
+
/** Optional buyer note to the publisher (PO number, billing contact, …). */
|
|
103
|
+
message?: string;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=resourceRequests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceRequests.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/resourceRequests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAChF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAE9D;;;;;;GAMG;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,CAAA;AAEhE,mFAAmF;AACnF,MAAM,MAAM,kBAAkB,GACxB,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,SAAS,CAAA;AAEf,MAAM,WAAW,oBAAoB;IACnC,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAC3B,YAAY,CAAC,EAAE,mBAAmB,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8EAA8E;IAC9E,WAAW,C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G;IACH,cAAc,CAAC,EAAE,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CACxE;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/** Sentinel channel id meaning "all channels" (the channel-agnostic grant). */
|
|
2
|
+
export declare const CHANNEL_ALL = "*";
|
|
3
|
+
/** Result of setting a project's seat bundle for an app. */
|
|
4
|
+
export interface SeatAllocation {
|
|
5
|
+
app_id: string;
|
|
6
|
+
project_id: string;
|
|
7
|
+
/** The project's seat budget; `null` means no cap (cleared / non-seat). */
|
|
8
|
+
seats_allocated: number | null;
|
|
9
|
+
}
|
|
10
|
+
/** Result of assigning / unassigning a role or user to a project install. */
|
|
11
|
+
export interface AppAssignment {
|
|
12
|
+
app_id: string;
|
|
13
|
+
project_id: string;
|
|
14
|
+
role_id?: string;
|
|
15
|
+
user_id?: string;
|
|
16
|
+
assigned: boolean;
|
|
17
|
+
/** Channels granted (echoes the request; `[CHANNEL_ALL]` for all channels). */
|
|
18
|
+
channel_ids: string[];
|
|
19
|
+
}
|
|
20
|
+
/** Result of a license-scope assignment (covers all projects / license-based apps). */
|
|
21
|
+
export interface LicenseAssignment {
|
|
22
|
+
app_id: string;
|
|
23
|
+
license_id: string;
|
|
24
|
+
role_id?: string;
|
|
25
|
+
user_id?: string;
|
|
26
|
+
assigned: boolean;
|
|
27
|
+
channel_ids: string[];
|
|
28
|
+
}
|
|
29
|
+
/** A role granted app.use, with the channels it may open (`[CHANNEL_ALL]` = all). */
|
|
30
|
+
export interface AssignedRole {
|
|
31
|
+
role_id: string;
|
|
32
|
+
name: string | null;
|
|
33
|
+
channel_ids: string[];
|
|
34
|
+
/** Live rbac_role_user membership count (deleted/expiry-filtered). */
|
|
35
|
+
member_count: number;
|
|
36
|
+
}
|
|
37
|
+
/** A user pinned directly, with the channels they may open. */
|
|
38
|
+
export interface AssignedUser {
|
|
39
|
+
user_id: string;
|
|
40
|
+
name: string | null;
|
|
41
|
+
email: string | null;
|
|
42
|
+
channel_ids: string[];
|
|
43
|
+
}
|
|
44
|
+
/** An implicit admin role (always has access, all channels). */
|
|
45
|
+
export interface AdminRole {
|
|
46
|
+
role_id: string;
|
|
47
|
+
name: string | null;
|
|
48
|
+
/** Live rbac_role_user membership count (deleted/expiry-filtered). */
|
|
49
|
+
member_count: number;
|
|
50
|
+
}
|
|
51
|
+
/** The "everyone" grant on a scope — all members get access on these channels. */
|
|
52
|
+
export interface EveryoneGrant {
|
|
53
|
+
/** Channels everyone may open (`[CHANNEL_ALL]` = all). */
|
|
54
|
+
channel_ids: string[];
|
|
55
|
+
}
|
|
56
|
+
/** One occupant of a seat scope, with FIFO rank and whether they currently hold a seat. */
|
|
57
|
+
export interface SeatOccupant {
|
|
58
|
+
user_id: string;
|
|
59
|
+
/** FIFO position in the scope. `null` for license-covered occupants (no bundle rank). */
|
|
60
|
+
rank: number | null;
|
|
61
|
+
has_seat: boolean;
|
|
62
|
+
/** Resolved display name / email (no separate directory lookup needed). `null` if the user is gone. */
|
|
63
|
+
name: string | null;
|
|
64
|
+
email: string | null;
|
|
65
|
+
/** ISO-8601 claim time (role-membership / grant / admin time). */
|
|
66
|
+
claimed_at: string | null;
|
|
67
|
+
/** How the seat is held. */
|
|
68
|
+
source: 'admin' | 'role' | 'direct';
|
|
69
|
+
/** The granting role id when `source === 'role'`, else `null`. */
|
|
70
|
+
role_id: string | null;
|
|
71
|
+
/** Admin auto-seat — mandatory & unremovable (lock icon). */
|
|
72
|
+
is_admin: boolean;
|
|
73
|
+
/** Channels this occupant may open (`[CHANNEL_ALL]` = all, e.g. admins). */
|
|
74
|
+
channels: string[];
|
|
75
|
+
/**
|
|
76
|
+
* (Project occupancy only) the occupant is covered by a license-wide seat, so
|
|
77
|
+
* they consume a license seat, not a bundle seat. Absent on license_seats rows.
|
|
78
|
+
*/
|
|
79
|
+
license_covered?: boolean;
|
|
80
|
+
}
|
|
81
|
+
/** A project's seat bundle with its occupants. */
|
|
82
|
+
export interface ProjectSeatBundle {
|
|
83
|
+
project_id: string;
|
|
84
|
+
/** The project's seat budget; `null` for a project that has no bundle yet (offer to allocate). */
|
|
85
|
+
seats_allocated: number | null;
|
|
86
|
+
/** Occupants currently holding a seat (≤ seats_allocated). */
|
|
87
|
+
seats_used: number;
|
|
88
|
+
/** Occupants over the budget, blocked at access time. */
|
|
89
|
+
blocked: number;
|
|
90
|
+
/** RBAC role ids currently assigned (granted app.use) on this install. */
|
|
91
|
+
assigned_role_ids: string[];
|
|
92
|
+
/** User ids directly assigned (pinned) on this install. */
|
|
93
|
+
assigned_user_ids: string[];
|
|
94
|
+
/** Assigned roles with names + their channel scope (for channel chips). */
|
|
95
|
+
assigned_roles: AssignedRole[];
|
|
96
|
+
/** Pinned users with names + their channel scope. */
|
|
97
|
+
assigned_users: AssignedUser[];
|
|
98
|
+
/** Implicit admin role ids for this project (always-on access). */
|
|
99
|
+
admin_role_ids: string[];
|
|
100
|
+
/** Implicit admin roles with names — render as locked "always · all channels". */
|
|
101
|
+
admin_roles: AdminRole[];
|
|
102
|
+
/** Admins of this project (for the "Admin: {name}" allocation row). */
|
|
103
|
+
project_admins: AdminContact[];
|
|
104
|
+
/** Non-seat "everyone" grant for this project — null = off (specific only). */
|
|
105
|
+
everyone: EveryoneGrant | null;
|
|
106
|
+
occupants: SeatOccupant[];
|
|
107
|
+
}
|
|
108
|
+
/** An escalation contact the FE can render and `mailto:` directly. */
|
|
109
|
+
export interface AdminContact {
|
|
110
|
+
user_id: string;
|
|
111
|
+
name: string;
|
|
112
|
+
email: string;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Why the current user can't use a seat-based app.
|
|
116
|
+
* Drives the storefront "no seat available — contact X" UX.
|
|
117
|
+
*/
|
|
118
|
+
export interface SeatLimitAccessBlock {
|
|
119
|
+
blocked: true;
|
|
120
|
+
reason: 'seat_limit_exceeded';
|
|
121
|
+
scope_type: 'licenses' | 'projects' | null;
|
|
122
|
+
scope_id: string | null;
|
|
123
|
+
rank: number | null;
|
|
124
|
+
seats_allocated: number | null;
|
|
125
|
+
seats_required: number;
|
|
126
|
+
seats_purchased: number;
|
|
127
|
+
/** Buy at least this many more seats to clear everyone. */
|
|
128
|
+
seats_to_purchase: number;
|
|
129
|
+
escalation: {
|
|
130
|
+
/** Project admins (when the block is project-scoped) — name + email for "contact X" / mailto. */
|
|
131
|
+
project_admins: AdminContact[];
|
|
132
|
+
license_admins: AdminContact[];
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
/** A version the viewer still holds, identified for the withdrawn-build UI. */
|
|
136
|
+
export interface AccessBlockVersion {
|
|
137
|
+
id: string;
|
|
138
|
+
version: string;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* The publisher pulled this install's build from the release channel it was
|
|
142
|
+
* installed from (AAD-892), so the app can no longer be opened.
|
|
143
|
+
*
|
|
144
|
+
* The install itself is intact — seats, permissions and project activations
|
|
145
|
+
* survive — so moving to `update_to_version` restores access in one step.
|
|
146
|
+
* `update_to_version` is null while the channel still serves nothing: render
|
|
147
|
+
* "withdrawn, no replacement yet" rather than an Update CTA.
|
|
148
|
+
*
|
|
149
|
+
* The app stays listed (installed / my_access) precisely so this can be shown;
|
|
150
|
+
* `can_open` is false and `on_license.installed` deliberately stays true, so do
|
|
151
|
+
* NOT fall back to an Install CTA.
|
|
152
|
+
*/
|
|
153
|
+
export interface VersionWithdrawnAccessBlock {
|
|
154
|
+
blocked: true;
|
|
155
|
+
reason: 'version_withdrawn';
|
|
156
|
+
scope_type: 'licenses' | 'projects' | null;
|
|
157
|
+
scope_id: string | null;
|
|
158
|
+
/** ISO-8601 instant the build was pulled. */
|
|
159
|
+
withdrawn_at: string | null;
|
|
160
|
+
withdrawn_version: AccessBlockVersion | null;
|
|
161
|
+
update_to_version: AccessBlockVersion | null;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Why the current user can't use an app (null unless blocked).
|
|
165
|
+
*
|
|
166
|
+
* BREAKING (AAD-892): this was a single seat-shaped interface and is now a
|
|
167
|
+
* union discriminated on `reason`. Narrow on `reason` before touching
|
|
168
|
+
* seat fields — `block.reason === 'seat_limit_exceeded'`.
|
|
169
|
+
*/
|
|
170
|
+
export type AccessBlock = SeatLimitAccessBlock | VersionWithdrawnAccessBlock;
|
|
171
|
+
/** Current grantees of a delegated app permission (app.manage / app.assign). */
|
|
172
|
+
export interface AppDelegates {
|
|
173
|
+
role_ids: string[];
|
|
174
|
+
user_ids: string[];
|
|
175
|
+
/** Roles with display names (so the FE need not resolve ids). */
|
|
176
|
+
roles: AdminRole[];
|
|
177
|
+
/** Users with display names + email. */
|
|
178
|
+
users: AdminContact[];
|
|
179
|
+
}
|
|
180
|
+
/** One project's seat view — the project-admin assignment screen data source. */
|
|
181
|
+
export interface ProjectSeatView {
|
|
182
|
+
seat_based: boolean;
|
|
183
|
+
seats_purchased?: number;
|
|
184
|
+
seats_to_purchase?: number;
|
|
185
|
+
project?: ProjectSeatBundle;
|
|
186
|
+
}
|
|
187
|
+
/** Aggregate seat picture for an app (license admin allocation overview). */
|
|
188
|
+
export interface AppSeatPicture {
|
|
189
|
+
seat_based: boolean;
|
|
190
|
+
seats_purchased?: number;
|
|
191
|
+
/** Σ of project bundles (reserved against the pool). */
|
|
192
|
+
seats_allocated_total?: number;
|
|
193
|
+
/** Distinct occupants who want access across all scopes. */
|
|
194
|
+
seats_required?: number;
|
|
195
|
+
/** max(0, seats_required − seats_purchased) — the "buy N more" figure. */
|
|
196
|
+
seats_to_purchase?: number;
|
|
197
|
+
/** RBAC role ids assigned app.use at LICENSE scope (mirrors a bundle's assigned_role_ids). */
|
|
198
|
+
license_assigned_role_ids?: string[];
|
|
199
|
+
/** User ids pinned directly at LICENSE scope. */
|
|
200
|
+
license_assigned_user_ids?: string[];
|
|
201
|
+
/** License-scope assigned roles with names + channel scope. */
|
|
202
|
+
license_assigned_roles?: AssignedRole[];
|
|
203
|
+
/** License-scope pinned users with names + channel scope. */
|
|
204
|
+
license_assigned_users?: AssignedUser[];
|
|
205
|
+
/** Non-seat "everyone" grant at license scope — null = off (specific only). */
|
|
206
|
+
license_everyone?: EveryoneGrant | null;
|
|
207
|
+
/** Implicit license admin role ids (always-on access). */
|
|
208
|
+
license_admin_role_ids?: string[];
|
|
209
|
+
/** Implicit license admin roles with names. */
|
|
210
|
+
license_admin_roles?: AdminRole[];
|
|
211
|
+
/** License-level seat holders (admins + direct grants), cover all projects. */
|
|
212
|
+
license_seats?: SeatOccupant[];
|
|
213
|
+
/**
|
|
214
|
+
* Per-project bundles. For project-based apps this includes EVERY license
|
|
215
|
+
* project (unallocated ones have `seats_allocated: null`). Empty for
|
|
216
|
+
* license-based apps (project scope is irrelevant).
|
|
217
|
+
*/
|
|
218
|
+
projects?: ProjectSeatBundle[];
|
|
219
|
+
}
|
|
220
|
+
//# sourceMappingURL=seats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seats.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/seats.ts"],"names":[],"mappings":"AAGA,+EAA+E;AAC/E,eAAO,MAAM,WAAW,MAAM,CAAA;AAE9B,4DAA4D;AAC5D,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,2EAA2E;IAC3E,eAAe,EAAE,MAAM,GAAG,IA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