@salesforce/source-deploy-retrieve 13.7.1-compute.2 → 13.8.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 (44) hide show
  1. package/lib/src/client/index.d.ts +0 -1
  2. package/lib/src/client/index.js.map +1 -1
  3. package/lib/src/client/metadataApiDeploy.d.ts +0 -7
  4. package/lib/src/client/metadataApiDeploy.js +7 -24
  5. package/lib/src/client/metadataApiDeploy.js.map +1 -1
  6. package/lib/src/client/metadataApiRetrieve.d.ts +0 -7
  7. package/lib/src/client/metadataApiRetrieve.js +6 -25
  8. package/lib/src/client/metadataApiRetrieve.js.map +1 -1
  9. package/lib/src/client/metadataTransfer.d.ts +0 -3
  10. package/lib/src/client/metadataTransfer.js +1 -11
  11. package/lib/src/client/metadataTransfer.js.map +1 -1
  12. package/lib/src/client/types.d.ts +0 -8
  13. package/lib/src/collections/componentSet.d.ts +0 -9
  14. package/lib/src/collections/componentSet.js +1 -130
  15. package/lib/src/collections/componentSet.js.map +1 -1
  16. package/lib/src/collections/componentSetBuilder.js +11 -2
  17. package/lib/src/collections/componentSetBuilder.js.map +1 -1
  18. package/lib/src/index.d.ts +1 -1
  19. package/lib/src/index.js.map +1 -1
  20. package/lib/src/registry/metadataRegistry.json +0 -14
  21. package/lib/src/registry/types.d.ts +0 -2
  22. package/lib/src/resolve/adapters/uiBundleValidation.d.ts +5 -1
  23. package/lib/src/resolve/adapters/uiBundleValidation.js +97 -50
  24. package/lib/src/resolve/adapters/uiBundleValidation.js.map +1 -1
  25. package/messages/uiBundleValidation.md +77 -17
  26. package/package.json +1 -4
  27. package/lib/src/client/transports/computeSourceBundle.d.ts +0 -10
  28. package/lib/src/client/transports/computeSourceBundle.js +0 -276
  29. package/lib/src/client/transports/computeSourceBundle.js.map +0 -1
  30. package/lib/src/client/transports/herokuComputeTransport.d.ts +0 -12
  31. package/lib/src/client/transports/herokuComputeTransport.js +0 -168
  32. package/lib/src/client/transports/herokuComputeTransport.js.map +0 -1
  33. package/lib/src/client/transports/index.d.ts +0 -2
  34. package/lib/src/client/transports/index.js +0 -18
  35. package/lib/src/client/transports/index.js.map +0 -1
  36. package/lib/src/client/transports/transportCoordinator.d.ts +0 -20
  37. package/lib/src/client/transports/transportCoordinator.js +0 -67
  38. package/lib/src/client/transports/transportCoordinator.js.map +0 -1
  39. package/lib/src/client/transports/transportPipeline.d.ts +0 -51
  40. package/lib/src/client/transports/transportPipeline.js +0 -180
  41. package/lib/src/client/transports/transportPipeline.js.map +0 -1
  42. package/lib/src/client/transports/types.d.ts +0 -45
  43. package/lib/src/client/transports/types.js +0 -18
  44. package/lib/src/client/transports/types.js.map +0 -1
