@copado/agentia-cli 0.84.0-alpha.0 → 0.85.0-alpha.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 (81) hide show
  1. package/README.md +694 -161
  2. package/dist/commands/cicd/pipeline/connection/create.d.ts +19 -0
  3. package/dist/commands/cicd/pipeline/connection/create.js +67 -0
  4. package/dist/commands/cicd/pipeline/connection/create.js.map +1 -0
  5. package/dist/commands/cicd/pipeline/connection/delete.d.ts +15 -0
  6. package/dist/commands/cicd/pipeline/connection/delete.js +62 -0
  7. package/dist/commands/cicd/pipeline/connection/delete.js.map +1 -0
  8. package/dist/commands/cicd/pipeline/connection/open.d.ts +12 -0
  9. package/dist/commands/cicd/pipeline/connection/open.js +30 -0
  10. package/dist/commands/cicd/pipeline/connection/open.js.map +1 -0
  11. package/dist/commands/cicd/pipeline/connection/update.d.ts +19 -0
  12. package/dist/commands/cicd/pipeline/connection/update.js +55 -0
  13. package/dist/commands/cicd/pipeline/connection/update.js.map +1 -0
  14. package/dist/commands/cicd/pipeline/create.d.ts +19 -0
  15. package/dist/commands/cicd/pipeline/create.js +42 -0
  16. package/dist/commands/cicd/pipeline/create.js.map +1 -0
  17. package/dist/commands/cicd/pipeline/list.d.ts +3 -0
  18. package/dist/commands/cicd/pipeline/list.js +5 -3
  19. package/dist/commands/cicd/pipeline/list.js.map +1 -1
  20. package/dist/commands/cicd/pipeline/stage-connection/create.d.ts +12 -0
  21. package/dist/commands/cicd/pipeline/stage-connection/create.js +33 -0
  22. package/dist/commands/cicd/pipeline/stage-connection/create.js.map +1 -0
  23. package/dist/commands/cicd/pipeline/stage-connection/delete.d.ts +16 -0
  24. package/dist/commands/cicd/pipeline/stage-connection/delete.js +34 -0
  25. package/dist/commands/cicd/pipeline/stage-connection/delete.js.map +1 -0
  26. package/dist/commands/cicd/pipeline/stage-connection/list.d.ts +10 -0
  27. package/dist/commands/cicd/pipeline/stage-connection/list.js +37 -0
  28. package/dist/commands/cicd/pipeline/stage-connection/list.js.map +1 -0
  29. package/dist/commands/cicd/pipeline/stage-connection/open.d.ts +12 -0
  30. package/dist/commands/cicd/pipeline/stage-connection/open.js +16 -0
  31. package/dist/commands/cicd/pipeline/stage-connection/open.js.map +1 -0
  32. package/dist/commands/cicd/pipeline/stage-connection/update.d.ts +15 -0
  33. package/dist/commands/cicd/pipeline/stage-connection/update.js +38 -0
  34. package/dist/commands/cicd/pipeline/stage-connection/update.js.map +1 -0
  35. package/dist/commands/cicd/pipeline/update.d.ts +20 -0
  36. package/dist/commands/cicd/pipeline/update.js +52 -0
  37. package/dist/commands/cicd/pipeline/update.js.map +1 -0
  38. package/dist/commands/cicd/stage/create.d.ts +14 -0
  39. package/dist/commands/cicd/stage/create.js +28 -0
  40. package/dist/commands/cicd/stage/create.js.map +1 -0
  41. package/dist/commands/cicd/stage/delete.d.ts +14 -0
  42. package/dist/commands/cicd/stage/delete.js +28 -0
  43. package/dist/commands/cicd/stage/delete.js.map +1 -0
  44. package/dist/commands/cicd/stage/get.d.ts +10 -0
  45. package/dist/commands/cicd/stage/get.js +17 -0
  46. package/dist/commands/cicd/stage/get.js.map +1 -0
  47. package/dist/commands/cicd/stage/list.d.ts +12 -0
  48. package/dist/commands/cicd/stage/list.js +27 -0
  49. package/dist/commands/cicd/stage/list.js.map +1 -0
  50. package/dist/commands/cicd/stage/open.d.ts +12 -0
  51. package/dist/commands/cicd/stage/open.js +16 -0
  52. package/dist/commands/cicd/stage/open.js.map +1 -0
  53. package/dist/commands/cicd/stage/update.d.ts +14 -0
  54. package/dist/commands/cicd/stage/update.js +30 -0
  55. package/dist/commands/cicd/stage/update.js.map +1 -0
  56. package/dist/lib/mcp/tools.d.ts +134 -2
  57. package/dist/lib/mcp/tools.js +383 -5
  58. package/dist/lib/mcp/tools.js.map +1 -1
  59. package/dist/lib/navigation.d.ts +1 -1
  60. package/dist/lib/navigation.js +3 -0
  61. package/dist/lib/navigation.js.map +1 -1
  62. package/dist/lib/pipeline-connection-flags.d.ts +62 -0
  63. package/dist/lib/pipeline-connection-flags.js +309 -0
  64. package/dist/lib/pipeline-connection-flags.js.map +1 -0
  65. package/dist/lib/pipeline-flags.d.ts +74 -0
  66. package/dist/lib/pipeline-flags.js +154 -0
  67. package/dist/lib/pipeline-flags.js.map +1 -0
  68. package/dist/lib/pipeline-stage-connection-flags.d.ts +25 -0
  69. package/dist/lib/pipeline-stage-connection-flags.js +46 -0
  70. package/dist/lib/pipeline-stage-connection-flags.js.map +1 -0
  71. package/dist/lib/pipeline-types.d.ts +91 -2
  72. package/dist/lib/pipeline-types.js +51 -5
  73. package/dist/lib/pipeline-types.js.map +1 -1
  74. package/dist/lib/stage-flags.d.ts +19 -0
  75. package/dist/lib/stage-flags.js +29 -0
  76. package/dist/lib/stage-flags.js.map +1 -0
  77. package/dist/lib/stage-types.d.ts +67 -0
  78. package/dist/lib/stage-types.js +69 -0
  79. package/dist/lib/stage-types.js.map +1 -0
  80. package/oclif.manifest.json +1835 -716
  81. package/package.json +2 -2
