@spinnaker/core 2025.0.5 → 2025.1.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.
Files changed (116) hide show
  1. package/dist/api/ApiService.d.ts +2 -2
  2. package/dist/api/mock/mockHttpUtils.d.ts +2 -2
  3. package/dist/application/listExtractor/AppListExtractor.d.ts +2 -2
  4. package/dist/bootstrap/paramChangedHelper.d.ts +1 -1
  5. package/dist/cloudProvider/providerSelection/ProviderSelectionService.d.ts +1 -1
  6. package/dist/cluster/filter/ClusterFilterService.d.ts +1 -1
  7. package/dist/cluster/task.matcher.d.ts +1 -1
  8. package/dist/domain/IManagedEntity.d.ts +8 -8
  9. package/dist/domain/IServerGroup.d.ts +1 -0
  10. package/dist/domain/IStageTypeConfig.d.ts +1 -1
  11. package/dist/entityTag/notifications/NotificationsPopover.d.ts +1 -1
  12. package/dist/image/image.reader.d.ts +2 -2
  13. package/dist/index.js +1726 -1521
  14. package/dist/index.js.map +1 -1
  15. package/dist/managed/config/Configuration.d.ts +1 -1
  16. package/dist/managed/config/GitIntegration.d.ts +1 -1
  17. package/dist/managed/constraints/registry.d.ts +2 -2
  18. package/dist/managed/graphql/graphql-sdk.d.ts +137 -137
  19. package/dist/managed/managed.states.d.ts +1 -1
  20. package/dist/managed/overview/artifact/ArtifactActionModal.d.ts +1 -1
  21. package/dist/managed/overview/artifact/VersionOperation.d.ts +3 -3
  22. package/dist/managed/overview/artifact/utils.d.ts +2 -2
  23. package/dist/managed/overview/types.d.ts +9 -9
  24. package/dist/managed/resourceHistory/ManagedResourceHistoryModal.d.ts +1 -1
  25. package/dist/managed/resources/ResourceDefinitionModal.d.ts +1 -1
  26. package/dist/managed/resources/resourceRegistry.d.ts +1 -1
  27. package/dist/managed/versionMetadata/MetadataComponents.d.ts +1 -1
  28. package/dist/managed/versionsHistory/types.d.ts +6 -6
  29. package/dist/manifest/ManifestYaml.d.ts +1 -1
  30. package/dist/modal/wizard/WizardPage.d.ts +1 -1
  31. package/dist/navigation/urlParser.d.ts +1 -1
  32. package/dist/pagerDuty/Pager.d.ts +1 -1
  33. package/dist/pipeline/config/actions/pipelineJson/EditPipelineJsonModal.d.ts +1 -1
  34. package/dist/pipeline/config/stages/FormikStageConfig.d.ts +2 -2
  35. package/dist/pipeline/config/stages/bakeManifest/helm/BakeHelmConfigForm.d.ts +1 -0
  36. package/dist/pipeline/config/stages/common/ExecutionDetailsSection.d.ts +1 -1
  37. package/dist/pipeline/config/stages/entityTags/TagEditor.d.ts +1 -1
  38. package/dist/pipeline/config/templates/PipelineTemplateReader.d.ts +1 -1
  39. package/dist/pipeline/config/triggers/artifacts/helm-image/HelmImageArtifactEditor.d.ts +3 -0
  40. package/dist/pipeline/config/validation/anyFieldRequired.validator.d.ts +1 -1
  41. package/dist/pipeline/config/validation/requiredField.validator.d.ts +1 -1
  42. package/dist/plugins/plugin.registry.d.ts +1 -1
  43. package/dist/presentation/Placement.d.ts +1 -1
  44. package/dist/presentation/Popover.d.ts +1 -1
  45. package/dist/presentation/details/Details.d.ts +7 -0
  46. package/dist/presentation/forms/fields/FormField.d.ts +1 -1
  47. package/dist/presentation/forms/fields/FormikExpressionField.d.ts +1 -1
  48. package/dist/presentation/forms/fields/FormikExpressionRegexField.d.ts +1 -1
  49. package/dist/presentation/forms/fields/FormikFormField.d.ts +1 -1
  50. package/dist/presentation/forms/inputs/interface.d.ts +2 -2
  51. package/dist/presentation/forms/validation/categories.d.ts +3 -3
  52. package/dist/presentation/forms/validation/validation.d.ts +3 -3
  53. package/dist/presentation/hooks/useLatestPromise.hook.d.ts +1 -1
  54. package/dist/presentation/modal/showModal.d.ts +1 -1
  55. package/dist/presentation/tables/Table.d.ts +1 -1
  56. package/dist/presentation/tables/TableCell.d.ts +1 -1
  57. package/dist/presentation/tables/TableRow.d.ts +1 -1
  58. package/dist/presentation/tables/standardGridTableLayout.d.ts +1 -1
  59. package/dist/projects/Projects.d.ts +2 -0
  60. package/dist/projects/index.d.ts +1 -0
  61. package/dist/projects/projects.module.d.ts +3 -2
  62. package/dist/reactShims/AngularJSAdapter.d.ts +3 -3
  63. package/dist/search/infrastructure/SearchResultPods.d.ts +1 -1
  64. package/dist/search/infrastructure/infrastructureSearch.service.d.ts +1 -1
  65. package/dist/serverGroup/details/ServerGroupDetailsWrapper.d.ts +1 -1
  66. package/dist/serverGroupManager/index.d.ts +1 -0
  67. package/dist/serverGroupManager/serverGroupManager.states.d.ts +1 -1
  68. package/dist/utils/Logger.d.ts +1 -1
  69. package/dist/utils/feature/Feature.d.ts +58 -0
  70. package/dist/utils/feature/FeatureContext.d.ts +24 -0
  71. package/dist/utils/feature/index.d.ts +3 -0
  72. package/dist/utils/feature/useFeature.hook.d.ts +15 -0
  73. package/dist/utils/index.d.ts +2 -0
  74. package/dist/utils/json/traverseObject.d.ts +1 -1
  75. package/dist/utils/parseNum.d.ts +1 -0
  76. package/dist/utils/testUtils/index.d.ts +7 -0
  77. package/dist/utils/workerPool.d.ts +1 -1
  78. package/package.json +3 -3
  79. package/src/artifact/ArtifactIconService.ts +1 -0
  80. package/src/artifact/ArtifactTypes.ts +1 -0
  81. package/src/artifact/ExpectedArtifactSelectorViewController.ts +1 -1
  82. package/src/config/VersionChecker.tsx +1 -1
  83. package/src/domain/IServerGroup.ts +1 -0
  84. package/src/help/help.contents.ts +1 -1
  85. package/src/navigation/UrlBuilder.ts +15 -0
  86. package/src/notification/NotificationsList.tsx +12 -8
  87. package/src/pipeline/config/stages/bakeManifest/helm/BakeHelmConfigForm.tsx +8 -2
  88. package/src/pipeline/config/triggers/artifacts/helm-image/HelmImageArtifactEditor.tsx +169 -0
  89. package/src/pipeline/config/triggers/artifacts/index.ts +3 -0
  90. package/src/pipeline/config/validation/PipelineConfigValidator.ts +2 -2
  91. package/src/pipeline/executions/executionGroup/ExecutionGroups.tsx +37 -2
  92. package/src/pipeline/filter/executionFilter.service.ts +50 -5
  93. package/src/presentation/details/Details.tsx +18 -1
  94. package/src/presentation/forms/FormikForm.tsx +1 -1
  95. package/src/projects/ProjectHeader.tsx +12 -9
  96. package/src/projects/Projects.spec.tsx +141 -0
  97. package/src/projects/Projects.tsx +148 -0
  98. package/src/projects/index.ts +1 -0
  99. package/src/projects/{projects.module.js → projects.module.ts} +0 -2
  100. package/src/projects/projects.states.ts +4 -6
  101. package/src/serverGroup/details/ServerGroupDetails.tsx +1 -1
  102. package/src/serverGroupManager/ServerGroupManager.tsx +2 -0
  103. package/src/serverGroupManager/ServerGroupManagerTag.tsx +1 -1
  104. package/src/serverGroupManager/index.ts +1 -0
  105. package/src/serverGroupManager/serverGroupManager.states.ts +3 -3
  106. package/src/utils/feature/Feature.tsx +98 -0
  107. package/src/utils/feature/FeatureContext.tsx +49 -0
  108. package/src/utils/feature/index.ts +3 -0
  109. package/src/utils/feature/useFeature.hook.tsx +25 -0
  110. package/src/utils/index.ts +2 -0
  111. package/src/utils/parseNum.ts +2 -0
  112. package/src/utils/testUtils/index.tsx +30 -0
  113. package/dist/projects/projects.controller.d.ts +0 -2
  114. package/src/projects/projects.controller.js +0 -112
  115. package/src/projects/projects.controller.spec.js +0 -86
  116. package/src/projects/projects.html +0 -87
