@harnessio/react-har-service-client 0.64.0 → 0.65.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/har-service/src/services/hooks/useGetBackfillStateV3Query.d.ts +20 -0
- package/dist/har-service/src/services/hooks/useGetBackfillStateV3Query.js +14 -0
- package/dist/har-service/src/services/hooks/useGetBackfillTaskStatusV3Query.d.ts +23 -0
- package/dist/har-service/src/services/hooks/useGetBackfillTaskStatusV3Query.js +14 -0
- package/dist/har-service/src/services/hooks/useListLifecycleExecutionItemsV3Query.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useTriggerBackfillV3Mutation.d.ts +23 -0
- package/dist/har-service/src/services/hooks/useTriggerBackfillV3Mutation.js +14 -0
- package/dist/har-service/src/services/index.d.ts +14 -0
- package/dist/har-service/src/services/index.js +3 -0
- package/dist/har-service/src/services/requestBodies/BackfillTriggerRequestV3RequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/BackfillTriggerRequestV3RequestBody.js +1 -0
- package/dist/har-service/src/services/schemas/BackfillEntityStateV3.d.ts +27 -0
- package/dist/har-service/src/services/schemas/BackfillEntityStateV3.js +1 -0
- package/dist/har-service/src/services/schemas/BackfillStateDataV3.d.ts +16 -0
- package/dist/har-service/src/services/schemas/BackfillStateDataV3.js +1 -0
- package/dist/har-service/src/services/schemas/BackfillTaskStatusDataV3.d.ts +30 -0
- package/dist/har-service/src/services/schemas/BackfillTaskStatusDataV3.js +1 -0
- package/dist/har-service/src/services/schemas/BackfillTriggerDataV3.d.ts +9 -0
- package/dist/har-service/src/services/schemas/BackfillTriggerDataV3.js +4 -0
- package/dist/har-service/src/services/schemas/BackfillTriggerRequestInputV3.d.ts +13 -0
- package/dist/har-service/src/services/schemas/BackfillTriggerRequestInputV3.js +4 -0
- package/dist/har-service/src/services/schemas/CompletedAtMsV3.d.ts +6 -0
- package/dist/har-service/src/services/schemas/CompletedAtMsV3.js +4 -0
- package/dist/har-service/src/services/schemas/LifecycleExecutionItemResponseV3.d.ts +4 -0
- package/dist/har-service/src/services/schemas/LifecycleRuleResponseV3.d.ts +4 -0
- package/dist/har-service/src/services/schemas/StartedAtMsV3.d.ts +6 -0
- package/dist/har-service/src/services/schemas/StartedAtMsV3.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { BackfillStateDataV3 } from '../schemas/BackfillStateDataV3';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetBackfillStateV3QueryQueryParams {
|
|
7
|
+
account_identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export type GetBackfillStateV3OkResponse = ResponseWithPagination<{
|
|
10
|
+
data: BackfillStateDataV3;
|
|
11
|
+
}>;
|
|
12
|
+
export type GetBackfillStateV3ErrorResponse = ErrorV3;
|
|
13
|
+
export interface GetBackfillStateV3Props extends Omit<FetcherOptions<GetBackfillStateV3QueryQueryParams, unknown>, 'url'> {
|
|
14
|
+
queryParams: GetBackfillStateV3QueryQueryParams;
|
|
15
|
+
}
|
|
16
|
+
export declare function getBackfillStateV3(props: GetBackfillStateV3Props): Promise<GetBackfillStateV3OkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get backfill state by account
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetBackfillStateV3Query(props: GetBackfillStateV3Props, options?: Omit<UseQueryOptions<GetBackfillStateV3OkResponse, GetBackfillStateV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetBackfillStateV3OkResponse, ErrorV3>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getBackfillStateV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/internal/search/backfill/state`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get backfill state by account
|
|
11
|
+
*/
|
|
12
|
+
export function useGetBackfillStateV3Query(props, options) {
|
|
13
|
+
return useQuery(['GetBackfillStateV3', props.queryParams], ({ signal }) => getBackfillStateV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { BackfillTaskStatusDataV3 } from '../schemas/BackfillTaskStatusDataV3';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetBackfillTaskStatusV3QueryPathParams {
|
|
7
|
+
job_id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetBackfillTaskStatusV3QueryQueryParams {
|
|
10
|
+
account_identifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetBackfillTaskStatusV3OkResponse = ResponseWithPagination<{
|
|
13
|
+
data: BackfillTaskStatusDataV3;
|
|
14
|
+
}>;
|
|
15
|
+
export type GetBackfillTaskStatusV3ErrorResponse = ErrorV3;
|
|
16
|
+
export interface GetBackfillTaskStatusV3Props extends GetBackfillTaskStatusV3QueryPathParams, Omit<FetcherOptions<GetBackfillTaskStatusV3QueryQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: GetBackfillTaskStatusV3QueryQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export declare function getBackfillTaskStatusV3(props: GetBackfillTaskStatusV3Props): Promise<GetBackfillTaskStatusV3OkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Get backfill task status
|
|
22
|
+
*/
|
|
23
|
+
export declare function useGetBackfillTaskStatusV3Query(props: GetBackfillTaskStatusV3Props, options?: Omit<UseQueryOptions<GetBackfillTaskStatusV3OkResponse, GetBackfillTaskStatusV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetBackfillTaskStatusV3OkResponse, ErrorV3>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getBackfillTaskStatusV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/internal/search/backfill/status/${props.job_id}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get backfill task status
|
|
11
|
+
*/
|
|
12
|
+
export function useGetBackfillTaskStatusV3Query(props, options) {
|
|
13
|
+
return useQuery(['GetBackfillTaskStatusV3', props.job_id, props.queryParams], ({ signal }) => getBackfillTaskStatusV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -24,6 +24,7 @@ export interface ListLifecycleExecutionItemsV3QueryQueryParams {
|
|
|
24
24
|
package_types?: string[];
|
|
25
25
|
registry_ids?: string[];
|
|
26
26
|
status?: 'DELETED' | 'PROTECTED' | 'WOULD_BE_DELETED';
|
|
27
|
+
scope?: 'ancestors' | 'descendants' | 'none';
|
|
27
28
|
}
|
|
28
29
|
export type ListLifecycleExecutionItemsV3OkResponse = ResponseWithPagination<ListLifecycleExecutionItemsResponseV3>;
|
|
29
30
|
export type ListLifecycleExecutionItemsV3ErrorResponse = ErrorV3;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { BackfillTriggerDataV3 } from '../schemas/BackfillTriggerDataV3';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { BackfillTriggerRequestV3RequestBody } from '../requestBodies/BackfillTriggerRequestV3RequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface TriggerBackfillV3MutationQueryParams {
|
|
8
|
+
account_identifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type TriggerBackfillV3RequestBody = BackfillTriggerRequestV3RequestBody;
|
|
11
|
+
export type TriggerBackfillV3OkResponse = ResponseWithPagination<{
|
|
12
|
+
data: BackfillTriggerDataV3;
|
|
13
|
+
}>;
|
|
14
|
+
export type TriggerBackfillV3ErrorResponse = ErrorV3;
|
|
15
|
+
export interface TriggerBackfillV3Props extends Omit<FetcherOptions<TriggerBackfillV3MutationQueryParams, TriggerBackfillV3RequestBody>, 'url'> {
|
|
16
|
+
queryParams: TriggerBackfillV3MutationQueryParams;
|
|
17
|
+
body: TriggerBackfillV3RequestBody;
|
|
18
|
+
}
|
|
19
|
+
export declare function triggerBackfillV3(props: TriggerBackfillV3Props): Promise<TriggerBackfillV3OkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Trigger ES search backfill for an account
|
|
22
|
+
*/
|
|
23
|
+
export declare function useTriggerBackfillV3Mutation(options?: Omit<UseMutationOptions<TriggerBackfillV3OkResponse, TriggerBackfillV3ErrorResponse, TriggerBackfillV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TriggerBackfillV3OkResponse, ErrorV3, TriggerBackfillV3Props, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function triggerBackfillV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/internal/search/backfill`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Trigger ES search backfill for an account
|
|
11
|
+
*/
|
|
12
|
+
export function useTriggerBackfillV3Mutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => triggerBackfillV3(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -97,6 +97,10 @@ export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, Get
|
|
|
97
97
|
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
98
98
|
export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryPathParams, GetArtifactVersionSummaryQueryQueryParams, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
99
99
|
export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
100
|
+
export type { GetBackfillStateV3ErrorResponse, GetBackfillStateV3OkResponse, GetBackfillStateV3Props, GetBackfillStateV3QueryQueryParams, } from './hooks/useGetBackfillStateV3Query';
|
|
101
|
+
export { getBackfillStateV3, useGetBackfillStateV3Query } from './hooks/useGetBackfillStateV3Query';
|
|
102
|
+
export type { GetBackfillTaskStatusV3ErrorResponse, GetBackfillTaskStatusV3OkResponse, GetBackfillTaskStatusV3Props, GetBackfillTaskStatusV3QueryPathParams, GetBackfillTaskStatusV3QueryQueryParams, } from './hooks/useGetBackfillTaskStatusV3Query';
|
|
103
|
+
export { getBackfillTaskStatusV3, useGetBackfillTaskStatusV3Query, } from './hooks/useGetBackfillTaskStatusV3Query';
|
|
100
104
|
export type { GetBulkDownloadRequestStatusErrorResponse, GetBulkDownloadRequestStatusOkResponse, GetBulkDownloadRequestStatusProps, GetBulkDownloadRequestStatusQueryPathParams, GetBulkDownloadRequestStatusQueryQueryParams, } from './hooks/useGetBulkDownloadRequestStatusQuery';
|
|
101
105
|
export { getBulkDownloadRequestStatus, useGetBulkDownloadRequestStatusQuery, } from './hooks/useGetBulkDownloadRequestStatusQuery';
|
|
102
106
|
export type { GetBulkDownloadRequestStatusV3ErrorResponse, GetBulkDownloadRequestStatusV3OkResponse, GetBulkDownloadRequestStatusV3Props, GetBulkDownloadRequestStatusV3QueryPathParams, GetBulkDownloadRequestStatusV3QueryQueryParams, } from './hooks/useGetBulkDownloadRequestStatusV3Query';
|
|
@@ -243,6 +247,8 @@ export type { StartMigrationErrorResponse, StartMigrationMutationPathParams, Sta
|
|
|
243
247
|
export { startMigration, useStartMigrationMutation } from './hooks/useStartMigrationMutation';
|
|
244
248
|
export type { StopMigrationErrorResponse, StopMigrationMutationPathParams, StopMigrationOkResponse, StopMigrationProps, } from './hooks/useStopMigrationMutation';
|
|
245
249
|
export { stopMigration, useStopMigrationMutation } from './hooks/useStopMigrationMutation';
|
|
250
|
+
export type { TriggerBackfillV3ErrorResponse, TriggerBackfillV3MutationQueryParams, TriggerBackfillV3OkResponse, TriggerBackfillV3Props, TriggerBackfillV3RequestBody, } from './hooks/useTriggerBackfillV3Mutation';
|
|
251
|
+
export { triggerBackfillV3, useTriggerBackfillV3Mutation, } from './hooks/useTriggerBackfillV3Mutation';
|
|
246
252
|
export type { UpdateArtifactLabelsErrorResponse, UpdateArtifactLabelsMutationPathParams, UpdateArtifactLabelsMutationQueryParams, UpdateArtifactLabelsOkResponse, UpdateArtifactLabelsProps, UpdateArtifactLabelsRequestBody, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
247
253
|
export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
248
254
|
export type { UpdateFirewallExceptionV3ErrorResponse, UpdateFirewallExceptionV3MutationPathParams, UpdateFirewallExceptionV3MutationQueryParams, UpdateFirewallExceptionV3OkResponse, UpdateFirewallExceptionV3Props, UpdateFirewallExceptionV3RequestBody, } from './hooks/useUpdateFirewallExceptionV3Mutation';
|
|
@@ -273,6 +279,7 @@ export type { AddTagsRequestRequestBody } from './requestBodies/AddTagsRequestRe
|
|
|
273
279
|
export type { AddTagsRequestV3RequestBody } from './requestBodies/AddTagsRequestV3RequestBody';
|
|
274
280
|
export type { ArtifactLabelRequestRequestBody } from './requestBodies/ArtifactLabelRequestRequestBody';
|
|
275
281
|
export type { ArtifactScanEvaluateRequestV3RequestBody } from './requestBodies/ArtifactScanEvaluateRequestV3RequestBody';
|
|
282
|
+
export type { BackfillTriggerRequestV3RequestBody } from './requestBodies/BackfillTriggerRequestV3RequestBody';
|
|
276
283
|
export type { BuildInfoRequestV3RequestBody } from './requestBodies/BuildInfoRequestV3RequestBody';
|
|
277
284
|
export type { BulkDeleteRequestV3RequestBody } from './requestBodies/BulkDeleteRequestV3RequestBody';
|
|
278
285
|
export type { BulkDownloadFilesRequestRequestBody } from './requestBodies/BulkDownloadFilesRequestRequestBody';
|
|
@@ -393,6 +400,11 @@ export type { ArtifactType } from './schemas/ArtifactType';
|
|
|
393
400
|
export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
|
|
394
401
|
export type { ArtifactVersionSummary } from './schemas/ArtifactVersionSummary';
|
|
395
402
|
export type { AuthType } from './schemas/AuthType';
|
|
403
|
+
export type { BackfillEntityStateV3 } from './schemas/BackfillEntityStateV3';
|
|
404
|
+
export type { BackfillStateDataV3 } from './schemas/BackfillStateDataV3';
|
|
405
|
+
export type { BackfillTaskStatusDataV3 } from './schemas/BackfillTaskStatusDataV3';
|
|
406
|
+
export type { BackfillTriggerDataV3 } from './schemas/BackfillTriggerDataV3';
|
|
407
|
+
export type { BackfillTriggerRequestInputV3 } from './schemas/BackfillTriggerRequestInputV3';
|
|
396
408
|
export type { BuildDetailEntryV3 } from './schemas/BuildDetailEntryV3';
|
|
397
409
|
export type { BuildDetails } from './schemas/BuildDetails';
|
|
398
410
|
export type { BuildDetailsV3 } from './schemas/BuildDetailsV3';
|
|
@@ -418,6 +430,7 @@ export type { ClientSetupStep } from './schemas/ClientSetupStep';
|
|
|
418
430
|
export type { ClientSetupStepCommand } from './schemas/ClientSetupStepCommand';
|
|
419
431
|
export type { ClientSetupStepConfig } from './schemas/ClientSetupStepConfig';
|
|
420
432
|
export type { ClientSetupStepType } from './schemas/ClientSetupStepType';
|
|
433
|
+
export type { CompletedAtMsV3 } from './schemas/CompletedAtMsV3';
|
|
421
434
|
export type { ComposerArtifactDetailConfig } from './schemas/ComposerArtifactDetailConfig';
|
|
422
435
|
export type { CondaArtifactDetailConfig } from './schemas/CondaArtifactDetailConfig';
|
|
423
436
|
export type { CopyResourceItemV3 } from './schemas/CopyResourceItemV3';
|
|
@@ -578,6 +591,7 @@ export type { SectionType } from './schemas/SectionType';
|
|
|
578
591
|
export type { SecurityPolicyFailureDetailConfigV3 } from './schemas/SecurityPolicyFailureDetailConfigV3';
|
|
579
592
|
export type { SecurityPolicyFailureVulnerabilityV3 } from './schemas/SecurityPolicyFailureVulnerabilityV3';
|
|
580
593
|
export type { SlsaDetails } from './schemas/SlsaDetails';
|
|
594
|
+
export type { StartedAtMsV3 } from './schemas/StartedAtMsV3';
|
|
581
595
|
export type { Status } from './schemas/Status';
|
|
582
596
|
export type { StoDetails } from './schemas/StoDetails';
|
|
583
597
|
export type { StorageDetails } from './schemas/StorageDetails';
|
|
@@ -47,6 +47,8 @@ export { getArtifactStatsForSpace, useGetArtifactStatsForSpaceQuery, } from './h
|
|
|
47
47
|
export { getArtifactStats, useGetArtifactStatsQuery } from './hooks/useGetArtifactStatsQuery';
|
|
48
48
|
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
49
49
|
export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
50
|
+
export { getBackfillStateV3, useGetBackfillStateV3Query } from './hooks/useGetBackfillStateV3Query';
|
|
51
|
+
export { getBackfillTaskStatusV3, useGetBackfillTaskStatusV3Query, } from './hooks/useGetBackfillTaskStatusV3Query';
|
|
50
52
|
export { getBulkDownloadRequestStatus, useGetBulkDownloadRequestStatusQuery, } from './hooks/useGetBulkDownloadRequestStatusQuery';
|
|
51
53
|
export { getBulkDownloadRequestStatusV3, useGetBulkDownloadRequestStatusV3Query, } from './hooks/useGetBulkDownloadRequestStatusV3Query';
|
|
52
54
|
export { getBulkScanEvaluationStatusV3, useGetBulkScanEvaluationStatusV3Query, } from './hooks/useGetBulkScanEvaluationStatusV3Query';
|
|
@@ -120,6 +122,7 @@ export { saveVersionMetadataV3, useSaveVersionMetadataV3Mutation, } from './hook
|
|
|
120
122
|
export { searchFiles, useSearchFilesQuery } from './hooks/useSearchFilesQuery';
|
|
121
123
|
export { startMigration, useStartMigrationMutation } from './hooks/useStartMigrationMutation';
|
|
122
124
|
export { stopMigration, useStopMigrationMutation } from './hooks/useStopMigrationMutation';
|
|
125
|
+
export { triggerBackfillV3, useTriggerBackfillV3Mutation, } from './hooks/useTriggerBackfillV3Mutation';
|
|
123
126
|
export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
124
127
|
export { updateFirewallExceptionV3, useUpdateFirewallExceptionV3Mutation, } from './hooks/useUpdateFirewallExceptionV3Mutation';
|
|
125
128
|
export { updateLifecycleRuleV3, useUpdateLifecycleRuleV3Mutation, } from './hooks/useUpdateLifecycleRuleV3Mutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { CompletedAtMsV3 } from '../schemas/CompletedAtMsV3';
|
|
2
|
+
import type { StartedAtMsV3 } from '../schemas/StartedAtMsV3';
|
|
3
|
+
/**
|
|
4
|
+
* Per-entity backfill progress and ES document count for an account.
|
|
5
|
+
*/
|
|
6
|
+
export interface BackfillEntityStateV3 {
|
|
7
|
+
completedAt: CompletedAtMsV3;
|
|
8
|
+
/**
|
|
9
|
+
* Number of documents currently present in Elasticsearch for this entity type.
|
|
10
|
+
* @format int64
|
|
11
|
+
*/
|
|
12
|
+
documentsInES: number;
|
|
13
|
+
/**
|
|
14
|
+
* Checkpoint cursor of the last successfully indexed row.
|
|
15
|
+
*/
|
|
16
|
+
lastProcessedID: string;
|
|
17
|
+
startedAt: StartedAtMsV3;
|
|
18
|
+
/**
|
|
19
|
+
* Current backfill status for this entity type.
|
|
20
|
+
*/
|
|
21
|
+
status: string;
|
|
22
|
+
/**
|
|
23
|
+
* Total rows processed for this entity type so far.
|
|
24
|
+
* @format int64
|
|
25
|
+
*/
|
|
26
|
+
totalProcessed: number;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { BackfillEntityStateV3 } from '../schemas/BackfillEntityStateV3';
|
|
2
|
+
/**
|
|
3
|
+
* Aggregated backfill state for an account across all entity types.
|
|
4
|
+
*/
|
|
5
|
+
export interface BackfillStateDataV3 {
|
|
6
|
+
/**
|
|
7
|
+
* Account identifier the state belongs to.
|
|
8
|
+
*/
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
/**
|
|
11
|
+
* Map of entity type to its current backfill state.
|
|
12
|
+
*/
|
|
13
|
+
entities: {
|
|
14
|
+
[key: string]: BackfillEntityStateV3;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { CompletedAtMsV3 } from '../schemas/CompletedAtMsV3';
|
|
2
|
+
import type { CreatedAtMsV3 } from '../schemas/CreatedAtMsV3';
|
|
3
|
+
/**
|
|
4
|
+
* Status of a single backfill job (CDC outbox row).
|
|
5
|
+
*/
|
|
6
|
+
export interface BackfillTaskStatusDataV3 {
|
|
7
|
+
/**
|
|
8
|
+
* Number of execution attempts so far.
|
|
9
|
+
* @format int64
|
|
10
|
+
*/
|
|
11
|
+
attempts: number;
|
|
12
|
+
completedAt?: CompletedAtMsV3;
|
|
13
|
+
createdAt: CreatedAtMsV3;
|
|
14
|
+
/**
|
|
15
|
+
* Numeric identifier of the CDC job row.
|
|
16
|
+
*/
|
|
17
|
+
jobId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Job type discriminator.
|
|
20
|
+
*/
|
|
21
|
+
jobType: string;
|
|
22
|
+
/**
|
|
23
|
+
* Last error message from the most recent failed attempt, if any.
|
|
24
|
+
*/
|
|
25
|
+
lastError?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Lifecycle status of the job.
|
|
28
|
+
*/
|
|
29
|
+
status: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request body for triggering an ES search backfill.
|
|
3
|
+
*/
|
|
4
|
+
export interface BackfillTriggerRequestInputV3 {
|
|
5
|
+
/**
|
|
6
|
+
* Entity types to backfill into Elasticsearch.
|
|
7
|
+
*/
|
|
8
|
+
entityTypes: Array<'FILE' | 'PACKAGE' | 'PACKAGE_VERSION' | 'REGISTRY'>;
|
|
9
|
+
/**
|
|
10
|
+
* If true, reset progress and re-index all rows from the beginning.
|
|
11
|
+
*/
|
|
12
|
+
reindexAll?: boolean;
|
|
13
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { OrgIdentifier } from '../schemas/OrgIdentifier';
|
|
1
2
|
import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
|
|
3
|
+
import type { ProjectIdentifier } from '../schemas/ProjectIdentifier';
|
|
2
4
|
import type { LifecycleExecutionItemStatusV3 } from '../schemas/LifecycleExecutionItemStatusV3';
|
|
3
5
|
/**
|
|
4
6
|
* A single artifact version evaluated during a lifecycle execution.
|
|
@@ -9,8 +11,10 @@ export interface LifecycleExecutionItemResponseV3 {
|
|
|
9
11
|
* @format int64
|
|
10
12
|
*/
|
|
11
13
|
lastDownloadedAt?: number;
|
|
14
|
+
orgIdentifier?: OrgIdentifier;
|
|
12
15
|
packageName: string;
|
|
13
16
|
packageType?: PackageTypeV3;
|
|
17
|
+
projectIdentifier?: ProjectIdentifier;
|
|
14
18
|
/**
|
|
15
19
|
* Reason the item was included or excluded.
|
|
16
20
|
*/
|
|
@@ -21,6 +21,10 @@ export interface LifecycleRuleResponseV3<T0 extends LifecycleRuleFilterConfigV3
|
|
|
21
21
|
*/
|
|
22
22
|
enabled: boolean;
|
|
23
23
|
filterConfig?: T0;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the lifecycle rule has at least one assignment with parent_id matching the filter's ParentID.
|
|
26
|
+
*/
|
|
27
|
+
hasLocalAssignment: boolean;
|
|
24
28
|
id: string;
|
|
25
29
|
/**
|
|
26
30
|
* Epoch milliseconds of the last execution, if any.
|