@rastrokit/sdk 0.15.2 → 0.17.0
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/dist/cli.cjs +4163 -44
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +4166 -47
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +6 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +185 -50
- package/dist/index.d.ts +185 -50
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
type AddonCapability = 'auth' | 'dataSource' | 'analytics' | '
|
|
1
|
+
type AddonCapability = 'auth' | 'dataSource' | 'analytics' | 'observer' | 'calendar' | 'punch' | 'theme';
|
|
2
2
|
declare const VALID_ADDON_CAPABILITIES: readonly AddonCapability[];
|
|
3
3
|
declare function isAddonCapability(value: string): value is AddonCapability;
|
|
4
4
|
declare function hasCapability(capabilities: readonly AddonCapability[] | undefined | null, capability: AddonCapability): boolean;
|
|
5
5
|
declare function isDataSource(capabilities: readonly AddonCapability[] | undefined | null): boolean;
|
|
6
|
-
declare function
|
|
6
|
+
declare function isObserver(capabilities: readonly AddonCapability[] | undefined | null): boolean;
|
|
7
7
|
declare function isTheme(capabilities: readonly AddonCapability[] | undefined | null): boolean;
|
|
8
8
|
declare function isAnalytics(capabilities: readonly AddonCapability[] | undefined | null): boolean;
|
|
9
9
|
|
|
@@ -101,8 +101,49 @@ declare function isWorkspaceScoped(value: unknown): value is {
|
|
|
101
101
|
workspaceId: string;
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
+
type ConnectionCardinality = 'single' | 'multi';
|
|
105
|
+
interface AuthorizationRoleRequirement {
|
|
106
|
+
readonly authorizationRole: string;
|
|
107
|
+
readonly allowedAuthProfileIds: readonly string[];
|
|
108
|
+
readonly defaultAuthProfileId: string | null;
|
|
109
|
+
readonly required?: boolean;
|
|
110
|
+
readonly label?: string;
|
|
111
|
+
}
|
|
112
|
+
type ConnectionProfileDescriptor = Readonly<{
|
|
113
|
+
connectionProfileId: string;
|
|
114
|
+
cardinality: ConnectionCardinality;
|
|
115
|
+
default: boolean;
|
|
116
|
+
capabilities: readonly AddonCapability[];
|
|
117
|
+
allowedAuthProfileIds?: readonly string[];
|
|
118
|
+
defaultAuthProfileId?: string | null;
|
|
119
|
+
roles?: readonly AuthorizationRoleRequirement[];
|
|
120
|
+
}>;
|
|
121
|
+
|
|
122
|
+
type ConnectionIdentity = {
|
|
123
|
+
kind: 'human';
|
|
124
|
+
providerId: string;
|
|
125
|
+
tenantId: string;
|
|
126
|
+
providerSubjectId: string;
|
|
127
|
+
displayName: string;
|
|
128
|
+
avatarUrl?: string;
|
|
129
|
+
} | {
|
|
130
|
+
kind: 'bot';
|
|
131
|
+
providerId: string;
|
|
132
|
+
tenantId: string;
|
|
133
|
+
providerSubjectId: string;
|
|
134
|
+
displayName: string;
|
|
135
|
+
avatarUrl?: string;
|
|
136
|
+
} | {
|
|
137
|
+
kind: 'installation';
|
|
138
|
+
providerId: string;
|
|
139
|
+
tenantId: string;
|
|
140
|
+
providerSubjectId: string;
|
|
141
|
+
displayName: string;
|
|
142
|
+
};
|
|
143
|
+
|
|
104
144
|
type AddonTier = 'free' | 'plus';
|
|
105
|
-
declare const VALID_ADDON_TIERS: AddonTier[];
|
|
145
|
+
declare const VALID_ADDON_TIERS: readonly AddonTier[];
|
|
146
|
+
|
|
106
147
|
interface AddonScreenshot {
|
|
107
148
|
url: string;
|
|
108
149
|
caption?: string;
|
|
@@ -195,46 +236,6 @@ type AddonConfig = {
|
|
|
195
236
|
packages?: AddonPackage[];
|
|
196
237
|
};
|
|
197
238
|
|
|
198
|
-
type ConnectionCardinality = 'single' | 'multi';
|
|
199
|
-
interface AuthorizationRoleRequirement {
|
|
200
|
-
readonly authorizationRole: string;
|
|
201
|
-
readonly allowedAuthProfileIds: readonly string[];
|
|
202
|
-
readonly defaultAuthProfileId: string | null;
|
|
203
|
-
readonly required?: boolean;
|
|
204
|
-
readonly label?: string;
|
|
205
|
-
}
|
|
206
|
-
type ConnectionProfileDescriptor = Readonly<{
|
|
207
|
-
connectionProfileId: string;
|
|
208
|
-
cardinality: ConnectionCardinality;
|
|
209
|
-
default: boolean;
|
|
210
|
-
allowedAuthProfileIds?: readonly string[];
|
|
211
|
-
defaultAuthProfileId?: string | null;
|
|
212
|
-
roles?: readonly AuthorizationRoleRequirement[];
|
|
213
|
-
capability?: string;
|
|
214
|
-
}>;
|
|
215
|
-
|
|
216
|
-
type ConnectionIdentity = {
|
|
217
|
-
kind: 'human';
|
|
218
|
-
providerId: string;
|
|
219
|
-
tenantId: string;
|
|
220
|
-
providerSubjectId: string;
|
|
221
|
-
displayName: string;
|
|
222
|
-
avatarUrl?: string;
|
|
223
|
-
} | {
|
|
224
|
-
kind: 'bot';
|
|
225
|
-
providerId: string;
|
|
226
|
-
tenantId: string;
|
|
227
|
-
providerSubjectId: string;
|
|
228
|
-
displayName: string;
|
|
229
|
-
avatarUrl?: string;
|
|
230
|
-
} | {
|
|
231
|
-
kind: 'installation';
|
|
232
|
-
providerId: string;
|
|
233
|
-
tenantId: string;
|
|
234
|
-
providerSubjectId: string;
|
|
235
|
-
displayName: string;
|
|
236
|
-
};
|
|
237
|
-
|
|
238
239
|
interface AddonInstallerViewModel {
|
|
239
240
|
id: string;
|
|
240
241
|
packages: {
|
|
@@ -843,11 +844,17 @@ interface IRequest<TBody = void> {
|
|
|
843
844
|
body: TBody;
|
|
844
845
|
}
|
|
845
846
|
|
|
847
|
+
type AddonApplicationStatus = 'applied' | 'pending' | 'failed';
|
|
846
848
|
type AddonSettingsSnapshot = {
|
|
847
849
|
schemaVersion: 1;
|
|
848
850
|
revision: number;
|
|
849
851
|
values: AddonSettingsValues;
|
|
850
852
|
};
|
|
853
|
+
type AddonSettingsView = AddonSettingsSnapshot & {
|
|
854
|
+
credentialStates: Record<string, 'configured' | 'absent'>;
|
|
855
|
+
applicationStatus?: AddonApplicationStatus;
|
|
856
|
+
applicationError?: string;
|
|
857
|
+
};
|
|
851
858
|
|
|
852
859
|
type AddonVaultScope = {
|
|
853
860
|
kind: 'addon';
|
|
@@ -1187,6 +1194,7 @@ interface AddonOperationalItem {
|
|
|
1187
1194
|
readonly itemId: string;
|
|
1188
1195
|
readonly title: string;
|
|
1189
1196
|
readonly subtitle?: string;
|
|
1197
|
+
readonly iconUrl?: string;
|
|
1190
1198
|
readonly status: 'pending' | 'resolved' | 'interrupted' | 'error';
|
|
1191
1199
|
readonly reason?: string;
|
|
1192
1200
|
readonly timestamp: string;
|
|
@@ -1243,6 +1251,52 @@ interface AddonFormEvaluationResponse {
|
|
|
1243
1251
|
readonly clearFields?: readonly AddonFieldAddress[];
|
|
1244
1252
|
}
|
|
1245
1253
|
type AddonSettingsFormEvaluatorHandler = (request: AddonEvaluateFormRequest) => Promise<Either<AppError, AddonFormEvaluationResponse>> | Either<AppError, AddonFormEvaluationResponse>;
|
|
1254
|
+
interface AddonObserverSnapshotRequest {
|
|
1255
|
+
readonly scope: AddonVaultScope;
|
|
1256
|
+
}
|
|
1257
|
+
interface AddonObserverSnapshot {
|
|
1258
|
+
readonly status: 'active' | 'paused' | 'idle' | 'error';
|
|
1259
|
+
readonly statusLabel: string;
|
|
1260
|
+
readonly items: readonly AddonOperationalItem[];
|
|
1261
|
+
readonly recentItems?: readonly AddonOperationalItem[];
|
|
1262
|
+
}
|
|
1263
|
+
type AddonObserverSnapshotProvider = (request: AddonObserverSnapshotRequest) => Promise<Either<AppError, AddonObserverSnapshot>> | Either<AppError, AddonObserverSnapshot>;
|
|
1264
|
+
interface AddonObserverTimelineItem {
|
|
1265
|
+
readonly itemId: string;
|
|
1266
|
+
readonly title: string;
|
|
1267
|
+
readonly subtitle?: string;
|
|
1268
|
+
readonly iconUrl?: string;
|
|
1269
|
+
readonly startedAt: string;
|
|
1270
|
+
readonly endedAt: string;
|
|
1271
|
+
readonly durationSeconds: number;
|
|
1272
|
+
readonly availableActions: readonly AddonOperationalActionDefinition[];
|
|
1273
|
+
readonly metadata?: Readonly<Record<string, AddonSettingScalarValue>>;
|
|
1274
|
+
}
|
|
1275
|
+
interface AddonObserverTimelineRequest {
|
|
1276
|
+
readonly scope: AddonVaultScope;
|
|
1277
|
+
readonly date: string;
|
|
1278
|
+
}
|
|
1279
|
+
interface AddonObserverTimelineResponse {
|
|
1280
|
+
readonly items: readonly AddonObserverTimelineItem[];
|
|
1281
|
+
}
|
|
1282
|
+
interface AddonObserverTimelineTrackSummary {
|
|
1283
|
+
readonly addonId: string;
|
|
1284
|
+
readonly addonName: string;
|
|
1285
|
+
readonly addonIconUrl?: string;
|
|
1286
|
+
readonly totalSeconds: number;
|
|
1287
|
+
readonly items: readonly AddonObserverTimelineItem[];
|
|
1288
|
+
}
|
|
1289
|
+
interface SystemIdleIntervalSummary {
|
|
1290
|
+
readonly startedAt: string;
|
|
1291
|
+
readonly endedAt: string;
|
|
1292
|
+
readonly durationSeconds: number;
|
|
1293
|
+
}
|
|
1294
|
+
interface AddonObserverTimelineSnapshot {
|
|
1295
|
+
readonly date: string;
|
|
1296
|
+
readonly tracks: readonly AddonObserverTimelineTrackSummary[];
|
|
1297
|
+
readonly idleIntervals: readonly SystemIdleIntervalSummary[];
|
|
1298
|
+
}
|
|
1299
|
+
type AddonObserverTimelineProvider = (request: AddonObserverTimelineRequest) => Promise<Either<AppError, AddonObserverTimelineResponse>> | Either<AppError, AddonObserverTimelineResponse>;
|
|
1246
1300
|
type AddonSettingsSchemaProvider = AddonSettingsSchema | ((context?: AddonSettingsContext) => Promise<AddonSettingsSchema> | AddonSettingsSchema);
|
|
1247
1301
|
|
|
1248
1302
|
interface AddonStorageEntry {
|
|
@@ -1319,7 +1373,7 @@ interface CoreConnection extends CoreConnectionScope {
|
|
|
1319
1373
|
cardinality: 'single' | 'multi';
|
|
1320
1374
|
status: 'connected' | 'disabled' | 'disconnected' | 'archived';
|
|
1321
1375
|
identity: CoreConnectionIdentity | null;
|
|
1322
|
-
|
|
1376
|
+
capabilities: readonly AddonCapability[];
|
|
1323
1377
|
}
|
|
1324
1378
|
interface CoreConnectionIdentity {
|
|
1325
1379
|
kind: 'human' | 'bot' | 'installation';
|
|
@@ -1463,6 +1517,53 @@ type AddonConnectionAuthenticator = {
|
|
|
1463
1517
|
completeAuthentication(scope: CoreConnectionScope, parameters: OAuthTokenExchangeParameters): Promise<Either<AppError, AuthenticationResult>>;
|
|
1464
1518
|
} & OAuthRevocationCapability);
|
|
1465
1519
|
|
|
1520
|
+
interface AddonScreenshotDTO {
|
|
1521
|
+
url: string;
|
|
1522
|
+
caption?: string;
|
|
1523
|
+
}
|
|
1524
|
+
interface AddonPackageDTO {
|
|
1525
|
+
version: string;
|
|
1526
|
+
requiredApiVersion?: string;
|
|
1527
|
+
releaseDate?: string;
|
|
1528
|
+
downloadUrl: string;
|
|
1529
|
+
sha256?: string;
|
|
1530
|
+
size?: number;
|
|
1531
|
+
changelog?: string[];
|
|
1532
|
+
}
|
|
1533
|
+
interface AddonManifestDTO {
|
|
1534
|
+
id: string;
|
|
1535
|
+
version: string;
|
|
1536
|
+
name: string;
|
|
1537
|
+
creator: string;
|
|
1538
|
+
description: string;
|
|
1539
|
+
path: string;
|
|
1540
|
+
logo: string;
|
|
1541
|
+
downloads: number;
|
|
1542
|
+
stars: number;
|
|
1543
|
+
installed: boolean;
|
|
1544
|
+
capabilities: readonly AddonCapability[];
|
|
1545
|
+
tier?: AddonTier;
|
|
1546
|
+
sha256?: string;
|
|
1547
|
+
size?: number;
|
|
1548
|
+
installerManifestUrl?: string;
|
|
1549
|
+
sourceUrl?: string;
|
|
1550
|
+
homepage?: string;
|
|
1551
|
+
tags?: string[];
|
|
1552
|
+
screenshots?: AddonScreenshotDTO[];
|
|
1553
|
+
downloadUrl?: string;
|
|
1554
|
+
requiredApiVersion?: string;
|
|
1555
|
+
releaseDate?: string;
|
|
1556
|
+
changelog?: string[];
|
|
1557
|
+
packages?: AddonPackageDTO[];
|
|
1558
|
+
updateAvailable?: boolean;
|
|
1559
|
+
latestVersion?: string;
|
|
1560
|
+
latestDownloadUrl?: string;
|
|
1561
|
+
latestSha256?: string;
|
|
1562
|
+
latestSize?: number;
|
|
1563
|
+
incompatibleUpdate?: boolean;
|
|
1564
|
+
incompatibleReason?: string;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1466
1567
|
interface MemberDTO {
|
|
1467
1568
|
/** Native provider identity: numeric IDs and opaque account IDs are both valid. */
|
|
1468
1569
|
id: string | number;
|
|
@@ -2093,11 +2194,17 @@ interface AddonTimerbarPopoverItem {
|
|
|
2093
2194
|
}
|
|
2094
2195
|
type AddonTimerbarMenuItem = AddonTimerbarActionItem | AddonTimerbarPopoverItem;
|
|
2095
2196
|
|
|
2197
|
+
type CoreConnectionReadScope = 'own' | 'workspace';
|
|
2198
|
+
interface CoreConnectionListFilter {
|
|
2199
|
+
readonly capability?: AddonCapability;
|
|
2200
|
+
readonly scope?: CoreConnectionReadScope;
|
|
2201
|
+
}
|
|
2202
|
+
interface CoreConnectionGetOptions {
|
|
2203
|
+
readonly scope?: CoreConnectionReadScope;
|
|
2204
|
+
}
|
|
2096
2205
|
interface ICoreConnectionsReadAPI {
|
|
2097
|
-
list(workspaceId: string, filter?:
|
|
2098
|
-
|
|
2099
|
-
}): Promise<Either<AppError, CoreConnection[]>>;
|
|
2100
|
-
get(scope: CoreConnectionScope): Promise<Either<AppError, CoreConnection>>;
|
|
2206
|
+
list(workspaceId: string, filter?: CoreConnectionListFilter): Promise<Either<AppError, CoreConnection[]>>;
|
|
2207
|
+
get(scope: CoreConnectionScope, options?: CoreConnectionGetOptions): Promise<Either<AppError, CoreConnection>>;
|
|
2101
2208
|
}
|
|
2102
2209
|
interface ICoreConnectionsAPI extends ICoreConnectionsReadAPI {
|
|
2103
2210
|
create(input: CoreConnectionCreateInput): Promise<Either<AppError, CoreConnection>>;
|
|
@@ -2153,6 +2260,30 @@ interface ICoreAddonCapabilities extends ICoreReadAPI {
|
|
|
2153
2260
|
readonly connections: ICoreConnectionsAPI;
|
|
2154
2261
|
}
|
|
2155
2262
|
|
|
2263
|
+
interface CoreAddonUpdateSettingsRequest {
|
|
2264
|
+
readonly addonId: string;
|
|
2265
|
+
readonly scope: AddonVaultScope;
|
|
2266
|
+
readonly expectedRevision: number;
|
|
2267
|
+
readonly values: AddonSettingsValues;
|
|
2268
|
+
}
|
|
2269
|
+
interface ICoreAddonsAPI {
|
|
2270
|
+
listInstalled(): Promise<Either<AppError, AddonManifestDTO[]>>;
|
|
2271
|
+
listCatalog(): Promise<Either<AppError, AddonManifestDTO[]>>;
|
|
2272
|
+
install(addonId: string): Promise<Either<AppError, AddonManifestDTO>>;
|
|
2273
|
+
uninstall(addonId: string): Promise<Either<AppError, void>>;
|
|
2274
|
+
getSettings(addonId: string, scope: AddonVaultScope): Promise<Either<AppError, AddonSettingsView>>;
|
|
2275
|
+
updateSettings(request: CoreAddonUpdateSettingsRequest): Promise<Either<AppError, AddonSettingsView>>;
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
interface CoreObserverTimelineRequest {
|
|
2279
|
+
readonly workspaceId: string;
|
|
2280
|
+
readonly date: string;
|
|
2281
|
+
readonly addonId?: string;
|
|
2282
|
+
}
|
|
2283
|
+
interface ICoreObserverAPI {
|
|
2284
|
+
getTimeline(request: CoreObserverTimelineRequest): Promise<Either<AppError, AddonObserverTimelineSnapshot>>;
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2156
2287
|
type ICoreTimeEntriesAPI = ILocalTimeEntriesCapability;
|
|
2157
2288
|
|
|
2158
2289
|
type ICoreTimerAPI = ILocalTimerCapability;
|
|
@@ -2161,6 +2292,8 @@ type ICoreTimerAPI = ILocalTimerCapability;
|
|
|
2161
2292
|
interface ICoreAPI extends ICoreAddonCapabilities {
|
|
2162
2293
|
readonly timer: ICoreTimerAPI;
|
|
2163
2294
|
readonly timeEntries: ICoreTimeEntriesAPI;
|
|
2295
|
+
readonly observer: ICoreObserverAPI;
|
|
2296
|
+
readonly addons: ICoreAddonsAPI;
|
|
2164
2297
|
}
|
|
2165
2298
|
|
|
2166
2299
|
interface IMemberProvider {
|
|
@@ -2403,7 +2536,7 @@ interface IAddonMenusAPI {
|
|
|
2403
2536
|
readonly timerbar: IAddonTimerbarAPI;
|
|
2404
2537
|
}
|
|
2405
2538
|
|
|
2406
|
-
type AddonSystemEvents = Pick<ISystemEvents, 'timer:start' | 'timer:pause' | 'timer:resume' | 'timer:stop' | 'timer:update' | 'workspace:changed' | 'addon:settings:saved'>;
|
|
2539
|
+
type AddonSystemEvents = Pick<ISystemEvents, 'timer:start' | 'timer:pause' | 'timer:resume' | 'timer:stop' | 'timer:update' | 'workspace:changed' | 'addon:settings:saved' | 'system:idle' | 'system:active'>;
|
|
2407
2540
|
interface IAddonEventsAPI extends IEventsAPI<AddonSystemEvents> {
|
|
2408
2541
|
}
|
|
2409
2542
|
|
|
@@ -2422,6 +2555,8 @@ interface AddonSettingsRegisterOptions {
|
|
|
2422
2555
|
readonly operationalListProviders?: Record<string, AddonSettingsOperationalListProviderHandler>;
|
|
2423
2556
|
readonly operationalActionHandlers?: Record<string, AddonSettingsOperationalActionHandler>;
|
|
2424
2557
|
readonly formEvaluators?: Record<string, AddonSettingsFormEvaluatorHandler>;
|
|
2558
|
+
readonly observerSnapshotProvider?: AddonObserverSnapshotProvider;
|
|
2559
|
+
readonly observerTimelineProvider?: AddonObserverTimelineProvider;
|
|
2425
2560
|
}
|
|
2426
2561
|
interface IAddonSettingsAPI {
|
|
2427
2562
|
register(schema: AddonSettingsSchemaProvider, options?: AddonSettingsRegisterOptions): void;
|
|
@@ -2613,4 +2748,4 @@ interface ExchangeAuthorizationCodeOptions {
|
|
|
2613
2748
|
*/
|
|
2614
2749
|
declare function exchangeAuthorizationCode(options: ExchangeAuthorizationCodeOptions): Promise<OAuthStoredToken>;
|
|
2615
2750
|
|
|
2616
|
-
export { ADDON_CATALOG_RECEIPT_FILE, type LocalTimerStateDTO as ActiveTimeEntryDTO, type AddonActionResponse, type AddonBaseSettingsField, type AddonCapability, type AddonCatalogFileEntry, type AddonCatalogManifestV1, type AddonCatalogManifestV2, type AddonCollectionItemEnvelope, type AddonCollectionItemField, type AddonCollectionItemRecord, type AddonConfig, type AddonConnectionAuthenticator, type AddonConnectionContext, type AddonContext, type AddonEvaluateFormRequest, type AddonExecuteOperationalActionRequest, type AddonFieldAddress, type AddonFieldAddressStep, type AddonFieldDisabledEntry, type AddonFieldMessageEntry, type AddonFieldVisibilityEntry, type AddonFormEvaluationResponse, type AddonInstallerViewModel, type AddonLoadFailureReason, type AddonLoadFailureStage, type AddonLoadFailureViewModel, type AddonLoadFailuresSnapshot, type AddonManifestViewModel, type AddonMappingPreset, type AddonOperationalActionDefinition, type AddonOperationalItem, type AddonOperationalListPagination, type AddonOperationalListRequest, type AddonOperationalListResponse, type AddonPackage, type AddonPackageViewModel, type AddonResolveOptionsPagination, type AddonResolveOptionsRequest, type AddonResolveOptionsResponse, type AddonResolvedDependencyEntry, AddonRuntimeCapabilities, type AddonScreenshot, type AddonScreenshotViewModel, type AddonSettingArrayValue, type AddonSettingObjectValue, type AddonSettingScalarValue, type AddonSettingValue, type AddonSettingsApplyContext, type AddonSettingsApplyHandler, type AddonSettingsApplyState, type AddonSettingsApplyStatus, type AddonSettingsAuthType, type AddonSettingsBooleanField, type AddonSettingsButtonField, type AddonSettingsCollectionField, type AddonSettingsContext, type AddonSettingsDataSourceInstancesField, type AddonSettingsDateField, type AddonSettingsDirectoryField, type AddonSettingsField, type AddonSettingsFieldDependency, type AddonSettingsFieldScope, type AddonSettingsFieldType, type AddonSettingsFileField, type AddonSettingsFormEvaluatorHandler, type AddonSettingsGroup, type AddonSettingsGroupField, type AddonSettingsInfoCardField, type AddonSettingsJsonField, type AddonSettingsMappingField, type AddonSettingsMultiSelectField, type AddonSettingsMultiSelectOption, type AddonSettingsMultiSelectSource, type AddonSettingsNumberField, type AddonSettingsOperationalActionHandler, type AddonSettingsOperationalListField, type AddonSettingsOperationalListProviderHandler, type AddonSettingsOption, type AddonSettingsOptionGroup, type AddonSettingsOptionPresentation, type AddonSettingsOptionsProviderHandler, type AddonSettingsPasswordField, type AddonSettingsRegisterOptions, type AddonSettingsSchema, type AddonSettingsSchemaProvider, type AddonSettingsSelectField, type AddonSettingsSelectSource, type AddonSettingsSnapshot, type AddonSettingsTab, type AddonSettingsTabKind, type AddonSettingsTaskReferenceField, type AddonSettingsTextField, type AddonSettingsTextareaField, type AddonSettingsTimeField, type AddonSettingsTimezoneField, type AddonSettingsValidateHandler, type AddonSettingsValues, type AddonSidebarMenuItem, type AddonStorageEntry, type AddonStorageListPage, type AddonStorageListPagination, type AddonStorageListRequest, type AddonSystemEvents, type AddonTaskReferenceValue, type AddonTheme, type AddonThemeViewModel, type AddonTier, type AddonTierViewModel, AddonTimerControlLock, type AddonTimerbarActionItem, type AddonTimerbarMenuItem, type AddonTimerbarPopoverItem, type AddonTimerbarPopoverSubItem, type AddonValidateSettingsRequest, type AddonVaultScope, type AnalyticsAggregateMeasure, type AnalyticsBatchInfo, type AnalyticsCanonicalEntity, type AnalyticsColumnOrigin, type AnalyticsColumnSchema, type AnalyticsColumnType, type AnalyticsColumnUnit, type AnalyticsContinuation, type AnalyticsDatasetCellValue, type AnalyticsDatasetExecution, type AnalyticsDatasetManifest, type AnalyticsDatasetPayload, type AnalyticsDatasetQueryInput, type AnalyticsDatasetResult, type AnalyticsDatasetRow, type AnalyticsDatasetScope, type AnalyticsExecutionKind, type AnalyticsExecutionMetrics, type AnalyticsExecutionRequest, type AnalyticsExtractionDescriptor, type AnalyticsFilterDefinition, type AnalyticsFilterDynamicSource, type AnalyticsFilterOption, type AnalyticsFilterType, type AnalyticsFilterValue, type AnalyticsHydrateInput, type AnalyticsHydrateResult, type AnalyticsLoadInput, type AnalyticsLoadResult, type AnalyticsLocalFilter, type AnalyticsLocalMeasure, type AnalyticsPlanNode, type AnalyticsProviderContext, type AnalyticsPublication, type AnalyticsPublicationEntry, type AnalyticsQueryInput, type AnalyticsQueryResult, type AnalyticsRefreshMode, type AnalyticsRefreshPolicy, type AnalyticsRowIdentity, type AnalyticsSyncState, type AnalyticsSyncStrategy, type AnalyticsWorkspaceState, AppError, type AuthenticationDTO, type AuthenticationResult, type AuthenticationViewModel, type CommandArgument, type CommandHandler, type CommandResult, type ConfiguredFieldMapping, type ConnectionCredentialOperation, type ConnectionProfileDescriptor, type ConnectionResultViewModel, type CoreConnection, type CoreConnectionAuthenticationInput, type CoreConnectionAuthorizationRequest, type CoreConnectionAuthorizationResponse, type CoreConnectionCreateInput, type CoreConnectionScope, type CoreMember, type CoreMetadata, type CoreRuntimeState, type CoreTask, type CoreTaskListRequest, type CoreTaskPage, type CoreTaskReference, type CoreWorkspace, type CreatedTaskResult, type CreatedTimeEntryResult, type DataSourceConfigPreset, type DataSourceContext, Either, type EstimatedTime$1 as EstimatedTime, type ExchangeAuthorizationCodeOptions, FetchHttpClient, type HttpPayload, type HttpResponseValidator, type IAddon, type IAddonAnalyticsAPI, type IAddonCommandsAPI, type IAddonConnectionsContributionAPI, type IAddonContributionsAPI, type IAddonDataSourcesAPI, type IAddonEventsAPI, type IAddonHostAPI, type IAddonManifest, type IAddonMenusAPI, type IAddonNotificationsAPI, type IAddonOAuthAPI, type IAddonSettingsAPI, type IAddonSidebarAPI, type IAddonStorageAPI, type IAddonThemesAPI, type IAddonTimerbarAPI, type IAddonVaultAPI, type IAnalyticsProvider, type IAnalyticsSource, type ICoreAPI, type ICoreConnectionsAPI, type ICoreMembersAPI, type ICoreMetadataAPI, type ICoreRuntimeAPI, type ICoreTasksAPI, type ICoreTimeEntriesAPI, type ICoreTimerAPI, type ICoreWorkspacesAPI, type IDataSource, type IDataSourceInstance, type IHeaders, type IHttpClient, type IHttpClientConfig, type IHttpClientFactory, type IHttpRequestOptions, type IMemberProvider, type IMetadataProvider, type IRegistry, type IRequest, type ITaskProvider, type ITimeEntryProvider, type JsonValue, type LicensingStatusStateViewModel, type LicensingStatusViewModel, type LocalEntryChanges, type LocalEntryFilter, type LocalEntryInput, type LocalMetadataSnapshot, type LocalOperationIdentity, type LocalTimerInput, type MappingFieldDefinition, MarkupConverter, type MemberDTO, type MemberViewModel, type MetadataDTO, type MetadataItem, type MetadataViewModel, type OAuthAuthorizationParameters, type OAuthAuthorizeOptions, type OAuthRenewalResult, type OAuthResult, type OAuthStoredToken, type OAuthTokenExchangeParameters, type OAuthTokenResponse, type PKCEPair, type PagedResultDTO, type PaginatedViewModel, type PaginationOptionsDTO, type Participants, type RuntimeAddonIdentity, type SaveAnalyticsWorkspaceStateInput, type SidebarMenuItem, type SidebarSubItem, type SignedAddonCatalogManifestV1, type SignedAddonCatalogManifestV2, type StatusChange, type SyncDocumentViewModel, type SyncFailureViewModel, type TaskDTO, type TaskViewModel, type TimeEntryCreateIdempotency, type TimeEntryDTO, type TimeEntryRecordDTO as TimeEntryItemDTO, type TimeEntryPullCheckpointDTO, type TimeEntryPullPageDTO, type TimeEntryRecordDTO, type TimeEntryViewModel, type TimerStateDTO, type TimerbarActionItem, type TimerbarItemType, type TimerbarMenuItem, type TimerbarPopoverItem, type TimerbarPopoverSubItem, TokenRefreshError, type TokenRefreshErrorOptions, type UpdatedTaskResult, type UpdatedTimeEntryResult, VALID_ADDON_CAPABILITIES, VALID_ADDON_TIERS, type ViewModel, type WorkspaceConnectionIdentityViewModel, type WorkspaceConnectionMemberViewModel, type WorkspaceConnectionViewModel, type WorkspaceDTO, type WorkspaceStatus$1 as WorkspaceStatus, type WorkspaceViewModel, createAnalyticsDatasetScope, createTimeEntrySnapshotPage, exchangeAuthorizationCode, formatStoredToken, generateOAuthState, generatePKCE, hasCapability, hasProperty, isAddonCapability, isAnalytics, isArray, isBoolean, isDataSource, isFunction, isNonEmptyString, isNumber, isRecord, isString, isTheme,
|
|
2751
|
+
export { ADDON_CATALOG_RECEIPT_FILE, type LocalTimerStateDTO as ActiveTimeEntryDTO, type AddonActionResponse, type AddonBaseSettingsField, type AddonCapability, type AddonCatalogFileEntry, type AddonCatalogManifestV1, type AddonCatalogManifestV2, type AddonCollectionItemEnvelope, type AddonCollectionItemField, type AddonCollectionItemRecord, type AddonConfig, type AddonConnectionAuthenticator, type AddonConnectionContext, type AddonContext, type AddonEvaluateFormRequest, type AddonExecuteOperationalActionRequest, type AddonFieldAddress, type AddonFieldAddressStep, type AddonFieldDisabledEntry, type AddonFieldMessageEntry, type AddonFieldVisibilityEntry, type AddonFormEvaluationResponse, type AddonInstallerViewModel, type AddonLoadFailureReason, type AddonLoadFailureStage, type AddonLoadFailureViewModel, type AddonLoadFailuresSnapshot, type AddonManifestViewModel, type AddonMappingPreset, type AddonObserverSnapshot, type AddonObserverSnapshotProvider, type AddonObserverSnapshotRequest, type AddonObserverTimelineItem, type AddonObserverTimelineProvider, type AddonObserverTimelineRequest, type AddonObserverTimelineResponse, type AddonOperationalActionDefinition, type AddonOperationalItem, type AddonOperationalListPagination, type AddonOperationalListRequest, type AddonOperationalListResponse, type AddonPackage, type AddonPackageViewModel, type AddonResolveOptionsPagination, type AddonResolveOptionsRequest, type AddonResolveOptionsResponse, type AddonResolvedDependencyEntry, AddonRuntimeCapabilities, type AddonScreenshot, type AddonScreenshotViewModel, type AddonSettingArrayValue, type AddonSettingObjectValue, type AddonSettingScalarValue, type AddonSettingValue, type AddonSettingsApplyContext, type AddonSettingsApplyHandler, type AddonSettingsApplyState, type AddonSettingsApplyStatus, type AddonSettingsAuthType, type AddonSettingsBooleanField, type AddonSettingsButtonField, type AddonSettingsCollectionField, type AddonSettingsContext, type AddonSettingsDataSourceInstancesField, type AddonSettingsDateField, type AddonSettingsDirectoryField, type AddonSettingsField, type AddonSettingsFieldDependency, type AddonSettingsFieldScope, type AddonSettingsFieldType, type AddonSettingsFileField, type AddonSettingsFormEvaluatorHandler, type AddonSettingsGroup, type AddonSettingsGroupField, type AddonSettingsInfoCardField, type AddonSettingsJsonField, type AddonSettingsMappingField, type AddonSettingsMultiSelectField, type AddonSettingsMultiSelectOption, type AddonSettingsMultiSelectSource, type AddonSettingsNumberField, type AddonSettingsOperationalActionHandler, type AddonSettingsOperationalListField, type AddonSettingsOperationalListProviderHandler, type AddonSettingsOption, type AddonSettingsOptionGroup, type AddonSettingsOptionPresentation, type AddonSettingsOptionsProviderHandler, type AddonSettingsPasswordField, type AddonSettingsRegisterOptions, type AddonSettingsSchema, type AddonSettingsSchemaProvider, type AddonSettingsSelectField, type AddonSettingsSelectSource, type AddonSettingsSnapshot, type AddonSettingsTab, type AddonSettingsTabKind, type AddonSettingsTaskReferenceField, type AddonSettingsTextField, type AddonSettingsTextareaField, type AddonSettingsTimeField, type AddonSettingsTimezoneField, type AddonSettingsValidateHandler, type AddonSettingsValues, type AddonSidebarMenuItem, type AddonStorageEntry, type AddonStorageListPage, type AddonStorageListPagination, type AddonStorageListRequest, type AddonSystemEvents, type AddonTaskReferenceValue, type AddonTheme, type AddonThemeViewModel, type AddonTier, type AddonTierViewModel, AddonTimerControlLock, type AddonTimerbarActionItem, type AddonTimerbarMenuItem, type AddonTimerbarPopoverItem, type AddonTimerbarPopoverSubItem, type AddonValidateSettingsRequest, type AddonVaultScope, type AnalyticsAggregateMeasure, type AnalyticsBatchInfo, type AnalyticsCanonicalEntity, type AnalyticsColumnOrigin, type AnalyticsColumnSchema, type AnalyticsColumnType, type AnalyticsColumnUnit, type AnalyticsContinuation, type AnalyticsDatasetCellValue, type AnalyticsDatasetExecution, type AnalyticsDatasetManifest, type AnalyticsDatasetPayload, type AnalyticsDatasetQueryInput, type AnalyticsDatasetResult, type AnalyticsDatasetRow, type AnalyticsDatasetScope, type AnalyticsExecutionKind, type AnalyticsExecutionMetrics, type AnalyticsExecutionRequest, type AnalyticsExtractionDescriptor, type AnalyticsFilterDefinition, type AnalyticsFilterDynamicSource, type AnalyticsFilterOption, type AnalyticsFilterType, type AnalyticsFilterValue, type AnalyticsHydrateInput, type AnalyticsHydrateResult, type AnalyticsLoadInput, type AnalyticsLoadResult, type AnalyticsLocalFilter, type AnalyticsLocalMeasure, type AnalyticsPlanNode, type AnalyticsProviderContext, type AnalyticsPublication, type AnalyticsPublicationEntry, type AnalyticsQueryInput, type AnalyticsQueryResult, type AnalyticsRefreshMode, type AnalyticsRefreshPolicy, type AnalyticsRowIdentity, type AnalyticsSyncState, type AnalyticsSyncStrategy, type AnalyticsWorkspaceState, AppError, type AuthenticationDTO, type AuthenticationResult, type AuthenticationViewModel, type CommandArgument, type CommandHandler, type CommandResult, type ConfiguredFieldMapping, type ConnectionCredentialOperation, type ConnectionProfileDescriptor, type ConnectionResultViewModel, type CoreAddonUpdateSettingsRequest, type CoreConnection, type CoreConnectionAuthenticationInput, type CoreConnectionAuthorizationRequest, type CoreConnectionAuthorizationResponse, type CoreConnectionCreateInput, type CoreConnectionGetOptions, type CoreConnectionListFilter, type CoreConnectionReadScope, type CoreConnectionScope, type CoreMember, type CoreMetadata, type CoreObserverTimelineRequest, type CoreRuntimeState, type CoreTask, type CoreTaskListRequest, type CoreTaskPage, type CoreTaskReference, type CoreWorkspace, type CreatedTaskResult, type CreatedTimeEntryResult, type DataSourceConfigPreset, type DataSourceContext, Either, type EstimatedTime$1 as EstimatedTime, type ExchangeAuthorizationCodeOptions, FetchHttpClient, type HttpPayload, type HttpResponseValidator, type IAddon, type IAddonAnalyticsAPI, type IAddonCommandsAPI, type IAddonConnectionsContributionAPI, type IAddonContributionsAPI, type IAddonDataSourcesAPI, type IAddonEventsAPI, type IAddonHostAPI, type IAddonManifest, type IAddonMenusAPI, type IAddonNotificationsAPI, type IAddonOAuthAPI, type IAddonSettingsAPI, type IAddonSidebarAPI, type IAddonStorageAPI, type IAddonThemesAPI, type IAddonTimerbarAPI, type IAddonVaultAPI, type IAnalyticsProvider, type IAnalyticsSource, type ICoreAPI, type ICoreAddonsAPI, type ICoreConnectionsAPI, type ICoreMembersAPI, type ICoreMetadataAPI, type ICoreObserverAPI, type ICoreRuntimeAPI, type ICoreTasksAPI, type ICoreTimeEntriesAPI, type ICoreTimerAPI, type ICoreWorkspacesAPI, type IDataSource, type IDataSourceInstance, type IHeaders, type IHttpClient, type IHttpClientConfig, type IHttpClientFactory, type IHttpRequestOptions, type IMemberProvider, type IMetadataProvider, type IRegistry, type IRequest, type ITaskProvider, type ITimeEntryProvider, type JsonValue, type LicensingStatusStateViewModel, type LicensingStatusViewModel, type LocalEntryChanges, type LocalEntryFilter, type LocalEntryInput, type LocalMetadataSnapshot, type LocalOperationIdentity, type LocalTimerInput, type MappingFieldDefinition, MarkupConverter, type MemberDTO, type MemberViewModel, type MetadataDTO, type MetadataItem, type MetadataViewModel, type OAuthAuthorizationParameters, type OAuthAuthorizeOptions, type OAuthRenewalResult, type OAuthResult, type OAuthStoredToken, type OAuthTokenExchangeParameters, type OAuthTokenResponse, type PKCEPair, type PagedResultDTO, type PaginatedViewModel, type PaginationOptionsDTO, type Participants, type RuntimeAddonIdentity, type SaveAnalyticsWorkspaceStateInput, type SidebarMenuItem, type SidebarSubItem, type SignedAddonCatalogManifestV1, type SignedAddonCatalogManifestV2, type StatusChange, type SyncDocumentViewModel, type SyncFailureViewModel, type TaskDTO, type TaskViewModel, type TimeEntryCreateIdempotency, type TimeEntryDTO, type TimeEntryRecordDTO as TimeEntryItemDTO, type TimeEntryPullCheckpointDTO, type TimeEntryPullPageDTO, type TimeEntryRecordDTO, type TimeEntryViewModel, type TimerStateDTO, type TimerbarActionItem, type TimerbarItemType, type TimerbarMenuItem, type TimerbarPopoverItem, type TimerbarPopoverSubItem, TokenRefreshError, type TokenRefreshErrorOptions, type UpdatedTaskResult, type UpdatedTimeEntryResult, VALID_ADDON_CAPABILITIES, VALID_ADDON_TIERS, type ViewModel, type WorkspaceConnectionIdentityViewModel, type WorkspaceConnectionMemberViewModel, type WorkspaceConnectionViewModel, type WorkspaceDTO, type WorkspaceStatus$1 as WorkspaceStatus, type WorkspaceViewModel, createAnalyticsDatasetScope, createTimeEntrySnapshotPage, exchangeAuthorizationCode, formatStoredToken, generateOAuthState, generatePKCE, hasCapability, hasProperty, isAddonCapability, isAnalytics, isArray, isBoolean, isDataSource, isFunction, isNonEmptyString, isNumber, isObserver, isRecord, isString, isTheme, isWorkspaceScoped };
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var VALID_ADDON_CAPABILITIES = [
|
|
|
9
9
|
"auth",
|
|
10
10
|
"dataSource",
|
|
11
11
|
"analytics",
|
|
12
|
-
"
|
|
12
|
+
"observer",
|
|
13
13
|
"calendar",
|
|
14
14
|
"punch",
|
|
15
15
|
"theme"
|
|
@@ -24,8 +24,8 @@ function hasCapability(capabilities, capability) {
|
|
|
24
24
|
function isDataSource(capabilities) {
|
|
25
25
|
return hasCapability(capabilities, "dataSource");
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return hasCapability(capabilities, "
|
|
27
|
+
function isObserver(capabilities) {
|
|
28
|
+
return hasCapability(capabilities, "observer");
|
|
29
29
|
}
|
|
30
30
|
function isTheme(capabilities) {
|
|
31
31
|
return hasCapability(capabilities, "theme");
|
|
@@ -4316,6 +4316,7 @@ var WorkspaceSchema = zod_default.object({
|
|
|
4316
4316
|
description: zod_default.string().max(500, "Descri\xE7\xE3o n\xE3o pode ter mais que 500 caracteres").optional().or(zod_default.literal("")),
|
|
4317
4317
|
avatarUrl: avatarUrlSchema
|
|
4318
4318
|
});
|
|
4319
|
+
var VALID_ADDON_TIERS = ["free", "plus"];
|
|
4319
4320
|
var OFFLINE_AUTHORIZATION_WINDOW_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
4320
4321
|
var CLOCK_LEEWAY_MS = 60 * 1e3;
|
|
4321
4322
|
var offlineAuthorizationClaimsSchema = external_exports.object({
|
|
@@ -4374,9 +4375,6 @@ var AGGREGATION_OPERATOR_SET = new Set(
|
|
|
4374
4375
|
);
|
|
4375
4376
|
var FORMULA_OPERATOR_SET = new Set(ANALYTICS_FORMULA_OPERATORS);
|
|
4376
4377
|
|
|
4377
|
-
// src/contracts/manifest/IAddonManifest.ts
|
|
4378
|
-
var VALID_ADDON_TIERS = ["free", "plus"];
|
|
4379
|
-
|
|
4380
4378
|
// src/contracts/manifest/ISignedAddonCatalogManifest.ts
|
|
4381
4379
|
var ADDON_CATALOG_RECEIPT_FILE = "catalog-version.json";
|
|
4382
4380
|
|
|
@@ -5050,10 +5048,10 @@ export {
|
|
|
5050
5048
|
isFunction,
|
|
5051
5049
|
isNonEmptyString,
|
|
5052
5050
|
isNumber,
|
|
5051
|
+
isObserver,
|
|
5053
5052
|
isRecord,
|
|
5054
5053
|
isString,
|
|
5055
5054
|
isTheme,
|
|
5056
|
-
isWatcher,
|
|
5057
5055
|
isWorkspaceScoped
|
|
5058
5056
|
};
|
|
5059
5057
|
//# sourceMappingURL=index.js.map
|