@uniformdev/cli 20.57.1 → 20.57.2-alpha.23
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/dist/defaultConfig.d.mts
CHANGED
|
@@ -6,12 +6,34 @@ type StateArgs = {
|
|
|
6
6
|
type SyncMode = 'mirror' | 'createOrUpdate' | 'create';
|
|
7
7
|
type EntityTypes = 'aggregate' | 'asset' | 'category' | 'workflow' | 'webhook' | 'component' | 'composition' | 'contentType' | 'dataType' | 'enrichment' | 'entry' | 'entryPattern' | 'label' | 'locale' | 'componentPattern' | 'compositionPattern' | 'policyDocument' | 'projectMapDefinition' | 'projectMapNode' | 'previewUrl' | 'previewViewport' | 'prompt' | 'quirk' | 'redirect' | 'signal' | 'test';
|
|
8
8
|
type SyncFileFormat = 'yaml' | 'json';
|
|
9
|
-
type
|
|
9
|
+
type EntityConfigurationBase = {
|
|
10
10
|
mode?: SyncMode;
|
|
11
11
|
directory?: string;
|
|
12
12
|
format?: SyncFileFormat;
|
|
13
13
|
disabled?: true;
|
|
14
14
|
};
|
|
15
|
+
type EntityFilterCriteriaConfig = {
|
|
16
|
+
type: 'ids';
|
|
17
|
+
match: string[];
|
|
18
|
+
} | {
|
|
19
|
+
type: 'nameContains';
|
|
20
|
+
match: string;
|
|
21
|
+
};
|
|
22
|
+
type EntityFilterInclude = {
|
|
23
|
+
/** If set, only entities matching the criteria will be synced. Cannot be combined with `exclude`. */
|
|
24
|
+
include: EntityFilterCriteriaConfig;
|
|
25
|
+
exclude?: never;
|
|
26
|
+
};
|
|
27
|
+
type EntityFilterExclude = {
|
|
28
|
+
include?: never;
|
|
29
|
+
/** If set, entities matching the criteria will be excluded from sync. Cannot be combined with `include`. */
|
|
30
|
+
exclude: EntityFilterCriteriaConfig;
|
|
31
|
+
};
|
|
32
|
+
type EntityFilterNone = {
|
|
33
|
+
include?: never;
|
|
34
|
+
exclude?: never;
|
|
35
|
+
};
|
|
36
|
+
type EntityConfiguration = EntityConfigurationBase & (EntityFilterInclude | EntityFilterExclude | EntityFilterNone);
|
|
15
37
|
type EntityWithStateConfiguration = EntityConfiguration & Partial<StateArgs>;
|
|
16
38
|
type PublishableEntitiesConfiguration = EntityWithStateConfiguration & {
|
|
17
39
|
publish?: boolean;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export { C as CLIConfiguration } from './index-
|
|
2
|
+
export { C as CLIConfiguration } from './index-DlNAs61A.mjs';
|
package/dist/index.mjs
CHANGED
|
@@ -558,6 +558,142 @@ async function createArraySyncEngineDataSource({
|
|
|
558
558
|
};
|
|
559
559
|
}
|
|
560
560
|
|
|
561
|
+
// src/sync/entityFilter.ts
|
|
562
|
+
function resolveEntityFilter(entityConfig, operation) {
|
|
563
|
+
if (entityConfig) {
|
|
564
|
+
validateEntityConfig(entityConfig, operation);
|
|
565
|
+
}
|
|
566
|
+
const directional = entityConfig?.[operation];
|
|
567
|
+
const resolvedInclude = directional?.include ?? entityConfig?.include;
|
|
568
|
+
const resolvedExclude = directional?.exclude ?? entityConfig?.exclude;
|
|
569
|
+
const hasInclude = hasCriteria(resolvedInclude);
|
|
570
|
+
const hasExclude = hasCriteria(resolvedExclude);
|
|
571
|
+
if (hasInclude && hasExclude) {
|
|
572
|
+
const includeSource = directional?.include ? `${operation}.include` : "include";
|
|
573
|
+
const excludeSource = directional?.exclude ? `${operation}.exclude` : "exclude";
|
|
574
|
+
throw new Error(
|
|
575
|
+
`Entity filter for '${operation}' resolved both ${includeSource} and ${excludeSource}. Use one or the other. If a top-level filter conflicts with a per-direction filter, set the unwanted direction to { type: 'ids', match: [] } to clear it.`
|
|
576
|
+
);
|
|
577
|
+
}
|
|
578
|
+
return createEntityFilter(resolvedInclude, resolvedExclude);
|
|
579
|
+
}
|
|
580
|
+
function createEntityFilter(include, exclude) {
|
|
581
|
+
const normalizedInclude = normalizeCriteria(include);
|
|
582
|
+
const normalizedExclude = normalizeCriteria(exclude);
|
|
583
|
+
const hasInclude = hasCriteria(normalizedInclude);
|
|
584
|
+
const hasExclude = hasCriteria(normalizedExclude);
|
|
585
|
+
if (hasInclude && hasExclude) {
|
|
586
|
+
throw new Error("Entity filter cannot have both `include` and `exclude` defined. Use one or the other.");
|
|
587
|
+
}
|
|
588
|
+
if (!hasInclude && !hasExclude) {
|
|
589
|
+
return void 0;
|
|
590
|
+
}
|
|
591
|
+
if (hasInclude) {
|
|
592
|
+
return buildMatcher(normalizedInclude, true);
|
|
593
|
+
}
|
|
594
|
+
return buildMatcher(normalizedExclude, false);
|
|
595
|
+
}
|
|
596
|
+
function normalizeCriteria(criteria) {
|
|
597
|
+
if (Array.isArray(criteria)) {
|
|
598
|
+
return criteria.length > 0 ? { type: "ids", match: criteria } : void 0;
|
|
599
|
+
}
|
|
600
|
+
return criteria;
|
|
601
|
+
}
|
|
602
|
+
var VALID_FILTER_TYPES = ["ids", "nameContains"];
|
|
603
|
+
var VALID_FILTER_FIELDS = ["include", "exclude"];
|
|
604
|
+
var VALID_DIRECTION_KEYS = ["pull", "push"];
|
|
605
|
+
var VALID_ENTITY_CONFIG_KEYS = /* @__PURE__ */ new Set([...VALID_DIRECTION_KEYS, ...VALID_FILTER_FIELDS]);
|
|
606
|
+
function validateEntityConfig(entityConfig, operation) {
|
|
607
|
+
const validKeysLabel = [...VALID_ENTITY_CONFIG_KEYS].join(", ");
|
|
608
|
+
for (const key of Object.keys(entityConfig)) {
|
|
609
|
+
if (!VALID_ENTITY_CONFIG_KEYS.has(key)) {
|
|
610
|
+
const suggestion = VALID_DIRECTION_KEYS.find((valid) => key.startsWith(valid));
|
|
611
|
+
const hint = suggestion ? ` Did you mean "${suggestion}"?` : "";
|
|
612
|
+
throw new Error(`Unknown entity filter key "${key}".${hint} Valid keys are: ${validKeysLabel}.`);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
const directional = entityConfig[operation];
|
|
616
|
+
if (directional && typeof directional === "object") {
|
|
617
|
+
const validFilterLabel = VALID_FILTER_FIELDS.join(", ");
|
|
618
|
+
for (const key of Object.keys(directional)) {
|
|
619
|
+
if (!VALID_FILTER_FIELDS.includes(key)) {
|
|
620
|
+
throw new Error(
|
|
621
|
+
`Unknown key "${key}" in ${operation} filter config. Valid keys are: ${validFilterLabel}.`
|
|
622
|
+
);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
for (const field of VALID_FILTER_FIELDS) {
|
|
627
|
+
validateFilterValue(entityConfig[field], field);
|
|
628
|
+
}
|
|
629
|
+
if (directional && typeof directional === "object") {
|
|
630
|
+
for (const field of VALID_FILTER_FIELDS) {
|
|
631
|
+
validateFilterValue(directional[field], `${operation}.${field}`);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
function validateFilterValue(value, label) {
|
|
636
|
+
if (value === void 0 || value === null) {
|
|
637
|
+
return;
|
|
638
|
+
}
|
|
639
|
+
if (typeof value === "string") {
|
|
640
|
+
throw new Error(
|
|
641
|
+
`"${label}" must be an object like { type: 'nameContains', match: '${value}' }, not a plain string.`
|
|
642
|
+
);
|
|
643
|
+
}
|
|
644
|
+
if (Array.isArray(value)) {
|
|
645
|
+
throw new Error(`"${label}" must be an object like { type: 'ids', match: [...] }, not a plain array.`);
|
|
646
|
+
}
|
|
647
|
+
if (typeof value !== "object") {
|
|
648
|
+
throw new Error(`"${label}" must be an object with "type" and "match" fields, but got ${typeof value}.`);
|
|
649
|
+
}
|
|
650
|
+
const criteria = value;
|
|
651
|
+
if (!criteria.type) {
|
|
652
|
+
throw new Error(
|
|
653
|
+
`${label} is missing required "type" field. Expected one of: ${VALID_FILTER_TYPES.join(", ")}.`
|
|
654
|
+
);
|
|
655
|
+
}
|
|
656
|
+
if (!VALID_FILTER_TYPES.includes(criteria.type)) {
|
|
657
|
+
throw new Error(
|
|
658
|
+
`${label} has unknown type "${criteria.type}". Expected one of: ${VALID_FILTER_TYPES.join(", ")}.`
|
|
659
|
+
);
|
|
660
|
+
}
|
|
661
|
+
if (criteria.type === "ids" && !Array.isArray(criteria.match)) {
|
|
662
|
+
throw new Error(
|
|
663
|
+
`${label} with type "ids" requires "match" to be a string array, but got ${typeof criteria.match}.`
|
|
664
|
+
);
|
|
665
|
+
}
|
|
666
|
+
if (criteria.type === "nameContains" && typeof criteria.match !== "string") {
|
|
667
|
+
throw new Error(
|
|
668
|
+
`${label} with type "nameContains" requires "match" to be a string, but got ${typeof criteria.match}.`
|
|
669
|
+
);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
function hasCriteria(criteria) {
|
|
673
|
+
if (!criteria) {
|
|
674
|
+
return false;
|
|
675
|
+
}
|
|
676
|
+
if (criteria.type === "ids") {
|
|
677
|
+
return criteria.match.length > 0;
|
|
678
|
+
}
|
|
679
|
+
return criteria.match.length > 0;
|
|
680
|
+
}
|
|
681
|
+
function buildMatcher(criteria, isInclude) {
|
|
682
|
+
if (criteria.type === "ids") {
|
|
683
|
+
const idSet = new Set(criteria.match);
|
|
684
|
+
return (obj) => {
|
|
685
|
+
const ids = Array.isArray(obj.id) ? obj.id : [obj.id];
|
|
686
|
+
const matches = ids.some((id) => idSet.has(id));
|
|
687
|
+
return isInclude ? matches : !matches;
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
const needle = criteria.match.toLowerCase();
|
|
691
|
+
return (obj) => {
|
|
692
|
+
const matches = (obj.displayName ?? "").toLowerCase().includes(needle);
|
|
693
|
+
return isInclude ? matches : !matches;
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
|
|
561
697
|
// src/sync/fileSyncEngineDataSource.ts
|
|
562
698
|
import { red } from "colorette";
|
|
563
699
|
import { existsSync as existsSync2, mkdirSync as mkdirSync2 } from "fs";
|
|
@@ -656,9 +792,13 @@ async function createFileSyncEngineDataSource({
|
|
|
656
792
|
const fullFilename = join(directory, filename);
|
|
657
793
|
try {
|
|
658
794
|
const contents = readFileToObject(fullFilename);
|
|
795
|
+
const id = selectIdentifier18(contents);
|
|
796
|
+
if (id === void 0 || id === null || id === "" || Array.isArray(id) && (id.length === 0 || id.every((s) => !s))) {
|
|
797
|
+
throw new Error(`File does not contain a valid identifier.`);
|
|
798
|
+
}
|
|
659
799
|
const displayName = selectDisplayName18(contents);
|
|
660
800
|
const object4 = {
|
|
661
|
-
id
|
|
801
|
+
id,
|
|
662
802
|
displayName: Array.isArray(displayName) ? displayName[0] : displayName,
|
|
663
803
|
providerId: fullFilename,
|
|
664
804
|
object: omit(contents, ["$schema"])
|
|
@@ -785,12 +925,14 @@ async function syncEngine({
|
|
|
785
925
|
onBeforeProcessObject,
|
|
786
926
|
onBeforeCompareObjects,
|
|
787
927
|
onBeforeWriteObject,
|
|
788
|
-
onError
|
|
928
|
+
onError,
|
|
929
|
+
objectFilter
|
|
789
930
|
//verbose = false,
|
|
790
931
|
}) {
|
|
791
932
|
const status = new ReactiveStatusUpdate((status2) => syncEngineEvents.emit("statusUpdate", status2));
|
|
792
933
|
const targetItems = /* @__PURE__ */ new Map();
|
|
793
934
|
const deleteTracker = /* @__PURE__ */ new Set();
|
|
935
|
+
const getFirstId = (id) => Array.isArray(id) ? id[0] : id;
|
|
794
936
|
const processDelete = async (object4) => {
|
|
795
937
|
if (deleteTracker.has(object4)) return;
|
|
796
938
|
deleteTracker.add(object4);
|
|
@@ -808,7 +950,7 @@ async function syncEngine({
|
|
|
808
950
|
} finally {
|
|
809
951
|
log2({
|
|
810
952
|
action: "delete",
|
|
811
|
-
id: object4.id
|
|
953
|
+
id: getFirstId(object4.id),
|
|
812
954
|
providerId: object4.providerId,
|
|
813
955
|
displayName: object4.displayName ?? object4.providerId,
|
|
814
956
|
whatIf,
|
|
@@ -817,6 +959,9 @@ async function syncEngine({
|
|
|
817
959
|
}
|
|
818
960
|
};
|
|
819
961
|
for await (const obj of target.objects) {
|
|
962
|
+
if (objectFilter && !objectFilter(obj)) {
|
|
963
|
+
continue;
|
|
964
|
+
}
|
|
820
965
|
status.fetched++;
|
|
821
966
|
if (Array.isArray(obj.id)) {
|
|
822
967
|
obj.id.forEach((o) => targetItems.set(o, obj));
|
|
@@ -826,7 +971,12 @@ async function syncEngine({
|
|
|
826
971
|
}
|
|
827
972
|
const actions = [];
|
|
828
973
|
let sourceHasItems = false;
|
|
974
|
+
let totalSourceItems = 0;
|
|
829
975
|
for await (let sourceObject of source.objects) {
|
|
976
|
+
totalSourceItems++;
|
|
977
|
+
if (objectFilter && !objectFilter(sourceObject)) {
|
|
978
|
+
continue;
|
|
979
|
+
}
|
|
830
980
|
sourceHasItems = true;
|
|
831
981
|
if (onBeforeProcessObject) {
|
|
832
982
|
await onBeforeProcessObject(sourceObject);
|
|
@@ -911,6 +1061,11 @@ async function syncEngine({
|
|
|
911
1061
|
}
|
|
912
1062
|
}
|
|
913
1063
|
}
|
|
1064
|
+
if (objectFilter && totalSourceItems > 0 && !sourceHasItems) {
|
|
1065
|
+
console.warn(
|
|
1066
|
+
`Warning: objectFilter is active but matched 0 of ${totalSourceItems} source entities from '${source.name}'. Check your include/exclude filter configuration.`
|
|
1067
|
+
);
|
|
1068
|
+
}
|
|
914
1069
|
status.changeCount += targetItems.size;
|
|
915
1070
|
status.compared += targetItems.size;
|
|
916
1071
|
if (mode === "mirror") {
|
|
@@ -2887,7 +3042,8 @@ var AssetPullModule = {
|
|
|
2887
3042
|
whatIf,
|
|
2888
3043
|
project: projectId,
|
|
2889
3044
|
diff: diffMode,
|
|
2890
|
-
allowEmptySource
|
|
3045
|
+
allowEmptySource,
|
|
3046
|
+
objectFilter
|
|
2891
3047
|
}) => {
|
|
2892
3048
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
2893
3049
|
const client = getAssetClient({
|
|
@@ -2938,6 +3094,7 @@ var AssetPullModule = {
|
|
|
2938
3094
|
mode,
|
|
2939
3095
|
whatIf,
|
|
2940
3096
|
allowEmptySource: allowEmptySource ?? true,
|
|
3097
|
+
objectFilter,
|
|
2941
3098
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
2942
3099
|
onBeforeCompareObjects: async (sourceObject) => {
|
|
2943
3100
|
delete sourceObject.object.asset._author;
|
|
@@ -2997,6 +3154,7 @@ var AssetPushModule = {
|
|
|
2997
3154
|
project: projectId,
|
|
2998
3155
|
diff: diffMode,
|
|
2999
3156
|
allowEmptySource,
|
|
3157
|
+
objectFilter,
|
|
3000
3158
|
verbose
|
|
3001
3159
|
}) => {
|
|
3002
3160
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -3032,6 +3190,7 @@ var AssetPushModule = {
|
|
|
3032
3190
|
mode,
|
|
3033
3191
|
whatIf,
|
|
3034
3192
|
allowEmptySource,
|
|
3193
|
+
objectFilter,
|
|
3035
3194
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
3036
3195
|
onBeforeCompareObjects: async (sourceObject, targetObject) => {
|
|
3037
3196
|
if (targetObject) {
|
|
@@ -3283,6 +3442,7 @@ var CategoryPullModule = {
|
|
|
3283
3442
|
project: projectId,
|
|
3284
3443
|
diff: diffMode,
|
|
3285
3444
|
allowEmptySource,
|
|
3445
|
+
objectFilter,
|
|
3286
3446
|
verbose
|
|
3287
3447
|
}) => {
|
|
3288
3448
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -3317,6 +3477,7 @@ var CategoryPullModule = {
|
|
|
3317
3477
|
mode,
|
|
3318
3478
|
whatIf,
|
|
3319
3479
|
allowEmptySource: allowEmptySource ?? true,
|
|
3480
|
+
objectFilter,
|
|
3320
3481
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
3321
3482
|
});
|
|
3322
3483
|
}
|
|
@@ -3356,6 +3517,7 @@ var CategoryPushModule = {
|
|
|
3356
3517
|
project: projectId,
|
|
3357
3518
|
diff: diffMode,
|
|
3358
3519
|
allowEmptySource,
|
|
3520
|
+
objectFilter,
|
|
3359
3521
|
verbose
|
|
3360
3522
|
}) => {
|
|
3361
3523
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -3385,6 +3547,7 @@ var CategoryPushModule = {
|
|
|
3385
3547
|
mode,
|
|
3386
3548
|
whatIf,
|
|
3387
3549
|
allowEmptySource,
|
|
3550
|
+
objectFilter,
|
|
3388
3551
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
3389
3552
|
});
|
|
3390
3553
|
}
|
|
@@ -3618,6 +3781,7 @@ var ComponentPullModule = {
|
|
|
3618
3781
|
project: projectId,
|
|
3619
3782
|
diff: diffMode,
|
|
3620
3783
|
allowEmptySource,
|
|
3784
|
+
objectFilter,
|
|
3621
3785
|
verbose
|
|
3622
3786
|
}) => {
|
|
3623
3787
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -3653,6 +3817,7 @@ var ComponentPullModule = {
|
|
|
3653
3817
|
mode,
|
|
3654
3818
|
whatIf,
|
|
3655
3819
|
allowEmptySource: allowEmptySource ?? true,
|
|
3820
|
+
objectFilter,
|
|
3656
3821
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
3657
3822
|
});
|
|
3658
3823
|
}
|
|
@@ -3692,6 +3857,7 @@ var ComponentPushModule = {
|
|
|
3692
3857
|
project: projectId,
|
|
3693
3858
|
diff: diffMode,
|
|
3694
3859
|
allowEmptySource,
|
|
3860
|
+
objectFilter,
|
|
3695
3861
|
verbose
|
|
3696
3862
|
}) => {
|
|
3697
3863
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -3722,6 +3888,7 @@ var ComponentPushModule = {
|
|
|
3722
3888
|
mode,
|
|
3723
3889
|
whatIf,
|
|
3724
3890
|
allowEmptySource,
|
|
3891
|
+
objectFilter,
|
|
3725
3892
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
3726
3893
|
});
|
|
3727
3894
|
}
|
|
@@ -4266,7 +4433,8 @@ var CompositionPublishModule = {
|
|
|
4266
4433
|
onlyPatterns,
|
|
4267
4434
|
patternType,
|
|
4268
4435
|
verbose,
|
|
4269
|
-
directory
|
|
4436
|
+
directory,
|
|
4437
|
+
objectFilter
|
|
4270
4438
|
}) => {
|
|
4271
4439
|
if (!all && !ids || all && ids) {
|
|
4272
4440
|
console.error(`Specify --all or composition ID(s) to publish.`);
|
|
@@ -4301,6 +4469,7 @@ var CompositionPublishModule = {
|
|
|
4301
4469
|
mode: "createOrUpdate",
|
|
4302
4470
|
whatIf,
|
|
4303
4471
|
verbose,
|
|
4472
|
+
objectFilter,
|
|
4304
4473
|
log: createPublishStatusSyncEngineConsoleLogger({ status: "publish" }),
|
|
4305
4474
|
onBeforeCompareObjects: async (sourceObject) => {
|
|
4306
4475
|
return replaceLocalUrlsWithRemoteReferences({
|
|
@@ -4421,6 +4590,7 @@ function componentInstancePullModuleFactory(type) {
|
|
|
4421
4590
|
project: projectId,
|
|
4422
4591
|
diff: diffMode,
|
|
4423
4592
|
allowEmptySource,
|
|
4593
|
+
objectFilter,
|
|
4424
4594
|
verbose
|
|
4425
4595
|
}) => {
|
|
4426
4596
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -4463,6 +4633,7 @@ function componentInstancePullModuleFactory(type) {
|
|
|
4463
4633
|
mode,
|
|
4464
4634
|
whatIf,
|
|
4465
4635
|
allowEmptySource: allowEmptySource ?? true,
|
|
4636
|
+
objectFilter,
|
|
4466
4637
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
4467
4638
|
onBeforeCompareObjects: async (sourceObject, targetObject) => {
|
|
4468
4639
|
return replaceRemoteUrlsWithLocalReferences({
|
|
@@ -4615,6 +4786,7 @@ function componentInstancePushModuleFactory(type) {
|
|
|
4615
4786
|
patternType,
|
|
4616
4787
|
diff: diffMode,
|
|
4617
4788
|
allowEmptySource,
|
|
4789
|
+
objectFilter,
|
|
4618
4790
|
verbose
|
|
4619
4791
|
}) => {
|
|
4620
4792
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -4660,6 +4832,7 @@ function componentInstancePushModuleFactory(type) {
|
|
|
4660
4832
|
whatIf,
|
|
4661
4833
|
verbose,
|
|
4662
4834
|
allowEmptySource,
|
|
4835
|
+
objectFilter,
|
|
4663
4836
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
4664
4837
|
onBeforeProcessObject: async (sourceObject) => {
|
|
4665
4838
|
await localeValidationHook({
|
|
@@ -5394,6 +5567,7 @@ var ContentTypePullModule = {
|
|
|
5394
5567
|
project: projectId,
|
|
5395
5568
|
diff: diffMode,
|
|
5396
5569
|
allowEmptySource,
|
|
5570
|
+
objectFilter,
|
|
5397
5571
|
verbose
|
|
5398
5572
|
}) => {
|
|
5399
5573
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -5433,6 +5607,7 @@ var ContentTypePullModule = {
|
|
|
5433
5607
|
mode,
|
|
5434
5608
|
whatIf,
|
|
5435
5609
|
allowEmptySource: allowEmptySource ?? true,
|
|
5610
|
+
objectFilter,
|
|
5436
5611
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
5437
5612
|
});
|
|
5438
5613
|
}
|
|
@@ -5477,6 +5652,7 @@ var ContentTypePushModule = {
|
|
|
5477
5652
|
project: projectId,
|
|
5478
5653
|
diff: diffMode,
|
|
5479
5654
|
allowEmptySource,
|
|
5655
|
+
objectFilter,
|
|
5480
5656
|
verbose
|
|
5481
5657
|
}) => {
|
|
5482
5658
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -5511,6 +5687,7 @@ var ContentTypePushModule = {
|
|
|
5511
5687
|
mode,
|
|
5512
5688
|
whatIf,
|
|
5513
5689
|
allowEmptySource,
|
|
5690
|
+
objectFilter,
|
|
5514
5691
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
5515
5692
|
});
|
|
5516
5693
|
}
|
|
@@ -5807,6 +5984,7 @@ var DataTypePullModule = {
|
|
|
5807
5984
|
project: projectId,
|
|
5808
5985
|
diff: diffMode,
|
|
5809
5986
|
allowEmptySource,
|
|
5987
|
+
objectFilter,
|
|
5810
5988
|
verbose
|
|
5811
5989
|
}) => {
|
|
5812
5990
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -5846,6 +6024,7 @@ var DataTypePullModule = {
|
|
|
5846
6024
|
mode,
|
|
5847
6025
|
whatIf,
|
|
5848
6026
|
allowEmptySource: allowEmptySource ?? true,
|
|
6027
|
+
objectFilter,
|
|
5849
6028
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
5850
6029
|
});
|
|
5851
6030
|
}
|
|
@@ -5885,6 +6064,7 @@ var DataTypePushModule = {
|
|
|
5885
6064
|
project: projectId,
|
|
5886
6065
|
diff: diffMode,
|
|
5887
6066
|
allowEmptySource,
|
|
6067
|
+
objectFilter,
|
|
5888
6068
|
verbose
|
|
5889
6069
|
}) => {
|
|
5890
6070
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -5919,6 +6099,7 @@ var DataTypePushModule = {
|
|
|
5919
6099
|
mode,
|
|
5920
6100
|
whatIf,
|
|
5921
6101
|
allowEmptySource,
|
|
6102
|
+
objectFilter,
|
|
5922
6103
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
5923
6104
|
});
|
|
5924
6105
|
}
|
|
@@ -6255,7 +6436,8 @@ var EntryPublishModule = {
|
|
|
6255
6436
|
project: projectId,
|
|
6256
6437
|
whatIf,
|
|
6257
6438
|
verbose,
|
|
6258
|
-
directory
|
|
6439
|
+
directory,
|
|
6440
|
+
objectFilter
|
|
6259
6441
|
}) => {
|
|
6260
6442
|
if (!all && !ids || all && ids) {
|
|
6261
6443
|
console.error(`Specify --all or entry ID(s) to publish.`);
|
|
@@ -6283,6 +6465,7 @@ var EntryPublishModule = {
|
|
|
6283
6465
|
// Publishing is one-direction operation, so no need to support automatic un-publishing
|
|
6284
6466
|
mode: "createOrUpdate",
|
|
6285
6467
|
whatIf,
|
|
6468
|
+
objectFilter,
|
|
6286
6469
|
log: createPublishStatusSyncEngineConsoleLogger({ status: "publish" }),
|
|
6287
6470
|
onBeforeCompareObjects: async (sourceObject) => {
|
|
6288
6471
|
return replaceLocalUrlsWithRemoteReferences({
|
|
@@ -6346,6 +6529,7 @@ var EntryPullModule = {
|
|
|
6346
6529
|
project: projectId,
|
|
6347
6530
|
diff: diffMode,
|
|
6348
6531
|
allowEmptySource,
|
|
6532
|
+
objectFilter,
|
|
6349
6533
|
verbose
|
|
6350
6534
|
}) => {
|
|
6351
6535
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -6386,6 +6570,7 @@ var EntryPullModule = {
|
|
|
6386
6570
|
mode,
|
|
6387
6571
|
whatIf,
|
|
6388
6572
|
allowEmptySource: allowEmptySource ?? true,
|
|
6573
|
+
objectFilter,
|
|
6389
6574
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
6390
6575
|
onBeforeCompareObjects: async (sourceObject, targetObject) => {
|
|
6391
6576
|
return replaceRemoteUrlsWithLocalReferences({
|
|
@@ -6445,6 +6630,7 @@ var EntryPushModule = {
|
|
|
6445
6630
|
project: projectId,
|
|
6446
6631
|
diff: diffMode,
|
|
6447
6632
|
allowEmptySource,
|
|
6633
|
+
objectFilter,
|
|
6448
6634
|
verbose
|
|
6449
6635
|
}) => {
|
|
6450
6636
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -6487,6 +6673,7 @@ var EntryPushModule = {
|
|
|
6487
6673
|
mode,
|
|
6488
6674
|
whatIf,
|
|
6489
6675
|
allowEmptySource,
|
|
6676
|
+
objectFilter,
|
|
6490
6677
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
6491
6678
|
onBeforeProcessObject: async (sourceObject) => {
|
|
6492
6679
|
await localeValidationHook({
|
|
@@ -6844,7 +7031,8 @@ var EntryPatternPublishModule = {
|
|
|
6844
7031
|
whatIf,
|
|
6845
7032
|
project: projectId,
|
|
6846
7033
|
verbose,
|
|
6847
|
-
directory
|
|
7034
|
+
directory,
|
|
7035
|
+
objectFilter
|
|
6848
7036
|
}) => {
|
|
6849
7037
|
if (!all && !ids || all && ids) {
|
|
6850
7038
|
console.error(`Specify --all or entry pattern ID(s) to publish.`);
|
|
@@ -6872,6 +7060,7 @@ var EntryPatternPublishModule = {
|
|
|
6872
7060
|
// Publishing is one-direction operation, so no need to support automatic un-publishing
|
|
6873
7061
|
mode: "createOrUpdate",
|
|
6874
7062
|
whatIf,
|
|
7063
|
+
objectFilter,
|
|
6875
7064
|
log: createPublishStatusSyncEngineConsoleLogger({ status: "publish" }),
|
|
6876
7065
|
onBeforeCompareObjects: async (sourceObject) => {
|
|
6877
7066
|
return replaceLocalUrlsWithRemoteReferences({
|
|
@@ -6935,6 +7124,7 @@ var EntryPatternPullModule = {
|
|
|
6935
7124
|
project: projectId,
|
|
6936
7125
|
diff: diffMode,
|
|
6937
7126
|
allowEmptySource,
|
|
7127
|
+
objectFilter,
|
|
6938
7128
|
verbose
|
|
6939
7129
|
}) => {
|
|
6940
7130
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -6975,6 +7165,7 @@ var EntryPatternPullModule = {
|
|
|
6975
7165
|
mode,
|
|
6976
7166
|
whatIf,
|
|
6977
7167
|
allowEmptySource: allowEmptySource ?? true,
|
|
7168
|
+
objectFilter,
|
|
6978
7169
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
6979
7170
|
onBeforeCompareObjects: async (sourceObject, targetObject) => {
|
|
6980
7171
|
return replaceRemoteUrlsWithLocalReferences({
|
|
@@ -7039,6 +7230,7 @@ var EntryPatternPushModule = {
|
|
|
7039
7230
|
project: projectId,
|
|
7040
7231
|
diff: diffMode,
|
|
7041
7232
|
allowEmptySource,
|
|
7233
|
+
objectFilter,
|
|
7042
7234
|
verbose
|
|
7043
7235
|
}) => {
|
|
7044
7236
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -7081,6 +7273,7 @@ var EntryPatternPushModule = {
|
|
|
7081
7273
|
mode,
|
|
7082
7274
|
whatIf,
|
|
7083
7275
|
allowEmptySource,
|
|
7276
|
+
objectFilter,
|
|
7084
7277
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
7085
7278
|
onBeforeProcessObject: async (sourceObject) => {
|
|
7086
7279
|
await localeValidationHook({
|
|
@@ -7561,6 +7754,7 @@ var LocalePullModule = {
|
|
|
7561
7754
|
project: projectId,
|
|
7562
7755
|
diff: diffMode,
|
|
7563
7756
|
allowEmptySource,
|
|
7757
|
+
objectFilter,
|
|
7564
7758
|
verbose
|
|
7565
7759
|
}) => {
|
|
7566
7760
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -7600,6 +7794,7 @@ var LocalePullModule = {
|
|
|
7600
7794
|
mode,
|
|
7601
7795
|
whatIf,
|
|
7602
7796
|
allowEmptySource: allowEmptySource ?? true,
|
|
7797
|
+
objectFilter,
|
|
7603
7798
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
7604
7799
|
});
|
|
7605
7800
|
}
|
|
@@ -7639,6 +7834,7 @@ var LocalePushModule = {
|
|
|
7639
7834
|
project: projectId,
|
|
7640
7835
|
diff: diffMode,
|
|
7641
7836
|
allowEmptySource,
|
|
7837
|
+
objectFilter,
|
|
7642
7838
|
verbose
|
|
7643
7839
|
}) => {
|
|
7644
7840
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -7673,6 +7869,7 @@ var LocalePushModule = {
|
|
|
7673
7869
|
mode,
|
|
7674
7870
|
whatIf,
|
|
7675
7871
|
allowEmptySource,
|
|
7872
|
+
objectFilter,
|
|
7676
7873
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
7677
7874
|
});
|
|
7678
7875
|
}
|
|
@@ -7812,6 +8009,7 @@ var PreviewUrlPullModule = {
|
|
|
7812
8009
|
project: projectId,
|
|
7813
8010
|
diff: diffMode,
|
|
7814
8011
|
allowEmptySource,
|
|
8012
|
+
objectFilter,
|
|
7815
8013
|
verbose
|
|
7816
8014
|
}) => {
|
|
7817
8015
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -7846,6 +8044,7 @@ var PreviewUrlPullModule = {
|
|
|
7846
8044
|
mode,
|
|
7847
8045
|
whatIf,
|
|
7848
8046
|
allowEmptySource: allowEmptySource ?? true,
|
|
8047
|
+
objectFilter,
|
|
7849
8048
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
7850
8049
|
});
|
|
7851
8050
|
}
|
|
@@ -7885,6 +8084,7 @@ var PreviewUrlPushModule = {
|
|
|
7885
8084
|
project: projectId,
|
|
7886
8085
|
diff: diffMode,
|
|
7887
8086
|
allowEmptySource,
|
|
8087
|
+
objectFilter,
|
|
7888
8088
|
verbose
|
|
7889
8089
|
}) => {
|
|
7890
8090
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -7914,6 +8114,7 @@ var PreviewUrlPushModule = {
|
|
|
7914
8114
|
mode,
|
|
7915
8115
|
whatIf,
|
|
7916
8116
|
allowEmptySource,
|
|
8117
|
+
objectFilter,
|
|
7917
8118
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
7918
8119
|
});
|
|
7919
8120
|
}
|
|
@@ -8101,6 +8302,7 @@ var PreviewViewportPullModule = {
|
|
|
8101
8302
|
project: projectId,
|
|
8102
8303
|
diff: diffMode,
|
|
8103
8304
|
allowEmptySource,
|
|
8305
|
+
objectFilter,
|
|
8104
8306
|
verbose
|
|
8105
8307
|
}) => {
|
|
8106
8308
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -8135,6 +8337,7 @@ var PreviewViewportPullModule = {
|
|
|
8135
8337
|
mode,
|
|
8136
8338
|
whatIf,
|
|
8137
8339
|
allowEmptySource: allowEmptySource ?? true,
|
|
8340
|
+
objectFilter,
|
|
8138
8341
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
8139
8342
|
});
|
|
8140
8343
|
}
|
|
@@ -8174,6 +8377,7 @@ var PreviewViewportPushModule = {
|
|
|
8174
8377
|
project: projectId,
|
|
8175
8378
|
diff: diffMode,
|
|
8176
8379
|
allowEmptySource,
|
|
8380
|
+
objectFilter,
|
|
8177
8381
|
verbose
|
|
8178
8382
|
}) => {
|
|
8179
8383
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -8203,6 +8407,7 @@ var PreviewViewportPushModule = {
|
|
|
8203
8407
|
mode,
|
|
8204
8408
|
whatIf,
|
|
8205
8409
|
allowEmptySource,
|
|
8410
|
+
objectFilter,
|
|
8206
8411
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
8207
8412
|
});
|
|
8208
8413
|
}
|
|
@@ -8389,6 +8594,7 @@ var PromptPullModule = {
|
|
|
8389
8594
|
project: projectId,
|
|
8390
8595
|
diff: diffMode,
|
|
8391
8596
|
allowEmptySource,
|
|
8597
|
+
objectFilter,
|
|
8392
8598
|
verbose
|
|
8393
8599
|
}) => {
|
|
8394
8600
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -8428,6 +8634,7 @@ var PromptPullModule = {
|
|
|
8428
8634
|
mode,
|
|
8429
8635
|
whatIf,
|
|
8430
8636
|
allowEmptySource: allowEmptySource ?? true,
|
|
8637
|
+
objectFilter,
|
|
8431
8638
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
8432
8639
|
});
|
|
8433
8640
|
}
|
|
@@ -8467,6 +8674,7 @@ var PromptPushModule = {
|
|
|
8467
8674
|
project: projectId,
|
|
8468
8675
|
diff: diffMode,
|
|
8469
8676
|
allowEmptySource,
|
|
8677
|
+
objectFilter,
|
|
8470
8678
|
verbose
|
|
8471
8679
|
}) => {
|
|
8472
8680
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -8501,6 +8709,7 @@ var PromptPushModule = {
|
|
|
8501
8709
|
mode,
|
|
8502
8710
|
whatIf,
|
|
8503
8711
|
allowEmptySource,
|
|
8712
|
+
objectFilter,
|
|
8504
8713
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
8505
8714
|
});
|
|
8506
8715
|
}
|
|
@@ -8647,6 +8856,7 @@ var WorkflowPullModule = {
|
|
|
8647
8856
|
project: projectId,
|
|
8648
8857
|
diff: diffMode,
|
|
8649
8858
|
allowEmptySource,
|
|
8859
|
+
objectFilter,
|
|
8650
8860
|
verbose
|
|
8651
8861
|
}) => {
|
|
8652
8862
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -8681,6 +8891,7 @@ var WorkflowPullModule = {
|
|
|
8681
8891
|
mode,
|
|
8682
8892
|
whatIf,
|
|
8683
8893
|
allowEmptySource: allowEmptySource ?? true,
|
|
8894
|
+
objectFilter,
|
|
8684
8895
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
8685
8896
|
});
|
|
8686
8897
|
}
|
|
@@ -8720,6 +8931,7 @@ var WorkflowPushModule = {
|
|
|
8720
8931
|
project: projectId,
|
|
8721
8932
|
diff: diffMode,
|
|
8722
8933
|
allowEmptySource,
|
|
8934
|
+
objectFilter,
|
|
8723
8935
|
verbose
|
|
8724
8936
|
}) => {
|
|
8725
8937
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -8749,6 +8961,7 @@ var WorkflowPushModule = {
|
|
|
8749
8961
|
mode,
|
|
8750
8962
|
whatIf,
|
|
8751
8963
|
allowEmptySource,
|
|
8964
|
+
objectFilter,
|
|
8752
8965
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
8753
8966
|
});
|
|
8754
8967
|
}
|
|
@@ -8919,6 +9132,7 @@ var AggregatePullModule = {
|
|
|
8919
9132
|
project: projectId,
|
|
8920
9133
|
diff: diffMode,
|
|
8921
9134
|
allowEmptySource,
|
|
9135
|
+
objectFilter,
|
|
8922
9136
|
verbose
|
|
8923
9137
|
}) => {
|
|
8924
9138
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -8953,6 +9167,7 @@ var AggregatePullModule = {
|
|
|
8953
9167
|
mode,
|
|
8954
9168
|
whatIf,
|
|
8955
9169
|
allowEmptySource,
|
|
9170
|
+
objectFilter,
|
|
8956
9171
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
8957
9172
|
});
|
|
8958
9173
|
}
|
|
@@ -8992,6 +9207,7 @@ var AggregatePushModule = {
|
|
|
8992
9207
|
project: projectId,
|
|
8993
9208
|
diff: diffMode,
|
|
8994
9209
|
allowEmptySource,
|
|
9210
|
+
objectFilter,
|
|
8995
9211
|
verbose
|
|
8996
9212
|
}) => {
|
|
8997
9213
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -9021,6 +9237,7 @@ var AggregatePushModule = {
|
|
|
9021
9237
|
mode,
|
|
9022
9238
|
whatIf,
|
|
9023
9239
|
allowEmptySource,
|
|
9240
|
+
objectFilter,
|
|
9024
9241
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
9025
9242
|
});
|
|
9026
9243
|
await target.complete();
|
|
@@ -9251,6 +9468,7 @@ var EnrichmentPullModule = {
|
|
|
9251
9468
|
project: projectId,
|
|
9252
9469
|
diff: diffMode,
|
|
9253
9470
|
allowEmptySource,
|
|
9471
|
+
objectFilter,
|
|
9254
9472
|
verbose
|
|
9255
9473
|
}) => {
|
|
9256
9474
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -9285,6 +9503,7 @@ var EnrichmentPullModule = {
|
|
|
9285
9503
|
mode,
|
|
9286
9504
|
whatIf,
|
|
9287
9505
|
allowEmptySource,
|
|
9506
|
+
objectFilter,
|
|
9288
9507
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
9289
9508
|
});
|
|
9290
9509
|
}
|
|
@@ -9322,6 +9541,7 @@ var EnrichmentPushModule = {
|
|
|
9322
9541
|
project: projectId,
|
|
9323
9542
|
diff: diffMode,
|
|
9324
9543
|
allowEmptySource,
|
|
9544
|
+
objectFilter,
|
|
9325
9545
|
verbose
|
|
9326
9546
|
}) => {
|
|
9327
9547
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -9351,6 +9571,7 @@ var EnrichmentPushModule = {
|
|
|
9351
9571
|
mode,
|
|
9352
9572
|
whatIf,
|
|
9353
9573
|
allowEmptySource,
|
|
9574
|
+
objectFilter,
|
|
9354
9575
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
9355
9576
|
});
|
|
9356
9577
|
}
|
|
@@ -9637,6 +9858,7 @@ var QuirkPullModule = {
|
|
|
9637
9858
|
project: projectId,
|
|
9638
9859
|
diff: diffMode,
|
|
9639
9860
|
allowEmptySource,
|
|
9861
|
+
objectFilter,
|
|
9640
9862
|
verbose
|
|
9641
9863
|
}) => {
|
|
9642
9864
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -9671,6 +9893,7 @@ var QuirkPullModule = {
|
|
|
9671
9893
|
mode,
|
|
9672
9894
|
whatIf,
|
|
9673
9895
|
allowEmptySource,
|
|
9896
|
+
objectFilter,
|
|
9674
9897
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
9675
9898
|
});
|
|
9676
9899
|
}
|
|
@@ -9711,6 +9934,7 @@ var QuirkPushModule = {
|
|
|
9711
9934
|
project: projectId,
|
|
9712
9935
|
diff: diffMode,
|
|
9713
9936
|
allowEmptySource,
|
|
9937
|
+
objectFilter,
|
|
9714
9938
|
verbose
|
|
9715
9939
|
}) => {
|
|
9716
9940
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -9740,6 +9964,7 @@ var QuirkPushModule = {
|
|
|
9740
9964
|
mode,
|
|
9741
9965
|
whatIf,
|
|
9742
9966
|
allowEmptySource,
|
|
9967
|
+
objectFilter,
|
|
9743
9968
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
9744
9969
|
});
|
|
9745
9970
|
}
|
|
@@ -9920,6 +10145,7 @@ var SignalPullModule = {
|
|
|
9920
10145
|
project: projectId,
|
|
9921
10146
|
diff: diffMode,
|
|
9922
10147
|
allowEmptySource,
|
|
10148
|
+
objectFilter,
|
|
9923
10149
|
verbose
|
|
9924
10150
|
}) => {
|
|
9925
10151
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -9954,6 +10180,7 @@ var SignalPullModule = {
|
|
|
9954
10180
|
mode,
|
|
9955
10181
|
whatIf,
|
|
9956
10182
|
allowEmptySource,
|
|
10183
|
+
objectFilter,
|
|
9957
10184
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
9958
10185
|
});
|
|
9959
10186
|
}
|
|
@@ -9994,6 +10221,7 @@ var SignalPushModule = {
|
|
|
9994
10221
|
project: projectId,
|
|
9995
10222
|
diff: diffMode,
|
|
9996
10223
|
allowEmptySource,
|
|
10224
|
+
objectFilter,
|
|
9997
10225
|
verbose
|
|
9998
10226
|
}) => {
|
|
9999
10227
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -10023,6 +10251,7 @@ var SignalPushModule = {
|
|
|
10023
10251
|
mode,
|
|
10024
10252
|
whatIf,
|
|
10025
10253
|
allowEmptySource,
|
|
10254
|
+
objectFilter,
|
|
10026
10255
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
10027
10256
|
});
|
|
10028
10257
|
}
|
|
@@ -10203,6 +10432,7 @@ var TestPullModule = {
|
|
|
10203
10432
|
project: projectId,
|
|
10204
10433
|
diff: diffMode,
|
|
10205
10434
|
allowEmptySource,
|
|
10435
|
+
objectFilter,
|
|
10206
10436
|
verbose
|
|
10207
10437
|
}) => {
|
|
10208
10438
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -10237,6 +10467,7 @@ var TestPullModule = {
|
|
|
10237
10467
|
mode,
|
|
10238
10468
|
whatIf,
|
|
10239
10469
|
allowEmptySource,
|
|
10470
|
+
objectFilter,
|
|
10240
10471
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
10241
10472
|
});
|
|
10242
10473
|
}
|
|
@@ -10277,6 +10508,7 @@ var TestPushModule = {
|
|
|
10277
10508
|
project: projectId,
|
|
10278
10509
|
diff: diffMode,
|
|
10279
10510
|
allowEmptySource,
|
|
10511
|
+
objectFilter,
|
|
10280
10512
|
verbose
|
|
10281
10513
|
}) => {
|
|
10282
10514
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -10306,6 +10538,7 @@ var TestPushModule = {
|
|
|
10306
10538
|
mode,
|
|
10307
10539
|
whatIf,
|
|
10308
10540
|
allowEmptySource,
|
|
10541
|
+
objectFilter,
|
|
10309
10542
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
10310
10543
|
});
|
|
10311
10544
|
}
|
|
@@ -11481,6 +11714,7 @@ var PolicyDocumentsPullModule = {
|
|
|
11481
11714
|
project: projectId,
|
|
11482
11715
|
diff: diffMode,
|
|
11483
11716
|
allowEmptySource,
|
|
11717
|
+
objectFilter,
|
|
11484
11718
|
verbose
|
|
11485
11719
|
}) => {
|
|
11486
11720
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -11498,6 +11732,7 @@ var PolicyDocumentsPullModule = {
|
|
|
11498
11732
|
mode,
|
|
11499
11733
|
whatIf,
|
|
11500
11734
|
allowEmptySource: allowEmptySource ?? true,
|
|
11735
|
+
objectFilter,
|
|
11501
11736
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
11502
11737
|
});
|
|
11503
11738
|
}
|
|
@@ -11620,6 +11855,7 @@ var PolicyDocumentsPushModule = {
|
|
|
11620
11855
|
project: projectId,
|
|
11621
11856
|
diff: diffMode,
|
|
11622
11857
|
allowEmptySource,
|
|
11858
|
+
objectFilter,
|
|
11623
11859
|
verbose
|
|
11624
11860
|
}) => {
|
|
11625
11861
|
if (!existsSync5(directory)) {
|
|
@@ -11649,6 +11885,7 @@ var PolicyDocumentsPushModule = {
|
|
|
11649
11885
|
mode,
|
|
11650
11886
|
whatIf,
|
|
11651
11887
|
allowEmptySource: allowEmptySource ?? true,
|
|
11888
|
+
objectFilter,
|
|
11652
11889
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
11653
11890
|
});
|
|
11654
11891
|
if (!whatIf) {
|
|
@@ -11826,6 +12063,7 @@ var ProjectMapDefinitionPullModule = {
|
|
|
11826
12063
|
project: projectId,
|
|
11827
12064
|
diff: diffMode,
|
|
11828
12065
|
allowEmptySource,
|
|
12066
|
+
objectFilter,
|
|
11829
12067
|
verbose
|
|
11830
12068
|
}) => {
|
|
11831
12069
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -11860,6 +12098,7 @@ var ProjectMapDefinitionPullModule = {
|
|
|
11860
12098
|
mode,
|
|
11861
12099
|
whatIf,
|
|
11862
12100
|
allowEmptySource: allowEmptySource ?? true,
|
|
12101
|
+
objectFilter,
|
|
11863
12102
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
11864
12103
|
});
|
|
11865
12104
|
}
|
|
@@ -11899,6 +12138,7 @@ var ProjectMapDefinitionPushModule = {
|
|
|
11899
12138
|
project: projectId,
|
|
11900
12139
|
diff: diffMode,
|
|
11901
12140
|
allowEmptySource,
|
|
12141
|
+
objectFilter,
|
|
11902
12142
|
verbose
|
|
11903
12143
|
}) => {
|
|
11904
12144
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -11928,6 +12168,7 @@ var ProjectMapDefinitionPushModule = {
|
|
|
11928
12168
|
mode,
|
|
11929
12169
|
whatIf,
|
|
11930
12170
|
allowEmptySource,
|
|
12171
|
+
objectFilter,
|
|
11931
12172
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
11932
12173
|
});
|
|
11933
12174
|
}
|
|
@@ -12135,6 +12376,7 @@ var ProjectMapNodePullModule = {
|
|
|
12135
12376
|
project: projectId,
|
|
12136
12377
|
diff: diffMode,
|
|
12137
12378
|
allowEmptySource,
|
|
12379
|
+
objectFilter,
|
|
12138
12380
|
verbose
|
|
12139
12381
|
}) => {
|
|
12140
12382
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -12173,6 +12415,7 @@ var ProjectMapNodePullModule = {
|
|
|
12173
12415
|
mode,
|
|
12174
12416
|
whatIf,
|
|
12175
12417
|
allowEmptySource: allowEmptySource ?? true,
|
|
12418
|
+
objectFilter,
|
|
12176
12419
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
12177
12420
|
});
|
|
12178
12421
|
}
|
|
@@ -12215,6 +12458,7 @@ var ProjectMapNodePushModule = {
|
|
|
12215
12458
|
project: projectId,
|
|
12216
12459
|
diff: diffMode,
|
|
12217
12460
|
allowEmptySource,
|
|
12461
|
+
objectFilter,
|
|
12218
12462
|
verbose
|
|
12219
12463
|
}) => {
|
|
12220
12464
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -12259,6 +12503,7 @@ var ProjectMapNodePushModule = {
|
|
|
12259
12503
|
mode,
|
|
12260
12504
|
whatIf,
|
|
12261
12505
|
allowEmptySource,
|
|
12506
|
+
objectFilter,
|
|
12262
12507
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
12263
12508
|
onError: (error, object4) => {
|
|
12264
12509
|
if (error.message.includes(__INTERNAL_MISSING_PARENT_NODE_ERROR)) {
|
|
@@ -12492,6 +12737,7 @@ var RedirectDefinitionPullModule = {
|
|
|
12492
12737
|
project: projectId,
|
|
12493
12738
|
diff: diffMode,
|
|
12494
12739
|
allowEmptySource,
|
|
12740
|
+
objectFilter,
|
|
12495
12741
|
verbose
|
|
12496
12742
|
}) => {
|
|
12497
12743
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -12527,6 +12773,7 @@ var RedirectDefinitionPullModule = {
|
|
|
12527
12773
|
mode,
|
|
12528
12774
|
whatIf,
|
|
12529
12775
|
allowEmptySource: allowEmptySource ?? true,
|
|
12776
|
+
objectFilter,
|
|
12530
12777
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
12531
12778
|
});
|
|
12532
12779
|
}
|
|
@@ -12566,6 +12813,7 @@ var RedirectDefinitionPushModule = {
|
|
|
12566
12813
|
project: projectId,
|
|
12567
12814
|
diff: diffMode,
|
|
12568
12815
|
allowEmptySource,
|
|
12816
|
+
objectFilter,
|
|
12569
12817
|
verbose
|
|
12570
12818
|
}) => {
|
|
12571
12819
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -12595,6 +12843,7 @@ var RedirectDefinitionPushModule = {
|
|
|
12595
12843
|
mode,
|
|
12596
12844
|
whatIf,
|
|
12597
12845
|
allowEmptySource,
|
|
12846
|
+
objectFilter,
|
|
12598
12847
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
12599
12848
|
});
|
|
12600
12849
|
}
|
|
@@ -12890,6 +13139,7 @@ var WebhookPullModule = {
|
|
|
12890
13139
|
project: projectId,
|
|
12891
13140
|
diff: diffMode,
|
|
12892
13141
|
allowEmptySource,
|
|
13142
|
+
objectFilter,
|
|
12893
13143
|
verbose
|
|
12894
13144
|
}) => {
|
|
12895
13145
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -12924,6 +13174,7 @@ var WebhookPullModule = {
|
|
|
12924
13174
|
mode,
|
|
12925
13175
|
whatIf,
|
|
12926
13176
|
allowEmptySource: allowEmptySource ?? true,
|
|
13177
|
+
objectFilter,
|
|
12927
13178
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
12928
13179
|
compareContents: compareWebhooks
|
|
12929
13180
|
});
|
|
@@ -13087,6 +13338,7 @@ var SyncPullModule = {
|
|
|
13087
13338
|
return entityConfig2 !== void 0 && "state" in entityConfig2;
|
|
13088
13339
|
};
|
|
13089
13340
|
const entityConfig = config2.entitiesConfig?.[entityType];
|
|
13341
|
+
const entityFilter = resolveEntityFilter(entityConfig, "pull");
|
|
13090
13342
|
try {
|
|
13091
13343
|
await spinPromise(
|
|
13092
13344
|
module.handler({
|
|
@@ -13098,7 +13350,8 @@ var SyncPullModule = {
|
|
|
13098
13350
|
patternType: entityType === "compositionPattern" ? "composition" : entityType === "componentPattern" ? "component" : void 0,
|
|
13099
13351
|
mode: getPullMode(entityType, config2),
|
|
13100
13352
|
directory: getPullFilename(entityType, config2),
|
|
13101
|
-
allowEmptySource: config2.allowEmptySource
|
|
13353
|
+
allowEmptySource: config2.allowEmptySource,
|
|
13354
|
+
objectFilter: entityFilter
|
|
13102
13355
|
}),
|
|
13103
13356
|
{
|
|
13104
13357
|
text: `${entityType}\u2026`,
|
|
@@ -13174,6 +13427,7 @@ var WebhookPushModule = {
|
|
|
13174
13427
|
project: projectId,
|
|
13175
13428
|
diff: diffMode,
|
|
13176
13429
|
allowEmptySource,
|
|
13430
|
+
objectFilter,
|
|
13177
13431
|
verbose
|
|
13178
13432
|
}) => {
|
|
13179
13433
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -13203,6 +13457,7 @@ var WebhookPushModule = {
|
|
|
13203
13457
|
mode,
|
|
13204
13458
|
whatIf,
|
|
13205
13459
|
allowEmptySource,
|
|
13460
|
+
objectFilter,
|
|
13206
13461
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
13207
13462
|
compareContents: compareWebhooks
|
|
13208
13463
|
});
|
|
@@ -13252,6 +13507,8 @@ var SyncPushModule = {
|
|
|
13252
13507
|
);
|
|
13253
13508
|
}
|
|
13254
13509
|
for (const [entityType, module] of enabledEntities) {
|
|
13510
|
+
const entityConfig = config2.entitiesConfig?.[entityType];
|
|
13511
|
+
const entityFilter = resolveEntityFilter(entityConfig, "push");
|
|
13255
13512
|
try {
|
|
13256
13513
|
await spinPromise(
|
|
13257
13514
|
module.handler({
|
|
@@ -13263,7 +13520,8 @@ var SyncPushModule = {
|
|
|
13263
13520
|
patternType: entityType === "compositionPattern" ? "composition" : entityType === "componentPattern" ? "component" : void 0,
|
|
13264
13521
|
mode: getPushMode(entityType, config2),
|
|
13265
13522
|
directory: getPushFilename(entityType, config2),
|
|
13266
|
-
allowEmptySource: config2.allowEmptySource
|
|
13523
|
+
allowEmptySource: config2.allowEmptySource,
|
|
13524
|
+
objectFilter: entityFilter
|
|
13267
13525
|
}),
|
|
13268
13526
|
{
|
|
13269
13527
|
text: `${entityType}...`,
|
|
@@ -13280,6 +13538,7 @@ var SyncPushModule = {
|
|
|
13280
13538
|
}
|
|
13281
13539
|
}
|
|
13282
13540
|
if (config2.entitiesConfig?.componentPattern && config2.entitiesConfig?.componentPattern?.push?.disabled !== true && config2.entitiesConfig?.componentPattern?.publish) {
|
|
13541
|
+
const publishFilter = resolveEntityFilter(config2.entitiesConfig.componentPattern, "push");
|
|
13283
13542
|
try {
|
|
13284
13543
|
await spinPromise(
|
|
13285
13544
|
ComponentPatternPublishModule.handler({
|
|
@@ -13287,7 +13546,8 @@ var SyncPushModule = {
|
|
|
13287
13546
|
patternType: "component",
|
|
13288
13547
|
onlyPatterns: true,
|
|
13289
13548
|
all: true,
|
|
13290
|
-
directory: getPushFilename("componentPattern", config2)
|
|
13549
|
+
directory: getPushFilename("componentPattern", config2),
|
|
13550
|
+
objectFilter: publishFilter
|
|
13291
13551
|
}),
|
|
13292
13552
|
{
|
|
13293
13553
|
text: "publishing component patterns...",
|
|
@@ -13304,6 +13564,7 @@ var SyncPushModule = {
|
|
|
13304
13564
|
}
|
|
13305
13565
|
}
|
|
13306
13566
|
if (config2.entitiesConfig?.compositionPattern && config2.entitiesConfig?.compositionPattern?.push?.disabled !== true && config2.entitiesConfig?.compositionPattern?.publish) {
|
|
13567
|
+
const publishFilter = resolveEntityFilter(config2.entitiesConfig.compositionPattern, "push");
|
|
13307
13568
|
try {
|
|
13308
13569
|
await spinPromise(
|
|
13309
13570
|
CompositionPatternPublishModule.handler({
|
|
@@ -13311,7 +13572,8 @@ var SyncPushModule = {
|
|
|
13311
13572
|
all: true,
|
|
13312
13573
|
onlyPatterns: true,
|
|
13313
13574
|
patternType: "composition",
|
|
13314
|
-
directory: getPushFilename("compositionPattern", config2)
|
|
13575
|
+
directory: getPushFilename("compositionPattern", config2),
|
|
13576
|
+
objectFilter: publishFilter
|
|
13315
13577
|
}),
|
|
13316
13578
|
{
|
|
13317
13579
|
text: "publishing composition patterns...",
|
|
@@ -13328,13 +13590,15 @@ var SyncPushModule = {
|
|
|
13328
13590
|
}
|
|
13329
13591
|
}
|
|
13330
13592
|
if (config2.entitiesConfig?.composition && config2.entitiesConfig?.composition?.push?.disabled !== true && config2.entitiesConfig?.composition?.publish) {
|
|
13593
|
+
const publishFilter = resolveEntityFilter(config2.entitiesConfig.composition, "push");
|
|
13331
13594
|
try {
|
|
13332
13595
|
await spinPromise(
|
|
13333
13596
|
CompositionPublishModule.handler({
|
|
13334
13597
|
...otherParams,
|
|
13335
13598
|
all: true,
|
|
13336
13599
|
onlyCompositions: true,
|
|
13337
|
-
directory: getPushFilename("composition", config2)
|
|
13600
|
+
directory: getPushFilename("composition", config2),
|
|
13601
|
+
objectFilter: publishFilter
|
|
13338
13602
|
}),
|
|
13339
13603
|
{
|
|
13340
13604
|
text: "publishing compositions...",
|
|
@@ -13351,12 +13615,14 @@ var SyncPushModule = {
|
|
|
13351
13615
|
}
|
|
13352
13616
|
}
|
|
13353
13617
|
if (config2.entitiesConfig?.entry && config2.entitiesConfig?.entry?.push?.disabled !== true && config2.entitiesConfig?.entry?.publish) {
|
|
13618
|
+
const publishFilter = resolveEntityFilter(config2.entitiesConfig.entry, "push");
|
|
13354
13619
|
try {
|
|
13355
13620
|
await spinPromise(
|
|
13356
13621
|
EntryPublishModule.handler({
|
|
13357
13622
|
...otherParams,
|
|
13358
13623
|
all: true,
|
|
13359
|
-
directory: getPushFilename("entry", config2)
|
|
13624
|
+
directory: getPushFilename("entry", config2),
|
|
13625
|
+
objectFilter: publishFilter
|
|
13360
13626
|
}),
|
|
13361
13627
|
{
|
|
13362
13628
|
text: "publishing entries...",
|
|
@@ -13373,12 +13639,14 @@ var SyncPushModule = {
|
|
|
13373
13639
|
}
|
|
13374
13640
|
}
|
|
13375
13641
|
if (config2.entitiesConfig?.entryPattern && config2.entitiesConfig?.entryPattern?.push?.disabled !== true && config2.entitiesConfig?.entryPattern?.publish) {
|
|
13642
|
+
const publishFilter = resolveEntityFilter(config2.entitiesConfig.entryPattern, "push");
|
|
13376
13643
|
try {
|
|
13377
13644
|
await spinPromise(
|
|
13378
13645
|
EntryPatternPublishModule.handler({
|
|
13379
13646
|
...otherParams,
|
|
13380
13647
|
all: true,
|
|
13381
|
-
directory: getPushFilename("entryPattern", config2)
|
|
13648
|
+
directory: getPushFilename("entryPattern", config2),
|
|
13649
|
+
objectFilter: publishFilter
|
|
13382
13650
|
}),
|
|
13383
13651
|
{
|
|
13384
13652
|
text: "publishing entry patterns...",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "20.57.
|
|
3
|
+
"version": "20.57.2-alpha.23+75d5946be1",
|
|
4
4
|
"description": "Uniform command line interface tool",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./cli.js",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@inquirer/prompts": "^7.10.1",
|
|
30
30
|
"@thi.ng/mime": "^2.2.23",
|
|
31
|
-
"@uniformdev/assets": "20.57.
|
|
32
|
-
"@uniformdev/canvas": "20.57.
|
|
33
|
-
"@uniformdev/context": "20.57.
|
|
34
|
-
"@uniformdev/files": "20.57.
|
|
35
|
-
"@uniformdev/project-map": "20.57.
|
|
36
|
-
"@uniformdev/redirect": "20.57.
|
|
37
|
-
"@uniformdev/richtext": "20.57.
|
|
31
|
+
"@uniformdev/assets": "20.57.2-alpha.23+75d5946be1",
|
|
32
|
+
"@uniformdev/canvas": "20.57.2-alpha.23+75d5946be1",
|
|
33
|
+
"@uniformdev/context": "20.57.2-alpha.23+75d5946be1",
|
|
34
|
+
"@uniformdev/files": "20.57.2-alpha.23+75d5946be1",
|
|
35
|
+
"@uniformdev/project-map": "20.57.2-alpha.23+75d5946be1",
|
|
36
|
+
"@uniformdev/redirect": "20.57.2-alpha.23+75d5946be1",
|
|
37
|
+
"@uniformdev/richtext": "20.57.2-alpha.23+75d5946be1",
|
|
38
38
|
"call-bind": "^1.0.2",
|
|
39
39
|
"colorette": "2.0.20",
|
|
40
40
|
"cosmiconfig": "9.0.0",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "75d5946be1860adc22df527dd84b2d553dd61f54"
|
|
85
85
|
}
|