@fern-api/fern-api-dev 4.79.0-1-g7cc8d6587dd → 4.79.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/cli.cjs +9 -46
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -14364,7 +14364,7 @@ var require_utils3 = __commonJS({
|
|
|
14364
14364
|
field5.resolve = wrapFieldResolver(tracer, getConfig, field5.resolve);
|
|
14365
14365
|
}
|
|
14366
14366
|
if (field5.type) {
|
|
14367
|
-
const unwrappedTypes =
|
|
14367
|
+
const unwrappedTypes = unwrapType(field5.type);
|
|
14368
14368
|
for (const unwrappedType of unwrappedTypes) {
|
|
14369
14369
|
wrapFields(unwrappedType, tracer, getConfig);
|
|
14370
14370
|
}
|
|
@@ -14372,9 +14372,9 @@ var require_utils3 = __commonJS({
|
|
|
14372
14372
|
});
|
|
14373
14373
|
}
|
|
14374
14374
|
exports2.wrapFields = wrapFields;
|
|
14375
|
-
function
|
|
14375
|
+
function unwrapType(type8) {
|
|
14376
14376
|
if ("ofType" in type8) {
|
|
14377
|
-
return
|
|
14377
|
+
return unwrapType(type8.ofType);
|
|
14378
14378
|
}
|
|
14379
14379
|
if (isGraphQLUnionType(type8)) {
|
|
14380
14380
|
return type8.getTypes();
|
|
@@ -522460,10 +522460,9 @@ function buildEndpointExample({ endpointExample, context: context3 }) {
|
|
|
522460
522460
|
if (endpointHeaderNames.has(header)) {
|
|
522461
522461
|
continue;
|
|
522462
522462
|
}
|
|
522463
|
-
const headerType = info != null && typeof info === "object" ? info.type : typeof info === "string" ? info : void 0;
|
|
522464
522463
|
namedFullExamples.push({
|
|
522465
522464
|
name: header,
|
|
522466
|
-
value: FullExample.primitive(
|
|
522465
|
+
value: FullExample.primitive(PrimitiveExample.string(header))
|
|
522467
522466
|
});
|
|
522468
522467
|
}
|
|
522469
522468
|
example.headers = convertHeaderExamples2({
|
|
@@ -522519,42 +522518,6 @@ function convertQueryParameterExample2(namedFullExamples) {
|
|
|
522519
522518
|
});
|
|
522520
522519
|
return result;
|
|
522521
522520
|
}
|
|
522522
|
-
function unwrapType(type8) {
|
|
522523
|
-
if (type8 == null) {
|
|
522524
|
-
return void 0;
|
|
522525
|
-
}
|
|
522526
|
-
const match3 = type8.match(/^(?:optional|nullable)<(.+)>$/);
|
|
522527
|
-
return match3 != null ? unwrapType(match3[1]) : type8;
|
|
522528
|
-
}
|
|
522529
|
-
function buildPrimitiveExampleForType(headerType, headerName) {
|
|
522530
|
-
switch (headerType) {
|
|
522531
|
-
case "integer":
|
|
522532
|
-
case "int":
|
|
522533
|
-
return PrimitiveExample.int(0);
|
|
522534
|
-
case "int64":
|
|
522535
|
-
case "long":
|
|
522536
|
-
return PrimitiveExample.int64(0);
|
|
522537
|
-
case "uint":
|
|
522538
|
-
return PrimitiveExample.uint(0);
|
|
522539
|
-
case "uint64":
|
|
522540
|
-
return PrimitiveExample.uint64(0);
|
|
522541
|
-
case "float":
|
|
522542
|
-
return PrimitiveExample.float(0);
|
|
522543
|
-
case "double":
|
|
522544
|
-
return PrimitiveExample.double(0);
|
|
522545
|
-
case "boolean":
|
|
522546
|
-
return PrimitiveExample.boolean(true);
|
|
522547
|
-
case "date":
|
|
522548
|
-
return PrimitiveExample.date("2024-01-01");
|
|
522549
|
-
case "date-time":
|
|
522550
|
-
case "datetime":
|
|
522551
|
-
return PrimitiveExample.datetime("2024-01-01T00:00:00Z");
|
|
522552
|
-
case "base64":
|
|
522553
|
-
return PrimitiveExample.base64("SGVsbG8=");
|
|
522554
|
-
default:
|
|
522555
|
-
return PrimitiveExample.string(headerName);
|
|
522556
|
-
}
|
|
522557
|
-
}
|
|
522558
522521
|
function convertHeaderExamples2({ context: context3, namedFullExamples }) {
|
|
522559
522522
|
const result = {};
|
|
522560
522523
|
namedFullExamples.forEach((namedFullExample) => {
|
|
@@ -622228,7 +622191,7 @@ var AccessTokenPosthogManager = class {
|
|
|
622228
622191
|
properties: {
|
|
622229
622192
|
...event,
|
|
622230
622193
|
...event.properties,
|
|
622231
|
-
version: "4.79.0
|
|
622194
|
+
version: "4.79.0",
|
|
622232
622195
|
usingAccessToken: true
|
|
622233
622196
|
}
|
|
622234
622197
|
});
|
|
@@ -622282,7 +622245,7 @@ var UserPosthogManager = class {
|
|
|
622282
622245
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
622283
622246
|
event: "CLI",
|
|
622284
622247
|
properties: {
|
|
622285
|
-
version: "4.79.0
|
|
622248
|
+
version: "4.79.0",
|
|
622286
622249
|
...event,
|
|
622287
622250
|
...event.properties,
|
|
622288
622251
|
usingAccessToken: false,
|
|
@@ -839509,7 +839472,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
839509
839472
|
var LOGS_FOLDER_NAME = "logs";
|
|
839510
839473
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
839511
839474
|
function getCliSource() {
|
|
839512
|
-
const version7 = "4.79.0
|
|
839475
|
+
const version7 = "4.79.0";
|
|
839513
839476
|
return `cli@${version7}`;
|
|
839514
839477
|
}
|
|
839515
839478
|
var DebugLogger = class {
|
|
@@ -850838,7 +850801,7 @@ var LegacyDocsPublisher = class {
|
|
|
850838
850801
|
previewId,
|
|
850839
850802
|
disableTemplates: void 0,
|
|
850840
850803
|
skipUpload,
|
|
850841
|
-
cliVersion: "4.79.0
|
|
850804
|
+
cliVersion: "4.79.0"
|
|
850842
850805
|
});
|
|
850843
850806
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
850844
850807
|
return { success: false };
|
|
@@ -925911,7 +925874,7 @@ var CliContext = class _CliContext {
|
|
|
925911
925874
|
if (false) {
|
|
925912
925875
|
this.logger.error("CLI_VERSION is not defined");
|
|
925913
925876
|
}
|
|
925914
|
-
return "4.79.0
|
|
925877
|
+
return "4.79.0";
|
|
925915
925878
|
}
|
|
925916
925879
|
getCliName() {
|
|
925917
925880
|
if (false) {
|
package/package.json
CHANGED