@@ -1,6 +1,6 @@
1
1
  import type { ICache } from '../cache/deckCacheFactory';
2
- declare type IPrimitive = string | boolean | number;
3
- declare type IParams = Record<string, IPrimitive | IPrimitive[]>;
2
+ type IPrimitive = string | boolean | number;
3
+ type IParams = Record<string, IPrimitive | IPrimitive[]>;
4
4
  interface Headers {
5
5
  [headerName: string]: string;
6
6
  }
@@ -1,5 +1,5 @@
1
- export declare type Verb = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
2
- export declare type UrlArg = string | RegExp | ((url: string) => boolean);
1
+ export type Verb = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
2
+ export type UrlArg = string | RegExp | ((url: string) => boolean);
3
3
  export interface IDeferred {
4
4
  promise: Promise<any>;
5
5
  resolve: (result: any) => void;
@@ -1,8 +1,8 @@
1
1
  import type { Application } from '../application.model';
2
2
  import type { IInstance, IServerGroup } from '../../domain';
3
3
  import type { IMoniker } from '../../naming/IMoniker';
4
- export declare type IServerGroupFilter = (s: IServerGroup) => boolean;
5
- export declare type IInstanceFilter = (i: IInstance) => boolean;
4
+ export type IServerGroupFilter = (s: IServerGroup) => boolean;
5
+ export type IInstanceFilter = (i: IInstance) => boolean;
6
6
  export declare class AppListExtractor {
7
7
  static getMonikers(applications: Application[], filter?: IServerGroupFilter): IMoniker[];
8
8
  static getRegions(applications: Application[], filter?: IServerGroupFilter): string[];
@@ -1,4 +1,4 @@
1
1
  import type { HookResult, TargetState, Transition } from '@uirouter/core';
2
- declare type ParamChangedCallback = (newVal: any, oldVal?: any) => HookResult | TargetState;
2
+ type ParamChangedCallback = (newVal: any, oldVal?: any) => HookResult | TargetState;
3
3
  export declare const paramChangedHelper: (paramName: string, changedHandler: ParamChangedCallback) => (transition: Transition) => HookResult;
4
4
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { ICloudProviderConfig } from '../CloudProviderRegistry';
2
2
  import type { IAccountDetails } from '../../account';
3
3
  import type { Application } from '../../application';
4
- export declare type IProviderSelectionFilter = (app: Application, acc: IAccountDetails, prov: ICloudProviderConfig) => boolean;
4
+ export type IProviderSelectionFilter = (app: Application, acc: IAccountDetails, prov: ICloudProviderConfig) => boolean;
5
5
  export declare class ProviderSelectionService {
6
6
  static selectProvider(application: Application, feature: string, filterFn?: IProviderSelectionFilter): PromiseLike<string>;
7
7
  static isDisabled(app: Application): PromiseLike<boolean>;
@@ -31,7 +31,7 @@ export interface IServerGroupSubgroup {
31
31
  isManaged: boolean;
32
32
  managedResourceSummary?: IManagedResourceSummary;
33
33
  }
34
- export declare type Grouping = IClusterGroup | IClusterSubgroup | IServerGroupSubgroup;
34
+ export type Grouping = IClusterGroup | IClusterSubgroup | IServerGroupSubgroup;
35
35
  export declare class ClusterFilterService {
36
36
  groupsUpdatedStream: Subject<IClusterGroup[]>;
37
37
  private lastApplication;
@@ -1,5 +1,5 @@
1
1
  import type { IServerGroup, ITask } from '../domain';
2
- export declare type ITaskMatcher = (task: ITask, serverGroup: IServerGroup) => boolean;
2
+ export type ITaskMatcher = (task: ITask, serverGroup: IServerGroup) => boolean;
3
3
  /**
4
4
  * Match running tasks for an application to a specific server group.
5
5
  * This allows the tasks to be displayed in the server group details, or
@@ -16,8 +16,8 @@ export declare enum ManagedResourceStatus {
16
16
  WAITING = "WAITING",
17
17
  DELETING = "DELETING"
18
18
  }
19
- declare type DeprecatedStatus = 'OVERRIDE_PASS' | 'OVERRIDE_FAIL' | 'NOT_EVALUATED';
20
- export declare type ConstraintStatus = DeprecatedStatus | MdConstraintStatus;
19
+ type DeprecatedStatus = 'OVERRIDE_PASS' | 'OVERRIDE_FAIL' | 'NOT_EVALUATED';
20
+ export type ConstraintStatus = DeprecatedStatus | MdConstraintStatus;
21
21
  export interface IBaseConstraint {
22
22
  type: string;
23
23
  status: ConstraintStatus;
@@ -48,7 +48,7 @@ export interface IAllowedTimesConstraint extends IBaseConstraint {
48
48
  export interface IManualJudgementConstraint extends IBaseConstraint {
49
49
  type: 'manual-judgement';
50
50
  }
51
- export declare type IConstraint = IBaseConstraint | IManualJudgementConstraint | IDependsOnConstraint | IAllowedTimesConstraint;
51
+ export type IConstraint = IBaseConstraint | IManualJudgementConstraint | IDependsOnConstraint | IAllowedTimesConstraint;
52
52
  export interface IManagedResourceSummary {
53
53
  id: string;
54
54
  kind: string;
@@ -175,8 +175,8 @@ interface IManagedApplicationEntities {
175
175
  environments: IManagedEnvironmentSummary[];
176
176
  artifacts: IManagedArtifactSummary[];
177
177
  }
178
- export declare type IManagedApplicationEnvironmentSummary = IManagedApplicationSummary<'resources' | 'artifacts' | 'environments'>;
179
- export declare type IManagedApplicationSummary<T extends keyof IManagedApplicationEntities = 'resources'> = Pick<IManagedApplicationEntities, T> & {
178
+ export type IManagedApplicationEnvironmentSummary = IManagedApplicationSummary<'resources' | 'artifacts' | 'environments'>;
179
+ export type IManagedApplicationSummary<T extends keyof IManagedApplicationEntities = 'resources'> = Pick<IManagedApplicationEntities, T> & {
180
180
  applicationPaused: boolean;
181
181
  hasManagedResources: boolean;
182
182
  };
@@ -184,7 +184,7 @@ export interface IManagedResource {
184
184
  managedResourceSummary?: IManagedResourceSummary;
185
185
  isManaged?: boolean;
186
186
  }
187
- export declare type ManagedResourceEventType = 'ResourceCreated' | 'ResourceUpdated' | 'ResourceDeleted' | 'ResourceMissing' | 'ResourceValid' | 'ResourceDeltaDetected' | 'ResourceDeltaResolved' | 'ResourceActuationLaunched' | 'ResourceCheckError' | 'ResourceCheckUnresolvable' | 'ResourceActuationPaused' | 'ResourceActuationVetoed' | 'ResourceActuationResumed';
187
+ export type ManagedResourceEventType = 'ResourceCreated' | 'ResourceUpdated' | 'ResourceDeleted' | 'ResourceMissing' | 'ResourceValid' | 'ResourceDeltaDetected' | 'ResourceDeltaResolved' | 'ResourceActuationLaunched' | 'ResourceCheckError' | 'ResourceCheckUnresolvable' | 'ResourceActuationPaused' | 'ResourceActuationVetoed' | 'ResourceActuationResumed';
188
188
  export interface IManagedResourceDiff {
189
189
  [fieldName: string]: {
190
190
  key: string;
@@ -212,8 +212,8 @@ export interface IManagedResourceEvent {
212
212
  reason?: string;
213
213
  exceptionMessage?: string;
214
214
  }
215
- export declare type IManagedResourceEventHistory = IManagedResourceEvent[];
216
- export declare type IManagedResourceEventHistoryResponse = Array<Omit<IManagedResourceEvent, 'delta'> & {
215
+ export type IManagedResourceEventHistory = IManagedResourceEvent[];
216
+ export type IManagedResourceEventHistoryResponse = Array<Omit<IManagedResourceEvent, 'delta'> & {
217
217
  delta?: {
218
218
  [key: string]: {
219
219
  state: 'CHANGED' | 'ADDED' | 'REMOVED';
@@ -13,6 +13,7 @@ export interface IAsg {
13
13
  tags?: any[];
14
14
  }
15
15
  export interface IServerGroup extends IManagedResource {
16
+ [key: string]: any;
16
17
  account: string;
17
18
  app?: string;
18
19
  asg?: IAsg;
@@ -4,7 +4,7 @@ import type { IStage } from './IStage';
4
4
  import type { IStageOrTriggerTypeConfig } from './IStageOrTriggerTypeConfig';
5
5
  import type { IExecutionDetailsSectionProps } from '../pipeline/config/stages/common';
6
6
  import type { IStageSummaryProps } from '../pipeline/details/StageSummary';
7
- export declare type IExecutionDetailsSection = React.ComponentType<IExecutionDetailsSectionProps> & {
7
+ export type IExecutionDetailsSection = React.ComponentType<IExecutionDetailsSectionProps> & {
8
8
  title: string;
9
9
  };
10
10
  export interface IStageTypeConfig extends IStageOrTriggerTypeConfig {
@@ -4,7 +4,7 @@ import type { IEntityTag, IEntityTags } from '../../domain';
4
4
  import type { Placement } from '../../presentation';
5
5
  import './notifications.less';
6
6
  import './notifications.popover.less';
7
- export declare type NotificationType = 'alerts' | 'notices';
7
+ export type NotificationType = 'alerts' | 'notices';
8
8
  /** A UI notification. */
9
9
  export interface INotification {
10
10
  /** the notification message, category, etc */
@@ -1,12 +1,12 @@
1
1
  import type { ProviderServiceDelegate } from '../cloudProvider/providerService.delegate';
2
- export declare type IFindImageParams = {
2
+ export type IFindImageParams = {
3
3
  provider: string;
4
4
  q?: string;
5
5
  region?: string;
6
6
  account?: string;
7
7
  count?: number;
8
8
  };
9
- export declare type IFindTagsParams = {
9
+ export type IFindTagsParams = {
10
10
  provider: string;
11
11
  account: string;
12
12
  repository: string;