sf-plugin-data 0.0.0-stage → 0.1.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 -0
- package/README.md +257 -2
- package/bin/run.js +4 -0
- package/docs/artifact-format.md +633 -0
- package/docs/capabilities.md +217 -0
- package/docs/git-workflow.md +37 -0
- package/docs/handover.md +2632 -0
- package/lib/artifacts/dmo-document.d.ts +181 -0
- package/lib/artifacts/dmo-document.js +848 -0
- package/lib/artifacts/dmo-update-delta.d.ts +28 -0
- package/lib/artifacts/dmo-update-delta.js +86 -0
- package/lib/artifacts/read-deploy-input.d.ts +23 -0
- package/lib/artifacts/read-deploy-input.js +199 -0
- package/lib/artifacts/write-other-dmo.d.ts +17 -0
- package/lib/artifacts/write-other-dmo.js +140 -0
- package/lib/commands/data360/deploy.d.ts +84 -0
- package/lib/commands/data360/deploy.js +208 -0
- package/lib/commands/data360/retrieve.d.ts +75 -0
- package/lib/commands/data360/retrieve.js +168 -0
- package/lib/plugin.d.ts +4 -0
- package/lib/plugin.js +3 -0
- package/lib/services/execute-dmo-create.d.ts +24 -0
- package/lib/services/execute-dmo-create.js +118 -0
- package/lib/services/execute-dmo-deploy.d.ts +33 -0
- package/lib/services/execute-dmo-deploy.js +197 -0
- package/lib/services/preflight-dmo-deploy.d.ts +69 -0
- package/lib/services/preflight-dmo-deploy.js +161 -0
- package/lib/services/retrieve-other-dmo.d.ts +46 -0
- package/lib/services/retrieve-other-dmo.js +140 -0
- package/lib/transport/connect-client.d.ts +67 -0
- package/lib/transport/connect-client.js +306 -0
- package/package.json +73 -4
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
# Capability contract checklist
|
|
2
|
+
|
|
3
|
+
General seven-family support is **unimplemented**; explicit bounded DMO retrieval
|
|
4
|
+
is available through current service-owned capability checks, not a permanent
|
|
5
|
+
fixture-specific architecture. No endpoint or writable variant is
|
|
6
|
+
claimed verified. Historical API observations are not implemented contracts.
|
|
7
|
+
Every family must complete all gates below before support can be declared.
|
|
8
|
+
|
|
9
|
+
## dlo: unimplemented
|
|
10
|
+
|
|
11
|
+
- [ ] Record official list/detail/create/update endpoints and API versions.
|
|
12
|
+
- [ ] Prove pagination, complete schema and stream/connection/lineage bindings.
|
|
13
|
+
- [ ] Classify writable/read-only/unknown fields and connector prerequisites.
|
|
14
|
+
- [ ] Prove configuration-only create/update/no-op without starting ingestion.
|
|
15
|
+
|
|
16
|
+
## dmo: general support unimplemented; bounded explicit retrieval available
|
|
17
|
+
|
|
18
|
+
`sf data360 retrieve -m dmo:ApiName` delegates capability checks to the existing
|
|
19
|
+
service, then writes authored-only canonical JSON through the existing writer.
|
|
20
|
+
No command-level category/field-count restriction is added. Current service
|
|
21
|
+
supports API 65.0/default through the common DMO projector with recognized generated
|
|
22
|
+
recipe, exact semantics and arbitrary nonempty authored counts/types. Only projected,
|
|
23
|
+
blocker-free, validated candidates reach the independently common-mapped writer.
|
|
24
|
+
Incomplete or unknown variants diagnose without publication. Repeatable exact selectors,
|
|
25
|
+
`-m dmo`, and omitted selectors (all currently implemented families: DMO only) now
|
|
26
|
+
resolve deduplicated sorted selection. Type/all reads complete inventory before
|
|
27
|
+
writing and filters the explicit default space; exact-only does not list. Each
|
|
28
|
+
unsupported or failed object has an identity-bearing diagnostic, retained successful
|
|
29
|
+
receipts, and a nonzero aggregate. Empty inventory succeeds without files. API 65.0/default
|
|
30
|
+
and selection validation precede authentication. General deployment remains unimplemented.
|
|
31
|
+
Internal `readDeployInputs` now resolves explicit files/directories or exact project
|
|
32
|
+
DMO members with bounded no-link authored-only JSON admission. Repeated identical
|
|
33
|
+
inputs coalesce; conflicting identities block. Public `deploy --preview` now wires
|
|
34
|
+
this resolver and per-item target preflight with core org/API/default scope flags.
|
|
35
|
+
Preview returns advisory create/update/unchanged/blocked-changes/blocked results without writes.
|
|
36
|
+
Shared execution preflight rejects authored categories other than Other and primary
|
|
37
|
+
keys that are non-Text or dynamic before target reads: these cannot qualify through
|
|
38
|
+
the current generated-recipe readback contract. Offline mapping remains broader;
|
|
39
|
+
no authored field-count or unrelated field-type restriction is introduced.
|
|
40
|
+
Without preview the command preflights the whole selection before sequential executor
|
|
41
|
+
calls, stopping on first blocked/failure/unknown mutation and retaining completed and
|
|
42
|
+
explicitly unattempted item receipts. Each executor still preflights independently. Internal `executeDmoCreate` now adds a fixed-endpoint
|
|
43
|
+
API65/default guarded POST following fresh complete-inventory absence proof. No-op
|
|
44
|
+
and blocked differences never POST. Independent common retrieval must qualify
|
|
45
|
+
identity, generated/qualifier integrity, relationships and authored meaning before
|
|
46
|
+
confirmed-created; missing/mismatched qualification or POST errors retain unknown
|
|
47
|
+
possible mutation with no retry/rollback. Public bounded execution is wired; artifact/report
|
|
48
|
+
writes and new live acceptance are not introduced. The common mapper remains more
|
|
49
|
+
permissive than the demonstrated projector; unqualified recipes never verify.
|
|
50
|
+
|
|
51
|
+
The pure offline `buildDmoUpdateDelta` helper constructs an allowlisted candidate
|
|
52
|
+
PATCH/expected overlay without authorizing updates. API 65 PATCH uses the exact
|
|
53
|
+
qualified DMO name; its documented response can contain old state. Separate GET
|
|
54
|
+
qualification is mandatory for future execution. Retained synthetic PATCH2 evidence
|
|
55
|
+
now qualifies the full expected overlay offline, including effective field-label
|
|
56
|
+
override with distinct unchanged Metadata base/master labels and complete raw
|
|
57
|
+
expectations. This single checkpoint does not prove general omission/new-field
|
|
58
|
+
preservation. Only the bounded label subset below is enabled publicly. Candidate tests alone
|
|
59
|
+
are not server evidence.
|
|
60
|
+
|
|
61
|
+
Public CLI label execution is now available through `executeDmoDeploy`; the command
|
|
62
|
+
admits the whole selection before writes and the service freshly qualifies each target/delta.
|
|
63
|
+
Preview explicitly opts into label deltas. Only object and existing non-primary
|
|
64
|
+
field labels within qualified Other/default/API 65 scope execute. New fields,
|
|
65
|
+
descriptions, primary-key labels and other unproven mixed changes block before writes.
|
|
66
|
+
Independent full readback verifies authored overlay plus raw runtime preservation;
|
|
67
|
+
HTTP 200 alone never confirms success. Ambiguity stops without retry or rollback.
|
|
68
|
+
Recorded Other evidence does not establish other categories or general updates.
|
|
69
|
+
|
|
70
|
+
- [ ] Record official endpoints, versions, pagination and writable contracts.
|
|
71
|
+
- [ ] Preserve keys, qualifiers, attributes, relationships, category and data space.
|
|
72
|
+
- [ ] Distinguish standalone custom versus standard/system/generated variants.
|
|
73
|
+
- [ ] Prove export-to-target create, nondestructive update and unchanged replay.
|
|
74
|
+
|
|
75
|
+
## mapping: unimplemented
|
|
76
|
+
|
|
77
|
+
- [ ] Record official endpoints, versions, pagination and inventory scope.
|
|
78
|
+
- [ ] Preserve deterministic source/target identity, fields and qualifier mappings.
|
|
79
|
+
- [ ] Verify replacement/update semantics cannot silently remove existing mappings.
|
|
80
|
+
- [ ] Prove schema-reference validation and supported create/update/no-op.
|
|
81
|
+
|
|
82
|
+
## identity-resolution: unimplemented
|
|
83
|
+
|
|
84
|
+
- [ ] Record official endpoints, versions, pagination and writable contracts.
|
|
85
|
+
- [ ] Preserve matching/reconciliation order, precedence, case and secondary objects.
|
|
86
|
+
- [ ] Classify generated-schema dependencies and automatic-run side effects.
|
|
87
|
+
- [ ] Prove configuration-only behavior without running resolution.
|
|
88
|
+
|
|
89
|
+
## data-graph: unimplemented
|
|
90
|
+
|
|
91
|
+
- [ ] Record official endpoints, versions, pagination and nested writable contracts.
|
|
92
|
+
- [ ] Preserve nested graph references and external dependencies.
|
|
93
|
+
- [ ] Establish a safe documented update route or explicitly block existing changes.
|
|
94
|
+
- [ ] Prove create/read-back/no-op without refresh, activation or delete/recreate.
|
|
95
|
+
|
|
96
|
+
## segment: unimplemented
|
|
97
|
+
|
|
98
|
+
- [ ] Record official endpoints, versions, pagination and supported variants.
|
|
99
|
+
- [ ] Preserve visual/SQL criteria, parameters, exclusions, identity and lookback.
|
|
100
|
+
- [ ] Classify schedule, publication and count side effects before mutation.
|
|
101
|
+
- [ ] Prove safe configuration-only create/update/no-op for declared variants.
|
|
102
|
+
|
|
103
|
+
## calculated-insight: unimplemented
|
|
104
|
+
|
|
105
|
+
- [ ] Record official endpoints, versions, pagination and writable contracts.
|
|
106
|
+
- [ ] Preserve exact SQL, dimensions, measures, relationships and settings.
|
|
107
|
+
- [ ] Classify implicit compute/enable/schedule side effects and block unsafe routes.
|
|
108
|
+
- [ ] Prove safe export-to-target create/update/no-op without computation.
|
|
109
|
+
|
|
110
|
+
## Shared gates
|
|
111
|
+
|
|
112
|
+
- [x] Internal single-authored-DMO read-only deploy preflight independently maps
|
|
113
|
+
source, proves absence through complete scoped inventory, and retrieves
|
|
114
|
+
existing target through full common semantics. Identity-keyed field comparison
|
|
115
|
+
ignores reorder only; differences are blocked with static reasons until PATCH
|
|
116
|
+
is proven. Unknown target semantics and acquisition failures fail closed.
|
|
117
|
+
No CLI preview wiring, filesystem discovery, mutation or live acceptance.
|
|
118
|
+
|
|
119
|
+
- [x] Common offline object projector composes the shared field join with exact
|
|
120
|
+
custom identity/default scope, category/taxonomy classification, explicit
|
|
121
|
+
DateTime references and complete retained relationships. Recognized Other
|
|
122
|
+
generated defaults project with varied authored counts/types; unproven
|
|
123
|
+
recipes/storage/taxonomy remain blockers. Missing Engagement event is a
|
|
124
|
+
specific diagnostic; nonempty relationships are unsupported. Actual retrieval
|
|
125
|
+
now uses this common path; no broader live acceptance is implied.
|
|
126
|
+
|
|
127
|
+
- [x] Internal common DMO/default authored-document writer with canonical JSON,
|
|
128
|
+
independent persisted-candidate mapping validation, exact `default/dmo` path,
|
|
129
|
+
unchanged-byte no-op, explicit overwrite and link/directory refusal tests.
|
|
130
|
+
OS-temp flushed staging uses atomic publication on the same volume; cross-volume
|
|
131
|
+
output fails closed. Concurrent filesystem replacement is not fully guarded.
|
|
132
|
+
Exact/type/all retrieve selection now delegates here; each object still qualifies independently.
|
|
133
|
+
|
|
134
|
+
- [x] Read-only authenticated Connect REST transport, structured errors and redaction.
|
|
135
|
+
Explicit DMO CLI integration is implemented; broader resource contracts remain pending.
|
|
136
|
+
- [x] DMO-only offset pagination, duplicate/loop and ceiling detection, synthetic tests.
|
|
137
|
+
Official list endpoint is available from API 61.0: `limit` (default 50),
|
|
138
|
+
`offset` (maximum 2000), `orderBy`; response array is `dataModelObject`.
|
|
139
|
+
Internal helper requires `name` and `dataSpaceName`, returns raw entries,
|
|
140
|
+
and requires a short terminal page. Non-null next URLs/tokens are rejected,
|
|
141
|
+
never followed. No snapshot consistency under concurrent changes is claimed.
|
|
142
|
+
[Official endpoint reference](https://developer.salesforce.com/docs/data/connectapi/references/spec)
|
|
143
|
+
checked 2026-10-25; endpoint-specific text, not search-result synthesis.
|
|
144
|
+
Other resource pagination and live API/version acceptance remain pending.
|
|
145
|
+
- [x] Internal incoming/outgoing raw relationship acquisition with synthetic tests.
|
|
146
|
+
API 64.0 endpoint: `GET /ssot/data-model-objects/{dataModelObjectName}/relationships`.
|
|
147
|
+
Explicit `dataspace`, unfiltered status/creation type, offset/limit pagination;
|
|
148
|
+
totalSize must prove completion; count, when present, must match page length.
|
|
149
|
+
API 65.0 read-only acceptance confirmed HTTP 204 for empty initial results
|
|
150
|
+
and 142 relationships across eight pages for a standard DMO. Records use
|
|
151
|
+
sourceObject/targetObject; qualifier objects remain raw, never guessed.
|
|
152
|
+
Unknown envelopes and inconsistencies block; all entry metadata survives.
|
|
153
|
+
Continuation links are never followed. Local offset budget is 2000.
|
|
154
|
+
Qualified portable projection and replay remain blocked: the prior synthetic
|
|
155
|
+
Engagement DMO detail omits eventDateTimeFieldName, despite a DateTime field.
|
|
156
|
+
No inference or portable export is permitted from that response.
|
|
157
|
+
- [x] Common offline field join, independent of the compatibility projector.
|
|
158
|
+
All 12 authored types, varied counts, exact one-to-one identity joins,
|
|
159
|
+
authoritative primary/dynamic semantics and explicit multi-qualifier joins.
|
|
160
|
+
Generated fields are excluded from authored candidates, not silently accepted:
|
|
161
|
+
generated/qualifier/length/required/distinct replay remains diagnostic.
|
|
162
|
+
Common object taxonomy/designations and complete relationships are now joined
|
|
163
|
+
at the service boundary; incomplete projections never reach publication.
|
|
164
|
+
- [x] Offline strict Connect/Metadata projection for one relationship-free Other shape.
|
|
165
|
+
Exact object/field joins, explicit qualifier binding and Metadata-authoritative
|
|
166
|
+
primary/dynamic semantics; two authored fields and complete generated/readback
|
|
167
|
+
expectations. Independently authored synthetic refusals cover unsupported variants.
|
|
168
|
+
A separate experiment proved semantic equivalence only for one Other fixture.
|
|
169
|
+
Autonomous create identity is verified only for this exact local profile:
|
|
170
|
+
remove one terminal case-sensitive __dlm from the validated non-namespaced
|
|
171
|
+
custom name. Result is offline projected with no identity blocker, retaining
|
|
172
|
+
qualified readback identity and case; invalid names are rejected, not repaired.
|
|
173
|
+
A pure bounded Other request mapper revalidates the complete projection,
|
|
174
|
+
preserves proven authored __c names and excludes generated/read-only fields.
|
|
175
|
+
Source and explicit target must both be default; arbitrary space acceptance
|
|
176
|
+
is unproven. No public wiring, writable Metadata projection or transport
|
|
177
|
+
mutation. Profile and Engagement remain pending; dmo family gates remain open.
|
|
178
|
+
- [x] Internal common read-only DMO retrieval at explicit API 65.0/default scope.
|
|
179
|
+
Existing core Connection supplies Connect GET and Metadata CustomObject read;
|
|
180
|
+
Metadata uses an operation-local connection/transport receiver that refuses
|
|
181
|
+
all redirects without changing the caller or global defaults. Installed
|
|
182
|
+
core/Metadata/SOAP/HTTP stack regressions cover same/cross-origin redirects,
|
|
183
|
+
no second request, payload-free errors and retained core SOAP parsing;
|
|
184
|
+
exact identity/cardinality, complete relationships, strict joined projection
|
|
185
|
+
and offline mapper are required before returning full expectations. Synthetic
|
|
186
|
+
acquisition/failure tests plus injected CLI/file boundary tests; no write transport added.
|
|
187
|
+
- [x] Separate offline authored-document Other/default request mapping.
|
|
188
|
+
Approved Git shape is schemaVersion/kind/identity/spec only; runtime source
|
|
189
|
+
expectations remain internal. Standalone JSON validates without a projection:
|
|
190
|
+
exactly one Text primary and one DateTime nonprimary, dynamic lookup false,
|
|
191
|
+
no field description/category or event/modified references. Names, labels,
|
|
192
|
+
order and optional object description survive; unknown/runtime keys reject.
|
|
193
|
+
Existing strict projection mapper and forged-profile refusals remain intact.
|
|
194
|
+
Deploy still needs independent authored-file validation and target readback;
|
|
195
|
+
no CLI, filesystem or transport write is implemented by this mapper.
|
|
196
|
+
- [x] Common offline authored DMO request mapper alongside unchanged narrow helpers.
|
|
197
|
+
All 12 types, three categories, varied nonempty field counts, optional field
|
|
198
|
+
category/description, true/false dynamic flags and exact DateTime references
|
|
199
|
+
map individually into fresh allowlisted output. Source/explicit target default
|
|
200
|
+
only. Unknown/runtime JSON rejects. Schema mapping is not selected-version live
|
|
201
|
+
acceptance. Common projection/service/writer integration is synthetic-tested;
|
|
202
|
+
deployment remains pending.
|
|
203
|
+
- [ ] Qualified logical references and verified data-space binding.
|
|
204
|
+
- [ ] Versioned deterministic artifacts, safe paths and unknown-field blocking.
|
|
205
|
+
Partial internal DMO-only contract: qualified identity, all 12 nested input
|
|
206
|
+
field types, dynamic lookup, field category, deterministic JSON and strict
|
|
207
|
+
unknown-field validation are synthetic-tested. Raw field projection retains
|
|
208
|
+
qualifiers/distinctness/usage and generated fields separately; every result
|
|
209
|
+
is explicitly incomplete until separate relationships are acquired. Generated
|
|
210
|
+
field/qualifier replay is unverified. No published schema, safe paths,
|
|
211
|
+
filesystem discovery or live portable round trip yet.
|
|
212
|
+
See [current contract and official evidence](artifact-format.md).
|
|
213
|
+
- [ ] Whole-selection dependency/diff preflight and input/target drift guards.
|
|
214
|
+
- [ ] Read-back verification and partial/uncertain failure handling.
|
|
215
|
+
- [ ] Bounded opt-in live acceptance with explicit fixture ownership ledger.
|
|
216
|
+
|
|
217
|
+
No live fixtures were created, claimed, modified or removed by this slice.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Git workflow status
|
|
2
|
+
|
|
3
|
+
Current local npm identity is `sf-plugin-data`; repository/path remain
|
|
4
|
+
`sf-plugin-data360`. The existing `v0.1.0` tag still contains the previous npm
|
|
5
|
+
identity. This local rename does not authorize tag reuse, publication or history
|
|
6
|
+
changes. The previous name's manual npm publication was rejected with `E403`;
|
|
7
|
+
resolve npm restrictions separately rather than assuming the new name is
|
|
8
|
+
publishable. No new-name registry query or publication has been performed.
|
|
9
|
+
|
|
10
|
+
The repository implements bounded DMO retrieval, read-only deployment preview,
|
|
11
|
+
guarded creation and qualified object/existing non-primary field label updates.
|
|
12
|
+
Broader DMO deployment and other resource families remain unsupported. Offline CI
|
|
13
|
+
builds, lints, tests and inspects the package allowlist. It does not authenticate
|
|
14
|
+
to Salesforce. No workflow deploys or provisions org resources.
|
|
15
|
+
|
|
16
|
+
The future review flow is retrieve to a branch, inspect portable configuration,
|
|
17
|
+
review the exact commit, optionally preview against an authorized target, then
|
|
18
|
+
deploy that approved commit with fresh whole-selection preflight. Preview is
|
|
19
|
+
advisory, not an executable saved plan or a promise of identical future actions.
|
|
20
|
+
Never expose org credentials to untrusted pull-request code.
|
|
21
|
+
|
|
22
|
+
Deployment jobs, Git-change selectors, report files and approval-bound execution
|
|
23
|
+
are deferred. No repository, branch protection, remote or npm publisher is
|
|
24
|
+
configured automatically. Release publication requires separate explicit approval
|
|
25
|
+
and verified hosted trusted-publisher configuration. Hosted publication uses npm
|
|
26
|
+
11.5.1 and an exact `name@version` registry check: an existing matching version
|
|
27
|
+
is skipped; only structured JSON `E404` proves absence. If the entire package is
|
|
28
|
+
absent, the user must perform its first public npm publication manually after all
|
|
29
|
+
release checks pass. Later unpublished versions of an existing package may use
|
|
30
|
+
the approved hosted workflow. Package existence does not verify the trusted
|
|
31
|
+
publisher: its actual repository/workflow/environment binding must be configured
|
|
32
|
+
and verified separately. Authentication, network and malformed registry responses
|
|
33
|
+
fail closed; publication is never retried automatically. After publish acceptance,
|
|
34
|
+
registry availability (first check at five minutes, then once per minute through
|
|
35
|
+
15 minutes), fresh isolated installation and applicable provenance/integrity
|
|
36
|
+
verification remain separate gates. No bootstrap commands or release-ready
|
|
37
|
+
artifact are handed off by this local preparation.
|