sf-plugin-data 0.1.0 → 0.2.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.
- package/LICENSE +21 -21
- package/README.md +572 -240
- package/docs/artifact-format.md +527 -633
- package/docs/capabilities.md +1159 -168
- package/docs/git-workflow.md +135 -12
- package/docs/handover.md +7826 -12
- package/lib/api.d.ts +7 -0
- package/lib/api.js +7 -0
- package/lib/artifacts/code-fields.d.ts +49 -0
- package/lib/artifacts/code-fields.js +142 -0
- package/lib/artifacts/data-graph-document.d.ts +29 -0
- package/lib/artifacts/data-graph-document.js +52 -0
- package/lib/artifacts/data-space-field.d.ts +65 -0
- package/lib/artifacts/data-space-field.js +98 -0
- package/lib/artifacts/data-stream-document.d.ts +264 -0
- package/lib/artifacts/data-stream-document.js +680 -0
- package/lib/artifacts/data-transform-document.d.ts +152 -0
- package/lib/artifacts/data-transform-document.js +560 -0
- package/lib/artifacts/dependency-selection.d.ts +51 -0
- package/lib/artifacts/dependency-selection.js +154 -0
- package/lib/artifacts/dlo-document.d.ts +93 -0
- package/lib/artifacts/dlo-document.js +253 -0
- package/lib/artifacts/enum-case.d.ts +39 -0
- package/lib/artifacts/enum-case.js +67 -0
- package/lib/artifacts/git-deploy-selection.d.ts +68 -0
- package/lib/artifacts/git-deploy-selection.js +474 -0
- package/lib/artifacts/identity-resolution-document.d.ts +133 -0
- package/lib/artifacts/identity-resolution-document.js +625 -0
- package/lib/artifacts/mapping-document.d.ts +1 -0
- package/lib/artifacts/mapping-document.js +1 -0
- package/lib/artifacts/native-calculated-insight-document.d.ts +142 -0
- package/lib/artifacts/native-calculated-insight-document.js +321 -0
- package/lib/artifacts/native-data-graph-document.d.ts +124 -0
- package/lib/artifacts/native-data-graph-document.js +780 -0
- package/lib/artifacts/native-dmo-document.d.ts +151 -0
- package/lib/artifacts/native-dmo-document.js +313 -0
- package/lib/artifacts/native-mapping-document.d.ts +67 -0
- package/lib/artifacts/native-mapping-document.js +187 -0
- package/lib/artifacts/native-relationship-document.d.ts +76 -0
- package/lib/artifacts/native-relationship-document.js +232 -0
- package/lib/artifacts/path-selector.d.ts +55 -0
- package/lib/artifacts/path-selector.js +167 -0
- package/lib/artifacts/read-deploy-input.d.ts +222 -6
- package/lib/artifacts/read-deploy-input.js +1213 -53
- package/lib/artifacts/segment-document.d.ts +183 -0
- package/lib/artifacts/segment-document.js +570 -0
- package/lib/artifacts/verbatim-document.d.ts +203 -0
- package/lib/artifacts/verbatim-document.js +339 -0
- package/lib/artifacts/write-data-graph.d.ts +17 -0
- package/lib/artifacts/write-data-graph.js +162 -0
- package/lib/artifacts/write-data-stream.d.ts +11 -0
- package/lib/artifacts/write-data-stream.js +175 -0
- package/lib/artifacts/write-data-transform.d.ts +11 -0
- package/lib/artifacts/write-data-transform.js +180 -0
- package/lib/artifacts/write-dlo.d.ts +11 -0
- package/lib/artifacts/write-dlo.js +158 -0
- package/lib/artifacts/write-identity-resolution.d.ts +18 -0
- package/lib/artifacts/write-identity-resolution.js +165 -0
- package/lib/artifacts/write-mapping-definition.d.ts +17 -0
- package/lib/artifacts/write-mapping-definition.js +127 -0
- package/lib/artifacts/write-member-export.d.ts +88 -0
- package/lib/artifacts/write-member-export.js +199 -0
- package/lib/artifacts/write-native-calculated-insight.d.ts +21 -0
- package/lib/artifacts/write-native-calculated-insight.js +176 -0
- package/lib/artifacts/write-native-dmo.d.ts +11 -0
- package/lib/artifacts/write-native-dmo.js +158 -0
- package/lib/artifacts/write-native-mapping.d.ts +11 -0
- package/lib/artifacts/write-native-mapping.js +157 -0
- package/lib/artifacts/write-native-relationship.d.ts +11 -0
- package/lib/artifacts/write-native-relationship.js +157 -0
- package/lib/artifacts/write-segment.d.ts +26 -0
- package/lib/artifacts/write-segment.js +212 -0
- package/lib/commands/data360/delete.d.ts +280 -0
- package/lib/commands/data360/delete.js +2297 -0
- package/lib/commands/data360/deploy.d.ts +234 -15
- package/lib/commands/data360/deploy.js +2292 -100
- package/lib/commands/data360/publish.d.ts +93 -0
- package/lib/commands/data360/publish.js +292 -0
- package/lib/commands/data360/retrieve.d.ts +260 -13
- package/lib/commands/data360/retrieve.js +1880 -85
- package/lib/commands/data360/segment/members/export.d.ts +101 -0
- package/lib/commands/data360/segment/members/export.js +318 -0
- package/lib/errors/codes/calculated-insight.d.ts +2 -0
- package/lib/errors/codes/calculated-insight.js +25 -0
- package/lib/errors/codes/data-graph.d.ts +2 -0
- package/lib/errors/codes/data-graph.js +22 -0
- package/lib/errors/codes/data-stream.d.ts +2 -0
- package/lib/errors/codes/data-stream.js +70 -0
- package/lib/errors/codes/data-transform.d.ts +2 -0
- package/lib/errors/codes/data-transform.js +35 -0
- package/lib/errors/codes/dependency.d.ts +2 -0
- package/lib/errors/codes/dependency.js +11 -0
- package/lib/errors/codes/dlo.d.ts +2 -0
- package/lib/errors/codes/dlo.js +31 -0
- package/lib/errors/codes/dmo.d.ts +2 -0
- package/lib/errors/codes/dmo.js +28 -0
- package/lib/errors/codes/general.d.ts +2 -0
- package/lib/errors/codes/general.js +57 -0
- package/lib/errors/codes/identity-resolution.d.ts +2 -0
- package/lib/errors/codes/identity-resolution.js +24 -0
- package/lib/errors/codes/mapping.d.ts +2 -0
- package/lib/errors/codes/mapping.js +42 -0
- package/lib/errors/codes/relationship.d.ts +2 -0
- package/lib/errors/codes/relationship.js +21 -0
- package/lib/errors/codes/segment.d.ts +2 -0
- package/lib/errors/codes/segment.js +49 -0
- package/lib/errors/registry.d.ts +60 -0
- package/lib/errors/registry.js +123 -0
- package/lib/plugin.d.ts +1 -0
- package/lib/plugin.js +3 -1
- package/lib/services/acquire-retrieve-selection.d.ts +43 -0
- package/lib/services/acquire-retrieve-selection.js +145 -0
- package/lib/services/bind-identity-resolution-dependencies.d.ts +53 -0
- package/lib/services/bind-identity-resolution-dependencies.js +238 -0
- package/lib/services/bind-segment-dependencies.d.ts +49 -0
- package/lib/services/bind-segment-dependencies.js +115 -0
- package/lib/services/bounded-reads.d.ts +17 -0
- package/lib/services/bounded-reads.js +42 -0
- package/lib/services/calculated-insight-sql-checks.d.ts +33 -0
- package/lib/services/calculated-insight-sql-checks.js +193 -0
- package/lib/services/command-dlo.d.ts +48 -0
- package/lib/services/command-dlo.js +103 -0
- package/lib/services/command-native-data-graph.d.ts +54 -0
- package/lib/services/command-native-data-graph.js +485 -0
- package/lib/services/command-native-data-stream.d.ts +104 -0
- package/lib/services/command-native-data-stream.js +257 -0
- package/lib/services/command-native-dmo.d.ts +124 -0
- package/lib/services/command-native-dmo.js +338 -0
- package/lib/services/command-native-mapping.d.ts +65 -0
- package/lib/services/command-native-mapping.js +129 -0
- package/lib/services/command-native-relationship.d.ts +46 -0
- package/lib/services/command-native-relationship.js +103 -0
- package/lib/services/cross-dataspace-deploy.d.ts +111 -0
- package/lib/services/cross-dataspace-deploy.js +493 -0
- package/lib/services/cross-dataspace-rename.d.ts +74 -0
- package/lib/services/cross-dataspace-rename.js +1314 -0
- package/lib/services/cross-dataspace-sql.d.ts +109 -0
- package/lib/services/cross-dataspace-sql.js +1301 -0
- package/lib/services/cross-space-context.d.ts +23 -0
- package/lib/services/cross-space-context.js +36 -0
- package/lib/services/crud-plan.d.ts +137 -0
- package/lib/services/crud-plan.js +408 -0
- package/lib/services/data-space-check.d.ts +89 -0
- package/lib/services/data-space-check.js +162 -0
- package/lib/services/data-space-prefix.d.ts +77 -0
- package/lib/services/data-space-prefix.js +127 -0
- package/lib/services/data-transform-space.d.ts +31 -0
- package/lib/services/data-transform-space.js +79 -0
- package/lib/services/delete-calculated-insight.d.ts +44 -0
- package/lib/services/delete-calculated-insight.js +101 -0
- package/lib/services/delete-data-transform.d.ts +52 -0
- package/lib/services/delete-data-transform.js +222 -0
- package/lib/services/delete-dmo-field.d.ts +211 -0
- package/lib/services/delete-dmo-field.js +472 -0
- package/lib/services/delete-identity-resolution.d.ts +43 -0
- package/lib/services/delete-identity-resolution.js +295 -0
- package/lib/services/delete-segment.d.ts +42 -0
- package/lib/services/delete-segment.js +248 -0
- package/lib/services/deploy-result.d.ts +54 -0
- package/lib/services/deploy-result.js +60 -0
- package/lib/services/escaped-copy.d.ts +23 -0
- package/lib/services/escaped-copy.js +88 -0
- package/lib/services/execute-calculated-insight-deploy.d.ts +42 -0
- package/lib/services/execute-calculated-insight-deploy.js +96 -0
- package/lib/services/execute-data-transform-deploy.d.ts +56 -0
- package/lib/services/execute-data-transform-deploy.js +168 -0
- package/lib/services/execute-native-identity-resolution-deploy.d.ts +48 -0
- package/lib/services/execute-native-identity-resolution-deploy.js +360 -0
- package/lib/services/execute-segment-deploy.d.ts +45 -0
- package/lib/services/execute-segment-deploy.js +393 -0
- package/lib/services/local-file-removal.d.ts +36 -0
- package/lib/services/local-file-removal.js +103 -0
- package/lib/services/native-calculated-insight.d.ts +87 -0
- package/lib/services/native-calculated-insight.js +164 -0
- package/lib/services/native-crm-data-stream.d.ts +91 -0
- package/lib/services/native-crm-data-stream.js +272 -0
- package/lib/services/native-data-graph-context.d.ts +12 -0
- package/lib/services/native-data-graph-context.js +139 -0
- package/lib/services/native-data-graph-crd.d.ts +261 -0
- package/lib/services/native-data-graph-crd.js +866 -0
- package/lib/services/native-data-stream.d.ts +329 -0
- package/lib/services/native-data-stream.js +1830 -0
- package/lib/services/native-dlo.d.ts +163 -0
- package/lib/services/native-dlo.js +402 -0
- package/lib/services/native-dmo.d.ts +191 -0
- package/lib/services/native-dmo.js +614 -0
- package/lib/services/native-mapping.d.ts +255 -0
- package/lib/services/native-mapping.js +1226 -0
- package/lib/services/native-relationship.d.ts +132 -0
- package/lib/services/native-relationship.js +512 -0
- package/lib/services/operation-diagnostic.d.ts +83 -0
- package/lib/services/operation-diagnostic.js +272 -0
- package/lib/services/preflight-calculated-insight-deploy.d.ts +58 -0
- package/lib/services/preflight-calculated-insight-deploy.js +95 -0
- package/lib/services/preflight-data-transform-deploy.d.ts +33 -0
- package/lib/services/preflight-data-transform-deploy.js +104 -0
- package/lib/services/preflight-identity-resolution-deploy.d.ts +107 -0
- package/lib/services/preflight-identity-resolution-deploy.js +281 -0
- package/lib/services/preflight-segment-deploy.d.ts +31 -0
- package/lib/services/preflight-segment-deploy.js +109 -0
- package/lib/services/publish-calculated-insight.d.ts +40 -0
- package/lib/services/publish-calculated-insight.js +95 -0
- package/lib/services/publish-segment.d.ts +65 -0
- package/lib/services/publish-segment.js +194 -0
- package/lib/services/readback-pace.d.ts +16 -0
- package/lib/services/readback-pace.js +23 -0
- package/lib/services/retrieve-data-transform.d.ts +26 -0
- package/lib/services/retrieve-data-transform.js +65 -0
- package/lib/services/retrieve-identity-resolution.d.ts +40 -0
- package/lib/services/retrieve-identity-resolution.js +87 -0
- package/lib/services/retrieve-inventory.d.ts +32 -0
- package/lib/services/retrieve-inventory.js +151 -0
- package/lib/services/retrieve-segment.d.ts +120 -0
- package/lib/services/retrieve-segment.js +502 -0
- package/lib/services/segment-lookup.d.ts +46 -0
- package/lib/services/segment-lookup.js +108 -0
- package/lib/services/segment-members.d.ts +144 -0
- package/lib/services/segment-members.js +402 -0
- package/lib/services/select-native-retrieve.d.ts +60 -0
- package/lib/services/select-native-retrieve.js +226 -0
- package/lib/services/settle-calculated-insight.d.ts +22 -0
- package/lib/services/settle-calculated-insight.js +53 -0
- package/lib/services/sql-tokens.d.ts +58 -0
- package/lib/services/sql-tokens.js +147 -0
- package/lib/transport/api-version.d.ts +36 -0
- package/lib/transport/api-version.js +89 -0
- package/lib/transport/bound-ssot.d.ts +27 -0
- package/lib/transport/bound-ssot.js +116 -0
- package/lib/transport/calculated-insight-rest.d.ts +28 -0
- package/lib/transport/calculated-insight-rest.js +62 -0
- package/lib/transport/connect-client.d.ts +94 -32
- package/lib/transport/connect-client.js +318 -178
- package/lib/transport/connect-diagnostic.d.ts +89 -0
- package/lib/transport/connect-diagnostic.js +331 -0
- package/lib/transport/data-graph-rest.d.ts +27 -0
- package/lib/transport/data-graph-rest.js +76 -0
- package/lib/transport/data-stream-rest.d.ts +62 -0
- package/lib/transport/data-stream-rest.js +348 -0
- package/lib/transport/data-transform-rest.d.ts +25 -0
- package/lib/transport/data-transform-rest.js +100 -0
- package/lib/transport/dlo-native-rest.d.ts +22 -0
- package/lib/transport/dlo-native-rest.js +89 -0
- package/lib/transport/dlo-rest.d.ts +23 -0
- package/lib/transport/dlo-rest.js +135 -0
- package/lib/transport/dmo-native-rest.d.ts +18 -0
- package/lib/transport/dmo-native-rest.js +55 -0
- package/lib/transport/dmo-rest.d.ts +30 -0
- package/lib/transport/dmo-rest.js +163 -0
- package/lib/transport/mapping-rest.d.ts +63 -0
- package/lib/transport/mapping-rest.js +341 -0
- package/lib/transport/project-metadata.d.ts +36 -0
- package/lib/transport/project-metadata.js +118 -0
- package/lib/transport/relationship-rest.d.ts +43 -0
- package/lib/transport/relationship-rest.js +201 -0
- package/package.json +29 -6
- package/lib/artifacts/dmo-document.d.ts +0 -181
- package/lib/artifacts/dmo-document.js +0 -848
- package/lib/artifacts/dmo-update-delta.d.ts +0 -28
- package/lib/artifacts/dmo-update-delta.js +0 -86
- package/lib/artifacts/write-other-dmo.d.ts +0 -17
- package/lib/artifacts/write-other-dmo.js +0 -140
- package/lib/services/execute-dmo-create.d.ts +0 -24
- package/lib/services/execute-dmo-create.js +0 -118
- package/lib/services/execute-dmo-deploy.d.ts +0 -33
- package/lib/services/execute-dmo-deploy.js +0 -197
- package/lib/services/preflight-dmo-deploy.d.ts +0 -69
- package/lib/services/preflight-dmo-deploy.js +0 -161
- package/lib/services/retrieve-other-dmo.d.ts +0 -46
- package/lib/services/retrieve-other-dmo.js +0 -140
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import type { DocumentMode } from './verbatim-document.js';
|
|
2
|
+
/**
|
|
3
|
+
* A transform file: Salesforce's create/update input in `definition`, kept as read. Its data space
|
|
4
|
+
* is the top-level `c__dataSpace`. When the input names `dataSpaceName` (sent as written), the two
|
|
5
|
+
* must agree; a transform whose GET names none (one built on DLOs, or with `definitions`) takes
|
|
6
|
+
* its data space from the org's MktDataTransform record (SOQL), and one without any data space
|
|
7
|
+
* there (a system transform) is handled in `default` only.
|
|
8
|
+
*/
|
|
9
|
+
export type DataTransformDocument = {
|
|
10
|
+
schemaVersion: 1;
|
|
11
|
+
kind: 'data-transform';
|
|
12
|
+
apiVersion: '68.0';
|
|
13
|
+
c__dataSpace: string;
|
|
14
|
+
definition: Record<string, unknown>;
|
|
15
|
+
/**
|
|
16
|
+
* Desired schedule, sent with its own PUT. Absent leaves the org schedule alone;
|
|
17
|
+
* `{ frequency: 'None' }` turns it off.
|
|
18
|
+
*/
|
|
19
|
+
schedule?: Record<string, unknown>;
|
|
20
|
+
};
|
|
21
|
+
export type DataTransformObservation = {
|
|
22
|
+
document: DataTransformDocument;
|
|
23
|
+
targetId: string;
|
|
24
|
+
runtime: Record<string, unknown>;
|
|
25
|
+
schedule: Record<string, unknown>;
|
|
26
|
+
};
|
|
27
|
+
/** Payload-free refusal of a native data transform operation. */
|
|
28
|
+
export declare class DataTransformError extends Error {
|
|
29
|
+
readonly code: string;
|
|
30
|
+
constructor(code: string);
|
|
31
|
+
}
|
|
32
|
+
export declare const dataTransformId: RegExp;
|
|
33
|
+
/**
|
|
34
|
+
* The data space a transform input names itself (`dataSpaceName`), or undefined when it names
|
|
35
|
+
* none (its data space then comes from the org's MktDataTransform record).
|
|
36
|
+
* @param {Record<string, unknown>} input Admitted transform input.
|
|
37
|
+
* @returns {string | undefined} Data space.
|
|
38
|
+
*/
|
|
39
|
+
export declare function dataTransformSpace(input: Record<string, unknown>): string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The refusal of a transform file whose `c__dataSpace` is not the run's data space.
|
|
42
|
+
* @param {string} name Transform name.
|
|
43
|
+
* @param {string} fileSpace The file's c__dataSpace.
|
|
44
|
+
* @param {string} dataSpace The run's data space.
|
|
45
|
+
* @param {boolean} [crossSpace] A deploy of a file --allow-cross-dataspace can translate: say so.
|
|
46
|
+
* @returns {DataTransformError} TRANSFORM_DATASPACE_MISMATCH with an explanation.
|
|
47
|
+
*/
|
|
48
|
+
export declare function dataTransformSpaceMismatch(name: string, fileSpace: string, dataSpace: string, crossSpace?: boolean): DataTransformError;
|
|
49
|
+
/**
|
|
50
|
+
* Admit the native transform input as authored: inert JSON, an exact name, exactly one of
|
|
51
|
+
* `definition` / `definitions`, only create/update input keys and, when `dataSpaceName` is
|
|
52
|
+
* present, a data space name. Salesforce validates the rest. Retrieve mode keeps keys the
|
|
53
|
+
* input does not take; deploy then refuses them, naming the key.
|
|
54
|
+
* @param {unknown} value Complete native input.
|
|
55
|
+
* @param {DocumentMode} [mode] `deploy` (strict) or `retrieve` (keeps unknown keys).
|
|
56
|
+
* @returns {Record<string, unknown>} Detached input, sent as written.
|
|
57
|
+
*/
|
|
58
|
+
export declare function buildDataTransformInput(value: unknown, mode?: DocumentMode): Record<string, unknown>;
|
|
59
|
+
/**
|
|
60
|
+
* Validate the portable input-only native API68 artifact. Its `c__dataSpace` must equal
|
|
61
|
+
* `definition.dataSpaceName` when the definition names one.
|
|
62
|
+
* @param {unknown} value Portable candidate.
|
|
63
|
+
* @param {DocumentMode} [mode] `deploy` (strict) or `retrieve` (keeps unknown input keys).
|
|
64
|
+
* @returns {DataTransformDocument} Detached checked document.
|
|
65
|
+
*/
|
|
66
|
+
export declare function validateDataTransformDocument(value: unknown, mode?: DocumentMode): DataTransformDocument;
|
|
67
|
+
/**
|
|
68
|
+
* Produce stable portable bytes independent of response property ordering.
|
|
69
|
+
* @param {unknown} value Checked artifact candidate.
|
|
70
|
+
* @param {DocumentMode} [mode] `deploy` (strict) or `retrieve` (keeps unknown input keys).
|
|
71
|
+
* @returns {string} Deterministic JSON with final LF.
|
|
72
|
+
*/
|
|
73
|
+
export declare function serializeDataTransformDocument(value: unknown, mode?: DocumentMode): string;
|
|
74
|
+
/**
|
|
75
|
+
* A transform file's input with each SQL expression that is an HTML-escaped copy (an entity
|
|
76
|
+
* outside texts, as an older plugin version retrieved it) decoded, the others kept, so a delete
|
|
77
|
+
* compares such a file with the org as observed.
|
|
78
|
+
* @param {Record<string, unknown>} input Transform input from a file.
|
|
79
|
+
* @returns {Record<string, unknown>} Detached input.
|
|
80
|
+
*/
|
|
81
|
+
export declare function plainTransformExpressions(input: Record<string, unknown>): Record<string, unknown>;
|
|
82
|
+
/**
|
|
83
|
+
* Refuse a transform file whose SQL expression holds an HTML entity outside texts, comments and
|
|
84
|
+
* quoted names: Salesforce does not decode entities on write, so it would read them as a syntax
|
|
85
|
+
* error.
|
|
86
|
+
* @param {DataTransformDocument} document Checked transform file.
|
|
87
|
+
*/
|
|
88
|
+
export declare function refuseEscapedTransformExpressions(document: DataTransformDocument): void;
|
|
89
|
+
/**
|
|
90
|
+
* The schedule of a transform that does not run on a schedule. Retrieve leaves the key out for
|
|
91
|
+
* it; a file states it explicitly to turn a schedule off.
|
|
92
|
+
*/
|
|
93
|
+
export declare const unscheduled: Readonly<Record<string, unknown>>;
|
|
94
|
+
/**
|
|
95
|
+
* Whether the org transform already holds the definition of the file: the same canonical input,
|
|
96
|
+
* with enum values compared ignoring letter case and an aggregate node's `nodeType` `STANDARD`
|
|
97
|
+
* (added by Salesforce) the same as none. Names, labels, SQL and other text compare exactly (the
|
|
98
|
+
* org's expressions as stored, read as plain text). The schedule is not compared.
|
|
99
|
+
* @param {DataTransformDocument} current Org document as projected.
|
|
100
|
+
* @param {DataTransformDocument} desired Document from the file.
|
|
101
|
+
* @param {DocumentMode} [mode] `deploy` (strict) or `retrieve` (keeps unknown input keys).
|
|
102
|
+
* @returns {boolean} True when the definition would not change.
|
|
103
|
+
*/
|
|
104
|
+
export declare function sameDataTransformDefinition(current: DataTransformDocument, desired: DataTransformDocument, mode?: DocumentMode): boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Whether the org schedule (as retrieve projects it) equals the schedule of the file; the
|
|
107
|
+
* frequency is compared ignoring letter case, the write-only `shouldForceSpecifiedMinutes` is not
|
|
108
|
+
* compared, everything else exactly.
|
|
109
|
+
* @param {Record<string, unknown> | undefined} current Projected org schedule; none is unscheduled.
|
|
110
|
+
* @param {Record<string, unknown>} desired Schedule from the file.
|
|
111
|
+
* @returns {boolean} True when the schedule would not change.
|
|
112
|
+
*/
|
|
113
|
+
export declare function sameDataTransformSchedule(current: Record<string, unknown> | undefined, desired: Record<string, unknown>): boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Whether the org transform already holds the file: the same definition and, when the file has
|
|
116
|
+
* a schedule, the same schedule. A file without a schedule leaves the schedule alone.
|
|
117
|
+
* @param {DataTransformDocument} current Org document as projected.
|
|
118
|
+
* @param {DataTransformDocument} desired Document from the file.
|
|
119
|
+
* @param {DocumentMode} [mode] `deploy` (strict) or `retrieve` (keeps unknown input keys).
|
|
120
|
+
* @returns {boolean} True when nothing would change.
|
|
121
|
+
*/
|
|
122
|
+
export declare function sameDataTransformDocument(current: DataTransformDocument, desired: DataTransformDocument, mode?: DocumentMode): boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Project a schedule GET onto the keys the schedule PUT takes (live API 68, 2026-11-18):
|
|
125
|
+
* `frequency`, `interval`, `daysOfWeek`, `shouldForceSpecifiedMinutes` and `time` with
|
|
126
|
+
* `hour`, `minute` and `timeZone` (the GET's `time.timezone.zoneId`); the server-set
|
|
127
|
+
* `nextScheduledDate` and `type` are left out. A transform without a schedule (`frequency`
|
|
128
|
+
* `None`, or an empty `schedule` object) gives no schedule, so retrieve leaves the key out and
|
|
129
|
+
* a deploy of that file leaves the schedule alone. The per-definition
|
|
130
|
+
* `schedule` map of a system transform keeps its map, each entry projected the same way and the
|
|
131
|
+
* outer `type` left out; Salesforce refuses a schedule PUT on a system transform (403). Any other
|
|
132
|
+
* shape is kept as read. An empty answer (a schedule read that failed on retrieve) gives no
|
|
133
|
+
* schedule.
|
|
134
|
+
* @param {Record<string, unknown>} raw Schedule GET.
|
|
135
|
+
* @returns {Record<string, unknown> | undefined} Projected schedule, or undefined for none read.
|
|
136
|
+
*/
|
|
137
|
+
export declare function projectDataTransformSchedule(raw: Record<string, unknown>): Record<string, unknown> | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* Admit a transform GET of any owner (custom, system or packaged; Salesforce decides about
|
|
140
|
+
* writes) and project its native input: the input keys present, definitions without schedule and
|
|
141
|
+
* output objects without server-owned keys, plus the schedule as projected from its own GET.
|
|
142
|
+
* Retrieve mode also keeps keys that are neither input nor server-owned, and leaves out a `null`
|
|
143
|
+
* `definition` or `definitions` beside the other one.
|
|
144
|
+
* @param {unknown} value Native item response.
|
|
145
|
+
* @param {unknown} scheduleValue Independently read native schedule; also kept as read.
|
|
146
|
+
* @param {DocumentMode} [mode] `deploy` (strict) or `retrieve` (keeps unknown keys).
|
|
147
|
+
* @param {string} [dataSpace] The transform's resolved data space (from `dataSpaceName`, or the
|
|
148
|
+
* org's MktDataTransform record); required when the GET names none.
|
|
149
|
+
* @returns {DataTransformObservation} Portable input plus detached read-only observations.
|
|
150
|
+
*/
|
|
151
|
+
export declare function observeDataTransform(value: unknown, scheduleValue: unknown, mode?: DocumentMode, dataSpace?: string): DataTransformObservation;
|
|
152
|
+
export { dataTransformName } from './path-selector.js';
|