@fern-api/fern-api-dev 5.27.7 → 5.27.8
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/cli.cjs +53 -10
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -601521,6 +601521,7 @@ var IrGraph = class {
|
|
|
601521
601521
|
webhooksNeededForAudience = /* @__PURE__ */ new Set();
|
|
601522
601522
|
channelsNeededForAudience = /* @__PURE__ */ new Set();
|
|
601523
601523
|
subpackagesNeededForAudience = /* @__PURE__ */ new Set();
|
|
601524
|
+
schemaIdToGraphTypeId = /* @__PURE__ */ new Map();
|
|
601524
601525
|
constructor(audiences) {
|
|
601525
601526
|
this.audiences = audiencesFromConfig(audiences);
|
|
601526
601527
|
}
|
|
@@ -601533,6 +601534,9 @@ var IrGraph = class {
|
|
|
601533
601534
|
referencedSubpackages: descendantFilepaths
|
|
601534
601535
|
};
|
|
601535
601536
|
this.types[typeId] = typeNode;
|
|
601537
|
+
if (declaredTypeName.typeId != null && declaredTypeName.typeId !== typeId) {
|
|
601538
|
+
this.schemaIdToGraphTypeId.set(declaredTypeName.typeId, typeId);
|
|
601539
|
+
}
|
|
601536
601540
|
if (this.typesReferencedByService[typeId] == null) {
|
|
601537
601541
|
this.typesReferencedByService[typeId] = /* @__PURE__ */ new Set();
|
|
601538
601542
|
}
|
|
@@ -601902,9 +601906,12 @@ var IrGraph = class {
|
|
|
601902
601906
|
types4.add(serviceId);
|
|
601903
601907
|
const typeNode = this.getTypeNode(typeId);
|
|
601904
601908
|
for (const descendantTypeId of typeNode.allDescendants) {
|
|
601905
|
-
this.markTypeForService(descendantTypeId, serviceId);
|
|
601909
|
+
this.markTypeForService(this.resolveTypeId(descendantTypeId), serviceId);
|
|
601906
601910
|
}
|
|
601907
601911
|
}
|
|
601912
|
+
resolveTypeId(id2) {
|
|
601913
|
+
return this.schemaIdToGraphTypeId.get(id2) ?? id2;
|
|
601914
|
+
}
|
|
601908
601915
|
addReferencedTypes(types4, typesToAdd) {
|
|
601909
601916
|
for (const typeId of typesToAdd) {
|
|
601910
601917
|
if (types4.has(typeId)) {
|
|
@@ -601917,18 +601924,18 @@ var IrGraph = class {
|
|
|
601917
601924
|
const descendantsForAudience = typeNode.descendantsByAudience[audienceId];
|
|
601918
601925
|
if (descendantsForAudience != null) {
|
|
601919
601926
|
descendantsForAudience.forEach((descendantTypeId) => {
|
|
601920
|
-
types4.add(descendantTypeId);
|
|
601927
|
+
types4.add(this.resolveTypeId(descendantTypeId));
|
|
601921
601928
|
});
|
|
601922
601929
|
} else {
|
|
601923
601930
|
typeNode.allDescendants.forEach((descendantTypeId) => {
|
|
601924
|
-
types4.add(descendantTypeId);
|
|
601931
|
+
types4.add(this.resolveTypeId(descendantTypeId));
|
|
601925
601932
|
});
|
|
601926
601933
|
break;
|
|
601927
601934
|
}
|
|
601928
601935
|
}
|
|
601929
601936
|
} else {
|
|
601930
601937
|
typeNode.allDescendants.forEach((descendantTypeId) => {
|
|
601931
|
-
types4.add(descendantTypeId);
|
|
601938
|
+
types4.add(this.resolveTypeId(descendantTypeId));
|
|
601932
601939
|
});
|
|
601933
601940
|
}
|
|
601934
601941
|
}
|
|
@@ -649581,6 +649588,7 @@ function convertProperties({ properties: properties7, required: required6, bread
|
|
|
649581
649588
|
referencedTypes.add(type8);
|
|
649582
649589
|
});
|
|
649583
649590
|
}
|
|
649591
|
+
collectNamedTypeIdsFromTypeReference(convertedProperty.type, referencedTypes);
|
|
649584
649592
|
for (const audience of convertedProperty.schema?.audiences ?? []) {
|
|
649585
649593
|
if (propertiesByAudience[audience] == null) {
|
|
649586
649594
|
propertiesByAudience[audience] = /* @__PURE__ */ new Set();
|
|
@@ -649645,6 +649653,41 @@ function maybeGetFernTypeNameExtension(breadcrumbs, schema2, context3) {
|
|
|
649645
649653
|
});
|
|
649646
649654
|
return fernTypeNameConverter.convert();
|
|
649647
649655
|
}
|
|
649656
|
+
function collectNamedTypeIdsFromTypeReference(typeReference2, referencedTypes) {
|
|
649657
|
+
switch (typeReference2.type) {
|
|
649658
|
+
case "named":
|
|
649659
|
+
referencedTypes.add(typeReference2.typeId);
|
|
649660
|
+
return;
|
|
649661
|
+
case "primitive":
|
|
649662
|
+
case "unknown":
|
|
649663
|
+
return;
|
|
649664
|
+
case "container":
|
|
649665
|
+
collectNamedTypeIdsFromContainer(typeReference2.container, referencedTypes);
|
|
649666
|
+
return;
|
|
649667
|
+
}
|
|
649668
|
+
}
|
|
649669
|
+
function collectNamedTypeIdsFromContainer(container, referencedTypes) {
|
|
649670
|
+
switch (container.type) {
|
|
649671
|
+
case "list":
|
|
649672
|
+
collectNamedTypeIdsFromTypeReference(container.list, referencedTypes);
|
|
649673
|
+
return;
|
|
649674
|
+
case "set":
|
|
649675
|
+
collectNamedTypeIdsFromTypeReference(container.set, referencedTypes);
|
|
649676
|
+
return;
|
|
649677
|
+
case "optional":
|
|
649678
|
+
collectNamedTypeIdsFromTypeReference(container.optional, referencedTypes);
|
|
649679
|
+
return;
|
|
649680
|
+
case "nullable":
|
|
649681
|
+
collectNamedTypeIdsFromTypeReference(container.nullable, referencedTypes);
|
|
649682
|
+
return;
|
|
649683
|
+
case "map":
|
|
649684
|
+
collectNamedTypeIdsFromTypeReference(container.keyType, referencedTypes);
|
|
649685
|
+
collectNamedTypeIdsFromTypeReference(container.valueType, referencedTypes);
|
|
649686
|
+
return;
|
|
649687
|
+
case "literal":
|
|
649688
|
+
return;
|
|
649689
|
+
}
|
|
649690
|
+
}
|
|
649648
649691
|
|
|
649649
649692
|
// ../api-importers/v3-importer-commons/lib/converters/schema/ObjectSchemaConverter.js
|
|
649650
649693
|
var ObjectSchemaConverter = class extends AbstractConverter {
|
|
@@ -668070,7 +668113,7 @@ var AccessTokenPosthogManager = class {
|
|
|
668070
668113
|
properties: {
|
|
668071
668114
|
...event,
|
|
668072
668115
|
...event.properties,
|
|
668073
|
-
version: "5.27.
|
|
668116
|
+
version: "5.27.8",
|
|
668074
668117
|
usingAccessToken: true,
|
|
668075
668118
|
...getRunIdProperties()
|
|
668076
668119
|
}
|
|
@@ -668134,7 +668177,7 @@ var UserPosthogManager = class {
|
|
|
668134
668177
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
668135
668178
|
event: "CLI",
|
|
668136
668179
|
properties: {
|
|
668137
|
-
version: "5.27.
|
|
668180
|
+
version: "5.27.8",
|
|
668138
668181
|
...event,
|
|
668139
668182
|
...event.properties,
|
|
668140
668183
|
usingAccessToken: false,
|
|
@@ -859713,7 +859756,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
859713
859756
|
var LOGS_FOLDER_NAME = "logs";
|
|
859714
859757
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
859715
859758
|
function getCliSource() {
|
|
859716
|
-
const version7 = "5.27.
|
|
859759
|
+
const version7 = "5.27.8";
|
|
859717
859760
|
return `cli@${version7}`;
|
|
859718
859761
|
}
|
|
859719
859762
|
var DebugLogger = class {
|
|
@@ -873713,7 +873756,7 @@ var LegacyDocsPublisher = class {
|
|
|
873713
873756
|
previewId,
|
|
873714
873757
|
disableTemplates: void 0,
|
|
873715
873758
|
skipUpload,
|
|
873716
|
-
cliVersion: "5.27.
|
|
873759
|
+
cliVersion: "5.27.8",
|
|
873717
873760
|
loginCommand: "fern auth login"
|
|
873718
873761
|
});
|
|
873719
873762
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -948118,7 +948161,7 @@ function getAutomationContextFromEnv() {
|
|
|
948118
948161
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
948119
948162
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
948120
948163
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
948121
|
-
cli_version: "5.27.
|
|
948164
|
+
cli_version: "5.27.8"
|
|
948122
948165
|
};
|
|
948123
948166
|
}
|
|
948124
948167
|
function isAutomationMode() {
|
|
@@ -948944,7 +948987,7 @@ var CliContext = class _CliContext {
|
|
|
948944
948987
|
if (false) {
|
|
948945
948988
|
this.logger.error("CLI_VERSION is not defined");
|
|
948946
948989
|
}
|
|
948947
|
-
return "5.27.
|
|
948990
|
+
return "5.27.8";
|
|
948948
948991
|
}
|
|
948949
948992
|
getCliName() {
|
|
948950
948993
|
if (false) {
|
package/package.json
CHANGED