@fern-api/fern-api-dev 5.23.3-790-g7d76e8f906b → 5.23.3-795-gcd72613f3c2
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 +28 -17
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -628980,7 +628980,7 @@ var AccessTokenPosthogManager = class {
|
|
|
628980
628980
|
properties: {
|
|
628981
628981
|
...event,
|
|
628982
628982
|
...event.properties,
|
|
628983
|
-
version: "5.23.3-
|
|
628983
|
+
version: "5.23.3-795-gcd72613f3c2",
|
|
628984
628984
|
usingAccessToken: true,
|
|
628985
628985
|
...getRunIdProperties()
|
|
628986
628986
|
}
|
|
@@ -629044,7 +629044,7 @@ var UserPosthogManager = class {
|
|
|
629044
629044
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
629045
629045
|
event: "CLI",
|
|
629046
629046
|
properties: {
|
|
629047
|
-
version: "5.23.3-
|
|
629047
|
+
version: "5.23.3-795-gcd72613f3c2",
|
|
629048
629048
|
...event,
|
|
629049
629049
|
...event.properties,
|
|
629050
629050
|
usingAccessToken: false,
|
|
@@ -821059,7 +821059,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
821059
821059
|
var LOGS_FOLDER_NAME = "logs";
|
|
821060
821060
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
821061
821061
|
function getCliSource() {
|
|
821062
|
-
const version7 = "5.23.3-
|
|
821062
|
+
const version7 = "5.23.3-795-gcd72613f3c2";
|
|
821063
821063
|
return `cli@${version7}`;
|
|
821064
821064
|
}
|
|
821065
821065
|
var DebugLogger = class {
|
|
@@ -852392,7 +852392,7 @@ var LegacyDocsPublisher = class {
|
|
|
852392
852392
|
previewId,
|
|
852393
852393
|
disableTemplates: void 0,
|
|
852394
852394
|
skipUpload,
|
|
852395
|
-
cliVersion: "5.23.3-
|
|
852395
|
+
cliVersion: "5.23.3-795-gcd72613f3c2",
|
|
852396
852396
|
loginCommand: "fern auth login"
|
|
852397
852397
|
});
|
|
852398
852398
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -883846,11 +883846,11 @@ var DynamicTypeLiteralMapper2 = class {
|
|
|
883846
883846
|
value: value2
|
|
883847
883847
|
});
|
|
883848
883848
|
case "enum":
|
|
883849
|
-
return this.convertEnum({ enum_: named, value: value2 });
|
|
883849
|
+
return this.convertEnum({ enum_: named, value: value2, as: as2 });
|
|
883850
883850
|
case "object":
|
|
883851
883851
|
return this.convertObject({ object_: named, value: value2 });
|
|
883852
883852
|
case "undiscriminatedUnion":
|
|
883853
|
-
return this.convertUndiscriminatedUnion({ undiscriminatedUnion: named, value: value2 });
|
|
883853
|
+
return this.convertUndiscriminatedUnion({ undiscriminatedUnion: named, value: value2, as: as2 });
|
|
883854
883854
|
default:
|
|
883855
883855
|
assertNever(named);
|
|
883856
883856
|
}
|
|
@@ -883917,7 +883917,8 @@ var DynamicTypeLiteralMapper2 = class {
|
|
|
883917
883917
|
name: this.context.getPropertyName(unionVariant.discriminantValue.name),
|
|
883918
883918
|
value: this.convert({
|
|
883919
883919
|
typeReference: unionVariant.typeReference,
|
|
883920
|
-
value: discriminatedUnionTypeInstance.value
|
|
883920
|
+
value: discriminatedUnionTypeInstance.value,
|
|
883921
|
+
as: "nativeEnum"
|
|
883921
883922
|
})
|
|
883922
883923
|
}
|
|
883923
883924
|
];
|
|
@@ -883929,7 +883930,8 @@ var DynamicTypeLiteralMapper2 = class {
|
|
|
883929
883930
|
name: this.context.getPropertyName(unionVariant.discriminantValue.name),
|
|
883930
883931
|
value: this.convert({
|
|
883931
883932
|
typeReference: unionVariant.typeReference,
|
|
883932
|
-
value: singlePropertyValue
|
|
883933
|
+
value: singlePropertyValue,
|
|
883934
|
+
as: "nativeEnum"
|
|
883933
883935
|
})
|
|
883934
883936
|
}
|
|
883935
883937
|
];
|
|
@@ -884161,7 +884163,7 @@ var DynamicTypeLiteralMapper2 = class {
|
|
|
884161
884163
|
assertNever(literal3);
|
|
884162
884164
|
}
|
|
884163
884165
|
}
|
|
884164
|
-
convertEnum({ enum_: enum_25, value: value2 }) {
|
|
884166
|
+
convertEnum({ enum_: enum_25, value: value2, as: as2 }) {
|
|
884165
884167
|
const name2 = this.getEnumValueName({ enum_: enum_25, value: value2 });
|
|
884166
884168
|
if (name2 == null) {
|
|
884167
884169
|
return php_exports.TypeLiteral.nop();
|
|
@@ -884173,7 +884175,9 @@ var DynamicTypeLiteralMapper2 = class {
|
|
|
884173
884175
|
}));
|
|
884174
884176
|
writer2.write("::");
|
|
884175
884177
|
writer2.write(name2);
|
|
884176
|
-
|
|
884178
|
+
if (as2 !== "nativeEnum") {
|
|
884179
|
+
writer2.write("->value");
|
|
884180
|
+
}
|
|
884177
884181
|
}));
|
|
884178
884182
|
}
|
|
884179
884183
|
getEnumValueName({ enum_: enum_25, value: value2 }) {
|
|
@@ -884194,21 +884198,22 @@ var DynamicTypeLiteralMapper2 = class {
|
|
|
884194
884198
|
}
|
|
884195
884199
|
return this.context.getClassName(enumValue.name);
|
|
884196
884200
|
}
|
|
884197
|
-
convertUndiscriminatedUnion({ undiscriminatedUnion: undiscriminatedUnion22, value: value2 }) {
|
|
884201
|
+
convertUndiscriminatedUnion({ undiscriminatedUnion: undiscriminatedUnion22, value: value2, as: as2 }) {
|
|
884198
884202
|
const result = this.findMatchingUndiscriminatedUnionType({
|
|
884199
884203
|
undiscriminatedUnion: undiscriminatedUnion22,
|
|
884200
|
-
value: value2
|
|
884204
|
+
value: value2,
|
|
884205
|
+
as: as2
|
|
884201
884206
|
});
|
|
884202
884207
|
if (result == null) {
|
|
884203
884208
|
return php_exports.TypeLiteral.nop();
|
|
884204
884209
|
}
|
|
884205
884210
|
return result;
|
|
884206
884211
|
}
|
|
884207
|
-
findMatchingUndiscriminatedUnionType({ undiscriminatedUnion: undiscriminatedUnion22, value: value2 }) {
|
|
884212
|
+
findMatchingUndiscriminatedUnionType({ undiscriminatedUnion: undiscriminatedUnion22, value: value2, as: as2 }) {
|
|
884208
884213
|
for (const typeReference2 of undiscriminatedUnion22.types) {
|
|
884209
884214
|
const errorsBefore = this.context.errors.size();
|
|
884210
884215
|
try {
|
|
884211
|
-
const result = this.convert({ typeReference: typeReference2, value: value2 });
|
|
884216
|
+
const result = this.convert({ typeReference: typeReference2, value: value2, as: as2 });
|
|
884212
884217
|
if (php_exports.TypeLiteral.isNop(result)) {
|
|
884213
884218
|
this.context.errors.truncate(errorsBefore);
|
|
884214
884219
|
continue;
|
|
@@ -901317,7 +901322,10 @@ var EndpointSnippetGenerator8 = class {
|
|
|
901317
901322
|
this.context.errors.unscope();
|
|
901318
901323
|
this.context.errors.scope(Scope4.RequestBody);
|
|
901319
901324
|
if (request7.body != null) {
|
|
901320
|
-
|
|
901325
|
+
const bodyArg = this.getEndpointMethodBodyRequestArg({ body: request7.body, value: snippet.requestBody });
|
|
901326
|
+
if (!bodyArg.value.isNop()) {
|
|
901327
|
+
args.push(bodyArg);
|
|
901328
|
+
}
|
|
901321
901329
|
}
|
|
901322
901330
|
this.context.errors.unscope();
|
|
901323
901331
|
return args;
|
|
@@ -901331,6 +901339,9 @@ var EndpointSnippetGenerator8 = class {
|
|
|
901331
901339
|
value: this.getBytesBodyRequestArg({ value: value2 })
|
|
901332
901340
|
});
|
|
901333
901341
|
case "typeReference":
|
|
901342
|
+
if (body.value.type === "optional" && value2 == null) {
|
|
901343
|
+
return swift_exports.functionArgument({ label: "request", value: swift_exports.Expression.nop() });
|
|
901344
|
+
}
|
|
901334
901345
|
return swift_exports.functionArgument({
|
|
901335
901346
|
label: "request",
|
|
901336
901347
|
value: this.context.dynamicTypeLiteralMapper.convert({
|
|
@@ -917855,7 +917866,7 @@ function getAutomationContextFromEnv() {
|
|
|
917855
917866
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
917856
917867
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
917857
917868
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
917858
|
-
cli_version: "5.23.3-
|
|
917869
|
+
cli_version: "5.23.3-795-gcd72613f3c2"
|
|
917859
917870
|
};
|
|
917860
917871
|
}
|
|
917861
917872
|
function isAutomationMode() {
|
|
@@ -918681,7 +918692,7 @@ var CliContext = class _CliContext {
|
|
|
918681
918692
|
if (false) {
|
|
918682
918693
|
this.logger.error("CLI_VERSION is not defined");
|
|
918683
918694
|
}
|
|
918684
|
-
return "5.23.3-
|
|
918695
|
+
return "5.23.3-795-gcd72613f3c2";
|
|
918685
918696
|
}
|
|
918686
918697
|
getCliName() {
|
|
918687
918698
|
if (false) {
|
package/package.json
CHANGED