Setting the file. One moment.
Wix Client Callers · Wix Replatform · wix/skills · Skills Docs
ContentsBack to the top of the page lib/wix-client-callers.js
lib/ wix-client-callers.js
JavaScript · 115 lines · 7 KB
,
9 'skills/wix-replatform/resources/rp-quick-woocommerce/scripts/quick-mode.js' ,
10 'skills/wix-replatform/resources/rp-quick-shopify/scripts/quick-mode.js' ,
11 'skills/wix-replatform/resources/rp-target-wix/lib/wix-writers.js' ,
12 'skills/wix-replatform/resources/rp-target-wix/scripts/verify-stores.js' ,
13 'skills/wix-replatform/scripts/item-seo-tags-verify.js' ,
14 'skills/wix-replatform/scripts/url-redirects.js' ,
15 'skills/wix-replatform/scripts/cms-item-quota.js' ,
16 'tests/target-wix/probe-plain-description-media.js' ,
17 'tests/target-wix/coupon-plan-live-sentinel.js' ,
18 'tests/target-wix/payments-live-sentinel.js' ,
19 'tests/target-wix/order-history-live-sentinel.js' ,
20 'tests/target-wix/plan-order-live-sentinel.js' ,
21 'tests/target-wix/contract-test.js' ,
22 'tests/target-wix/write-outcome-classification-test.js' ,
23 'tests/target-wix/order-history-composite-test.js' ,
24 'tests/target-wix/read-back-transport-test.js' ,
25 'tests/target-wix/cms-item-quota-test.js' ,
26 'tests/target-wix/coupon-bulk-write-test.js' ,
27 'tests/target-wix/member-support-runtime-test.js' ,
28 'tests/orchestration/safe-mode-removed-cross-gate-test.js' ,
29 'tests/migration-review/write-recovery-test.js' ,
30 'tests/mapping/mapping-recovery-test.js' ,
31 'tests/orchestration/read-back-gate-test.js' ,
32 'tests/orchestration/dependency-adopt-only-test.js' ,
33 'tests/orchestration/dependency-readiness-test.js' ,
34 'tests/orchestration/dry-run-speed-test.js' ,
35 'tests/orchestration/dependency-held-records-test.js' ,
36 'tests/orchestration/one-click-held-approval-test.js' ,
37 'tests/orchestration/dependency-no-producer-test.js' ,
38 'tests/orchestration/dependency-gates-no-regression-test.js' ,
39 'tests/orchestration/extract-integrity-cross-gate-test.js' ,
40 'tests/orchestration/dependency-generality-test.js' ,
41 'tests/orchestration/app-requirements-test.js' ,
42 'tests/orchestration/dependency-review-regressions-test.js' ,
43 'tests/orchestration/contact-import-readiness-test.js' ,
44 'tests/orchestration/events-writers-cross-gate-test.js' ,
45 'tests/orchestration/order-merchant-note-import-test.js' ,
46 'tests/orchestration/product-media-cross-gate-test.js' ,
47 'tests/orchestration/dependency-earlier-run-landed-test.js' ,
48 'tests/orchestration/member-company-login-email-test.js' ,
49 'tests/orchestration/member-contact-and-bulk-product-proof-test.js' ,
50 'tests/orchestration/order-placeholder-line-test.js' ,
51 'tests/orchestration/reconciled-target-in-grant-test.js' ,
52 'tests/orchestration/saved-product-target-adoption-test.js' ,
53 'tests/orchestration/product-media-per-record-test.js' ,
54 'tests/orchestration/order-whole-task-waits-test.js' ,
55 'tests/orchestration/gift-card-writers-cross-gate-test.js' ,
56 'tests/orchestration/forms-import-client-test.js' ,
57 'tests/orchestration/forms-cross-gate-test.js' ,
58 'tests/orchestration/pre-send-refusal-journal-test.js' ,
59 'tests/orchestration/plan-order-import-test.js' ,
60 'tests/orchestration/raw-request-import-test.js' ,
61 'tests/orchestration/harmony-app-install-test.js' ,
62 'tests/orchestration/harmony-app-gate-test.js' ,
63 'tests/orchestration/bookings-writers-import-test.js' ,
64 'tests/orchestration/crm-label-member-about-import-test.js' ,
65 'tests/orchestration/import-task-blog-member-marks-test.js' ,
66 'tests/orchestration/seo-item-tags-import-test.js' ,
67 'tests/orchestration/stores-writers-import-test.js' ,
68 'tests/orchestration/rate-limit-readiness-b9-test.js' ,
69 'tests/orchestration/writer-retry-safety-test.js' ,
70 'tests/orchestration/writer-gates-agree-cross-gate-test.js' ,
71 'tests/orchestration/dependency-readiness-scaling-test.js' ,
72 'tests/orchestration/dependency-readiness-matrix-test.js' ,
73 'tests/orchestration/dependency-child-output-test.js' ,
74 'tests/orchestration/shipping-setup-import-ownership-test.js' ,
75 'tests/orchestration/delivery-region-cross-gate-test.js' ,
76 'tests/orchestration/dependency-self-edge-test.js' ,
77 'tests/orchestration/setup-reference-gate-test.js' ,
78 'tests/orchestration/dependency-readiness-cost-test.js' ,
79 'tests/orchestration/dependency-cutover-test.js' ,
80 'tests/orchestration/dependency-consent-test.js' ,
81 'tests/orchestration/dry-run-writer-shapes-test.js' ,
82 'tests/orchestration/execution-capability-test.js' ,
83 'tests/lib/site-regional-fixtures.js' ,
84 'tests/orchestration/site-regional-import-gate-test.js' ,
85 'tests/site-regional/site-regional-capability-test.js' ,
86 'tests/fixtures/generated-importer/entrypoint-product-tag-gap.js' ,
87 'tests/target-wix/wix-token-refresh-test.js' ,
88 'tests/orchestration/import-token-expiry-e2e-test.js' ,
89 'tests/orchestration/setup-token-expiry-test.js' ,
90 'tests/orchestration/same-task-parent-gate-test.js' ,
91 'tests/orchestration/import-task-runner-test.js' ,
92 'tests/orchestration/dependency-setup-producer-agreement-test.js' ,
93 'tests/tooling/egress-fetch-test.js' ,
94 ]);
95 const PROBES = new Set ( CALLERS . filter ( file => /(?:verify-stores | item-seo-tags-verify | live-sentinel | probe-plain-description-media | contract-test | execution-capability-test | dependency-readiness-matrix-test | write-outcome-classification-test | order-history-composite-test | read-back-transport-test | read-back-gate-test | write-recovery-test | wix-token-refresh-test | coupon-bulk-write-test)/ . test (file)));
96 function scanWixClientCallers ( root ) {
97 const found = [], errors = [];
98 function walk ( dir ) {
99 if ( ! fs. existsSync (dir)) return ;
100 for ( const entry of fs. readdirSync (dir, { withFileTypes: true })) {
101 const file = path. join (dir, entry.name);
102 if (entry. isDirectory ()) walk (file);
103 else if ( / \. [cm] ? js $ / . test (file)) {
104 const text = fs. readFileSync (file, 'utf8' ). replace ( / \/\* [\s\S] *? \*\/ |^ \s * \/\/ . *$ / gm , '' ), relative = path. relative (root, file). split (path.sep). join ( '/' );
105 if ( / \b (?:createWixClient | startSetupRun | bindSetupStep | startImportRun | bindTask | startQuickRun | bindQuickEntity | bindQuickSetup | startDevProbe) \s * \( / . test (text)) {
106 found. push (relative); if ( ! CALLERS . includes (relative)) errors. push ( `wix_client_caller_unlisted:${ relative }` );
107 if ( / \b startDevProbe \s * \( / . test (text) && ! PROBES . has (relative) && ! relative. endsWith ( '/execution-capability.js' )) errors. push ( `dev_probe_caller_unlisted:${ relative }` );
108 }
109 }
110 }
111 }
112 walk (path. join (root, 'skills' )); walk (path. join (root, 'tests' ));
113 return { ok: ! errors. length , errors, callers: found. sort () };
114 }
115 module . exports = { CALLERS, scanWixClientCallers };