@lightdash/common 0.1374.2 → 0.1376.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +2 -6
- package/dist/types/projects.d.ts +4 -0
- package/dist/types/scheduler.d.ts +15 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -28,7 +28,7 @@ import { type ProjectMemberRole } from './types/projectMemberRole';
|
|
28
28
|
import { DbtProjectType, ProjectType, type CreateWarehouseCredentials, type DbtProjectConfig, type Project, type WarehouseCredentials } from './types/projects';
|
29
29
|
import { type MostPopularAndRecentlyUpdated } from './types/resourceViewItem';
|
30
30
|
import { type ResultRow } from './types/results';
|
31
|
-
import { type ApiJobScheduledResponse, type ApiJobStatusResponse, type SchedulerAndTargets, type SchedulerJobStatus, type SchedulerWithLogs } from './types/scheduler';
|
31
|
+
import { type ApiJobScheduledResponse, type ApiJobStatusResponse, type ApiSchedulerJobIdResponse, type SchedulerAndTargets, type SchedulerJobStatus, type SchedulerWithLogs } from './types/scheduler';
|
32
32
|
import { type ApiSlackChannelsResponse } from './types/slack';
|
33
33
|
import { type Space } from './types/space';
|
34
34
|
import { type ApiSshKeyPairResponse } from './types/SshKeyPair';
|
@@ -362,10 +362,6 @@ export type CreateInviteLink = Pick<InviteLink, 'expiresAt' | 'email'> & {
|
|
362
362
|
email: string;
|
363
363
|
role?: OrganizationMemberRole;
|
364
364
|
};
|
365
|
-
export type ApiCreateProjectResults = {
|
366
|
-
project: Project;
|
367
|
-
hasContentCopy: boolean;
|
368
|
-
};
|
369
365
|
export type ProjectSavedChartStatus = boolean;
|
370
366
|
export type ApiFlashResults = Record<string, string[]>;
|
371
367
|
export type ApiAiDashboardSummaryResponse = {
|
@@ -376,7 +372,7 @@ export type ApiAiGetDashboardSummaryResponse = {
|
|
376
372
|
status: 'ok';
|
377
373
|
results: DashboardSummary;
|
378
374
|
};
|
379
|
-
type ApiResults = ApiQueryResults | ApiSqlQueryResults | ApiCompiledQueryResults | ApiExploresResults | ApiExploreResults | ApiStatusResults | ApiRefreshResults | ApiHealthResults | Organization | LightdashUser | LoginOptions | SavedChart | SavedChart[] | Space[] | InviteLink | OrganizationProject[] | Project | WarehouseCredentials | OrganizationMemberProfile[] | ProjectCatalog | TablesConfiguration | Dashboard | DashboardBasicDetails[] | OnboardingStatus | Dashboard[] | DeleteOpenIdentity | ApiFlashResults | Record<OpenIdIdentitySummary['issuerType'], OpenIdIdentitySummary[]> | FilterableField[] | DashboardAvailableFilters | ProjectSavedChartStatus | null | Array<unknown> | ApiJobStartedResults | ApiCreateUserTokenResults | CreatePersonalAccessToken | PersonalAccessToken | ProjectMemberProfile[] | ProjectGroupAccess | SearchResults | Space | ShareUrl | SlackSettings | ApiSlackChannelsResponse['results'] | UserActivity | SchedulerAndTargets | SchedulerAndTargets[] | FieldValueSearchResult | ApiDownloadCsv | AllowedEmailDomains | UpdateAllowedEmailDomains | UserAllowedOrganization[] | EmailStatusExpiring | ApiScheduledDownloadCsv | PinnedItems | ViewStatistics | SchedulerWithLogs | ValidationResponse[] | ChartHistory | ChartVersion | Array<GitRepo> | PullRequestCreated | GitIntegrationConfiguration | UserWarehouseCredentials | ApiJobStatusResponse['results'] | ApiJobScheduledResponse['results'] | ApiSshKeyPairResponse['results'] | MostPopularAndRecentlyUpdated | ApiCalculateTotalResponse['results'] | Record<string, DbtExposure> | ApiCreateComment['results'] | ApiGetComments['results'] | ApiDeleteComment | ApiSuccessEmpty |
|
375
|
+
type ApiResults = ApiQueryResults | ApiSqlQueryResults | ApiCompiledQueryResults | ApiExploresResults | ApiExploreResults | ApiStatusResults | ApiRefreshResults | ApiHealthResults | Organization | LightdashUser | LoginOptions | SavedChart | SavedChart[] | Space[] | InviteLink | OrganizationProject[] | Project | WarehouseCredentials | OrganizationMemberProfile[] | ProjectCatalog | TablesConfiguration | Dashboard | DashboardBasicDetails[] | OnboardingStatus | Dashboard[] | DeleteOpenIdentity | ApiFlashResults | Record<OpenIdIdentitySummary['issuerType'], OpenIdIdentitySummary[]> | FilterableField[] | DashboardAvailableFilters | ProjectSavedChartStatus | null | Array<unknown> | ApiJobStartedResults | ApiCreateUserTokenResults | CreatePersonalAccessToken | PersonalAccessToken | ProjectMemberProfile[] | ProjectGroupAccess | SearchResults | Space | ShareUrl | SlackSettings | ApiSlackChannelsResponse['results'] | UserActivity | SchedulerAndTargets | SchedulerAndTargets[] | FieldValueSearchResult | ApiDownloadCsv | AllowedEmailDomains | UpdateAllowedEmailDomains | UserAllowedOrganization[] | EmailStatusExpiring | ApiScheduledDownloadCsv | PinnedItems | ViewStatistics | SchedulerWithLogs | ValidationResponse[] | ChartHistory | ChartVersion | Array<GitRepo> | PullRequestCreated | GitIntegrationConfiguration | UserWarehouseCredentials | ApiJobStatusResponse['results'] | ApiJobScheduledResponse['results'] | ApiSshKeyPairResponse['results'] | MostPopularAndRecentlyUpdated | ApiCalculateTotalResponse['results'] | Record<string, DbtExposure> | ApiCreateComment['results'] | ApiGetComments['results'] | ApiDeleteComment | ApiSuccessEmpty | ApiAiDashboardSummaryResponse['results'] | ApiAiGetDashboardSummaryResponse['results'] | ApiCatalogMetadataResults | ApiCatalogAnalyticsResults | ApiPromotionChangesResponse['results'] | ApiWarehouseTableFields['results'] | ApiTogglePinnedItem['results'] | ApiOrganizationMemberProfiles['results'] | ApiSqlChart['results'] | ApiCreateSqlChart['results'] | ApiUpdateSqlChart['results'] | ApiContentResponse['results'] | ApiChartContentResponse['results'] | ApiSqlRunnerJobStatusResponse['results'] | ApiSemanticLayerClientInfo['results'] | ApiSemanticViewerChartCreate['results'] | ApiSemanticViewerChartGet['results'] | ApiSemanticViewerChartUpdate['results'] | ApiCreateVirtualView['results'] | ApiGithubDbtWritePreview['results'] | ApiMetricsCatalog['results'] | ApiGroupListResponse['results'] | ApiCreateTagResponse['results'] | ApiSchedulerJobIdResponse['results'];
|
380
376
|
export type ApiResponse<T extends ApiResults = ApiResults> = {
|
381
377
|
status: 'ok';
|
382
378
|
results: T;
|
package/dist/types/projects.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { CreateProject } from '..';
|
1
2
|
import { type Explore, type ExploreError } from './explore';
|
2
3
|
import { type DashboardFilterRule } from './filter';
|
3
4
|
import { type MetricQuery } from './metricQuery';
|
@@ -29,7 +30,7 @@ export declare enum SchedulerFormat {
|
|
29
30
|
GSHEETS = "gsheets"
|
30
31
|
}
|
31
32
|
export type SchedulerLog = {
|
32
|
-
task: 'handleScheduledDelivery' | 'sendEmailNotification' | 'sendSlackNotification' | 'uploadGsheets' | 'downloadCsv' | 'uploadGsheetFromQuery' | 'compileProject' | 'testAndCompileProject' | 'validateProject' | 'sqlRunner' | 'sqlRunnerPivotQuery' | 'semanticLayer' | 'indexCatalog';
|
33
|
+
task: 'handleScheduledDelivery' | 'sendEmailNotification' | 'sendSlackNotification' | 'uploadGsheets' | 'downloadCsv' | 'uploadGsheetFromQuery' | 'createProjectWithoutCompile' | 'compileProject' | 'testAndCompileProject' | 'validateProject' | 'sqlRunner' | 'sqlRunnerPivotQuery' | 'semanticLayer' | 'indexCatalog';
|
33
34
|
schedulerUuid?: string;
|
34
35
|
jobId: string;
|
35
36
|
jobGroup?: string;
|
@@ -168,6 +169,12 @@ export type ApiTestSchedulerResponse = {
|
|
168
169
|
jobId: string;
|
169
170
|
};
|
170
171
|
};
|
172
|
+
export type ApiSchedulerJobIdResponse = {
|
173
|
+
status: 'ok';
|
174
|
+
results: {
|
175
|
+
jobId: string;
|
176
|
+
};
|
177
|
+
};
|
171
178
|
export type ScheduledDeliveryPayload = {
|
172
179
|
schedulerUuid: string;
|
173
180
|
} | CreateSchedulerAndTargets;
|
@@ -244,6 +251,13 @@ export type ApiCsvUrlResponse = {
|
|
244
251
|
truncated: boolean;
|
245
252
|
};
|
246
253
|
};
|
254
|
+
export type SchedulerCreateProjectWithoutCompilePayload = {
|
255
|
+
createdByUserUuid: string;
|
256
|
+
organizationUuid: string;
|
257
|
+
requestMethod: string;
|
258
|
+
isPreview: boolean;
|
259
|
+
data: CreateProject;
|
260
|
+
};
|
247
261
|
export type CompileProjectPayload = {
|
248
262
|
createdByUserUuid: string;
|
249
263
|
organizationUuid: string;
|