@michelangelo-ai/core 0.12.0 → 0.13.0-rc.1
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/components/actions/__fixtures__/use-success-operations-test-harness.d.ts +1 -1
- package/dist/components/actions/action-menu/action-menu-item.d.ts +1 -1
- package/dist/components/actions/action-menu/action-menu.d.ts +1 -1
- package/dist/components/actions/actions-buttons/action-button.d.ts +1 -1
- package/dist/components/actions/actions-buttons/actions-buttons.d.ts +1 -1
- package/dist/components/actions/actions-buttons/types.d.ts +1 -1
- package/dist/components/actions/actions-buttons/utils.d.ts +1 -1
- package/dist/components/actions/types.d.ts +2 -2
- package/dist/components/breadcrumb-bar/breadcrumb-bar.d.ts +1 -1
- package/dist/components/breadcrumb-bar/menu-drawer.d.ts +1 -1
- package/dist/components/breadcrumb-bar/phase-entity-list.d.ts +1 -1
- package/dist/components/cell/components/cell-enhancer.d.ts +1 -1
- package/dist/components/cell/components/tooltip/cell-tooltip-hoc.d.ts +1 -1
- package/dist/components/cell/components/tooltip/types.d.ts +1 -1
- package/dist/components/cell/renderers/boolean/boolean-cell.d.ts +1 -1
- package/dist/components/cell/renderers/date/date-cell-to-string.d.ts +1 -1
- package/dist/components/cell/renderers/date/date-cell.d.ts +2 -2
- package/dist/components/cell/renderers/default-cell-renderer.d.ts +1 -1
- package/dist/components/cell/renderers/description/description-cell.d.ts +1 -1
- package/dist/components/cell/renderers/description/types.d.ts +1 -1
- package/dist/components/cell/renderers/link/link-cell.d.ts +1 -1
- package/dist/components/cell/renderers/link/types.d.ts +1 -1
- package/dist/components/cell/renderers/multi/multi-cell.d.ts +1 -1
- package/dist/components/cell/renderers/multi/types.d.ts +1 -1
- package/dist/components/cell/renderers/retry/retry-cell.d.ts +1 -1
- package/dist/components/cell/renderers/retry/retry-cell.d.ts.map +1 -1
- package/dist/components/cell/renderers/retry/types.d.ts +1 -1
- package/dist/components/cell/renderers/state/get-state-color.d.ts +1 -1
- package/dist/components/cell/renderers/state/state-cell-to-string.d.ts +1 -1
- package/dist/components/cell/renderers/state/state-cell.d.ts +2 -2
- package/dist/components/cell/renderers/state/types.d.ts +2 -2
- package/dist/components/cell/renderers/tag/tag-cell.d.ts +1 -1
- package/dist/components/cell/renderers/tag/types.d.ts +2 -2
- package/dist/components/cell/renderers/text/text-cell.d.ts +1 -1
- package/dist/components/cell/renderers/type/type-cell-to-string.d.ts +1 -1
- package/dist/components/cell/renderers/type/type-cell.d.ts +1 -1
- package/dist/components/cell/renderers/type/types.d.ts +1 -1
- package/dist/components/cell/types.d.ts +4 -4
- package/dist/components/cell/use-cell-to-string.d.ts +1 -1
- package/dist/components/cell/use-get-cell-renderer.d.ts +1 -1
- package/dist/components/form/components/form-dialog/form-dialog.d.ts +1 -1
- package/dist/components/form/components/form-dialog/types.d.ts +1 -1
- package/dist/components/form/components/label/label-end-enhancer-content.d.ts +1 -1
- package/dist/components/form/config-driven-form.d.ts +2 -2
- package/dist/components/form/fields/boolean/schema-boolean-field.d.ts +1 -1
- package/dist/components/form/fields/checkbox/schema-checkbox-field.d.ts +1 -1
- package/dist/components/form/fields/checkbox/types.d.ts +1 -1
- package/dist/components/form/fields/date/schema-date-field.d.ts +1 -1
- package/dist/components/form/fields/map/schema-map-field.d.ts +1 -1
- package/dist/components/form/fields/map/types.d.ts +1 -1
- package/dist/components/form/fields/markdown/schema-markdown-field.d.ts +1 -1
- package/dist/components/form/fields/number/number-field.d.ts +1 -1
- package/dist/components/form/fields/number/schema-number-field.d.ts +1 -1
- package/dist/components/form/fields/radio/schema-radio-field.d.ts +1 -1
- package/dist/components/form/fields/schema-field.d.ts +1 -1
- package/dist/components/form/fields/select/schema-select-field.d.ts +1 -1
- package/dist/components/form/fields/string/schema-string-field.d.ts +1 -1
- package/dist/components/form/fields/textarea/schema-textarea-field.d.ts +1 -1
- package/dist/components/form/fields/types.d.ts +2 -2
- package/dist/components/form/fields/url/schema-url-field.d.ts +1 -1
- package/dist/components/form/fields/url/types.d.ts +1 -1
- package/dist/components/form/hooks/use-array-field.d.ts +1 -1
- package/dist/components/form/hooks/use-field-renderer.d.ts +1 -1
- package/dist/components/form/hooks/use-field.d.ts +1 -1
- package/dist/components/form/layout/array-form-group/types.d.ts +2 -2
- package/dist/components/form/layout/array-form-row/types.d.ts +2 -2
- package/dist/components/form/layout/condition/types.d.ts +1 -1
- package/dist/components/form/layout/form-grid/types.d.ts +1 -1
- package/dist/components/form/layout/form-group/types.d.ts +2 -2
- package/dist/components/form/layout/form-row/types.d.ts +1 -1
- package/dist/components/form/layout/layout-item-list.d.ts +1 -1
- package/dist/components/form/layout/layout-renderer.d.ts +1 -1
- package/dist/components/form/layout/types.d.ts +1 -1
- package/dist/components/form/types/config-types.d.ts +16 -16
- package/dist/components/form/types/form-types.d.ts +1 -1
- package/dist/components/form/utils/filter-hidden-condition-fields.d.ts +1 -1
- package/dist/components/form/validation/resolve-validation.d.ts +2 -2
- package/dist/components/links-box/map-link-config-to-column-config.d.ts +1 -1
- package/dist/components/links-box/types.d.ts +1 -1
- package/dist/components/markdown/styled-components.d.ts +1 -1
- package/dist/components/row/components/row-item.d.ts +2 -2
- package/dist/components/row/components/row-label.d.ts +1 -1
- package/dist/components/row/row.d.ts +1 -1
- package/dist/components/row/types.d.ts +1 -1
- package/dist/components/table/__fixtures__/column-factory.d.ts +1 -1
- package/dist/components/table/__fixtures__/row-factory.d.ts +3 -3
- package/dist/components/table/components/filter/categorical/get-cell-value-for-column.d.ts +2 -2
- package/dist/components/table/components/filter/categorical/use-categorical-filter-factory.d.ts +2 -2
- package/dist/components/table/components/filter/categorical/use-filter-display-mapping.d.ts +2 -2
- package/dist/components/table/components/filter/datetime/use-datetime-filter-factory.d.ts +2 -2
- package/dist/components/table/components/filter/get-column-filter.d.ts +1 -1
- package/dist/components/table/components/filter/types.d.ts +1 -1
- package/dist/components/table/components/table-action-bar/components/table-active-filter-tag-list/types.d.ts +3 -3
- package/dist/components/table/components/table-action-bar/components/table-filter-menu/components/table-filter-menu-content/table-filter-menu-content.d.ts +1 -1
- package/dist/components/table/components/table-action-bar/components/table-filter-menu/components/table-filter-menu-content/types.d.ts +4 -4
- package/dist/components/table/components/table-action-bar/components/table-filter-menu/components/table-filter-option-list/table-filter-option-list.d.ts +1 -1
- package/dist/components/table/components/table-action-bar/components/table-filter-menu/components/table-filter-option-list/types.d.ts +2 -2
- package/dist/components/table/components/table-action-bar/components/table-filter-menu/table-filter-menu.d.ts +1 -1
- package/dist/components/table/components/table-action-bar/components/table-filter-menu/types.d.ts +4 -4
- package/dist/components/table/components/table-action-bar/types.d.ts +4 -4
- package/dist/components/table/components/table-body/row-transformer.d.ts +2 -2
- package/dist/components/table/components/table-body/table-body.d.ts +1 -1
- package/dist/components/table/components/table-body/types.d.ts +2 -2
- package/dist/components/table/components/table-cell/column-tooltip-hoc.d.ts +2 -2
- package/dist/components/table/components/table-cell/types.d.ts +5 -5
- package/dist/components/table/components/table-error-state/types.d.ts +1 -1
- package/dist/components/table/components/table-header/components/table-column-configuration-button/table-column-configuration-button.d.ts +1 -1
- package/dist/components/table/components/table-header/components/table-column-configuration-button/types.d.ts +3 -3
- package/dist/components/table/components/table-header/components/table-column-configuration-button/utils.d.ts +2 -2
- package/dist/components/table/components/table-header/table-header.d.ts +1 -1
- package/dist/components/table/components/table-header/types.d.ts +3 -3
- package/dist/components/table/components/table-pagination/__fixtures__/table-pagination-factory.d.ts +1 -1
- package/dist/components/table/hooks/use-column-transformer.d.ts +1 -1
- package/dist/components/table/plugins/selection/table-selection-provider.d.ts +1 -1
- package/dist/components/table/plugins/selection/types.d.ts +2 -2
- package/dist/components/table/plugins/state-persistence/use-local-storage-table-state.d.ts +1 -1
- package/dist/components/table/plugins/state-persistence/utils.d.ts +1 -1
- package/dist/components/table/types/column-types.d.ts +3 -3
- package/dist/components/table/types/table-types.d.ts +1 -1
- package/dist/components/table/utils/__fixtures__/tanstack-builders.d.ts +2 -2
- package/dist/components/table/utils/column-resolution-utils.d.ts +2 -2
- package/dist/components/table/utils/get-table-view-state.d.ts +2 -2
- package/dist/components/table/utils/normalize-column-accessor.d.ts +1 -1
- package/dist/components/table/utils/transform-columns.d.ts +3 -3
- package/dist/components/tag/types.d.ts +1 -1
- package/dist/components/views/__fixtures__/table-config-factory.d.ts +1 -1
- package/dist/components/views/detail-view/components/detail-view-header/types.d.ts +1 -1
- package/dist/components/views/detail-view/components/detail-view-page-renderer/pages/detail-view-table-page/types.d.ts +2 -2
- package/dist/components/views/detail-view/components/detail-view-page-renderer/types.d.ts +1 -1
- package/dist/components/views/detail-view/components/detail-view-pages/detail-view-pages.d.ts +1 -1
- package/dist/components/views/detail-view/components/revision-selector/types.d.ts +1 -3
- package/dist/components/views/detail-view/components/revision-selector/types.d.ts.map +1 -1
- package/dist/components/views/detail-view/types/detail-view-component-types.d.ts +1 -1
- package/dist/components/views/detail-view/types/detail-view-schema-types.d.ts +3 -3
- package/dist/components/views/execution/__fixtures__/execution-schema-factory.d.ts +1 -1
- package/dist/components/views/execution/components/task-details/__fixtures__/task-details-fixtures.d.ts +1 -1
- package/dist/components/views/execution/components/task-details/renderers/types.d.ts +2 -2
- package/dist/components/views/execution/components/task-details/types.d.ts +2 -2
- package/dist/components/views/execution/components/task-state-icon.d.ts +1 -1
- package/dist/components/views/execution/components/task-step-card/styled-components.d.ts +1 -1
- package/dist/components/views/execution/components/task-step-card/types.d.ts +1 -1
- package/dist/components/views/execution/components/types.d.ts +1 -1
- package/dist/components/views/execution/styled-components.d.ts +2 -2
- package/dist/components/views/execution/types.d.ts +2 -2
- package/dist/components/views/execution/utils/__fixtures__/build-task-matrix-fixtures.d.ts +1 -1
- package/dist/components/views/phase-entity-view/types.d.ts +3 -3
- package/dist/components/views/phase-entity-view/utils/inject-list-options.d.ts +1 -1
- package/dist/components/views/phase-entity-view/utils.d.ts +1 -1
- package/dist/components/views/project/components/phase-card.d.ts +1 -1
- package/dist/components/views/project/constants.d.ts +1 -1
- package/dist/components/views/project/project-detail.d.ts +1 -1
- package/dist/components/views/types.d.ts +8 -8
- package/dist/components/views/utils/table-view-adapter.d.ts +3 -3
- package/dist/config/categories.d.ts +1 -1
- package/dist/config/entities/deployment/create-deployment-form.d.ts +1 -1
- package/dist/config/entities/deployment/deployment-form.d.ts.map +1 -1
- package/dist/config/entities/deployment/deployment-info-page.d.ts.map +1 -1
- package/dist/config/entities/deployment/deployment.d.ts +1 -1
- package/dist/config/entities/deployment/detail.d.ts +1 -1
- package/dist/config/entities/deployment/list.d.ts +1 -1
- package/dist/config/entities/deployment/shared.d.ts +32 -28
- package/dist/config/entities/deployment/shared.d.ts.map +1 -1
- package/dist/config/entities/deployment/types.d.ts +12 -24
- package/dist/config/entities/deployment/types.d.ts.map +1 -1
- package/dist/config/entities/deployment/update-deployment-form.d.ts +1 -1
- package/dist/config/entities/model/constants.d.ts +14 -18
- package/dist/config/entities/model/constants.d.ts.map +1 -1
- package/dist/config/entities/model/detail.d.ts +1 -1
- package/dist/config/entities/model/list.d.ts +2 -2
- package/dist/config/entities/model/model.d.ts +1 -1
- package/dist/config/entities/model/types.d.ts +1 -3
- package/dist/config/entities/model/types.d.ts.map +1 -1
- package/dist/config/entities/pipeline/create-pipeline-run-form.d.ts +3 -3
- package/dist/config/entities/pipeline/detail.d.ts +1 -1
- package/dist/config/entities/pipeline/format-trigger-schedule.d.ts +1 -1
- package/dist/config/entities/pipeline/format-trigger-schedule.d.ts.map +1 -1
- package/dist/config/entities/pipeline/list.d.ts +2 -2
- package/dist/config/entities/pipeline/pipeline.d.ts +1 -1
- package/dist/config/entities/pipeline/resume-step-option.d.ts +1 -1
- package/dist/config/entities/pipeline/resume-step-option.d.ts.map +1 -1
- package/dist/config/entities/pipeline/revision-list.d.ts +2 -2
- package/dist/config/entities/pipeline/run-trigger-fields.d.ts +1 -1
- package/dist/config/entities/pipeline/run-trigger-form.d.ts +1 -1
- package/dist/config/entities/pipeline/run-trigger-form.d.ts.map +1 -1
- package/dist/config/entities/pipeline/shared.d.ts +35 -2
- package/dist/config/entities/pipeline/shared.d.ts.map +1 -1
- package/dist/config/entities/pipeline/types.d.ts +2 -2
- package/dist/config/entities/pipeline/use-target-revision.d.ts +1 -1
- package/dist/config/entities/pipeline/utils/validate-emails.d.ts +1 -1
- package/dist/config/entities/run/detail.d.ts +1 -1
- package/dist/config/entities/run/detail.d.ts.map +1 -1
- package/dist/config/entities/run/list.d.ts +2 -2
- package/dist/config/entities/run/run.d.ts +1 -1
- package/dist/config/entities/run/shared.d.ts +31 -8
- package/dist/config/entities/run/shared.d.ts.map +1 -1
- package/dist/config/entities/run/types.d.ts +37 -17
- package/dist/config/entities/run/types.d.ts.map +1 -1
- package/dist/config/entities/targets/create-inference-server-form.d.ts +1 -1
- package/dist/config/entities/targets/detail.d.ts +1 -1
- package/dist/config/entities/targets/list.d.ts +1 -1
- package/dist/config/entities/targets/shared.d.ts +33 -24
- package/dist/config/entities/targets/shared.d.ts.map +1 -1
- package/dist/config/entities/targets/target.d.ts +1 -1
- package/dist/config/entities/targets/types.d.ts +8 -16
- package/dist/config/entities/targets/types.d.ts.map +1 -1
- package/dist/config/entities/trigger/detail.d.ts +1 -1
- package/dist/config/entities/trigger/detail.d.ts.map +1 -1
- package/dist/config/entities/trigger/list.d.ts +1 -1
- package/dist/config/entities/trigger/list.d.ts.map +1 -1
- package/dist/config/entities/trigger/shared.d.ts +15 -1
- package/dist/config/entities/trigger/shared.d.ts.map +1 -1
- package/dist/config/entities/trigger/trigger.d.ts +1 -1
- package/dist/config/entities/trigger/trigger.d.ts.map +1 -1
- package/dist/config/entities/trigger/types.d.ts +24 -49
- package/dist/config/entities/trigger/types.d.ts.map +1 -1
- package/dist/config/phases/data.d.ts +1 -1
- package/dist/config/phases/deploy.d.ts +1 -1
- package/dist/config/phases/monitor-debug.d.ts +1 -1
- package/dist/config/phases/retrain.d.ts +1 -1
- package/dist/config/phases/train.d.ts +1 -1
- package/dist/hooks/routing/use-studio-params/constants.d.ts +1 -1
- package/dist/hooks/routing/use-studio-params/normalize-entity-param.d.ts +1 -1
- package/dist/hooks/routing/use-studio-params/types.d.ts +2 -2
- package/dist/hooks/routing/use-studio-params/use-studio-params.d.ts +1 -1
- package/dist/hooks/use-schema-middleware/apply-middleware.d.ts +1 -1
- package/dist/hooks/use-schema-middleware/types.d.ts +1 -1
- package/dist/hooks/use-studio-mutation/types.d.ts +1 -1
- package/dist/hooks/use-studio-mutation/use-studio-mutation.d.ts +1 -1
- package/dist/hooks/use-studio-query.d.ts +2 -2
- package/dist/index.d.ts +98 -98
- package/dist/interpolation/base.d.ts +1 -1
- package/dist/interpolation/function-interpolation.d.ts +1 -1
- package/dist/interpolation/interpolate.d.ts +1 -1
- package/dist/interpolation/string-interpolation.d.ts +1 -1
- package/dist/interpolation/types.d.ts +3 -3
- package/dist/michelangelo-core.cjs +17 -17
- package/dist/michelangelo-core.js +6305 -6244
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.d.ts +28 -28
- package/dist/primitives.js +18 -18
- package/dist/providers/cell-provider/types.d.ts +1 -1
- package/dist/providers/error-provider/normalize-universal-error.d.ts +1 -1
- package/dist/providers/error-provider/types.d.ts +1 -1
- package/dist/providers/error-provider/use-error-normalizer.d.ts +1 -1
- package/dist/providers/form-provider/types.d.ts +1 -1
- package/dist/providers/interpolation-provider/interpolation-context.d.ts +1 -1
- package/dist/providers/interpolation-provider/interpolation-provider.d.ts +1 -1
- package/dist/providers/user-provider/types.d.ts +1 -1
- package/dist/router/__fixtures__/phase-config-factory.d.ts +2 -2
- package/dist/router/entity-detail-route.d.ts +1 -1
- package/dist/router/phase-list-route.d.ts +1 -1
- package/dist/router/studio-bar.d.ts +2 -2
- package/dist/test/wrappers/get-cell-provider-wrapper.d.ts +1 -1
- package/dist/test/wrappers/get-error-provider-wrapper.d.ts +1 -1
- package/dist/test/wrappers/get-form-provider-wrapper.d.ts +1 -1
- package/dist/test/wrappers/get-repeated-layout-provider-wrapper.d.ts +1 -1
- package/dist/test/wrappers/get-service-provider-wrapper.d.ts +1 -1
- package/dist/test/wrappers/get-user-provider-wrapper.d.ts +1 -1
- package/dist/{theme-provider-COiyZuiN.cjs → theme-provider-By9zS1MR.cjs} +95 -95
- package/dist/{theme-provider-BNH_ncy6.js → theme-provider-Ch35LB9m.js} +1823 -1808
- package/dist/themes/theme-provider.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/common/studio-types.d.ts +3 -3
- package/dist/types/query-types.d.ts +3 -3
- package/dist/utils/crd-utils.d.ts +33 -8
- package/dist/utils/crd-utils.d.ts.map +1 -1
- package/dist/utils/name-utils.d.ts +5 -1
- package/dist/utils/name-utils.d.ts.map +1 -1
- package/dist/utils/object-utils.d.ts +1 -1
- package/dist/utils/revision-utils.d.ts +1 -1
- package/dist/utils/time-utils.d.ts +24 -3
- package/dist/utils/time-utils.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActionConfigSchema, CreateActionConfig } from '../../components/actions/types';
|
|
2
|
-
import type { ViewConfig } from '../../components/views/types';
|
|
3
|
-
import type { QueryConfig } from '
|
|
1
|
+
import type { ActionConfigSchema, CreateActionConfig } from '../../components/actions/types.js';
|
|
2
|
+
import type { ViewConfig } from '../../components/views/types.js';
|
|
3
|
+
import type { QueryConfig } from '../query-types.js';
|
|
4
4
|
/** Reference to a Revision CR. */
|
|
5
5
|
export type RevisionRef = {
|
|
6
6
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { SuccessOperation } from '../components/actions/types';
|
|
2
|
-
import type { MiddlewareSchema } from '../hooks/use-schema-middleware/types';
|
|
3
|
-
import type { ApplicationError } from '
|
|
1
|
+
import type { SuccessOperation } from '../components/actions/types.js';
|
|
2
|
+
import type { MiddlewareSchema } from '../hooks/use-schema-middleware/types.js';
|
|
3
|
+
import type { ApplicationError } from './error-types.js';
|
|
4
4
|
/**
|
|
5
5
|
* Configuration for a query that can be used by {@link _useStudioQuery}
|
|
6
6
|
*/
|
|
@@ -26,15 +26,13 @@ export declare const K8S_NAME_RULES_MESSAGE = "Must only contain lowercase alpha
|
|
|
26
26
|
* }) // 1700000000
|
|
27
27
|
*
|
|
28
28
|
* getCrdUpdatedSeconds({
|
|
29
|
-
* metadata: { creationTimestamp:
|
|
29
|
+
* metadata: { creationTimestamp: '2022-04-15T05:20:00Z' },
|
|
30
30
|
* }) // 1650000000 (label absent, falls back to creation time)
|
|
31
31
|
*/
|
|
32
32
|
export declare function getCrdUpdatedSeconds(data: {
|
|
33
33
|
metadata?: {
|
|
34
34
|
labels?: Record<string, string>;
|
|
35
|
-
creationTimestamp?:
|
|
36
|
-
seconds: number;
|
|
37
|
-
};
|
|
35
|
+
creationTimestamp?: string;
|
|
38
36
|
};
|
|
39
37
|
}): number | undefined;
|
|
40
38
|
/**
|
|
@@ -54,15 +52,42 @@ export declare function getCrdUpdatedSeconds(data: {
|
|
|
54
52
|
* }) // 1700000000
|
|
55
53
|
*
|
|
56
54
|
* getCrdLastUpdatedSeconds({
|
|
57
|
-
* metadata: { creationTimestamp:
|
|
55
|
+
* metadata: { creationTimestamp: '2022-04-15T05:20:00Z' },
|
|
58
56
|
* }) // 1650000000 (label absent, falls back to creation time)
|
|
59
57
|
*/
|
|
60
58
|
export declare function getCrdLastUpdatedSeconds(data: {
|
|
61
59
|
metadata?: {
|
|
62
60
|
labels?: Record<string, string>;
|
|
63
|
-
creationTimestamp?:
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
creationTimestamp?: string;
|
|
62
|
+
};
|
|
63
|
+
}): number | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Resolves the epoch-seconds timestamp to display as a pipeline run's execution time.
|
|
66
|
+
*
|
|
67
|
+
* Pipeline runs stamp the actual dispatch time via a `pipelinerun.michelangelo/execution-timestamp`
|
|
68
|
+
* metadata label, falling back to `metadata.creationTimestamp` for rows created before the label
|
|
69
|
+
* existed.
|
|
70
|
+
*
|
|
71
|
+
* Unlike {@link getCrdUpdatedSeconds}'s and {@link getCrdLastUpdatedSeconds}'s labels — both
|
|
72
|
+
* stamped by the apiserver in microseconds (`time.Now().UnixMicro()` in `go/api/handler/handler.go`)
|
|
73
|
+
* — this label is stamped by the trigger workflow in already-epoch-seconds
|
|
74
|
+
* (`fmt.Sprintf("%d", ts.Unix())` in `go/worker/workflows/trigger/cron_trigger_workflows.go`), the
|
|
75
|
+
* same value it exports to the pipeline's own environment as `STARLARK_TIME=unix:<seconds>`
|
|
76
|
+
* (`go/components/pipelinerun/actors/executeworkflow.go`). No scaling needed.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* getCrdExecutionTimestampSeconds({
|
|
80
|
+
* metadata: { labels: { 'pipelinerun.michelangelo/execution-timestamp': '1700000000' } },
|
|
81
|
+
* }) // 1700000000
|
|
82
|
+
*
|
|
83
|
+
* getCrdExecutionTimestampSeconds({
|
|
84
|
+
* metadata: { creationTimestamp: '2022-04-15T05:20:00Z' },
|
|
85
|
+
* }) // 1650000000 (label absent, falls back to creation time)
|
|
86
|
+
*/
|
|
87
|
+
export declare function getCrdExecutionTimestampSeconds(data: {
|
|
88
|
+
metadata?: {
|
|
89
|
+
labels?: Record<string, string>;
|
|
90
|
+
creationTimestamp?: string;
|
|
66
91
|
};
|
|
67
92
|
}): number | undefined;
|
|
68
93
|
//# sourceMappingURL=crd-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crd-utils.d.ts","sourceRoot":"","sources":["../../utils/crd-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"crd-utils.d.ts","sourceRoot":"","sources":["../../utils/crd-utils.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,gBAAgB,QAAoC,CAAC;AAClE,eAAO,MAAM,sBAAsB,oHACgF,CAAC;AAEpH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE;IACzC,QAAQ,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5E,GAAG,MAAM,GAAG,SAAS,CAKrB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE;IAC7C,QAAQ,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5E,GAAG,MAAM,GAAG,SAAS,CAKrB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,+BAA+B,CAAC,IAAI,EAAE;IACpD,QAAQ,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5E,GAAG,MAAM,GAAG,SAAS,CAKrB"}
|
|
@@ -26,5 +26,9 @@ export declare const generateSuffix: (config?: {
|
|
|
26
26
|
* Shared by every place a TriggerRun name is generated — starting one fresh from a trigger's
|
|
27
27
|
* manifest and replaying an existing run as a rerun both need the same classification.
|
|
28
28
|
*/
|
|
29
|
-
export declare function resolveTriggerRunTypePrefix(
|
|
29
|
+
export declare function resolveTriggerRunTypePrefix(trigger: {
|
|
30
|
+
batchRerun?: unknown;
|
|
31
|
+
cronSchedule?: unknown;
|
|
32
|
+
intervalSchedule?: unknown;
|
|
33
|
+
} | undefined, isBackfill: boolean): string;
|
|
30
34
|
//# sourceMappingURL=name-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"name-utils.d.ts","sourceRoot":"","sources":["../../utils/name-utils.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,YAAY;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,KAAyB,MAsBpF,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CACzC,
|
|
1
|
+
{"version":3,"file":"name-utils.d.ts","sourceRoot":"","sources":["../../utils/name-utils.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,YAAY;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,KAAyB,MAsBpF,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,EACjG,UAAU,EAAE,OAAO,GAClB,MAAM,CAIR"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Accessor } from '../types/common/studio-types';
|
|
1
|
+
import type { Accessor } from '../types/common/studio-types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Excludes arrays and null, unlike a plain `typeof x === 'object'` check.
|
|
4
4
|
* Use to narrow `unknown` before accessing properties by key.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RevisionRef } from '../types/common/studio-types';
|
|
1
|
+
import type { RevisionRef } from '../types/common/studio-types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Revision ids are git refs. To follow the controller naming scheme for
|
|
4
4
|
* revisioned entity, we display the first 12 characters of the git ref.
|
|
@@ -1,10 +1,30 @@
|
|
|
1
|
-
import { TimeZone } from '../types/time-types';
|
|
1
|
+
import { TimeZone } from '../types/time-types.js';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Normalizes a timestamp to epoch seconds. Accepts epoch seconds, as a number or a numeric string
|
|
4
|
+
* (e.g. a timestamp label), or an RFC 3339 string, as a `google.protobuf.Timestamp` arrives in
|
|
5
|
+
* proto3 JSON. Returns NaN when neither parses.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* - toEpochSeconds('1720656638') -> 1720656638
|
|
9
|
+
* - toEpochSeconds('2024-07-11T00:10:38Z') -> 1720656638
|
|
10
|
+
*/
|
|
11
|
+
export declare function toEpochSeconds(timestamp: string | number): number;
|
|
12
|
+
/**
|
|
13
|
+
* Parses a proto3 JSON `google.protobuf.Duration` (e.g. "3600s", "1.5s") into seconds.
|
|
14
|
+
* Returns undefined when the duration is absent or unparseable.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* - durationToSeconds('3600s') -> 3600
|
|
18
|
+
* - durationToSeconds(undefined) -> undefined
|
|
19
|
+
*/
|
|
20
|
+
export declare function durationToSeconds(duration?: string): number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Converts a timestamp (see {@link toEpochSeconds} for accepted forms) to a string.
|
|
4
23
|
* If timezone kind is specified, it adjust the time and also adds a timezone info.
|
|
5
24
|
*
|
|
6
25
|
* @example
|
|
7
26
|
* - timestampToString(1720656638) -> '2024/07/11 02:10:38'
|
|
27
|
+
* - timestampToString('2024-07-11T00:10:38Z', 'utc') -> '2024/07/11 00:10:38 (UTC)'
|
|
8
28
|
* - timestampToString(1720656639, 'utc') -> '2024/07/11 00:10:39 (UTC)'
|
|
9
29
|
* - timestampToString(1720656639, 'local') -> '2024/07/11 02:10:39 (GMT+2)'
|
|
10
30
|
*/
|
|
@@ -22,13 +42,14 @@ export declare function getDateFromEpochSeconds(epochSeconds: number): Date;
|
|
|
22
42
|
*/
|
|
23
43
|
export declare function getEpochSecondsFromDate(date: Date): number;
|
|
24
44
|
/**
|
|
25
|
-
* Formats the elapsed time between two
|
|
45
|
+
* Formats the elapsed time between two timestamps (see {@link toEpochSeconds} for accepted forms).
|
|
26
46
|
*
|
|
27
47
|
* Returns null when either bound is missing — a step that has not started, or one
|
|
28
48
|
* still running — so callers can render their own placeholder.
|
|
29
49
|
*
|
|
30
50
|
* @example
|
|
31
51
|
* formatElapsedSeconds('1720656638', '1720656690') // "52s"
|
|
52
|
+
* formatElapsedSeconds('2024-07-11T00:10:38Z', '2024-07-11T00:11:30Z') // "52s"
|
|
32
53
|
* formatElapsedSeconds('1720656638', undefined) // null
|
|
33
54
|
*/
|
|
34
55
|
export declare function formatElapsedSeconds(startSeconds?: string | number, endSeconds?: string | number): string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-utils.d.ts","sourceRoot":"","sources":["../../utils/time-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAC9B,QAAQ,CAAC,EAAE,QAAQ,GAClB,MAAM,GAAG,IAAI,CAkCf;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAElE;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE1D;AAED
|
|
1
|
+
{"version":3,"file":"time-utils.d.ts","sourceRoot":"","sources":["../../utils/time-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAGjE;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGvE;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAC9B,QAAQ,CAAC,EAAE,QAAQ,GAClB,MAAM,GAAG,IAAI,CAkCf;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAElE;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE1D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAC3B,MAAM,GAAG,IAAI,CAaf;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAYvF"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michelangelo-ai/core",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.13.0-rc.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/michelangelo-core.js",
|
|
7
7
|
"module": "./dist/michelangelo-core.js",
|
|
@@ -36,18 +36,18 @@
|
|
|
36
36
|
"validator": "^13.15.15"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@testing-library/dom": "^10.4.
|
|
39
|
+
"@testing-library/dom": "^10.4.2",
|
|
40
40
|
"@testing-library/jest-dom": "^6.6.3",
|
|
41
|
-
"@testing-library/react": "^16.3.
|
|
42
|
-
"@testing-library/user-event": "^14.6.
|
|
41
|
+
"@testing-library/react": "^16.3.3",
|
|
42
|
+
"@testing-library/user-event": "^14.6.7",
|
|
43
43
|
"@types/jest": "^29.5.14",
|
|
44
44
|
"@types/final-form-focus": "^1.1.7",
|
|
45
|
-
"@types/lodash": "^4.17.
|
|
45
|
+
"@types/lodash": "^4.17.25",
|
|
46
46
|
"@types/react-router": "^5.1.20",
|
|
47
|
-
"@types/validator": "^13.15.
|
|
47
|
+
"@types/validator": "^13.15.10",
|
|
48
48
|
"@vitejs/plugin-react": "^4.4.1",
|
|
49
|
-
"happy-dom": "^20.
|
|
50
|
-
"tsc-alias": "^1.
|
|
49
|
+
"happy-dom": "^20.14.5",
|
|
50
|
+
"tsc-alias": "^1.9.7",
|
|
51
51
|
"vitest": "^3.1.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|