@antcde/connect-ts 0.4.26-rc.6 → 0.4.26
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/build/AntConnect.d.ts +0 -6
- package/build/AntConnect.d.ts.map +1 -1
- package/build/AntConnect.js +0 -6
- package/build/comms/client.d.ts +1 -0
- package/build/comms/client.d.ts.map +1 -1
- package/build/comms/client.js +1 -0
- package/build/comms/signalChangeTypes.d.ts +1 -27
- package/build/comms/signalChangeTypes.d.ts.map +1 -1
- package/build/comms/signalChangeTypes.js +0 -7
- package/build/comms/signalTypes.d.ts +0 -18
- package/build/comms/signalTypes.d.ts.map +1 -1
- package/build/index.d.ts +34 -5
- package/build/index.d.ts.map +1 -1
- package/build/index.js +3 -8
- package/build/services/{AppService/types/appManifest.d.ts → AppManifest.d.ts} +1 -16
- package/build/services/AppManifest.d.ts.map +1 -0
- package/build/services/AppService.d.ts +57 -0
- package/build/services/AppService.d.ts.map +1 -0
- package/build/services/AppService.js +47 -0
- package/build/services/AppService.types.d.ts +173 -0
- package/build/services/AppService.types.d.ts.map +1 -0
- package/build/services/DmsService.d.ts +0 -13
- package/build/services/DmsService.d.ts.map +1 -1
- package/build/services/DmsServiceImpl.d.ts.map +1 -1
- package/build/services/DmsServiceImpl.js +0 -8
- 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/ProjectService.d.ts +0 -1
- package/build/services/ProjectService.d.ts.map +1 -1
- package/build/services/ReleaseService.d.ts +0 -1
- package/build/services/ReleaseService.d.ts.map +1 -1
- 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 +4 -21
- package/build/services/TaskService.types.d.ts.map +1 -1
- package/build/services/TaskServiceQueries.d.ts +0 -2
- package/build/services/TaskServiceQueries.d.ts.map +1 -1
- package/build/services/TaskServiceQueries.js +2 -13
- package/build/services/TaskTemplate.types.d.ts +1 -74
- package/build/services/TaskTemplate.types.d.ts.map +1 -1
- package/build/services/TokenService.d.ts +0 -5
- package/build/services/TokenService.d.ts.map +1 -1
- package/build/services/TokenService.js +0 -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/TriggerService.d.ts +0 -28
- package/build/services/Webhook/TriggerService.d.ts.map +1 -1
- package/build/services/Webhook/TriggerService.js +0 -10
- package/package.json +6 -6
- package/schemas/app-config.schema.json +0 -6
- package/build/service-runtime.d.ts +0 -6
- package/build/service-runtime.d.ts.map +0 -1
- package/build/service-runtime.js +0 -7
- package/build/service-types-app.d.ts +0 -2
- package/build/service-types-app.d.ts.map +0 -1
- package/build/service-types-app.js +0 -3
- package/build/service-types.d.ts +0 -36
- package/build/service-types.d.ts.map +0 -1
- package/build/service-types.js +0 -7
- package/build/services/AppService/factory/accessRequests.d.ts +0 -19
- package/build/services/AppService/factory/accessRequests.d.ts.map +0 -1
- package/build/services/AppService/factory/accessRequests.js +0 -17
- package/build/services/AppService/factory/assignments.d.ts +0 -57
- package/build/services/AppService/factory/assignments.d.ts.map +0 -1
- package/build/services/AppService/factory/assignments.js +0 -30
- package/build/services/AppService/factory/channels.d.ts +0 -35
- package/build/services/AppService/factory/channels.d.ts.map +0 -1
- package/build/services/AppService/factory/channels.js +0 -18
- package/build/services/AppService/factory/formData.d.ts +0 -14
- package/build/services/AppService/factory/formData.d.ts.map +0 -1
- package/build/services/AppService/factory/formData.js +0 -50
- package/build/services/AppService/factory/media.d.ts +0 -17
- package/build/services/AppService/factory/media.d.ts.map +0 -1
- package/build/services/AppService/factory/media.js +0 -10
- package/build/services/AppService/factory/subscriptions.d.ts +0 -73
- package/build/services/AppService/factory/subscriptions.d.ts.map +0 -1
- package/build/services/AppService/factory/subscriptions.js +0 -39
- package/build/services/AppService/index.d.ts +0 -58
- package/build/services/AppService/index.d.ts.map +0 -1
- package/build/services/AppService/index.js +0 -69
- package/build/services/AppService/types/accessRequests.d.ts +0 -164
- package/build/services/AppService/types/accessRequests.d.ts.map +0 -1
- package/build/services/AppService/types/app.d.ts +0 -124
- package/build/services/AppService/types/app.d.ts.map +0 -1
- package/build/services/AppService/types/app.js +0 -6
- package/build/services/AppService/types/appCategories.d.ts +0 -16
- package/build/services/AppService/types/appCategories.d.ts.map +0 -1
- package/build/services/AppService/types/appChangelog.d.ts +0 -31
- package/build/services/AppService/types/appChangelog.d.ts.map +0 -1
- package/build/services/AppService/types/appChangelog.js +0 -1
- package/build/services/AppService/types/appConfigStatus.d.ts +0 -68
- package/build/services/AppService/types/appConfigStatus.d.ts.map +0 -1
- package/build/services/AppService/types/appConfigStatus.js +0 -11
- package/build/services/AppService/types/appList.d.ts +0 -183
- package/build/services/AppService/types/appList.d.ts.map +0 -1
- package/build/services/AppService/types/appList.js +0 -1
- package/build/services/AppService/types/appManifest.d.ts.map +0 -1
- package/build/services/AppService/types/appManifest.js +0 -4
- package/build/services/AppService/types/appMedia.d.ts +0 -136
- package/build/services/AppService/types/appMedia.d.ts.map +0 -1
- package/build/services/AppService/types/appMedia.js +0 -1
- package/build/services/AppService/types/appRequests.d.ts +0 -113
- package/build/services/AppService/types/appRequests.d.ts.map +0 -1
- package/build/services/AppService/types/appRequests.js +0 -1
- package/build/services/AppService/types/appScopes.d.ts +0 -165
- package/build/services/AppService/types/appScopes.d.ts.map +0 -1
- package/build/services/AppService/types/appScopes.js +0 -1
- package/build/services/AppService/types/channels.d.ts +0 -45
- package/build/services/AppService/types/channels.d.ts.map +0 -1
- package/build/services/AppService/types/channels.js +0 -1
- package/build/services/AppService/types/pricingTiers.d.ts +0 -111
- package/build/services/AppService/types/pricingTiers.d.ts.map +0 -1
- package/build/services/AppService/types/pricingTiers.js +0 -1
- package/build/services/AppService/types/publisherStats.d.ts +0 -20
- package/build/services/AppService/types/publisherStats.d.ts.map +0 -1
- package/build/services/AppService/types/publisherStats.js +0 -1
- package/build/services/AppService/types/releaseChannels.d.ts +0 -127
- package/build/services/AppService/types/releaseChannels.d.ts.map +0 -1
- package/build/services/AppService/types/releaseChannels.js +0 -1
- package/build/services/AppService/types/seats.d.ts +0 -220
- package/build/services/AppService/types/seats.d.ts.map +0 -1
- package/build/services/AppService/types/seats.js +0 -4
- package/build/services/AppService/types/subscriptions.d.ts +0 -182
- package/build/services/AppService/types/subscriptions.d.ts.map +0 -1
- package/build/services/AppService/types/subscriptions.js +0 -1
- package/build/services/AppService/types.d.ts +0 -17
- package/build/services/AppService/types.d.ts.map +0 -1
- package/build/services/AppService/types.js +0 -19
- package/build/services/OAuthClientService.d.ts +0 -20
- package/build/services/OAuthClientService.d.ts.map +0 -1
- package/build/services/OAuthClientService.js +0 -12
- package/build/services/OAuthClientService.types.d.ts +0 -37
- package/build/services/OAuthClientService.types.d.ts.map +0 -1
- package/build/services/OAuthClientService.types.js +0 -4
- package/build/services/SecretService.d.ts +0 -22
- package/build/services/SecretService.d.ts.map +0 -1
- package/build/services/SecretService.js +0 -21
- package/build/services/SecretService.types.d.ts +0 -147
- package/build/services/SecretService.types.d.ts.map +0 -1
- package/build/services/SecretService.types.js +0 -1
- package/build/services/SecretSharing.types.d.ts +0 -112
- package/build/services/SecretSharing.types.d.ts.map +0 -1
- package/build/services/SecretSharing.types.js +0 -1
- package/build/services/Webhook/TriggerSecretService.d.ts +0 -88
- package/build/services/Webhook/TriggerSecretService.d.ts.map +0 -1
- package/build/services/Webhook/TriggerSecretService.js +0 -9
- package/build/services/Websockets/StoreEvents.d.ts +0 -31
- package/build/services/Websockets/StoreEvents.d.ts.map +0 -1
- package/build/services/Websockets/StoreEvents.js +0 -5
- /package/build/services/{AppService/types/accessRequests.js → AppManifest.js} +0 -0
- /package/build/services/{AppService/types/appCategories.js → AppService.types.js} +0 -0
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
export interface AppVersionAuthor {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
avatar?: string | null;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* The trimmed version shape used where only identity is needed — e.g.
|
|
8
|
-
* `ListApp.latest_version`. The API sends at most these keys there (`created_at`
|
|
9
|
-
* may be absent, hence optional); it is NOT a full `AppVersion` (no `path`,
|
|
10
|
-
* `external_path`, `on_license`, `in_project`), so typing those call sites as
|
|
11
|
-
* `AppVersion` compiles but reads `undefined` at runtime.
|
|
12
|
-
*/
|
|
13
|
-
export interface AppVersionSummary {
|
|
14
|
-
id: string;
|
|
15
|
-
version: string;
|
|
16
|
-
/** Absent on some surfaces; explicitly null on the per-scope update fields. */
|
|
17
|
-
created_at?: string | null;
|
|
18
|
-
}
|
|
19
|
-
export interface AppVersion {
|
|
20
|
-
id: string;
|
|
21
|
-
app_id: string;
|
|
22
|
-
version: string;
|
|
23
|
-
created_at?: string;
|
|
24
|
-
updated_at?: string;
|
|
25
|
-
path: string;
|
|
26
|
-
external_path: string;
|
|
27
|
-
/** License-scope: is this the version installed at the license. */
|
|
28
|
-
on_license: {
|
|
29
|
-
installed: boolean;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Project-scope: is this the version activated in the current project.
|
|
33
|
-
* Null when there is no project context (or the app is not project-scope).
|
|
34
|
-
*/
|
|
35
|
-
in_project: {
|
|
36
|
-
activated: boolean;
|
|
37
|
-
} | null;
|
|
38
|
-
release_notes?: string | null;
|
|
39
|
-
/** Uploaded zip size in bytes — null for external_path versions. */
|
|
40
|
-
build_size_bytes?: number | null;
|
|
41
|
-
/** Uploading user — only present when the `createdBy` relation is loaded. */
|
|
42
|
-
created_by?: AppVersionAuthor | null;
|
|
43
|
-
/** Licenses/installs currently pinned to this version. BE-populated; absent until then. */
|
|
44
|
-
install_count?: number | null;
|
|
45
|
-
/**
|
|
46
|
-
* The viewer holds this version and the install holding it is BLOCKED — its
|
|
47
|
-
* publisher pulled the channel it was installed from and there is no live
|
|
48
|
-
* release behind it (AAD-892). Listed so the install can be explained, but
|
|
49
|
-
* not openable. Detail path only.
|
|
50
|
-
*
|
|
51
|
-
* Means BLOCKED, not "off the channel". A version the viewer holds that the
|
|
52
|
-
* channel has merely moved PAST reads `withdrawn: false` with an empty
|
|
53
|
-
* `channels` array — that is a normal, openable, out-of-date install, and
|
|
54
|
-
* rendering it as "retracted by publisher" is wrong. Likewise a channel
|
|
55
|
-
* ROLLBACK produces no withdrawn version at all: the install is force-moved
|
|
56
|
-
* down onto the version the channel now serves, so it is never stranded.
|
|
57
|
-
*
|
|
58
|
-
* Agrees with `access_block.reason === 'version_withdrawn'` by construction —
|
|
59
|
-
* either predicate is safe to key blocked UI off.
|
|
60
|
-
*/
|
|
61
|
-
withdrawn?: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Release channels this version is the active/published version of. Use to
|
|
64
|
-
* group installed versions by channel and badge the production version
|
|
65
|
-
* (`is_default`). A version can be active on more than one channel. Only
|
|
66
|
-
* present when the BE preloads it (single-app detail, version index).
|
|
67
|
-
*
|
|
68
|
-
* Empty means "not currently offered by a channel you can reach" — use it to
|
|
69
|
-
* decide what is INSTALLABLE, never what is INSTALLED. A version you hold
|
|
70
|
-
* legitimately has no channels once the channel moves on; filtering
|
|
71
|
-
* `versions[]` by `channels.length` therefore drops your own install.
|
|
72
|
-
*/
|
|
73
|
-
channels?: Array<{
|
|
74
|
-
id: string;
|
|
75
|
-
name: string;
|
|
76
|
-
color?: string | null;
|
|
77
|
-
is_default: boolean;
|
|
78
|
-
}>;
|
|
79
|
-
}
|
|
80
|
-
export interface AppMedia {
|
|
81
|
-
id: string;
|
|
82
|
-
app_id: string;
|
|
83
|
-
source: 'file' | 'link';
|
|
84
|
-
type: 'image' | 'video';
|
|
85
|
-
sort_order: number;
|
|
86
|
-
caption?: string;
|
|
87
|
-
is_featured: boolean;
|
|
88
|
-
url: string;
|
|
89
|
-
created_at?: string;
|
|
90
|
-
updated_at?: string;
|
|
91
|
-
mime_type?: string;
|
|
92
|
-
file_size?: number;
|
|
93
|
-
formatted_file_size?: string;
|
|
94
|
-
width?: number;
|
|
95
|
-
height?: number;
|
|
96
|
-
provider?: 'youtube' | 'vimeo';
|
|
97
|
-
provider_id?: string;
|
|
98
|
-
thumbnail_url?: string;
|
|
99
|
-
embed_url?: string;
|
|
100
|
-
}
|
|
101
|
-
export interface AttachVersionToAppFormData {
|
|
102
|
-
app_id: string;
|
|
103
|
-
app_version_id: string;
|
|
104
|
-
}
|
|
105
|
-
export interface AppVersionFormData {
|
|
106
|
-
/** Build .zip — sent as multipart when present. */
|
|
107
|
-
build?: File;
|
|
108
|
-
external_path?: string;
|
|
109
|
-
release_notes?: string | null;
|
|
110
|
-
}
|
|
111
|
-
interface AppMediaCommonFormData {
|
|
112
|
-
caption?: string;
|
|
113
|
-
is_featured?: boolean;
|
|
114
|
-
sort_order?: number;
|
|
115
|
-
}
|
|
116
|
-
interface AppMediaFileFormData extends AppMediaCommonFormData {
|
|
117
|
-
source: 'file';
|
|
118
|
-
/** Required for a file upload — sent as multipart. */
|
|
119
|
-
file: File;
|
|
120
|
-
}
|
|
121
|
-
interface AppMediaLinkFormData extends AppMediaCommonFormData {
|
|
122
|
-
source: 'link';
|
|
123
|
-
/** Required for a link — YouTube/Vimeo URL. */
|
|
124
|
-
url: string;
|
|
125
|
-
}
|
|
126
|
-
export type AppMediaFormData = AppMediaFileFormData | AppMediaLinkFormData;
|
|
127
|
-
export interface UpdateAppMediaFormData {
|
|
128
|
-
caption?: string;
|
|
129
|
-
is_featured?: boolean;
|
|
130
|
-
sort_order?: number;
|
|
131
|
-
}
|
|
132
|
-
export interface ReorderMediaFormData {
|
|
133
|
-
media_ids: string[];
|
|
134
|
-
}
|
|
135
|
-
export {};
|
|
136
|
-
//# sourceMappingURL=appMedia.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appMedia.d.ts","sourceRoot":"","sources":["../../../../src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,IAAI,EAAE,IAAI,CAAA;CACX;AAED,UAAU,oBAAqB,SAAQ,sBAAsB;IAC3D,MAAM,EAAE,MAAM,CAAA;IACd,+CAA+C;IAC/C,GAAG,EAAE,MAAM,CAAA;CACZ;AAID,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,oBAAoB,CAAA;AAE1E,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,EAAE,CAAA;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import type { LabelFilterParams } from '../../LabelService';
|
|
2
|
-
import type { AppAvailability, AppTrustLevel } from './app';
|
|
3
|
-
import type { AppScope } from './appScopes';
|
|
4
|
-
export interface AppImpactAnalysis {
|
|
5
|
-
license_install_count: number;
|
|
6
|
-
project_install_count: number;
|
|
7
|
-
total_install_count: number;
|
|
8
|
-
pending_access_request_count: number;
|
|
9
|
-
propagation_template_count: number;
|
|
10
|
-
/** Licenses that currently have the app installed (accessibility-filtered). */
|
|
11
|
-
licenses: AppImpactLicense[];
|
|
12
|
-
/** Projects that currently have the app activated (accessibility-filtered). */
|
|
13
|
-
projects: AppImpactProject[];
|
|
14
|
-
}
|
|
15
|
-
/** A license that currently has the app installed, shown in the force-delete impact list. */
|
|
16
|
-
export interface AppImpactLicense {
|
|
17
|
-
id: string;
|
|
18
|
-
/** License display name; null when the license has no name set. */
|
|
19
|
-
name: string | null;
|
|
20
|
-
}
|
|
21
|
-
/** A project that currently has the app activated, shown in the force-delete impact list. */
|
|
22
|
-
export interface AppImpactProject {
|
|
23
|
-
id: string;
|
|
24
|
-
/** Project display name; null when the project has no name set. */
|
|
25
|
-
name: string | null;
|
|
26
|
-
/** Project number; null when the project has none. */
|
|
27
|
-
number: string | null;
|
|
28
|
-
/** Name of the owning license; null when the project has no license or it is unnamed. */
|
|
29
|
-
license_name: string | null;
|
|
30
|
-
}
|
|
31
|
-
export interface AppTemplate {
|
|
32
|
-
title?: string;
|
|
33
|
-
readonly tagline?: string;
|
|
34
|
-
description?: string;
|
|
35
|
-
color?: string;
|
|
36
|
-
icon?: string;
|
|
37
|
-
/** Upload a new icon (File → multipart); a string is the persisted URL; null clears it. */
|
|
38
|
-
image?: File | string | null;
|
|
39
|
-
external_path?: string;
|
|
40
|
-
/**
|
|
41
|
-
* The scopes the app runs in (`min:1`, each `license`|`project`). The single
|
|
42
|
-
* source of truth for app scope on create/update.
|
|
43
|
-
*/
|
|
44
|
-
supported_scopes?: AppScope[];
|
|
45
|
-
access_level?: 'community' | 'enterprise';
|
|
46
|
-
availability?: AppAvailability;
|
|
47
|
-
access_model?: 'free' | 'subscription';
|
|
48
|
-
readonly license_id?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Required on create and update. 1 or 2 category UUIDs from the
|
|
51
|
-
* operator-curated catalog (`GET /store/app-categories`). Legacy apps
|
|
52
|
-
* without categories must supply this on the next edit or the BE
|
|
53
|
-
* returns 422.
|
|
54
|
-
*/
|
|
55
|
-
category_ids: string[];
|
|
56
|
-
}
|
|
57
|
-
export interface AppFormData {
|
|
58
|
-
title?: string;
|
|
59
|
-
description?: string;
|
|
60
|
-
color?: string;
|
|
61
|
-
icon?: string;
|
|
62
|
-
external_path?: string;
|
|
63
|
-
image?: File | null;
|
|
64
|
-
availability?: AppAvailability;
|
|
65
|
-
/** The scopes the app runs in — persisted as `supported_scopes` (min 1). */
|
|
66
|
-
supported_scopes: AppScope[];
|
|
67
|
-
license_id: string | null;
|
|
68
|
-
category_ids: string[];
|
|
69
|
-
}
|
|
70
|
-
export type AppSortOption = 'updated_at' | 'title_asc' | 'title_desc' | 'trust' | 'newest' | 'popular';
|
|
71
|
-
export interface FetchAppsParams extends LabelFilterParams {
|
|
72
|
-
search?: string | null;
|
|
73
|
-
category_id?: string[];
|
|
74
|
-
/**
|
|
75
|
-
* - `browse` — public storefront
|
|
76
|
-
* - `installed` — apps installed in the current license/project context
|
|
77
|
-
* - `owned` — PUBLISHER view: apps published by the current license
|
|
78
|
-
* - `my_access` — BUYER "My Access": every app the current LICENSE has an
|
|
79
|
-
* entitlement to (installed, a live subscription, or an approved access
|
|
80
|
-
* grant), including accessible-but-not-yet-installed. License-scoped — the
|
|
81
|
-
* client must still filter per-user using `has_access` /
|
|
82
|
-
* `subscription.can_manage` (a seat-based app with no seat and no manage
|
|
83
|
-
* rights should be hidden).
|
|
84
|
-
*/
|
|
85
|
-
store_mode?: 'browse' | 'installed' | 'owned' | 'my_access';
|
|
86
|
-
/**
|
|
87
|
-
* With `my_access`: also include always-available/system apps the user can
|
|
88
|
-
* open on the license (e.g. Tables, ANT Store) even when the license never
|
|
89
|
-
* explicitly acquired them — makes `my_access` the single source of truth
|
|
90
|
-
* for "apps available to this user in this context" (AAD-713).
|
|
91
|
-
*/
|
|
92
|
-
include_available?: boolean;
|
|
93
|
-
availability?: AppAvailability;
|
|
94
|
-
trust_level?: AppTrustLevel;
|
|
95
|
-
include_deprecated?: boolean;
|
|
96
|
-
sort?: AppSortOption;
|
|
97
|
-
publisher?: string;
|
|
98
|
-
featured?: boolean;
|
|
99
|
-
level?: 'project' | 'license';
|
|
100
|
-
/** Drop a specific app from the result. Used by App Detail carousels. */
|
|
101
|
-
exclude_id?: string | null;
|
|
102
|
-
/** Cap the result count (1-50). Used by App Detail carousels. */
|
|
103
|
-
limit?: number;
|
|
104
|
-
}
|
|
105
|
-
export interface UninstallConflict {
|
|
106
|
-
message: string;
|
|
107
|
-
projects: {
|
|
108
|
-
id: string;
|
|
109
|
-
name: string;
|
|
110
|
-
}[];
|
|
111
|
-
requires_force: boolean;
|
|
112
|
-
}
|
|
113
|
-
//# sourceMappingURL=appRequests.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,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C3B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IAC7B,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACxC,cAAc,EAAE,OAAO,CAAA;CACxB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import type { AppVersionSummary } from './appMedia';
|
|
2
|
-
/** A project the current viewer can switch a running app into. */
|
|
3
|
-
export interface AppScopeProject {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
number: string | number | null;
|
|
7
|
-
/** The viewer holds `app.use` at project scope here — dim/disable when false. */
|
|
8
|
-
usable: boolean;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The scopes a running app can switch between for the current viewer — the OS
|
|
12
|
-
* context switcher's data source (`GET /store/apps/{app}/projects`). Projects
|
|
13
|
-
* are those the viewer can enter where the app is activated; `license.usable`
|
|
14
|
-
* gates switching to license level.
|
|
15
|
-
*/
|
|
16
|
-
export interface AppRunnableContexts {
|
|
17
|
-
license: {
|
|
18
|
-
usable: boolean;
|
|
19
|
-
};
|
|
20
|
-
projects: AppScopeProject[];
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* The contexts an app can be enabled in and used at (`apps.supported_scopes`).
|
|
24
|
-
* A single scope is a classic license-only / project-only app; both makes the
|
|
25
|
-
* app multi-scope — usable at license level AND, independently, per project.
|
|
26
|
-
*/
|
|
27
|
-
export type AppScope = 'license' | 'project';
|
|
28
|
-
/**
|
|
29
|
-
* License-scope install state. `can_install` is release-gated and detail-only
|
|
30
|
-
* (`App`); the list omits it (N+1).
|
|
31
|
-
*
|
|
32
|
-
* `installed` means ONE thing on every surface: a physical, non-soft-deleted
|
|
33
|
-
* license-scoped `ResourceApp` link exists. It is the same on `my_access`
|
|
34
|
-
* (+`include_available`), on `browse`, and on the app detail — safe to
|
|
35
|
-
* cross-read.
|
|
36
|
-
*
|
|
37
|
-
* ⚠️ This reverses the pre-AAD-713 contract. There used to be an "implicit
|
|
38
|
-
* install", where an always-available system app read `installed: true` with
|
|
39
|
-
* `resource_app_id: null` on `my_access` rows. v3 is install-mandatory — those
|
|
40
|
-
* apps are now really installed (via the backfill), so `installed: true` always
|
|
41
|
-
* comes with a non-null `resource_app_id`. Any code still guarding against a
|
|
42
|
-
* null link to reject an implicit install is defending a state that no longer
|
|
43
|
-
* occurs.
|
|
44
|
-
*/
|
|
45
|
-
export interface AppOnLicense {
|
|
46
|
-
/** A physical license-scoped install link exists. */
|
|
47
|
-
installed: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Per-user right to USE the app at LICENSE scope (detail only). Drives the OS
|
|
50
|
-
* context switcher's "switch to license level" gate — disable it when false.
|
|
51
|
-
* Independent of project-scope access.
|
|
52
|
-
*/
|
|
53
|
-
can_use?: boolean;
|
|
54
|
-
/** Can install at the license — the store action (paid apps route to buy-request). Detail only. */
|
|
55
|
-
can_install?: boolean;
|
|
56
|
-
/** Can remove the app from the license. */
|
|
57
|
-
can_uninstall: boolean;
|
|
58
|
-
/** The license-level ResourceApp link id; null when not installed — or implicitly installed (`my_access`). */
|
|
59
|
-
resource_app_id: string | null;
|
|
60
|
-
/** Per-install auto-update flag for the license link. */
|
|
61
|
-
auto_update: boolean;
|
|
62
|
-
/** When the license installed the app (ISO 8601), or null. */
|
|
63
|
-
installed_at: string | null;
|
|
64
|
-
/**
|
|
65
|
-
* Is THIS install behind? (AAD-906) Independent of the project install — a
|
|
66
|
-
* license install goes stale on its own and is updatable on its own. Prefer
|
|
67
|
-
* this over the flat `update_available` for any per-install affordance.
|
|
68
|
-
*/
|
|
69
|
-
update_available: boolean;
|
|
70
|
-
/** The version this install would move to; null when current. */
|
|
71
|
-
update_available_version_id: string | null;
|
|
72
|
-
/**
|
|
73
|
-
* The version this scope actually RUNS. Always populated when the scope has
|
|
74
|
-
* an install, whether or not an update exists — null only when there is no
|
|
75
|
-
* install.
|
|
76
|
-
*
|
|
77
|
-
* This is the ONLY correct source for "which version am I on?". Do not infer
|
|
78
|
-
* it from:
|
|
79
|
-
* - `latest_version` — a catalogue fact (newest version any channel serves),
|
|
80
|
-
* not yours;
|
|
81
|
-
* - `channels[].active_version` — what a channel OFFERS, not what you run;
|
|
82
|
-
* - `versions[0]` — array order;
|
|
83
|
-
* - `update_from_version` — describes an UPDATE, so it is null exactly when
|
|
84
|
-
* the install is current.
|
|
85
|
-
* All four are wrong the moment an install lags its channel (auto-update off,
|
|
86
|
-
* or a rollback). Present on `ListApp` too, so launcher/OS-bar surfaces need
|
|
87
|
-
* no detail fetch.
|
|
88
|
-
*/
|
|
89
|
-
installed_version?: AppVersionSummary | null;
|
|
90
|
-
/** Currently installed version — pair with `update_to_version` for the banner. */
|
|
91
|
-
update_from_version?: AppVersionSummary | null;
|
|
92
|
-
/** The version this install would move to. Null when no update. */
|
|
93
|
-
update_to_version?: AppVersionSummary | null;
|
|
94
|
-
/** The release channel this install advances from; null when unpinned. */
|
|
95
|
-
channel_id: string | null;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Project-scope activation state; non-null only for apps that support project
|
|
99
|
-
* scope with a project selected.
|
|
100
|
-
*
|
|
101
|
-
* App-detail action button (AAD-887) — a license install is NOT a project
|
|
102
|
-
* activation. Key the Install / Activate / Open decision off these fields
|
|
103
|
-
* (all already present on `App` and `ListApp`):
|
|
104
|
-
*
|
|
105
|
-
* - not installed (`on_license.installed === false`) → **Install**
|
|
106
|
-
* - project-only app installed at license but not activated here
|
|
107
|
-
* (`on_license.installed && in_project && !in_project.activated
|
|
108
|
-
* && !can_open`) → **Activate**
|
|
109
|
-
* (enable via `in_project.can_activate`)
|
|
110
|
-
* - openable now (`can_open === true`) → **Open**
|
|
111
|
-
*
|
|
112
|
-
* A multi-scope (license+project) app installed at the license reads
|
|
113
|
-
* `can_open === true` (openable via license scope) even while
|
|
114
|
-
* `in_project.activated === false` — there, "Open" is correct and a project
|
|
115
|
-
* "Activate" is an *additional*, independent affordance keyed off
|
|
116
|
-
* `in_project.activated` / `in_project.can_activate`. `in_project` is `null` for
|
|
117
|
-
* license-only apps or when there is no project context, so "Activate" only ever
|
|
118
|
-
* applies to a project-scope app viewed inside a project. Projects to activate
|
|
119
|
-
* into come from `GET /store/apps/{app}/projects` (`AppRunnableContexts`).
|
|
120
|
-
*/
|
|
121
|
-
export interface AppInProject {
|
|
122
|
-
/** A version is activated in the current project. */
|
|
123
|
-
activated: boolean;
|
|
124
|
-
/**
|
|
125
|
-
* Per-user right to USE the app in the CURRENT project (detail only). Drives
|
|
126
|
-
* per-project dimming in the OS context switcher — a project the viewer holds
|
|
127
|
-
* no `app.use` grant on reads false. Independent of license-scope access.
|
|
128
|
-
*/
|
|
129
|
-
can_use?: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Per-user right to activate a version in the current project (project admin
|
|
132
|
-
* — license admins cascade — AND configurable at the license's access level
|
|
133
|
-
* AND not yet activated AND a reachable released version). On detail AND list
|
|
134
|
-
* payloads (`my_access`).
|
|
135
|
-
*/
|
|
136
|
-
can_activate?: boolean;
|
|
137
|
-
/** Can remove the activated version from the current project. */
|
|
138
|
-
can_deactivate: boolean;
|
|
139
|
-
/** The project-level ResourceApp link id, or null when not activated. */
|
|
140
|
-
resource_app_id: string | null;
|
|
141
|
-
/** Per-install auto-update flag for the project link. */
|
|
142
|
-
auto_update: boolean;
|
|
143
|
-
/**
|
|
144
|
-
* Is THIS activation behind? (AAD-906) Independent of the license install —
|
|
145
|
-
* the two carry their own version and channel pin, so one can be current
|
|
146
|
-
* while the other is stale.
|
|
147
|
-
*/
|
|
148
|
-
update_available: boolean;
|
|
149
|
-
/** The version this activation would move to; null when current. */
|
|
150
|
-
update_available_version_id: string | null;
|
|
151
|
-
/**
|
|
152
|
-
* The version this project actually RUNS. Always populated when the project
|
|
153
|
-
* has an activation, whether or not an update exists. Same contract and same
|
|
154
|
-
* name as {@link AppOnLicense.installed_version} — one field, one meaning,
|
|
155
|
-
* whichever scope you are reading.
|
|
156
|
-
*/
|
|
157
|
-
installed_version?: AppVersionSummary | null;
|
|
158
|
-
/** Currently activated version — pair with `update_to_version` for the banner. */
|
|
159
|
-
update_from_version?: AppVersionSummary | null;
|
|
160
|
-
/** The version this activation would move to. Null when no update. */
|
|
161
|
-
update_to_version?: AppVersionSummary | null;
|
|
162
|
-
/** The release channel this activation advances from; null when unpinned. */
|
|
163
|
-
channel_id: string | null;
|
|
164
|
-
}
|
|
165
|
-
//# sourceMappingURL=appScopes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appScopes.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/appScopes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAOnD,kEAAkE;AAClE,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;IAC9B,iFAAiF;IACjF,MAAM,EAAE,OAAO,CAAA;CAChB;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE;QAAE,MAAM,EAAE,OAAO,CAAA;KAAE,CAAA;IAC5B,QAAQ,EAAE,eAAe,EAAE,CAAA;CAC5B;AAED;;;;GAI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IACH,gBAAgB,EAAE,OAAO,CAAA;IACzB,oEAAoE;IACpE,2BAA2B,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1C;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC5C,kFAAkF;IAClF,mBAAmB,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC9C,sEAAsE;IACtE,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC5C,6EAA6E;IAC7E,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { AppVersion } from './appMedia';
|
|
2
|
-
/**
|
|
3
|
-
* A release channel the current viewer can install from (single-app detail,
|
|
4
|
-
* `App.channels`). Drives the channel picker (e.g. Production vs Beta):
|
|
5
|
-
* `requires_subscription` is resolved for this viewer, `is_member` reflects
|
|
6
|
-
* specific-licenses access, and `active_version` is the installable build. Pass
|
|
7
|
-
* the chosen channel's `id` as `channel_id` to install so it is pinned to it.
|
|
8
|
-
*/
|
|
9
|
-
export interface AppChannel {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
color?: string | null;
|
|
13
|
-
is_default: boolean;
|
|
14
|
-
access_override: 'free' | null;
|
|
15
|
-
requires_subscription: boolean;
|
|
16
|
-
/** License-level availability (channel access_mode / membership). */
|
|
17
|
-
is_member: boolean;
|
|
18
|
-
/** Per-user open eligibility = is_member AND the user's grant channel scope. */
|
|
19
|
-
has_access: boolean;
|
|
20
|
-
/** The install's pinned/primary channel — the default the user lands on. */
|
|
21
|
-
is_primary: boolean;
|
|
22
|
-
/** Matches the user's remembered channel choice (see preferred_channel_id). */
|
|
23
|
-
is_preferred: boolean;
|
|
24
|
-
active_version: AppVersion | null;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* A release channel the current user can open, as surfaced on the list/dashboard
|
|
28
|
-
* `ListApp` (scoped to channels with `has_access` — inaccessible ones are omitted
|
|
29
|
-
* server-side). Lets the FE render the split "Open" button + channel switcher on
|
|
30
|
-
* first load without fetching the full app. `>1 entry` ⇒ show the switcher.
|
|
31
|
-
*/
|
|
32
|
-
export interface AccessibleChannel {
|
|
33
|
-
id: string;
|
|
34
|
-
name: string;
|
|
35
|
-
color: string | null;
|
|
36
|
-
/** The install's pinned/primary channel — the default to open. */
|
|
37
|
-
is_primary: boolean;
|
|
38
|
-
/** Matches the user's remembered channel choice (App.preferred_channel_id). */
|
|
39
|
-
is_preferred: boolean;
|
|
40
|
-
active_version: {
|
|
41
|
-
id: string;
|
|
42
|
-
version: string;
|
|
43
|
-
} | null;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=channels.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/channels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,UAAU,EAAE,OAAO,CAAA;IACnB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,qBAAqB,EAAE,OAAO,CAAA;IAC9B,qEAAqE;IACrE,SAAS,EAAE,OAAO,CAAA;IAClB,gFAAgF;IAChF,UAAU,EAAE,OAAO,CAAA;IACnB,4EAA4E;IAC5E,UAAU,EAAE,OAAO,CAAA;IACnB,+EAA+E;IAC/E,YAAY,EAAE,OAAO,CAAA;IACrB,cAAc,EAAE,UAAU,GAAG,IAAI,CAAA;CAClC;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,kEAAkE;IAClE,UAAU,EAAE,OAAO,CAAA;IACnB,+EAA+E;IAC/E,YAAY,EAAE,OAAO,CAAA;IACrB,cAAc,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CACvD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
export type BillingPeriod = 'monthly' | 'quarterly' | 'yearly' | 'one_time';
|
|
2
|
-
/**
|
|
3
|
-
* How a tier is billed. Drives which price fields apply:
|
|
4
|
-
* - `free` — no charge
|
|
5
|
-
* - `flat` — single `price_amount` per license
|
|
6
|
-
* - `seat` — `seat_unit_price` per assigned seat, with optional min/max seats
|
|
7
|
-
*/
|
|
8
|
-
export type PricingModel = 'free' | 'flat' | 'seat';
|
|
9
|
-
/** Tier amount field — accepts number, string (legacy BE), or null. */
|
|
10
|
-
export type PricingAmount = number | string | null;
|
|
11
|
-
/** A single feature line. Plain strings preferred; objects kept for legacy tiers. */
|
|
12
|
-
export type PricingFeature = string | Record<string, unknown>;
|
|
13
|
-
export interface PricingTier {
|
|
14
|
-
id: string;
|
|
15
|
-
subject_type: string;
|
|
16
|
-
subject_id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
/** Descriptive line shown under the price on the storefront card. */
|
|
19
|
-
description: string | null;
|
|
20
|
-
price_description: string | null;
|
|
21
|
-
/** Pricing model driving the price fields. */
|
|
22
|
-
pricing_model?: PricingModel;
|
|
23
|
-
/** Numeric amount per billing period. Zero for the free tier. */
|
|
24
|
-
price_amount?: number | null;
|
|
25
|
-
/** ISO-4217 code. Defaults to EUR on BE when amount is set. */
|
|
26
|
-
price_currency?: string | null;
|
|
27
|
-
/**
|
|
28
|
-
* Per-seat unit price added on top of `price_amount`. Required when
|
|
29
|
-
* `seat_based` is true; null on flat-rate tiers.
|
|
30
|
-
*/
|
|
31
|
-
seat_unit_price?: PricingAmount;
|
|
32
|
-
billing_period: BillingPeriod;
|
|
33
|
-
trial_days: number;
|
|
34
|
-
seat_based: boolean;
|
|
35
|
-
/** Minimum seats per license for seat-based tiers. */
|
|
36
|
-
min_seats?: number | null;
|
|
37
|
-
max_seats: number | null;
|
|
38
|
-
grace_period_days: number;
|
|
39
|
-
features: PricingFeature[] | null;
|
|
40
|
-
/** Highlights the tier (badge + accent border) on the storefront. */
|
|
41
|
-
recommended?: boolean;
|
|
42
|
-
is_active: boolean;
|
|
43
|
-
sort_order: number;
|
|
44
|
-
created_at: string;
|
|
45
|
-
updated_at: string;
|
|
46
|
-
subscription_count?: number;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* The lowest-priced active tier, as embedded on `ListApp.cheapest_tier`.
|
|
50
|
-
*
|
|
51
|
-
* A deliberate SUBSET of {@link PricingTier} — the storefront card needs a price
|
|
52
|
-
* line, not the full tier. It does NOT carry `subject_type`, `subject_id`,
|
|
53
|
-
* `description`, `pricing_model`, `seat_unit_price`, `trial_days`, `min_seats`,
|
|
54
|
-
* `grace_period_days`, `features`, `recommended`, `is_active`, `sort_order` or
|
|
55
|
-
* the timestamps; the full tier list comes from the pricing-tier endpoints.
|
|
56
|
-
* Typing this as `PricingTier` reads `undefined` at runtime.
|
|
57
|
-
*
|
|
58
|
-
* Render `price_description` — the publisher-authored line ("€9 per seat /
|
|
59
|
-
* month"). `price_amount` is for branching (free vs paid), not display.
|
|
60
|
-
*/
|
|
61
|
-
export interface CheapestTierSummary {
|
|
62
|
-
id: string;
|
|
63
|
-
name: string;
|
|
64
|
-
/** Publisher-authored price line. Null when the publisher set none. */
|
|
65
|
-
price_description: string | null;
|
|
66
|
-
/** Numeric amount; null/0 on a free tier. */
|
|
67
|
-
price_amount: number | null;
|
|
68
|
-
/** ISO-4217 code, or null. */
|
|
69
|
-
price_currency: string | null;
|
|
70
|
-
billing_period: BillingPeriod | null;
|
|
71
|
-
seat_based: boolean;
|
|
72
|
-
max_seats: number | null;
|
|
73
|
-
}
|
|
74
|
-
export interface CreatePricingTierData {
|
|
75
|
-
name: string;
|
|
76
|
-
description?: string | null;
|
|
77
|
-
price_description?: string | null;
|
|
78
|
-
pricing_model?: PricingModel;
|
|
79
|
-
price_amount?: number | null;
|
|
80
|
-
price_currency?: string | null;
|
|
81
|
-
seat_unit_price?: number | null;
|
|
82
|
-
billing_period: BillingPeriod;
|
|
83
|
-
trial_days?: number;
|
|
84
|
-
seat_based?: boolean;
|
|
85
|
-
min_seats?: number | null;
|
|
86
|
-
max_seats?: number | null;
|
|
87
|
-
grace_period_days?: number;
|
|
88
|
-
features?: PricingFeature[] | null;
|
|
89
|
-
recommended?: boolean;
|
|
90
|
-
sort_order?: number;
|
|
91
|
-
}
|
|
92
|
-
export interface UpdatePricingTierData {
|
|
93
|
-
name?: string;
|
|
94
|
-
description?: string | null;
|
|
95
|
-
price_description?: string | null;
|
|
96
|
-
pricing_model?: PricingModel;
|
|
97
|
-
price_amount?: number | null;
|
|
98
|
-
price_currency?: string | null;
|
|
99
|
-
seat_unit_price?: number | null;
|
|
100
|
-
billing_period?: BillingPeriod;
|
|
101
|
-
trial_days?: number;
|
|
102
|
-
seat_based?: boolean;
|
|
103
|
-
min_seats?: number | null;
|
|
104
|
-
max_seats?: number | null;
|
|
105
|
-
grace_period_days?: number;
|
|
106
|
-
features?: PricingFeature[] | null;
|
|
107
|
-
recommended?: boolean;
|
|
108
|
-
sort_order?: number;
|
|
109
|
-
is_active?: boolean;
|
|
110
|
-
}
|
|
111
|
-
//# sourceMappingURL=pricingTiers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pricingTiers.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/pricingTiers.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GA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AAG,IAAI,CAAA;IAC3B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,aAAa,CAAC,EAAE,YAAY,CAAA;IAC5B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,cAAc,CAAC,EAAE,aAAa,CAAA;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,cAAc,EAAE,GAAG,IAAI,CAAA;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface PublisherStatsAccessRequests {
|
|
2
|
-
pending: number;
|
|
3
|
-
approved: number;
|
|
4
|
-
denied: number;
|
|
5
|
-
expired: number;
|
|
6
|
-
}
|
|
7
|
-
export interface PublisherStatsApp {
|
|
8
|
-
app_id: string;
|
|
9
|
-
app_title: string;
|
|
10
|
-
app_icon_url: string | null;
|
|
11
|
-
install_count_total: number;
|
|
12
|
-
install_count_last_7d: number;
|
|
13
|
-
install_count_prev_7d: number;
|
|
14
|
-
/** null when prev_7d = 0 — render as "no baseline", semantically distinct from 0 */
|
|
15
|
-
install_trend_pct: number | null;
|
|
16
|
-
access_requests: PublisherStatsAccessRequests;
|
|
17
|
-
active_channels_count: number;
|
|
18
|
-
last_updated_at: string;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=publisherStats.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"publisherStats.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/types/publisherStats.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,mBAAmB,EAAE,MAAM,CAAA;IAC3B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,oFAAoF;IACpF,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,eAAe,EAAE,4BAA4B,CAAA;IAC7C,qBAAqB,EAAE,MAAM,CAAA;IAC7B,eAAe,EAAE,MAAM,CAAA;CACxB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|