@@ -1,18 +1,35 @@
1
+ import type { PipelineStageConnection } from './stage-types.js';
1
2
  import { type ListPaginationQuery, type PaginatedListResult } from './list-pagination.js';
3
+ export declare const PIPELINE_PLATFORMS: readonly ["Salesforce", "SFDX", "Heroku", "Mulesoft", "Marketing", "Other"];
4
+ export type PipelinePlatform = (typeof PIPELINE_PLATFORMS)[number];
5
+ export declare const PIPELINE_CALCULATE_BASED_ON_VALUES: readonly ["User Story", "Branch"];
6
+ export type PipelineCalculateBasedOn = (typeof PIPELINE_CALCULATE_BASED_ON_VALUES)[number];
7
+ export declare const PIPELINE_CONNECTION_SYNC_STATE_NEEDS_RECALCULATING = "Needs recalculating";
2
8
  export type Pipeline = {
9
+ active?: boolean | null;
10
+ blockCommits?: boolean | null;
11
+ calculateBasedOn?: null | PipelineCalculateBasedOn;
12
+ enableSmartConflictResolution?: boolean | null;
13
+ gitRepositoryId?: null | string;
3
14
  id?: null | string;
4
15
  mainBranch?: null | string;
5
16
  name?: null | string;
6
17
  pipelineConnections?: PipelineConnection[];
18
+ platform?: null | PipelinePlatform;
7
19
  };
