@absolutejs/absolute 0.20.0-beta.111 → 0.20.0-beta.112

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.
@@ -1,5 +1,5 @@
1
1
  export declare const ABSOLUTE_MOBILE_CI_PROMOTION_AUDIT_FORMAT: 1;
2
- export declare const ABSOLUTE_MOBILE_CI_PROMOTION_CONTEXT_FORMAT: 1;
2
+ export declare const ABSOLUTE_MOBILE_CI_PROMOTION_CONTEXT_FORMAT: 2;
3
3
  export type AbsoluteMobileCiPlatform = 'android' | 'ios';
4
4
  export type AbsoluteMobileCiCommandResult = {
5
5
  exitCode: number;
@@ -13,6 +13,7 @@ export type AbsoluteMobileCiCommandRunner = (command: string[], options: {
13
13
  export type AbsoluteMobileCiRunStatus = {
14
14
  conclusion: string | null;
15
15
  createdAt: string;
16
+ displayTitle: string;
16
17
  headBranch: string;
17
18
  headSha: string;
18
19
  jobs: readonly {
@@ -28,12 +29,18 @@ export type AbsoluteMobileCiRunStatus = {
28
29
  workflowName: string;
29
30
  };
30
31
  export type AbsoluteMobilePromotionContext = {
31
- format: typeof ABSOLUTE_MOBILE_CI_PROMOTION_CONTEXT_FORMAT;
32
+ dispatchId: string | null;
33
+ format: 1 | typeof ABSOLUTE_MOBILE_CI_PROMOTION_CONTEXT_FORMAT;
32
34
  platform: AbsoluteMobileCiPlatform;
33
35
  promotionRunId: string;
34
36
  sourceArtifact: string;
35
37
  sourceRunId: string;
36
38
  };
39
+ export type AbsoluteMobilePromotionRun = {
40
+ dispatchId: string;
41
+ runId: string;
42
+ url: string;
43
+ };
37
44
  export type AbsoluteMobilePromotionAudit = {
38
45
  certification: {
39
46
  certificationId: string;
@@ -43,6 +50,7 @@ export type AbsoluteMobilePromotionAudit = {
43
50
  format: typeof ABSOLUTE_MOBILE_CI_PROMOTION_AUDIT_FORMAT;
44
51
  github: {
45
52
  conclusion: string;
53
+ dispatchId: string | null;
46
54
  promotionRunId: string;
47
55
  repository: string | null;
48
56
  sourceRunId: string;
@@ -82,6 +90,17 @@ type AuditOptions = {
82
90
  runId: string;
83
91
  sourceRunId?: string;
84
92
  };
93
+ type PromotionDiscoveryOptions = {
94
+ attempts?: number;
95
+ dispatchId: string;
96
+ pollIntervalMs?: number;
97
+ projectRoot: string;
98
+ repository?: string;
99
+ run?: AbsoluteMobileCiCommandRunner;
100
+ sleep?: (milliseconds: number) => Promise<void>;
101
+ workflow: string;
102
+ };
103
+ export declare const discoverAbsoluteMobilePromotionRun: (options: PromotionDiscoveryOptions) => Promise<AbsoluteMobilePromotionRun>;
85
104
  export declare const inspectAbsoluteMobileCiRun: (options: {
86
105
  projectRoot: string;
87
106
  repository?: string;
@@ -90,6 +109,11 @@ export declare const inspectAbsoluteMobileCiRun: (options: {
90
109
  }) => Promise<AbsoluteMobileCiRunStatus>;
91
110
  export declare const parseAbsoluteMobileCiRunStatus: (value: unknown, requestedRunId: string) => AbsoluteMobileCiRunStatus;
92
111
  export declare const parseAbsoluteMobilePromotionContext: (value: unknown) => AbsoluteMobilePromotionContext;
112
+ export declare const parseAbsoluteMobilePromotionRunList: (value: unknown, requestedDispatchId: string) => {
113
+ dispatchId: string;
114
+ runId: string;
115
+ url: string;
116
+ } | null;
93
117
  export declare const watchAbsoluteMobileCiRun: (options: {
94
118
  projectRoot: string;
95
119
  repository?: string;
@@ -1,5 +1,5 @@
1
1
  import type { NormalizedAbsoluteMobileConfig } from './config';
2
- export declare const ABSOLUTE_MOBILE_CI_WORKFLOW_FORMAT: 3;
2
+ export declare const ABSOLUTE_MOBILE_CI_WORKFLOW_FORMAT: 4;
3
3
  export type AbsoluteMobileGithubWorkflowOptions = {
4
4
  config: NormalizedAbsoluteMobileConfig;
5
5
  configPath?: string;
package/package.json CHANGED
@@ -537,7 +537,7 @@
537
537
  ]
538
538
  }
539
539
  },
540
- "version": "0.20.0-beta.111",
540
+ "version": "0.20.0-beta.112",
541
541
  "workspaces": [
542
542
  "tests/fixtures/*",
543
543
  "tests/fixtures/_packages/*"