@digital-ai/devops-page-object-release 0.0.49 → 0.0.51

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/types.d.ts CHANGED
@@ -180,6 +180,11 @@ declare class AttributeRail extends WithPage {
180
180
  fillInputValue(labelName: string, value: string): Promise<void>;
181
181
  saveAttributes(): Promise<void>;
182
182
  cancelAttribute(): Promise<void>;
183
+ setInputTextField(fieldId: string, value: string): Promise<void>;
184
+ expectFacetCountToBe(count: number): Promise<void>;
185
+ expectFieldValueToBe(fieldId: string, value: string): Promise<void>;
186
+ clickEditExistingFacet(facetName: string): Promise<void>;
187
+ deleteFacet(faceName: string): Promise<void>;
183
188
  }
184
189
  declare class ConditionRail extends WithPage {
185
190
  railLocator: Locator;
@@ -378,6 +383,7 @@ declare class SchedulingRail extends WithPage {
378
383
  dateUtil: DateUtil;
379
384
  constructor(page: Page);
380
385
  expectStartDateToBeDisplayed(): Promise<void>;
386
+ expectStartDateToBe(date: any): Promise<void>;
381
387
  expectEndDateToBeDisplayed(): Promise<void>;
382
388
  switchWaitForScheduledDate(): Promise<void>;
383
389
  expectWaitForScheduledDateToBeChecked(): Promise<void>;
@@ -386,6 +392,10 @@ declare class SchedulingRail extends WithPage {
386
392
  setStartDate(date: string, monthYear: string): Promise<void>;
387
393
  setEndDate(date: string, monthYear: string): Promise<void>;
388
394
  setDate(date: string, monthYear: string): Promise<void>;
395
+ checkDelayDuringBlackoutPeriod(): Promise<void>;
396
+ unCheckDelayDuringBlackoutPeriod(): Promise<void>;
397
+ checkEnvironmentAvailability(): Promise<void>;
398
+ unCheckEnvironmentAvailability(): Promise<void>;
389
399
  }
390
400
  type Rail = 'Overview' | 'Activity' | 'Config' | 'Scheduling' | 'Conditions' | 'Attributes' | 'Attach' | 'Tags';
391
401
  declare class TaskDrawer extends WithPage {
@@ -625,6 +635,7 @@ declare class ReleasePage extends WithPage {
625
635
  expectVariableToBeFound(variableName: string): Promise<void>;
626
636
  expectNotFlagged(): Promise<void>;
627
637
  expectRiskFlagOnTaskCard(): Promise<void>;
638
+ expectBlackoutIconOnTaskCard(taskTitle: string): Promise<void>;
628
639
  expectFlagOnCompletedTaskCard(): Promise<void>;
629
640
  refresh(): Promise<void>;
630
641
  start(): Promise<void>;
@@ -1062,6 +1073,16 @@ declare class ReleaseCalendarPage extends WithPage {
1062
1073
  viewRelease(release_title: string, release_id: string): Promise<void>;
1063
1074
  viewDependency(source_release: string, dest_release: string): Promise<void>;
1064
1075
  downloadIcsCalendar(release_title: string): Promise<number>;
1076
+ openBlackoutPeriod(date: string): Promise<BlackoutPeriod>;
1077
+ }
1078
+ declare class BlackoutPeriod extends WithPage {
1079
+ dateField: string;
1080
+ constructor(date: string, page: Page);
1081
+ edit(): Promise<this>;
1082
+ delete(): Promise<this>;
1083
+ findBlackout(): Promise<void>;
1084
+ setEndDate(date: Date): Promise<this>;
1085
+ save(): Promise<this>;
1065
1086
  }
1066
1087
  declare class ReleaseGroupPage extends WithPage {
1067
1088
  setStatus(status: string): Promise<void>;
@@ -1639,6 +1660,7 @@ interface Task extends PlanItem {
1639
1660
  body?: string;
1640
1661
  comments: Array<Comment>;
1641
1662
  conditions: Array<Condition>;
1663
+ delayDuringBlackout: boolean;
1642
1664
  dependencies: Array<_Dependency1>;
1643
1665
  description?: string;
1644
1666
  dueDate?: Date;
@@ -1649,6 +1671,7 @@ interface Task extends PlanItem {
1649
1671
  links: Array<Link>;
1650
1672
  locked: boolean;
1651
1673
  newReleaseTitle?: string;
1674
+ originalScheduledStartDate: string;
1652
1675
  owner?: string;
1653
1676
  plannedDuration: number;
1654
1677
  precondition: string;
@@ -1809,9 +1832,68 @@ interface Delivery extends PlanItem {
1809
1832
  stages: Array<Stage>;
1810
1833
  status: string;
1811
1834
  }
1812
- interface Stage extends PlanItem {
1835
+ interface Stage {
1836
+ id?: null | string;
1837
+ title?: string;
1838
+ type: string;
1839
+ }
1840
+ interface Reservation {
1841
+ applications?: Array<ApplicationFixture> | string;
1842
+ endDate: string;
1843
+ environment: Array<EnvironmentFixture> | string;
1844
+ id?: null | string;
1845
+ note?: string;
1846
+ startDate: string;
1847
+ type?: string;
1848
+ }
1849
+ interface ApplicationFixture {
1850
+ environments?: Array<EnvironmentFixture>;
1851
+ folderId?: string | null;
1852
+ id?: string | null;
1853
+ title?: string;
1854
+ type?: string;
1855
+ }
1856
+ interface EnvironmentFixture {
1857
+ description?: string;
1858
+ folderId?: string | null;
1859
+ id: null | string;
1860
+ labels?: Array<Label>;
1861
+ stage?: Stage;
1862
+ title?: string;
1863
+ type?: string;
1864
+ }
1865
+ interface Label extends PlanItem {
1866
+ color: string;
1813
1867
  title: string;
1814
- type: 'delivery.Stage';
1868
+ }
1869
+ interface Facet extends BaseConfigurationItem {
1870
+ analysisDate?: string;
1871
+ applicationId?: Array<ApplicationFixture> | string;
1872
+ build?: string;
1873
+ build_url?: string;
1874
+ complianceData?: string;
1875
+ createdBy?: string;
1876
+ creationDate?: string;
1877
+ duration?: string;
1878
+ endDate?: string;
1879
+ environmentId?: Array<EnvironmentFixture> | string;
1880
+ outcome?: string;
1881
+ priority?: string;
1882
+ project?: string;
1883
+ project_url?: string;
1884
+ record?: string;
1885
+ record_url?: string;
1886
+ serverUrl?: string;
1887
+ serverUser?: string;
1888
+ startDate?: string;
1889
+ status?: string;
1890
+ targetId?: string;
1891
+ ticket?: string;
1892
+ ticketType?: string;
1893
+ ticket_url?: string;
1894
+ title?: string;
1895
+ updatedDate?: string;
1896
+ version?: string;
1815
1897
  }
1816
1898
  type ReleaseFixtures = {
1817
1899
  fixtures: Fixtures;
@@ -1856,9 +1938,18 @@ declare class Fixtures {
1856
1938
  deleteRiskProfile(riskProfileId: string): Promise<APIResponse>;
1857
1939
  createDeliveryPattern(delivery: Delivery, shouldResetPattern?: boolean): Promise<APIResponse>;
1858
1940
  createDelivery(delivery: Delivery): Promise<APIResponse>;
1941
+ facet(facet: Facet): Promise<APIResponse>;
1942
+ application(application: ApplicationFixture): Promise<APIResponse>;
1943
+ environment(environment: EnvironmentFixture): Promise<APIResponse>;
1944
+ reservation(reservation: Reservation): Promise<APIResponse>;
1859
1945
  deleteDelivery(delivery: Delivery): Promise<APIResponse>;
1946
+ deleteApplication(applicationId: string): Promise<APIResponse>;
1947
+ deleteEnvironment(environmentId: string): Promise<APIResponse>;
1948
+ clearCalendar(): Promise<APIResponse>;
1949
+ deleteReservation(id: string): Promise<APIResponse>;
1860
1950
  cleanAll(): Promise<void>;
1861
1951
  addJiraTask(): Promise<string>;
1952
+ addBlackout(name: string, from: Date, to: Date): Promise<APIResponse>;
1862
1953
  addUser(username: string, password: string): Promise<void>;
1863
1954
  addUserProfile(username: string, profile?: any): Promise<void>;
1864
1955
  resetUserProfile(username: string, fullName?: string): Promise<APIResponse>;