8
20
  export type PipelineConnection = {
9
21
  branch?: null | string;
10
22
  destinationBranch?: null | string;
11
23
  destinationEnvironment?: Environment | null;
24
+ destinationEnvironmentId?: null | string;
12
25
  id?: null | string;
13
26
  name?: null | string;
14
27
  pipelineId?: null | string;
15
28
  sourceEnvironment?: Environment | null;
29
+ sourceEnvironmentId?: null | string;
30
+ stageConnectionId?: null | string;
31
+ syncMergeState?: null | string;
32
+ syncPullState?: null | string;
16
33
  };
17
34
  export type Environment = {
18
35
  id?: string;
@@ -47,6 +64,53 @@ export type QualityGateRuleCondition = {
47
64
  stage?: null | string;
48
65
  status?: null | string;
49
66
  };
67
+ export type PipelineSystemProperty = {
68
+ apiName?: null | string;
69
+ environmentId?: null | string;
70
+ isGlobal?: boolean;
71
+ isPublic?: boolean;
72
+ isSensitive?: boolean;
73
+ name?: null | string;
74
+ pipelineId?: null | string;
75
+ userId?: null | string;
76
+ value?: null | string;
77
+ };
78
+ export type PipelineMutationPayload = {
79
+ active?: boolean;
80
+ blockCommits?: boolean;
81
+ calculateBasedOn?: PipelineCalculateBasedOn;
82
+ enableSmartConflictResolution?: boolean;
83
+ gitRepositoryId?: string;
84
+ mainBranch?: string;
85
+ name?: string;
86
+ platform?: PipelinePlatform;
87
+ };
88
+ export type PipelineConnectionMutationPayload = {
89
+ branch: string;
90
+ destinationBranch?: string;
91
+ destinationEnvironmentId: string;
92
+ id?: string;
93
+ sourceEnvironmentId: string;
94
+ stageConnectionId?: string;
95
+ syncMergeState?: string;
96
+ syncPullState?: string;
97
+ };
98
+ export type PipelineConnectionUpdatePayload = {
99
+ branch?: string;
100
+ destinationBranch?: string;
101
+ destinationEnvironmentId?: string;
102
+ id: string;
103
+ sourceEnvironmentId?: string;
104
+ stageConnectionId?: string;
105
+ syncMergeState?: string;
106
+ syncPullState?: string;
107
+ };
108
+ export type PipelineConnectionBulkUpdatePayload = {
109
+ connections: PipelineConnectionUpdatePayload[];
110
+ };
111
+ export type PipelineConnectionBulkDeletePayload = {
112
+ connectionIds: string[];
113
+ };
50
114
  export type PipelineListPage = {
51
115
  currentPage?: number;
52
116
  data?: Pipeline[];
@@ -61,29 +125,54 @@ export type PipelineListResponse = {
61
125
  message?: string;
62
126
  status?: string;
63
127
  };
128
+ export type PipelineResponse = {
129
+ data?: Pipeline;
130
+ message?: string;
131
+ status?: string;
132
+ };
64
133
  export type PipelineDescribe = {
134
+ active?: boolean | null;
65
135
  automations?: AutomationRule[];
136
+ blockCommits?: boolean | null;
137
+ calculateBasedOn?: null | PipelineCalculateBasedOn;
66
138
  connections?: PipelineConnection[];
67
- environments?: Environment[];
139
+ enableSmartConflictResolution?: boolean | null;
140
+ gitRepositoryId?: null | string;
68
141
  id?: null | string;
69
142
  lastJobs?: JobExecution[];
70
143
  mainBranch?: null | string;
71
144
  name?: null | string;
145
+ platform?: null | PipelinePlatform;
72
146
  qualityGates?: QualityGateRuleCondition[];
73
147
  repository?: GitRepository | null;
148
+ stageConnections?: PipelineStageConnection[];
149
+ systemProperties?: PipelineSystemProperty[];
74
150
  };
75
151
  export type PipelineDescribeResponse = {
76
152
  data?: PipelineDescribe;
77
153
  message?: string;
78
154
  status?: string;
79
155
  };
80
- export type PipelineListFilters = ListPaginationQuery;
156
+ export type PipelineConnectionListResponse = {
157
+ data?: PipelineConnection[];
158
+ message?: string;
159
+ status?: string;
160
+ };
161
+ export type PipelineListFilters = ListPaginationQuery & {
162
+ active?: boolean;
163
+ name?: string;
164
+ platform?: PipelinePlatform;
165
+ };
81
166
  export declare function pipelineListEndpoint(filters?: PipelineListFilters): string;
167
+ export declare function pipelineEndpoint(id: string): string;
82
168
  export declare function pipelineDescribeEndpoint(id: string): string;
169
+ export declare function pipelineConnectionsEndpoint(pipelineId: string): string;
83
170
  export declare function normalizePipelinesListPage(response: Pipeline[] | PipelineListResponse): PaginatedListResult<Pipeline>;
84
171
  export declare function normalizePipelines(response: Pipeline[] | PipelineListResponse): Pipeline[];
172
+ export declare function normalizePipeline(response: Pipeline | PipelineResponse): Pipeline;
85
173
  export declare function pipelineConnectionsFromPipelines(pipelines: Pipeline[]): PipelineConnection[];
86
174
  export declare function normalizePipelineDescribe(response: PipelineDescribe | PipelineDescribeResponse): PipelineDescribe;
175
+ export declare function normalizePipelineConnections(response: PipelineConnection[] | PipelineConnectionListResponse): PipelineConnection[];
87
176
  export declare function formatPipelineTable(pipelines: Pipeline[]): string;
88
177
  export declare function formatPipelineConnectionTable(connections: PipelineConnection[]): string;
89
178
  export declare function formatPipelineDetail(pipeline: PipelineDescribe): string;
@@ -1,14 +1,39 @@
1
1
  import { cellValue, table } from './format.js';
2
2
  import { appendListPaginationQueryParams, paginatedResultFromNestedData, } from './list-pagination.js';
3
3
  import { preferSalesforceId } from './salesforce-id.js';
4
+ export const PIPELINE_PLATFORMS = [
5
+ 'Salesforce',
6
+ 'SFDX',
7
+ 'Heroku',
8
+ 'Mulesoft',
9
+ 'Marketing',
10
+ 'Other',
11
+ ];
12
+ export const PIPELINE_CALCULATE_BASED_ON_VALUES = ['User Story', 'Branch'];
13
+ export const PIPELINE_CONNECTION_SYNC_STATE_NEEDS_RECALCULATING = 'Needs recalculating';
4
14
  export function pipelineListEndpoint(filters = {}) {
5
15
  const params = new URLSearchParams();
16
+ if (filters.name !== undefined) {
17
+ params.set('name', filters.name);
18
+ }
19
+ if (filters.active !== undefined) {
20
+ params.set('active', String(filters.active));
21
+ }
22
+ if (filters.platform !== undefined) {
23
+ params.set('platform', filters.platform);
24
+ }
6
25
  appendListPaginationQueryParams(params, filters);
7
26
  const query = params.toString();
8
27
  return query.length > 0 ? `/corpus/pipelines?${query}` : '/corpus/pipelines';
9
28
  }
29
+ export function pipelineEndpoint(id) {
30
+ return `/corpus/pipelines/${encodeURIComponent(preferSalesforceId(id))}`;
31
+ }
10
32
  export function pipelineDescribeEndpoint(id) {
11
- return `/corpus/pipelines/${encodeURIComponent(preferSalesforceId(id))}/describe`;
33
+ return `${pipelineEndpoint(id)}/describe`;
34
+ }
35
+ export function pipelineConnectionsEndpoint(pipelineId) {
36
+ return `${pipelineEndpoint(pipelineId)}/connections`;
12
37
  }
13
38
  export function normalizePipelinesListPage(response) {
14
39
  return paginatedResultFromNestedData(response);
@@ -16,6 +41,12 @@ export function normalizePipelinesListPage(response) {
16
41
  export function normalizePipelines(response) {
17
42
  return normalizePipelinesListPage(response).data;
18
43
  }
44
+ export function normalizePipeline(response) {
45
+ if ('data' in response && response.data !== undefined) {
46
+ return response.data;
47
+ }
48
+ return response;
49
+ }
19
50
  export function pipelineConnectionsFromPipelines(pipelines) {
20
51
  return pipelines.flatMap((pipeline) => pipeline.pipelineConnections ?? []);
21
52
  }
@@ -25,17 +56,30 @@ export function normalizePipelineDescribe(response) {
25
56
  }
26
57
  return response;
27
58
  }
59
+ export function normalizePipelineConnections(response) {
60
+ if (Array.isArray(response)) {
61
+ return response;
62
+ }
63
+ if ('data' in response && Array.isArray(response.data)) {
64
+ return response.data;
65
+ }
66
+ return [];
67
+ }
28
68
  export function formatPipelineTable(pipelines) {
29
69
  return table([
30
70
  { alias: 'ID', value: 'id' },
31
71
  { alias: 'NAME', value: 'name' },
32
72
  { alias: 'MAIN BRANCH', value: 'mainBranch' },
73
+ { alias: 'PLATFORM', value: 'platform' },
74
+ { alias: 'ACTIVE', value: 'active' },
33
75
  { alias: 'CONNECTIONS', value: 'connections' },
34
76
  ], pipelines.map((pipeline) => ({
77
+ active: cellValue(pipeline.active),
35
78
  connections: cellValue(pipeline.pipelineConnections?.length ?? 0),
36
79
  id: cellValue(pipeline.id),
37
80
  mainBranch: cellValue(pipeline.mainBranch),
38
81
  name: cellValue(pipeline.name),
82
+ platform: cellValue(pipeline.platform),
39
83
  })));
40
84
  }
41
85
  export function formatPipelineConnectionTable(connections) {
@@ -50,11 +94,11 @@ export function formatPipelineConnectionTable(connections) {
50
94
  ], connections.map((connection) => ({
51
95
  branch: cellValue(connection.branch),
52
96
  destinationBranch: cellValue(connection.destinationBranch),
53
- fromEnvironmentId: cellValue(connection.sourceEnvironment?.id),
97
+ fromEnvironmentId: cellValue(connection.sourceEnvironment?.id ?? connection.sourceEnvironmentId),
54
98
  id: cellValue(connection.id),
55
99
  name: cellValue(connection.name),
56
100
  pipelineId: cellValue(connection.pipelineId),
57
- toEnvironmentId: cellValue(connection.destinationEnvironment?.id),
101
+ toEnvironmentId: cellValue(connection.destinationEnvironment?.id ?? connection.destinationEnvironmentId),
58
102
  })));
59
103
  }
60
104
  export function formatPipelineDetail(pipeline) {
@@ -62,9 +106,11 @@ export function formatPipelineDetail(pipeline) {
62
106
  `ID: ${cellValue(pipeline.id)}`,
63
107
  `Name: ${cellValue(pipeline.name)}`,
64
108
  `Main Branch: ${cellValue(pipeline.mainBranch)}`,
65
- `Repository ID: ${cellValue(pipeline.repository?.id)}`,
109
+ `Platform: ${cellValue(pipeline.platform)}`,
110
+ `Active: ${cellValue(pipeline.active)}`,
111
+ `Repository ID: ${cellValue(pipeline.repository?.id ?? pipeline.gitRepositoryId)}`,
66
112
  `Repository Name: ${cellValue(pipeline.repository?.name)}`,
67
- `Environments: ${cellValue(pipeline.environments?.length ?? 0)}`,
113
+ `System Properties: ${cellValue(pipeline.systemProperties?.length ?? 0)}`,
68
114
  `Connections: ${cellValue(pipeline.connections?.length ?? 0)}`,
69
115
  `Last Jobs: ${cellValue(pipeline.lastJobs?.length ?? 0)}`,
70
116
  ].join('\n');
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline-types.js","sourceRoot":"","sources":["../../src/lib/pipeline-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,KAAK,EAAC,MAAM,aAAa,CAAA;AAC5C,OAAO,EACL,+BAA+B,EAG/B,6BAA6B,GAC9B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAA;AA6FrD,MAAM,UAAU,oBAAoB,CAAC,UAA+B,E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,gBAAgB,EAAE,MAAM,IAAI,CAAC,CAAC,EAAE;QACzE,gBAAgB,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,CAAC,EAAE;QAC9D,cAAc,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC,CAAC,EAAE;KAC1D,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACd,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { type StageMutationPayload } from './stage-types.js';
2
+ export declare const stageMutationFlags: {
3
+ readonly 'meta-stage': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
4
+ readonly name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
5
+ };
6
+ export declare const stageCreateFlags: {
7
+ readonly 'meta-stage': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
+ readonly name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ };
10
+ export declare const stageUpdateFlags: {
11
+ readonly 'meta-stage': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
+ readonly name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
+ };
14
+ export type StageMutationFlagValues = {
15
+ 'meta-stage'?: string;
16
+ name?: string;
17
+ };
18
+ export declare function buildStageMutationPayload(flags: StageMutationFlagValues): StageMutationPayload;
19
+ export declare function validateStagePayload(payload: StageMutationPayload, requireName?: boolean): string | undefined;
@@ -0,0 +1,29 @@
1
+ import { Flags } from '@oclif/core';
2
+ import { STAGE_META_STAGE_SUGGESTIONS } from './stage-types.js';
3
+ export const stageMutationFlags = {
4
+ 'meta-stage': Flags.string({
5
+ description: `Meta stage (common values: ${STAGE_META_STAGE_SUGGESTIONS.join(', ')}; custom values are allowed)`,
6
+ }),
7
+ name: Flags.string({ description: 'Stage name' }),
8
+ };
9
+ export const stageCreateFlags = stageMutationFlags;
10
+ export const stageUpdateFlags = stageMutationFlags;
11
+ export function buildStageMutationPayload(flags) {
12
+ const payload = {};
13
+ if (flags.name !== undefined)
14
+ payload.name = flags.name;
15
+ if (flags['meta-stage'] !== undefined)
16
+ payload.metaStage = flags['meta-stage'];
17
+ return payload;
18
+ }
19
+ export function validateStagePayload(payload, requireName = false) {
20
+ if (requireName && (payload.name === undefined || payload.name.trim().length === 0)) {
21
+ return 'name is required.';
22
+ }
23
+ for (const [key, value] of Object.entries(payload)) {
24
+ if (value.trim().length === 0)
25
+ return `${key} value cannot be empty`;
26
+ }
27
+ return undefined;
28
+ }
29
+ //# sourceMappingURL=stage-flags.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stage-flags.js","sourceRoot":"","sources":["../../src/lib/stage-flags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAA;AAEjC,OAAO,EAAC,4BAA4B,EAA4B,MAAM,kBAAkB,CAAA;AAExF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC;QACzB,WAAW,EAAE,8BAA8B,4BAA4B,CAAC,IAAI,CAAC,IAAI,CAAC,8BAA8B;KACjH,CAAC;IACF,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAC,WAAW,EAAE,YAAY,EAAC,CAAC;CACvC,CAAA;AAEV,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAA;AAClD,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAA;AAOlD,MAAM,UAAU,yBAAyB,CAAC,KAA8B;IACtE,MAAM,OAAO,GAAyB,EAAE,CAAA;IACxC,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS;QAAE,OAAO,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;IACvD,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,CAAC,SAAS,GAAG,KAAK,CAAC,YAAY,CAAC,CAAA;IAC9E,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,OAA6B,EAAE,WAAW,GAAG,KAAK;IACrF,IAAI,WAAW,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC;QACpF,OAAO,mBAAmB,CAAA;IAC5B,CAAC;IAED,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QACnD,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,GAAG,GAAG,wBAAwB,CAAA;IACtE,CAAC;IAED,OAAO,SAAS,CAAA;AAClB,CAAC"}
@@ -0,0 +1,67 @@
1
+ import { type ListPaginationQuery, type PaginatedListResult } from './list-pagination.js';
2
+ export declare const STAGE_META_STAGE_SUGGESTIONS: readonly ["Build", "Test", "Production"];
3
+ export type Stage = {
4
+ id?: null | string;
5
+ metaStage?: null | string;
6
+ name?: null | string;
7
+ };
8
+ export type StageMutationPayload = {
9
+ metaStage?: string;
10
+ name?: string;
11
+ };
12
+ export type PipelineStageConnection = {
13
+ id?: null | string;
14
+ nextPipelineStageConnectionId?: null | string;
15
+ pipelineId?: null | string;
16
+ stage?: null | Stage;
17
+ stageId?: null | string;
18
+ };
19
+ export type PipelineStageConnectionMutationPayload = {
20
+ nextPipelineStageConnectionId?: string;
21
+ stageId: string;
22
+ };
23
+ export type PipelineStageConnectionUpdatePayload = {
24
+ id: string;
25
+ nextPipelineStageConnectionId?: string;
26
+ stageId?: string;
27
+ };
28
+ export type StageListPage = {
29
+ currentPage?: number;
30
+ data?: Stage[];
31
+ hasMore?: boolean;
32
+ nextCursor?: string;
33
+ pageSize?: number;
34
+ totalPages?: number;
35
+ totalRecords?: number;
36
+ };
37
+ export type StageListResponse = {
38
+ data?: StageListPage;
39
+ message?: string;
40
+ status?: string;
41
+ };
42
+ export type StageResponse = {
43
+ data?: Stage;
44
+ message?: string;
45
+ status?: string;
46
+ };
47
+ export type PipelineStageConnectionResponse = {
48
+ data?: PipelineStageConnection;
49
+ message?: string;
50
+ status?: string;
51
+ };
52
+ export type PipelineStageConnectionListResponse = {
53
+ data?: PipelineStageConnection[];
54
+ message?: string;
55
+ status?: string;
56
+ };
57
+ export declare function stagesEndpoint(filters?: ListPaginationQuery): string;
58
+ export declare function stageEndpoint(id: string): string;
59
+ export declare function pipelineStageConnectionsEndpoint(pipelineId: string): string;
60
+ export declare function pipelineStageConnectionEndpoint(pipelineId: string, connectionId: string): string;
61
+ export declare function normalizeStagesListPage(response: Stage[] | StageListPage | StageListResponse): PaginatedListResult<Stage>;
62
+ export declare function normalizeStage(response: Stage | StageResponse): Stage;
63
+ export declare function normalizePipelineStageConnection(response: PipelineStageConnection | PipelineStageConnectionResponse): PipelineStageConnection;
64
+ export declare function normalizePipelineStageConnections(response: PipelineStageConnection[] | PipelineStageConnectionListResponse): PipelineStageConnection[];
65
+ export declare function formatStageTable(stages: Stage[]): string;
66
+ export declare function formatStageDetail(stage: Stage): string;
67
+ export declare function formatPipelineStageConnectionTable(connections: PipelineStageConnection[]): string;
@@ -0,0 +1,69 @@
1
+ import { cellValue, table } from './format.js';
2
+ import { appendListPaginationQueryParams, paginatedResultFromNestedData, } from './list-pagination.js';
3
+ import { preferSalesforceId } from './salesforce-id.js';
4
+ export const STAGE_META_STAGE_SUGGESTIONS = ['Build', 'Test', 'Production'];
5
+ export function stagesEndpoint(filters = {}) {
6
+ const params = new URLSearchParams();
7
+ appendListPaginationQueryParams(params, filters);
8
+ const query = params.toString();
9
+ return query.length > 0 ? `/corpus/stages?${query}` : '/corpus/stages';
10
+ }
11
+ export function stageEndpoint(id) {
12
+ return `/corpus/stages/${encodeURIComponent(preferSalesforceId(id))}`;
13
+ }
14
+ export function pipelineStageConnectionsEndpoint(pipelineId) {
15
+ return `/corpus/pipelines/${encodeURIComponent(preferSalesforceId(pipelineId))}/stage-connections`;
16
+ }
17
+ export function pipelineStageConnectionEndpoint(pipelineId, connectionId) {
18
+ return `${pipelineStageConnectionsEndpoint(pipelineId)}/${encodeURIComponent(preferSalesforceId(connectionId))}`;
19
+ }
20
+ export function normalizeStagesListPage(response) {
21
+ return paginatedResultFromNestedData(response);
22
+ }
23
+ export function normalizeStage(response) {
24
+ if ('data' in response && response.data !== undefined) {
25
+ return response.data;
26
+ }
27
+ return response;
28
+ }
29
+ export function normalizePipelineStageConnection(response) {
30
+ if ('data' in response && response.data !== undefined) {
31
+ return response.data;
32
+ }
33
+ return response;
34
+ }
35
+ export function normalizePipelineStageConnections(response) {
36
+ if (Array.isArray(response))
37
+ return response;
38
+ if ('data' in response && Array.isArray(response.data))
39
+ return response.data;
40
+ return [];
41
+ }
42
+ export function formatStageTable(stages) {
43
+ return table([
44
+ { alias: 'ID', value: 'id' },
45
+ { alias: 'NAME', value: 'name' },
46
+ { alias: 'META STAGE', value: 'metaStage' },
47
+ ], stages.map((stage) => ({
48
+ id: cellValue(stage.id),
49
+ metaStage: cellValue(stage.metaStage),
50
+ name: cellValue(stage.name),
51
+ })));
52
+ }
53
+ export function formatStageDetail(stage) {
54
+ return [`ID: ${cellValue(stage.id)}`, `Name: ${cellValue(stage.name)}`, `Meta Stage: ${cellValue(stage.metaStage)}`].join('\n');
55
+ }
56
+ export function formatPipelineStageConnectionTable(connections) {
57
+ return table([
58
+ { alias: 'ID', value: 'id' },
59
+ { alias: 'PIPELINE ID', value: 'pipelineId' },
60
+ { alias: 'STAGE ID', value: 'stageId' },
61
+ { alias: 'NEXT CONNECTION ID', value: 'nextPipelineStageConnectionId' },
62
+ ], connections.map((connection) => ({
63
+ id: cellValue(connection.id),
64
+ nextPipelineStageConnectionId: cellValue(connection.nextPipelineStageConnectionId),
65
+ pipelineId: cellValue(connection.pipelineId),
66
+ stageId: cellValue(connection.stageId ?? connection.stage?.id),
67
+ })));
68
+ }
69
+ //# sourceMappingURL=stage-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stage-types.js","sourceRoot":"","sources":["../../src/lib/stage-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,KAAK,EAAC,MAAM,aAAa,CAAA;AAC5C,OAAO,EACL,+BAA+B,EAG/B,6BAA6B,GAC9B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAA;AAErD,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAU,CAAA;AAkEpF,MAAM,UAAU,cAAc,CAAC,UAA+B,EAAE;IAC9D,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAA;IACpC,+BAA+B,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChD,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAA;IAC/B,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,kBAAkB,KAAK,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAA;AACxE,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,EAAU;IACtC,OAAO,kBAAkB,kBAAkB,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,EAAE,CAAA;AACvE,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,UAAkB;IACjE,OAAO,qBAAqB,kBAAkB,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,oBAAoB,CAAA;AACpG,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,UAAkB,EAAE,YAAoB;IACtF,OAAO,GAAG,gCAAgC,CAAC,UAAU,CAAC,IAAI,kBAAkB,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC,EAAE,C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