@@ -1,51 +0,0 @@
1
- import { TransportName } from '../../registry/types';
2
- import { SourceComponent } from '../../resolve/sourceComponent';
3
- import { FileResponse } from '../types';
4
- import { AsyncTransportHandle, TransportContext, TransportOperationResult, TransportProvider } from './types';
5
- export type TransportGroup = {
6
- transport: TransportProvider;
7
- components: SourceComponent[];
8
- };
9
- export type GroupedComponents = {
10
- metadataApi: SourceComponent[];
11
- transports: TransportGroup[];
12
- };
13
- export type TransportPlan = {
14
- phases: TransportPlanPhase[];
15
- };
16
- export type TransportPlanPhase = {
17
- phase: 'before-metadata' | 'metadata-api' | 'after-metadata';
18
- label: string;
19
- endpoint: string;
20
- components: Array<{
21
- fullName: string;
22
- type: string;
23
- }>;
24
- };
25
- export type TransportPipelineResult = {
26
- fileResponses: FileResponse[];
27
- asyncHandles: AsyncTransportHandle[];
28
- operationResults: TransportOperationResult[];
29
- };
30
- export type TransportStageEvent = {
31
- transportName: TransportName;
32
- label: string;
33
- operation: 'deploy' | 'retrieve';
34
- stage: 'start' | 'complete' | 'error';
35
- componentCount: number;
36
- componentNames: string[];
37
- errorMessage?: string;
38
- };
39
- export declare class TransportPipeline {
40
- private readonly transports;
41
- private readonly logger;
42
- constructor(transports?: TransportProvider[]);
43
- static withBuiltinTransports(): TransportPipeline;
44
- groupByTransport(components: SourceComponent[]): GroupedComponents;
45
- explain(components: SourceComponent[], operation?: 'deploy' | 'retrieve'): TransportPlan;
46
- runBeforeMetadata(context: TransportContext, groups: TransportGroup[], operation?: 'deploy' | 'retrieve'): Promise<TransportPipelineResult>;
47
- runAfterMetadata(context: TransportContext, groups: TransportGroup[], operation?: 'deploy' | 'retrieve'): Promise<TransportPipelineResult>;
48
- hasTransports(components: SourceComponent[]): boolean;
49
- private findTransportFor;
50
- private runTransportGroups;
51
- }
@@ -1,180 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright 2026, Salesforce, Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.TransportPipeline = void 0;
19
- const core_1 = require("@salesforce/core");
20
- const herokuComputeTransport_1 = require("./herokuComputeTransport");
21
- class TransportPipeline {
22
- transports = [];
23
- logger;
24
- constructor(transports) {
25
- this.logger = core_1.Logger.childFromRoot('TransportPipeline');
26
- if (transports) {
27
- this.transports.push(...transports);
28
- }
29
- }
30
- static withBuiltinTransports() {
31
- return new TransportPipeline([new herokuComputeTransport_1.HerokuComputeTransport()]);
32
- }
33
- groupByTransport(components) {
34
- const metadataApi = [];
35
- const transportMap = new Map();
36
- for (const component of components) {
37
- const transport = this.findTransportFor(component);
38
- if (transport) {
39
- let group = transportMap.get(transport.name);
40
- if (!group) {
41
- group = { transport, components: [] };
42
- transportMap.set(transport.name, group);
43
- }
44
- group.components.push(component);
45
- }
46
- // all components go through metadata api — transport components
47
- // also have metadata portions (.compute-meta.xml) that need MDAPI
48
- metadataApi.push(component);
49
- }
50
- return {
51
- metadataApi,
52
- transports: [...transportMap.values()],
53
- };
54
- }
55
- explain(components, operation = 'deploy') {
56
- const { metadataApi, transports } = this.groupByTransport(components);
57
- const phases = [];
58
- const beforeMetadata = transports.filter((group) => getStep(group.transport, operation, 'before') !== undefined);
59
- const afterMetadata = transports.filter((group) => getStep(group.transport, operation, 'after') !== undefined);
60
- for (const group of beforeMetadata) {
61
- const desc = group.transport.describe();
62
- phases.push({
63
- phase: 'before-metadata',
64
- label: desc.label,
65
- endpoint: desc.endpoint,
66
- components: group.components.map((c) => ({ fullName: c.fullName, type: c.type.name })),
67
- });
68
- }
69
- phases.push({
70
- phase: 'metadata-api',
71
- label: 'Metadata API',
72
- endpoint: 'SOAP/REST',
73
- components: metadataApi.map((c) => ({ fullName: c.fullName, type: c.type.name })),
74
- });
75
- for (const group of afterMetadata) {
76
- const desc = group.transport.describe();
77
- phases.push({
78
- phase: 'after-metadata',
79
- label: desc.label,
80
- endpoint: desc.endpoint,
81
- components: group.components.map((c) => ({ fullName: c.fullName, type: c.type.name })),
82
- });
83
- }
84
- return { phases };
85
- }
86
- async runBeforeMetadata(context, groups, operation = 'deploy') {
87
- return this.runTransportGroups(groups, context, operation, 'before');
88
- }
89
- async runAfterMetadata(context, groups, operation = 'deploy') {
90
- return this.runTransportGroups(groups, context, operation, 'after');
91
- }
92
- hasTransports(components) {
93
- return components.some((component) => this.findTransportFor(component) !== undefined);
94
- }
95
- findTransportFor(component) {
96
- const transportName = component.type.strategies?.transport;
97
- if (!transportName)
98
- return undefined;
99
- const transport = this.transports.find((candidate) => candidate.name === transportName);
100
- if (!transport) {
101
- throw new core_1.SfError(`No transport provider is registered for '${transportName}' required by ${component.type.name}.`, 'MissingTransportProvider');
102
- }
103
- return transport;
104
- }
105
- async runTransportGroups(groups, context, operation, timing) {
106
- const allFileResponses = [];
107
- const allAsyncHandles = [];
108
- const allOperationResults = [];
109
- const lifecycle = core_1.Lifecycle.getInstance();
110
- for (const group of groups) {
111
- const step = getStep(group.transport, operation, timing);
112
- if (!step)
113
- continue;
114
- this.logger.debug(`Running transport '${group.transport.name}' (${operation}) for ${group.components.length} component(s)`);
115
- const desc = group.transport.describe();
116
- const componentNames = group.components.map((c) => c.fullName);
117
- const eventBase = {
118
- transportName: group.transport.name,
119
- label: desc.label,
120
- operation,
121
- componentCount: group.components.length,
122
- componentNames,
123
- };
124
- // eslint-disable-next-line no-await-in-loop
125
- await lifecycle.emit('transportStage', { ...eventBase, stage: 'start' });
126
- const transportContext = {
127
- ...context,
128
- components: group.components,
129
- };
130
- try {
131
- // eslint-disable-next-line no-await-in-loop
132
- const result = await step(transportContext);
133
- allFileResponses.push(...result.fileResponses);
134
- if (result.asyncResult) {
135
- allAsyncHandles.push(result.asyncResult);
136
- }
137
- allOperationResults.push(...(result.operationResults ?? []));
138
- // eslint-disable-next-line no-await-in-loop
139
- await lifecycle.emit('transportStage', { ...eventBase, stage: 'complete' });
140
- }
141
- catch (err) {
142
- try {
143
- // eslint-disable-next-line no-await-in-loop
144
- await lifecycle.emit('transportStage', {
145
- ...eventBase,
146
- stage: 'error',
147
- errorMessage: err.message,
148
- });
149
- }
150
- catch {
151
- /* don't mask the transport error */
152
- }
153
- throw err;
154
- }
155
- }
156
- return { fileResponses: allFileResponses, asyncHandles: allAsyncHandles, operationResults: allOperationResults };
157
- }
158
- }
159
- exports.TransportPipeline = TransportPipeline;
160
- function getStep(transport, operation, timing) {
161
- if (operation === 'deploy' && timing === 'before') {
162
- return transport.beforeDeploy
163
- ? async (context) => transport.beforeDeploy(context)
164
- : undefined;
165
- }
166
- if (operation === 'deploy') {
167
- return transport.afterDeploy
168
- ? async (context) => transport.afterDeploy(context)
169
- : undefined;
170
- }
171
- if (timing === 'before') {
172
- return transport.beforeRetrieve
173
- ? async (context) => transport.beforeRetrieve(context)
174
- : undefined;
175
- }
176
- return transport.afterRetrieve
177
- ? async (context) => transport.afterRetrieve(context)
178
- : undefined;
179
- }
180
- //# sourceMappingURL=transportPipeline.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transportPipeline.js","sourceRoot":"","sources":["../../../../src/client/transports/transportPipeline.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,2CAA8D;AAW9D,qEAAkE;AAuClE,MAAa,iBAAiB;IACX,UAAU,GAAwB,EAAE,CAAC;IACrC,MAAM,CAAS;IAEhC,YAAmB,UAAgC;QACjD,IAAI,CAAC,MAAM,GAAG,aAAM,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;QACxD,IAAI,UAAU,EAAE,CAAC;YACf,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;IAEM,MAAM,CAAC,qBAAqB;QACjC,OAAO,IAAI,iBAAiB,CAAC,CAAC,IAAI,+CAAsB,EAAE,CAAC,CAAC,CAAC;IAC/D,CAAC;IAEM,gBAAgB,CAAC,UAA6B;QACnD,MAAM,WAAW,GAAsB,EAAE,CAAC;QAC1C,MAAM,YAAY,GAAG,IAAI,GAAG,EAA0B,CAAC;QAEvD,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;YACnC,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;YACnD,IAAI,SAAS,EAAE,CAAC;gBACd,IAAI,KAAK,GAAG,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;gBAC7C,IAAI,CAAC,KAAK,EAAE,CAAC;oBACX,KAAK,GAAG,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC;oBACtC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBAC1C,CAAC;gBACD,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACnC,CAAC;YACD,gEAAgE;YAChE,kEAAkE;YAClE,WAAW,CAAC,IAAI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C;gBACtC,CAAC;gBACD,MAAM,GAAG,CAAC;YACZ,CAAC;QACH,CAAC;QAED,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,CAAC;IACnH,CAAC;CACF;AA7KD,8CA6KC;AAED,SAAS,OAAO,CACd,SAA4B,EAC5B,SAAgC,EAChC,MAA0B;IAE1B,IAAI,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;QAClD,OAAO,SAAS,CAAC,YAAY;YAC3B,CAAC,CAAC,KAAK,EAAE,OAAO,EAA4B,EAAE,CAAC,SAAS,CAAC,YAAa,CAAC,OAAO,CAAC;YAC/E,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IACD,IAAI,SAAS,KAAK,QAAQ,EAAE,CAAC;QAC3B,OAAO,SAAS,CAAC,WAAW;YAC1B,CAAC,CAAC,KAAK,EAAE,OAAO,EAA4B,EAAE,CAAC,SAAS,CAAC,WAAY,CAAC,OAAO,CAAC;YAC9E,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IACD,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;QACxB,OAAO,SAAS,CAAC,cAAc;YAC7B,CAAC,CAAC,KAAK,EAAE,OAAO,EAA4B,EAAE,CAAC,SAAS,CAAC,cAAe,CAAC,OAAO,CAAC;YACjF,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IACD,OAAO,SAAS,CAAC,aAAa;QAC5B,CAAC,CAAC,KAAK,EAAE,OAAO,EAA4B,EAAE,CAAC,SAAS,CAAC,aAAc,CAAC,OAAO,CAAC;QAChF,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC"}
@@ -1,45 +0,0 @@
1
- import { Connection, SfProject } from '@salesforce/core';
2
- import { TransportName } from '../../registry/types';
3
- import { SourceComponent } from '../../resolve/sourceComponent';
4
- import { FileResponse, PackageOptions } from '../types';
5
- export type TransportStatus = 'Pending' | 'InProgress' | 'Succeeded' | 'Failed' | 'Unknown';
6
- export type TransportDescription = {
7
- label: string;
8
- endpoint: string;
9
- };
10
- export type TransportContext = {
11
- components: SourceComponent[];
12
- connection: Connection;
13
- project: SfProject;
14
- orgId: string;
15
- output?: string;
16
- packageOptions?: PackageOptions;
17
- /** Package name for each manifest-only transport member (`type#fullName`). */
18
- transportPackageNames?: Record<string, string>;
19
- };
20
- export type TransportResult = {
21
- fileResponses: FileResponse[];
22
- asyncResult?: AsyncTransportHandle;
23
- operationResults?: TransportOperationResult[];
24
- };
25
- export type TransportOperationResult = {
26
- transportLabel: string;
27
- operation: string;
28
- status: TransportStatus;
29
- message?: string;
30
- };
31
- export type AsyncTransportHandle = {
32
- transportName: TransportName;
33
- status: TransportStatus;
34
- message?: string;
35
- checkStatus(): Promise<AsyncTransportHandle>;
36
- };
37
- export type TransportProvider = {
38
- readonly name: TransportName;
39
- describe(): TransportDescription;
40
- handles(component: SourceComponent): boolean;
41
- beforeDeploy?(context: TransportContext): Promise<TransportResult>;
42
- afterDeploy?(context: TransportContext): Promise<TransportResult>;
43
- beforeRetrieve?(context: TransportContext): Promise<TransportResult>;
44
- afterRetrieve?(context: TransportContext): Promise<TransportResult>;
45
- };
@@ -1,18 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright 2026, Salesforce, Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/client/transports/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}