@salesforce/vscode-services 65.13.1 → 65.17.2
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/out/index.d.ts +2 -0
- package/package.json +26 -16
- package/out/salesforcedx-vscode-services/src/constants.d.ts +0 -7
- package/out/salesforcedx-vscode-services/src/core/configService.d.ts +0 -14
- package/out/salesforcedx-vscode-services/src/core/connectionService.d.ts +0 -15
- package/out/salesforcedx-vscode-services/src/core/defaultOrgService.d.ts +0 -24
- package/out/salesforcedx-vscode-services/src/core/metadataDescribeService.d.ts +0 -30
- package/out/salesforcedx-vscode-services/src/core/metadataRegistryService.d.ts +0 -15
- package/out/salesforcedx-vscode-services/src/core/metadataRetrieveService.d.ts +0 -26
- package/out/salesforcedx-vscode-services/src/core/projectService.d.ts +0 -16
- package/out/salesforcedx-vscode-services/src/core/schemas/describeMetadataObject.d.ts +0 -12
- package/out/salesforcedx-vscode-services/src/core/schemas/fileProperties.d.ts +0 -18
- package/out/salesforcedx-vscode-services/src/core/shared.d.ts +0 -5
- package/out/salesforcedx-vscode-services/src/core/sourceTrackingService.d.ts +0 -20
- package/out/salesforcedx-vscode-services/src/extensionScope.d.ts +0 -5
- package/out/salesforcedx-vscode-services/src/index.d.ts +0 -41
- package/out/salesforcedx-vscode-services/src/observability/appInsights.d.ts +0 -4
- package/out/salesforcedx-vscode-services/src/observability/applicationInsightsWebExporter.d.ts +0 -16
- package/out/salesforcedx-vscode-services/src/observability/localTracing.d.ts +0 -8
- package/out/salesforcedx-vscode-services/src/observability/spanTransformProcessor.d.ts +0 -7
- package/out/salesforcedx-vscode-services/src/observability/spans.d.ts +0 -2
- package/out/salesforcedx-vscode-services/src/observability/spansNode.d.ts +0 -2
- package/out/salesforcedx-vscode-services/src/observability/spansWeb.d.ts +0 -2
- package/out/salesforcedx-vscode-services/src/virtualFsProvider/constants.d.ts +0 -2
- package/out/salesforcedx-vscode-services/src/virtualFsProvider/fileSystemProvider.d.ts +0 -28
- package/out/salesforcedx-vscode-services/src/virtualFsProvider/fsTypes.d.ts +0 -25
- package/out/salesforcedx-vscode-services/src/virtualFsProvider/indexedDbStorage.d.ts +0 -19
- package/out/salesforcedx-vscode-services/src/virtualFsProvider/memfsWatcher.d.ts +0 -8
- package/out/salesforcedx-vscode-services/src/virtualFsProvider/projectInit.d.ts +0 -6
- package/out/salesforcedx-vscode-services/src/virtualFsProvider/templates/forceignore.d.ts +0 -2
- package/out/salesforcedx-vscode-services/src/virtualFsProvider/templates/gitignore.d.ts +0 -2
- package/out/salesforcedx-vscode-services/src/virtualFsProvider/templates/jestConfig.d.ts +0 -2
- package/out/salesforcedx-vscode-services/src/virtualFsProvider/templates/metadataDirs.d.ts +0 -2
- package/out/salesforcedx-vscode-services/src/virtualFsProvider/templates/prettierignore.d.ts +0 -2
- package/out/salesforcedx-vscode-services/src/virtualFsProvider/templates/prettierrc.d.ts +0 -2
- package/out/salesforcedx-vscode-services/src/virtualFsProvider/templates/readme.d.ts +0 -2
- package/out/salesforcedx-vscode-services/src/virtualFsProvider/templates/sfdxProject.d.ts +0 -2
- package/out/salesforcedx-vscode-services/src/virtualFsProvider/templates/templates.d.ts +0 -14
- package/out/salesforcedx-vscode-services/src/virtualFsProvider/templates/tsconfig.d.ts +0 -2
- package/out/salesforcedx-vscode-services/src/virtualFsProvider/templates/vscodeSettings.d.ts +0 -2
- package/out/salesforcedx-vscode-services/src/vscode/cancellation.d.ts +0 -4
- package/out/salesforcedx-vscode-services/src/vscode/channelService.d.ts +0 -22
- package/out/salesforcedx-vscode-services/src/vscode/fsService.d.ts +0 -25
- package/out/salesforcedx-vscode-services/src/vscode/settingsService.d.ts +0 -47
- package/out/salesforcedx-vscode-services/src/vscode/workspaceService.d.ts +0 -19
- package/out/salesforcedx-vscode-services-types/src/index.d.ts +0 -2
package/out/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/vscode-services",
|
|
3
|
-
"version": "65.
|
|
3
|
+
"version": "65.17.2",
|
|
4
4
|
"description": "TypeScript type definitions for Salesforce VS Code Services extension API",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"url": "https://github.com/forcedotcom/salesforcedx-vscode/issues"
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://github.com/forcedotcom/salesforcedx-vscode/tree/develop/packages/salesforcedx-vscode-services-types",
|
|
15
|
-
"types": "out/
|
|
15
|
+
"types": "out/index.d.ts",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
-
"types": "./out/
|
|
18
|
+
"types": "./out/index.d.ts"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
@@ -33,16 +33,28 @@
|
|
|
33
33
|
"clean": "shx rm -rf src out dist node_modules .wireit .eslintcache *.tgz"
|
|
34
34
|
},
|
|
35
35
|
"wireit": {
|
|
36
|
+
"generate-src": {
|
|
37
|
+
"command": "ts-node scripts/generateEntry.ts && ts-node scripts/syncDeps.ts",
|
|
38
|
+
"files": [
|
|
39
|
+
"../salesforcedx-vscode-services/src/**/*.ts",
|
|
40
|
+
"scripts/*.ts"
|
|
41
|
+
],
|
|
42
|
+
"output": [
|
|
43
|
+
"src/index.ts"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
36
46
|
"compile": {
|
|
37
47
|
"command": "tsc --build --pretty",
|
|
38
48
|
"clean": "if-file-deleted",
|
|
39
49
|
"dependencies": [
|
|
40
|
-
"
|
|
50
|
+
"generate-src",
|
|
51
|
+
"../salesforcedx-vscode-services:compile"
|
|
41
52
|
],
|
|
42
53
|
"files": [
|
|
43
54
|
"src/**/*.ts",
|
|
44
55
|
"tsconfig.json",
|
|
45
|
-
"../../tsconfig.common.json"
|
|
56
|
+
"../../tsconfig.common.json",
|
|
57
|
+
"package.json"
|
|
46
58
|
],
|
|
47
59
|
"output": [
|
|
48
60
|
"out/**",
|
|
@@ -52,27 +64,25 @@
|
|
|
52
64
|
},
|
|
53
65
|
"dependencies": {
|
|
54
66
|
"@azure/monitor-opentelemetry-exporter": "^1.0.0-beta.32",
|
|
55
|
-
"@effect/opentelemetry": "0.
|
|
67
|
+
"@effect/opentelemetry": "0.60.0",
|
|
56
68
|
"@opentelemetry/api": "1.9.0",
|
|
57
69
|
"@opentelemetry/core": "2.0.1",
|
|
58
|
-
"@opentelemetry/exporter-trace-otlp-http": "0.
|
|
70
|
+
"@opentelemetry/exporter-trace-otlp-http": "0.209.0",
|
|
59
71
|
"@opentelemetry/sdk-logs": "0.203.0",
|
|
60
|
-
"@opentelemetry/sdk-metrics": "2.0
|
|
72
|
+
"@opentelemetry/sdk-metrics": "2.5.0",
|
|
61
73
|
"@opentelemetry/sdk-trace-base": "2.0.1",
|
|
62
74
|
"@opentelemetry/sdk-trace-node": "2.2.0",
|
|
63
75
|
"@opentelemetry/sdk-trace-web": "2.2.0",
|
|
64
|
-
"@salesforce/core": "^8.23.
|
|
65
|
-
"@salesforce/source-deploy-retrieve": "^12.
|
|
66
|
-
"@salesforce/source-tracking": "^7.8.
|
|
76
|
+
"@salesforce/core": "^8.23.4",
|
|
77
|
+
"@salesforce/source-deploy-retrieve": "^12.31.9",
|
|
78
|
+
"@salesforce/source-tracking": "^7.8.1",
|
|
67
79
|
"@types/vscode": "^1.90.0",
|
|
68
|
-
"effect": "^3.19.
|
|
80
|
+
"effect": "^3.19.14",
|
|
69
81
|
"jsforce": "^3.10.2",
|
|
70
82
|
"vscode-uri": "^3.1.0"
|
|
71
83
|
},
|
|
72
84
|
"devDependencies": {
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"ts-node": "^10.9.2",
|
|
76
|
-
"typescript": "^5.4.2"
|
|
85
|
+
"shx": "^0.3.4",
|
|
86
|
+
"ts-node": "^10.9.2"
|
|
77
87
|
}
|
|
78
88
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const sampleProjectName = "MyProject";
|
|
2
|
-
export declare const CODE_BUILDER_WEB_SECTION = "salesforcedx-vscode-code-builder-web";
|
|
3
|
-
export declare const SALESFORCE_DX_SECTION = "salesforcedx-vscode-salesforcedx";
|
|
4
|
-
export declare const INSTANCE_URL_KEY = "instanceUrl";
|
|
5
|
-
export declare const ACCESS_TOKEN_KEY = "accessToken";
|
|
6
|
-
export declare const API_VERSION_KEY = "apiVersion";
|
|
7
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ConfigAggregator } from '@salesforce/core/configAggregator';
|
|
2
|
-
import * as Effect from 'effect/Effect';
|
|
3
|
-
import { WorkspaceService } from '../vscode/workspaceService';
|
|
4
|
-
declare const ConfigService_base: Effect.Service.Class<ConfigService, "ConfigService", {
|
|
5
|
-
readonly succeed: {
|
|
6
|
-
/** Get a ConfigAggregator for the current workspace */
|
|
7
|
-
readonly getConfigAggregator: Effect.Effect<ConfigAggregator, Error, WorkspaceService>;
|
|
8
|
-
};
|
|
9
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<WorkspaceService, never, never>];
|
|
10
|
-
}>;
|
|
11
|
-
export declare class ConfigService extends ConfigService_base {
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=configService.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Connection } from '@salesforce/core';
|
|
2
|
-
import * as Effect from 'effect/Effect';
|
|
3
|
-
import { SettingsService } from '../vscode/settingsService';
|
|
4
|
-
import { ConfigService } from './configService';
|
|
5
|
-
declare const ConnectionService_base: Effect.Service.Class<ConnectionService, "ConnectionService", {
|
|
6
|
-
readonly effect: Effect.Effect<{
|
|
7
|
-
/** Get a Connection to the target org */
|
|
8
|
-
readonly getConnection: Effect.Effect<Connection<import("@jsforce/jsforce-node").Schema>, Error, import("../vscode/workspaceService").WorkspaceService | ConfigService | SettingsService>;
|
|
9
|
-
}, never, never>;
|
|
10
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<SettingsService, never, never>, import("effect/Layer").Layer<ConfigService, never, never>];
|
|
11
|
-
}>;
|
|
12
|
-
export declare class ConnectionService extends ConnectionService_base {
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=connectionService.d.ts.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as Effect from 'effect/Effect';
|
|
2
|
-
import * as Schema from 'effect/Schema';
|
|
3
|
-
import * as SubscriptionRef from 'effect/SubscriptionRef';
|
|
4
|
-
export declare const DefaultOrgInfoSchema: Schema.Struct<{
|
|
5
|
-
orgId: Schema.optional<typeof Schema.String>;
|
|
6
|
-
devHubOrgId: Schema.optional<typeof Schema.String>;
|
|
7
|
-
username: Schema.optional<typeof Schema.String>;
|
|
8
|
-
devHubUsername: Schema.optional<typeof Schema.String>;
|
|
9
|
-
tracksSource: Schema.optional<typeof Schema.Boolean>;
|
|
10
|
-
isScratch: Schema.optional<typeof Schema.Boolean>;
|
|
11
|
-
isSandbox: Schema.optional<typeof Schema.Boolean>;
|
|
12
|
-
}>;
|
|
13
|
-
export declare const defaultOrgRef: SubscriptionRef.SubscriptionRef<{
|
|
14
|
-
readonly orgId?: string | undefined;
|
|
15
|
-
readonly devHubOrgId?: string | undefined;
|
|
16
|
-
readonly isSandbox?: boolean | undefined;
|
|
17
|
-
readonly isScratch?: boolean | undefined;
|
|
18
|
-
readonly tracksSource?: boolean | undefined;
|
|
19
|
-
readonly username?: string | undefined;
|
|
20
|
-
readonly devHubUsername?: string | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
/** watch the global and local sf/config.json files; clear the defaultOrgRef when they change */
|
|
23
|
-
export declare const watchConfigFiles: () => Effect.Effect<void, Error>;
|
|
24
|
-
//# sourceMappingURL=defaultOrgService.d.ts.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { ConfigService } from './configService';
|
|
2
|
-
import type { DescribeMetadataObject } from './schemas/describeMetadataObject';
|
|
3
|
-
import type { SettingsService } from '../vscode/settingsService';
|
|
4
|
-
import type { WorkspaceService } from '../vscode/workspaceService';
|
|
5
|
-
import * as Effect from 'effect/Effect';
|
|
6
|
-
import type { DescribeSObjectResult } from 'jsforce';
|
|
7
|
-
import { ChannelService } from '../vscode/channelService';
|
|
8
|
-
import { ConnectionService } from './connectionService';
|
|
9
|
-
import { type FileProperties } from './schemas/fileProperties';
|
|
10
|
-
type DescribeContext = ConnectionService | ConfigService | WorkspaceService | ChannelService | SettingsService;
|
|
11
|
-
declare const MetadataDescribeService_base: Effect.Service.Class<MetadataDescribeService, "MetadataDescribeService", {
|
|
12
|
-
readonly effect: Effect.Effect<{
|
|
13
|
-
/**
|
|
14
|
-
* Performs a Metadata API describe and returns the result.
|
|
15
|
-
* When forceRefresh=true, bypasses the cache and makes a fresh API call.
|
|
16
|
-
*/
|
|
17
|
-
readonly describe: (forceRefresh?: boolean) => Effect.Effect<readonly DescribeMetadataObject[], Error, DescribeContext>;
|
|
18
|
-
/**
|
|
19
|
-
* Calls the Metadata API list method for a given type and optional folder.
|
|
20
|
-
* Returns the list of metadata components for that type.
|
|
21
|
-
*/
|
|
22
|
-
readonly listMetadata: (type: string, folder?: string) => Effect.Effect<readonly FileProperties[], Error, DescribeContext>;
|
|
23
|
-
readonly describeCustomObject: (objectName: string) => Effect.Effect<DescribeSObjectResult, Error, DescribeContext>;
|
|
24
|
-
}, never, never>;
|
|
25
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<ConnectionService, never, never>];
|
|
26
|
-
}>;
|
|
27
|
-
export declare class MetadataDescribeService extends MetadataDescribeService_base {
|
|
28
|
-
}
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=metadataDescribeService.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type MetadataRegistry, RegistryAccess } from '@salesforce/source-deploy-retrieve';
|
|
2
|
-
import * as Effect from 'effect/Effect';
|
|
3
|
-
import { WorkspaceService } from '../vscode/workspaceService';
|
|
4
|
-
declare const MetadataRegistryService_base: Effect.Service.Class<MetadataRegistryService, "MetadataRegistryService", {
|
|
5
|
-
readonly scoped: Effect.Effect<{
|
|
6
|
-
/** Get the metadata registry (cached) */
|
|
7
|
-
readonly getRegistry: () => Effect.Effect<Readonly<MetadataRegistry>, Error, WorkspaceService>;
|
|
8
|
-
/** Get the registry access (cached) */
|
|
9
|
-
readonly getRegistryAccess: () => Effect.Effect<RegistryAccess, Error, WorkspaceService>;
|
|
10
|
-
}, never, never>;
|
|
11
|
-
}>;
|
|
12
|
-
export declare class MetadataRegistryService extends MetadataRegistryService_base {
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=metadataRegistryService.d.ts.map
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type RetrieveResult, type MetadataMember, ComponentSet } from '@salesforce/source-deploy-retrieve';
|
|
2
|
-
import * as Effect from 'effect/Effect';
|
|
3
|
-
import { SuccessfulCancelResult } from '../vscode/cancellation';
|
|
4
|
-
import { SettingsService } from '../vscode/settingsService';
|
|
5
|
-
import { WorkspaceService } from '../vscode/workspaceService';
|
|
6
|
-
import { ConfigService } from './configService';
|
|
7
|
-
import { ConnectionService } from './connectionService';
|
|
8
|
-
import { MetadataRegistryService } from './metadataRegistryService';
|
|
9
|
-
import { ProjectService } from './projectService';
|
|
10
|
-
import { SourceTrackingService } from './sourceTrackingService';
|
|
11
|
-
declare const MetadataRetrieveService_base: Effect.Service.Class<MetadataRetrieveService, "MetadataRetrieveService", {
|
|
12
|
-
readonly succeed: {
|
|
13
|
-
/**
|
|
14
|
-
* Retrieve one or more metadata components from the default org.
|
|
15
|
-
* @param members - Array of MetadataMember (type, fullName)
|
|
16
|
-
* @returns Effect that resolves to SDR's RetrieveResult
|
|
17
|
-
*/
|
|
18
|
-
readonly retrieve: (members: MetadataMember[]) => Effect.Effect<RetrieveResult | SuccessfulCancelResult, Error, ConnectionService | ProjectService | WorkspaceService | ConfigService | SettingsService | MetadataRegistryService | SourceTrackingService>;
|
|
19
|
-
readonly buildComponentSet: (members: MetadataMember[]) => Effect.Effect<ComponentSet, Error, MetadataRegistryService | WorkspaceService>;
|
|
20
|
-
readonly buildComponentSetFromSource: (members: MetadataMember[], sourcePaths: string[]) => Effect.Effect<ComponentSet, Error, MetadataRegistryService | WorkspaceService>;
|
|
21
|
-
};
|
|
22
|
-
}>;
|
|
23
|
-
export declare class MetadataRetrieveService extends MetadataRetrieveService_base {
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=metadataRetrieveService.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SfProject } from '@salesforce/core/project';
|
|
2
|
-
import * as Effect from 'effect/Effect';
|
|
3
|
-
import { WorkspaceService } from '../vscode/workspaceService';
|
|
4
|
-
declare const ProjectService_base: Effect.Service.Class<ProjectService, "ProjectService", {
|
|
5
|
-
readonly succeed: {
|
|
6
|
-
/** Check if we're in a Salesforce project (sfdx-project.json exists) */
|
|
7
|
-
readonly isSalesforceProject: Effect.Effect<boolean, never, WorkspaceService>;
|
|
8
|
-
/** Get the SfProject instance for the workspace (fails if not a Salesforce project) */
|
|
9
|
-
readonly getSfProject: Effect.Effect<SfProject, Error, WorkspaceService>;
|
|
10
|
-
};
|
|
11
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<WorkspaceService, never, never>];
|
|
12
|
-
}>;
|
|
13
|
-
export declare class ProjectService extends ProjectService_base {
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=projectService.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as S from 'effect/Schema';
|
|
2
|
-
declare const DescribeMetadataObjectSchema: S.Struct<{
|
|
3
|
-
childXmlNames: S.Array$<typeof S.String>;
|
|
4
|
-
directoryName: typeof S.String;
|
|
5
|
-
inFolder: typeof S.Boolean;
|
|
6
|
-
metaFile: typeof S.Boolean;
|
|
7
|
-
suffix: S.optional<S.Union<[typeof S.String, typeof S.Null]>>;
|
|
8
|
-
xmlName: typeof S.String;
|
|
9
|
-
}>;
|
|
10
|
-
export type DescribeMetadataObject = S.Schema.Type<typeof DescribeMetadataObjectSchema>;
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=describeMetadataObject.d.ts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as S from 'effect/Schema';
|
|
2
|
-
/** Schema for FileProperties (metadata.list result) */
|
|
3
|
-
export declare const FilePropertiesSchema: S.Struct<{
|
|
4
|
-
fullName: typeof S.String;
|
|
5
|
-
type: typeof S.String;
|
|
6
|
-
id: S.optional<typeof S.String>;
|
|
7
|
-
createdById: S.optional<typeof S.String>;
|
|
8
|
-
createdByName: S.optional<typeof S.String>;
|
|
9
|
-
createdDate: S.optional<typeof S.String>;
|
|
10
|
-
fileName: S.optional<typeof S.String>;
|
|
11
|
-
lastModifiedById: S.optional<typeof S.String>;
|
|
12
|
-
lastModifiedByName: S.optional<typeof S.String>;
|
|
13
|
-
lastModifiedDate: S.optional<typeof S.String>;
|
|
14
|
-
manageableState: S.optional<typeof S.String>;
|
|
15
|
-
namespacePrefix: S.optional<typeof S.String>;
|
|
16
|
-
}>;
|
|
17
|
-
export type FileProperties = S.Schema.Type<typeof FilePropertiesSchema>;
|
|
18
|
-
//# sourceMappingURL=fileProperties.d.ts.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Org, Connection, ConfigAggregator } from '@salesforce/core';
|
|
2
|
-
import * as Effect from 'effect/Effect';
|
|
3
|
-
/** passing in a configAggregator is highly recommended to avoid sfdx-core creating a new one */
|
|
4
|
-
export declare const getOrgFromConnection: (connection: Connection, aggregator?: ConfigAggregator) => Effect.Effect<Org, Error>;
|
|
5
|
-
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { RetrieveResult } from '@salesforce/source-deploy-retrieve';
|
|
2
|
-
import * as Effect from 'effect/Effect';
|
|
3
|
-
import * as Layer from 'effect/Layer';
|
|
4
|
-
import { SettingsService } from '../vscode/settingsService';
|
|
5
|
-
import { WorkspaceService } from '../vscode/workspaceService';
|
|
6
|
-
import { ConfigService } from './configService';
|
|
7
|
-
import { ConnectionService } from './connectionService';
|
|
8
|
-
import { MetadataRegistryService } from './metadataRegistryService';
|
|
9
|
-
import { ProjectService } from './projectService';
|
|
10
|
-
declare const SourceTrackingService_base: Effect.Service.Class<SourceTrackingService, "SourceTrackingService", {
|
|
11
|
-
readonly succeed: {
|
|
12
|
-
readonly getSourceTracking: Effect.Effect<import("@salesforce/source-tracking").SourceTracking, Error, WorkspaceService | ConfigService | SettingsService | ConnectionService | MetadataRegistryService | ProjectService>;
|
|
13
|
-
readonly updateTrackingFromRetrieve: (result: RetrieveResult) => Effect.Effect<void, Error>;
|
|
14
|
-
};
|
|
15
|
-
readonly dependencies: readonly [Layer.Layer<ConnectionService, never, never>, Layer.Layer<ProjectService, never, never>, Layer.Layer<ConfigService, never, never>, Layer.Layer<SettingsService, never, never>, Layer.Layer<WorkspaceService, never, never>, Layer.Layer<MetadataRegistryService, never, never>];
|
|
16
|
-
}>;
|
|
17
|
-
export declare class SourceTrackingService extends SourceTrackingService_base {
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=sourceTrackingService.d.ts.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as Effect from 'effect/Effect';
|
|
2
|
-
import * as Scope from 'effect/Scope';
|
|
3
|
-
export declare const getExtensionScope: () => Effect.Effect<Scope.CloseableScope, Error, never>;
|
|
4
|
-
export declare const closeExtensionScope: () => Effect.Effect<void, Error, never>;
|
|
5
|
-
//# sourceMappingURL=extensionScope.d.ts.map
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as vscode from 'vscode';
|
|
2
|
-
import { ConfigService } from './core/configService';
|
|
3
|
-
import { ConnectionService } from './core/connectionService';
|
|
4
|
-
import { defaultOrgRef } from './core/defaultOrgService';
|
|
5
|
-
import { MetadataDescribeService } from './core/metadataDescribeService';
|
|
6
|
-
import { MetadataRegistryService } from './core/metadataRegistryService';
|
|
7
|
-
import { MetadataRetrieveService } from './core/metadataRetrieveService';
|
|
8
|
-
import { ProjectService } from './core/projectService';
|
|
9
|
-
import { SourceTrackingService } from './core/sourceTrackingService';
|
|
10
|
-
import { SdkLayer } from './observability/spans';
|
|
11
|
-
import { ChannelServiceLayer, ChannelService } from './vscode/channelService';
|
|
12
|
-
import { FsService } from './vscode/fsService';
|
|
13
|
-
import { SettingsService } from './vscode/settingsService';
|
|
14
|
-
import { WorkspaceService } from './vscode/workspaceService';
|
|
15
|
-
export type SalesforceVSCodeServicesApi = {
|
|
16
|
-
services: {
|
|
17
|
-
ConnectionService: typeof ConnectionService;
|
|
18
|
-
ProjectService: typeof ProjectService;
|
|
19
|
-
ChannelService: typeof ChannelService;
|
|
20
|
-
ChannelServiceLayer: typeof ChannelServiceLayer;
|
|
21
|
-
WorkspaceService: typeof WorkspaceService;
|
|
22
|
-
FsService: typeof FsService;
|
|
23
|
-
ConfigService: typeof ConfigService;
|
|
24
|
-
MetadataDescribeService: typeof MetadataDescribeService;
|
|
25
|
-
MetadataRegistryService: typeof MetadataRegistryService;
|
|
26
|
-
MetadataRetrieveService: typeof MetadataRetrieveService;
|
|
27
|
-
SourceTrackingService: typeof SourceTrackingService;
|
|
28
|
-
SettingsService: typeof SettingsService;
|
|
29
|
-
SdkLayer: typeof SdkLayer;
|
|
30
|
-
TargetOrgRef: typeof defaultOrgRef;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Activates the Salesforce Services extension and returns API for other extensions to consume
|
|
35
|
-
* Both service tags/types and their default Live implementations are exported.
|
|
36
|
-
* Consumers should get both from the API, not via direct imports.
|
|
37
|
-
*/
|
|
38
|
-
export declare const activate: (context: vscode.ExtensionContext) => Promise<SalesforceVSCodeServicesApi>;
|
|
39
|
-
/** Deactivates the Salesforce Services extension */
|
|
40
|
-
export declare const deactivate: () => Promise<void>;
|
|
41
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** instrumention key / connection string for test-otel-effect */
|
|
2
|
-
export declare const DEFAULT_AI_CONNECTION_STRING = "InstrumentationKey=f5cbbeba-e06b-4657-b99c-62024c9d36bf;IngestionEndpoint=https://eastus-8.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/;ApplicationId=1485438c-5495-43dc-8c0a-b51e860b6cba";
|
|
3
|
-
export declare const isTelemetryExtensionConfigurationEnabled: () => boolean;
|
|
4
|
-
//# sourceMappingURL=appInsights.d.ts.map
|
package/out/salesforcedx-vscode-services/src/observability/applicationInsightsWebExporter.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ExportResult } from '@opentelemetry/core';
|
|
2
|
-
import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';
|
|
3
|
-
import { TelemetryReporter } from '@vscode/extension-telemetry';
|
|
4
|
-
export declare const getWebAppInsightsReporter: () => TelemetryReporter;
|
|
5
|
-
/**
|
|
6
|
-
* Custom OpenTelemetry span exporter that sends telemetry to Application Insights
|
|
7
|
-
* using the web SDK since @azure/monitor-opentelemetry-exporter doesn't work in browsers.
|
|
8
|
-
*
|
|
9
|
-
* Maps all OpenTelemetry spans to Application Insights Dependencies for consistency
|
|
10
|
-
* with the Node SDK behavior.
|
|
11
|
-
*/
|
|
12
|
-
export declare class ApplicationInsightsWebExporter implements SpanExporter {
|
|
13
|
-
export(spans: ReadableSpan[], resultCallback: (result: ExportResult) => void): void;
|
|
14
|
-
shutdown(): Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=applicationInsightsWebExporter.d.ts.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get local traces enabled setting. Sends traces to a locally running docker container.
|
|
3
|
-
* See setting description for how to use
|
|
4
|
-
*/
|
|
5
|
-
export declare const getLocalTracesEnabled: () => boolean;
|
|
6
|
-
/** export spans/traces to console (browser or nodejs) */
|
|
7
|
-
export declare const getConsoleTracesEnabled: () => boolean;
|
|
8
|
-
//# sourceMappingURL=localTracing.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Context } from '@opentelemetry/api';
|
|
2
|
-
import { Span, BatchSpanProcessor } from '@opentelemetry/sdk-trace-base';
|
|
3
|
-
/** Custom span processor that transforms spans before they're exported */
|
|
4
|
-
export declare class SpanTransformProcessor extends BatchSpanProcessor {
|
|
5
|
-
onStart(span: Span, parentContext: Context): void;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=spanTransformProcessor.d.ts.map
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as vscode from 'vscode';
|
|
2
|
-
/**
|
|
3
|
-
* the VSCode API doesn't store these anywhere by default.
|
|
4
|
-
* This is hooked up to memfs right now, and its watcher handles everything else
|
|
5
|
-
*/
|
|
6
|
-
export declare class FsProvider implements vscode.FileSystemProvider {
|
|
7
|
-
readonly onDidChangeFile: vscode.Event<vscode.FileChangeEvent[]>;
|
|
8
|
-
exists(uri: vscode.Uri): boolean;
|
|
9
|
-
stat(uri: vscode.Uri): vscode.FileStat;
|
|
10
|
-
readDirectory(uri: vscode.Uri): [string, vscode.FileType][];
|
|
11
|
-
createDirectory(uri: vscode.Uri): Promise<void>;
|
|
12
|
-
readFile(uri: vscode.Uri): Uint8Array;
|
|
13
|
-
writeFile(uri: vscode.Uri, content: Uint8Array, options: {
|
|
14
|
-
create: boolean;
|
|
15
|
-
overwrite: boolean;
|
|
16
|
-
}): Promise<void>;
|
|
17
|
-
delete(uri: vscode.Uri, options: {
|
|
18
|
-
recursive: boolean;
|
|
19
|
-
}): Promise<void>;
|
|
20
|
-
rename(oldUri: vscode.Uri, newUri: vscode.Uri, options: {
|
|
21
|
-
overwrite: boolean;
|
|
22
|
-
}): Promise<void>;
|
|
23
|
-
watch(_uri: vscode.Uri, _options: {
|
|
24
|
-
recursive: boolean;
|
|
25
|
-
excludes: string[];
|
|
26
|
-
}): vscode.Disposable;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=fileSystemProvider.d.ts.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as vscode from 'vscode';
|
|
2
|
-
export type FsProvider = vscode.FileSystemProvider & {
|
|
3
|
-
/** does not exist in the vscode.FileSystemProvider but super handy so I added it*/
|
|
4
|
-
exists: (uri: vscode.Uri) => boolean;
|
|
5
|
-
};
|
|
6
|
-
type SerializedFile = vscode.FileStat & {
|
|
7
|
-
type: vscode.FileType.File;
|
|
8
|
-
data: string;
|
|
9
|
-
};
|
|
10
|
-
type SerializedDirectory = vscode.FileStat & {
|
|
11
|
-
type: vscode.FileType.Directory;
|
|
12
|
-
entries: Record<string, SerializedEntry>;
|
|
13
|
-
};
|
|
14
|
-
type SerializedEntry = SerializedFile | SerializedDirectory;
|
|
15
|
-
export declare const isSerializedDirectoryWithPath: (entry: SerializedEntryWithPath) => entry is SerializedDirectoryWithPath;
|
|
16
|
-
export type SerializedFileWithPath = SerializedFile & {
|
|
17
|
-
path: string;
|
|
18
|
-
};
|
|
19
|
-
type SerializedDirectoryWithPath = SerializedDirectory & {
|
|
20
|
-
path: string;
|
|
21
|
-
};
|
|
22
|
-
export type SerializedEntryWithPath = SerializedFileWithPath | SerializedDirectoryWithPath;
|
|
23
|
-
export declare const isSerializedFileWithPath: (entry: SerializedEntryWithPath) => entry is SerializedFileWithPath;
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=fsTypes.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as Effect from 'effect/Effect';
|
|
2
|
-
import * as Layer from 'effect/Layer';
|
|
3
|
-
declare const IndexedDBStorageService_base: Effect.Service.Class<IndexedDBStorageService, "IndexedDBStorageService", {
|
|
4
|
-
readonly scoped: Effect.Effect<{
|
|
5
|
-
/** Load state from IndexedDB into memfs */
|
|
6
|
-
readonly loadState: () => Effect.Effect<void, Error>;
|
|
7
|
-
/** Save a file to IndexedDB */
|
|
8
|
-
readonly saveFile: (path: string) => Effect.Effect<void, Error>;
|
|
9
|
-
/** Delete a file from IndexedDB */
|
|
10
|
-
readonly deleteFile: (path: string) => Effect.Effect<void, Error>;
|
|
11
|
-
/** Load a specific file from IndexedDB */
|
|
12
|
-
readonly loadFile: (path: string) => Effect.Effect<void, Error>;
|
|
13
|
-
}, Error, import("effect/Scope").Scope>;
|
|
14
|
-
}>;
|
|
15
|
-
export declare class IndexedDBStorageService extends IndexedDBStorageService_base {
|
|
16
|
-
}
|
|
17
|
-
export declare const IndexedDBStorageServiceShared: Layer.Layer<IndexedDBStorageService, Error, import("effect/Scope").Scope>;
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=indexedDbStorage.d.ts.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as Effect from 'effect/Effect';
|
|
2
|
-
import * as vscode from 'vscode';
|
|
3
|
-
import { ChannelService } from '../vscode/channelService';
|
|
4
|
-
import { IndexedDBStorageService } from './indexedDbStorage';
|
|
5
|
-
export declare const emitter: vscode.EventEmitter<vscode.FileChangeEvent[]>;
|
|
6
|
-
/** Starts watching the memfs for file changes */
|
|
7
|
-
export declare const startWatch: () => Effect.Effect<void, Error, ChannelService | IndexedDBStorageService>;
|
|
8
|
-
//# sourceMappingURL=memfsWatcher.d.ts.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as Effect from 'effect/Effect';
|
|
2
|
-
import { SettingsService } from '../vscode/settingsService';
|
|
3
|
-
import { FsProvider } from './fsTypes';
|
|
4
|
-
/** Creates the files for an empty sfdx project */
|
|
5
|
-
export declare const projectFiles: (fsp: FsProvider) => Effect.Effect<void, Error, SettingsService>;
|
|
6
|
-
//# sourceMappingURL=projectInit.d.ts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** map of file name to file content */
|
|
2
|
-
export declare const TEMPLATES: {
|
|
3
|
-
'.vscode/settings.json': string[];
|
|
4
|
-
'.forceignore': string[];
|
|
5
|
-
'.gitignore': string[];
|
|
6
|
-
'sfdx-project.json': string[];
|
|
7
|
-
'.prettierrc': string[];
|
|
8
|
-
'.prettierignore': string[];
|
|
9
|
-
'jest.config.js': string[];
|
|
10
|
-
'README.md': string[];
|
|
11
|
-
'tsconfig.json': string[];
|
|
12
|
-
};
|
|
13
|
-
export { metadataDirs } from './metadataDirs';
|
|
14
|
-
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as Effect from 'effect/Effect';
|
|
2
|
-
import * as Layer from 'effect/Layer';
|
|
3
|
-
import * as vscode from 'vscode';
|
|
4
|
-
declare const ChannelService_base: Effect.Service.Class<ChannelService, "ChannelService", {
|
|
5
|
-
readonly sync: () => {
|
|
6
|
-
/** Get the OutputChannel for this ChannelService */
|
|
7
|
-
readonly getChannel: Effect.Effect<vscode.OutputChannel, never, never>;
|
|
8
|
-
/** Append a message to this OutputChannel */
|
|
9
|
-
readonly appendToChannel: (message: string) => Effect.Effect<void | undefined, never, never>;
|
|
10
|
-
};
|
|
11
|
-
}>;
|
|
12
|
-
export declare class ChannelService extends ChannelService_base {
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Factory for a Layer that provides a ChannelService for the given channel name.
|
|
16
|
-
* Use this in other extensions
|
|
17
|
-
* Usage:
|
|
18
|
-
* Layer.provide(ChannelServiceLayer('My Channel'))
|
|
19
|
-
*/
|
|
20
|
-
export declare const ChannelServiceLayer: (channelName: string) => Layer.Layer<ChannelService>;
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=channelService.d.ts.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as Effect from 'effect/Effect';
|
|
2
|
-
import * as S from 'effect/Schema';
|
|
3
|
-
import * as vscode from 'vscode';
|
|
4
|
-
import { ChannelService } from '../vscode/channelService';
|
|
5
|
-
declare const FsService_base: Effect.Service.Class<FsService, "FsService", {
|
|
6
|
-
readonly succeed: {
|
|
7
|
-
readonly readFile: (filePath: string) => Effect.Effect<string, Error, ChannelService>;
|
|
8
|
-
readonly writeFile: (filePath: string, content: string) => Effect.Effect<void, Error, ChannelService>;
|
|
9
|
-
readonly fileOrFolderExists: (filePath: string) => Effect.Effect<boolean, Error, ChannelService>;
|
|
10
|
-
readonly isDirectory: (path: string) => Effect.Effect<boolean, Error, never>;
|
|
11
|
-
readonly isFile: (path: string) => Effect.Effect<boolean, Error, never>;
|
|
12
|
-
readonly createDirectory: (dirPath: string) => Effect.Effect<void, Error, never>;
|
|
13
|
-
readonly deleteFile: (filePath: string, options?: {}) => Effect.Effect<void, Error, never>;
|
|
14
|
-
readonly readDirectory: (dirPath: string) => Effect.Effect<string[], Error, never>;
|
|
15
|
-
readonly stat: (filePath: string) => Effect.Effect<vscode.FileStat, Error, never>;
|
|
16
|
-
readonly safeDelete: (filePath: string, options?: {}) => Effect.Effect<void, Error, never>;
|
|
17
|
-
readonly rename: (oldPath: string, newPath: string) => Effect.Effect<void, Error, never>;
|
|
18
|
-
readonly readJSON: <A>(filePath: string, schema: S.Schema<A>) => Effect.Effect<A, Error, ChannelService>;
|
|
19
|
-
};
|
|
20
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<ChannelService, never, never>];
|
|
21
|
-
}>;
|
|
22
|
-
export declare class FsService extends FsService_base {
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=fsService.d.ts.map
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as Effect from 'effect/Effect';
|
|
2
|
-
declare const SettingsService_base: Effect.Service.Class<SettingsService, "SettingsService", {
|
|
3
|
-
readonly succeed: {
|
|
4
|
-
/**
|
|
5
|
-
* Get a value from settings
|
|
6
|
-
* @param section The settings section
|
|
7
|
-
* @param key The settings key
|
|
8
|
-
* @param defaultValue Optional default value
|
|
9
|
-
*/
|
|
10
|
-
readonly getValue: <T>(section: string, key: string, defaultValue?: T) => Effect.Effect<T | undefined, Error, never>;
|
|
11
|
-
/**
|
|
12
|
-
* Set a value in settings
|
|
13
|
-
* @param section The settings section
|
|
14
|
-
* @param key The settings key
|
|
15
|
-
* @param value The value to set
|
|
16
|
-
*/
|
|
17
|
-
readonly setValue: <T>(section: string, key: string, value: T) => Effect.Effect<void, Error, never>;
|
|
18
|
-
/**
|
|
19
|
-
* Get the Salesforce instance URL from settings
|
|
20
|
-
*/
|
|
21
|
-
readonly getInstanceUrl: Effect.Effect<string, Error, never>;
|
|
22
|
-
/**
|
|
23
|
-
* Get the Salesforce access token from settings
|
|
24
|
-
*/
|
|
25
|
-
readonly getAccessToken: Effect.Effect<string, Error, never>;
|
|
26
|
-
/**
|
|
27
|
-
* Get the Salesforce API version from settings. In the form of '64.0'
|
|
28
|
-
*/
|
|
29
|
-
readonly getApiVersion: Effect.Effect<string, Error, never>;
|
|
30
|
-
/**
|
|
31
|
-
* Set the Salesforce instance URL in settings
|
|
32
|
-
*/
|
|
33
|
-
readonly setInstanceUrl: (url: string) => Effect.Effect<void, Error, never>;
|
|
34
|
-
/**
|
|
35
|
-
* Set the Salesforce access token in settings
|
|
36
|
-
*/
|
|
37
|
-
readonly setAccessToken: (token: string) => Effect.Effect<void, Error, never>;
|
|
38
|
-
/**
|
|
39
|
-
* Set the Salesforce API version in settings
|
|
40
|
-
*/
|
|
41
|
-
readonly setApiVersion: (version: string) => Effect.Effect<void, Error, never>;
|
|
42
|
-
};
|
|
43
|
-
}>;
|
|
44
|
-
export declare class SettingsService extends SettingsService_base {
|
|
45
|
-
}
|
|
46
|
-
export {};
|
|
47
|
-
//# sourceMappingURL=settingsService.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as Effect from 'effect/Effect';
|
|
2
|
-
type WorkspaceInfo = {
|
|
3
|
-
/** includes the file:// or other schemeprefix */
|
|
4
|
-
path: string;
|
|
5
|
-
/** the path without the scheme prefix */
|
|
6
|
-
fsPath: string;
|
|
7
|
-
isEmpty: boolean;
|
|
8
|
-
isVirtualFs: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare const WorkspaceService_base: Effect.Service.Class<WorkspaceService, "WorkspaceService", {
|
|
11
|
-
readonly succeed: {
|
|
12
|
-
/** Get info about the workspace */
|
|
13
|
-
readonly getWorkspaceInfo: Effect.Effect<WorkspaceInfo, never, never>;
|
|
14
|
-
};
|
|
15
|
-
}>;
|
|
16
|
-
export declare class WorkspaceService extends WorkspaceService_base {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=workspaceService.d.ts.map
|