@fern-api/fern-api-dev 3.45.0 → 3.46.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 +59 -5
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -1420087,7 +1420087,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1420087
1420087
|
properties: {
|
|
1420088
1420088
|
...event,
|
|
1420089
1420089
|
...event.properties,
|
|
1420090
|
-
version: "3.
|
|
1420090
|
+
version: "3.46.0",
|
|
1420091
1420091
|
usingAccessToken: true
|
|
1420092
1420092
|
}
|
|
1420093
1420093
|
});
|
|
@@ -1420186,7 +1420186,7 @@ var UserPosthogManager = class {
|
|
|
1420186
1420186
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1420187
1420187
|
event: "CLI",
|
|
1420188
1420188
|
properties: {
|
|
1420189
|
-
version: "3.
|
|
1420189
|
+
version: "3.46.0",
|
|
1420190
1420190
|
...event,
|
|
1420191
1420191
|
...event.properties,
|
|
1420192
1420192
|
usingAccessToken: false,
|
|
@@ -1499559,7 +1499559,7 @@ var CliContext = class {
|
|
|
1499559
1499559
|
if (false) {
|
|
1499560
1499560
|
this.logger.error("CLI_VERSION is not defined");
|
|
1499561
1499561
|
}
|
|
1499562
|
-
return "3.
|
|
1499562
|
+
return "3.46.0";
|
|
1499563
1499563
|
}
|
|
1499564
1499564
|
getCliName() {
|
|
1499565
1499565
|
if (false) {
|
|
@@ -1583842,7 +1583842,7 @@ function convertWebhookGroup2(webhookGroup) {
|
|
|
1583842
1583842
|
type: convertTypeReference(header.valueType),
|
|
1583843
1583843
|
availability: convertIrAvailability(header.availability)
|
|
1583844
1583844
|
})),
|
|
1583845
|
-
payload:
|
|
1583845
|
+
payload: convertWebhookPayloadWithFileUpload(webhook.payload, webhook.fileUploadPayload),
|
|
1583846
1583846
|
examples: webhookExamples,
|
|
1583847
1583847
|
responses: webhook.responses?.map(convertResponse2).filter(isNonNullish)
|
|
1583848
1583848
|
};
|
|
@@ -1584822,6 +1584822,60 @@ function convertHttpEndpointExample({ userSpecifiedExample, autogeneratedExample
|
|
|
1584822
1584822
|
})).filter(isNonNullish)
|
|
1584823
1584823
|
};
|
|
1584824
1584824
|
}
|
|
1584825
|
+
function convertWebhookPayloadWithFileUpload(irWebhookPayload, fileUploadPayload) {
|
|
1584826
|
+
if (fileUploadPayload != null) {
|
|
1584827
|
+
return {
|
|
1584828
|
+
type: {
|
|
1584829
|
+
type: "formData",
|
|
1584830
|
+
name: fileUploadPayload.name.originalName,
|
|
1584831
|
+
description: fileUploadPayload.docs ?? void 0,
|
|
1584832
|
+
availability: void 0,
|
|
1584833
|
+
properties: fileUploadPayload.properties.map((property10) => {
|
|
1584834
|
+
return property10._visit({
|
|
1584835
|
+
file: (file) => {
|
|
1584836
|
+
const fileValue = file._visit({
|
|
1584837
|
+
file: (singleFile) => ({
|
|
1584838
|
+
type: "file",
|
|
1584839
|
+
key: FdrAPI_exports.PropertyKey(singleFile.key.wireValue),
|
|
1584840
|
+
isOptional: singleFile.isOptional,
|
|
1584841
|
+
contentType: singleFile.contentType,
|
|
1584842
|
+
description: singleFile.docs ?? void 0,
|
|
1584843
|
+
availability: void 0
|
|
1584844
|
+
}),
|
|
1584845
|
+
fileArray: (multipleFiles) => ({
|
|
1584846
|
+
type: "fileArray",
|
|
1584847
|
+
key: FdrAPI_exports.PropertyKey(multipleFiles.key.wireValue),
|
|
1584848
|
+
isOptional: multipleFiles.isOptional,
|
|
1584849
|
+
contentType: multipleFiles.contentType,
|
|
1584850
|
+
description: multipleFiles.docs ?? void 0,
|
|
1584851
|
+
availability: void 0
|
|
1584852
|
+
}),
|
|
1584853
|
+
_other: () => void 0
|
|
1584854
|
+
});
|
|
1584855
|
+
if (fileValue == null) {
|
|
1584856
|
+
return;
|
|
1584857
|
+
}
|
|
1584858
|
+
return { type: "file", value: fileValue };
|
|
1584859
|
+
},
|
|
1584860
|
+
bodyProperty: (bodyProperty) => ({
|
|
1584861
|
+
type: "bodyProperty",
|
|
1584862
|
+
key: FdrAPI_exports.PropertyKey(bodyProperty.name.wireValue),
|
|
1584863
|
+
valueType: convertTypeReference(bodyProperty.valueType),
|
|
1584864
|
+
contentType: bodyProperty.contentType,
|
|
1584865
|
+
description: bodyProperty.docs ?? void 0,
|
|
1584866
|
+
availability: convertIrAvailability(bodyProperty.availability),
|
|
1584867
|
+
exploded: bodyProperty.style === "exploded",
|
|
1584868
|
+
propertyAccess: void 0
|
|
1584869
|
+
}),
|
|
1584870
|
+
_other: () => void 0
|
|
1584871
|
+
});
|
|
1584872
|
+
}).filter(isNonNullish)
|
|
1584873
|
+
},
|
|
1584874
|
+
description: fileUploadPayload.docs ?? void 0
|
|
1584875
|
+
};
|
|
1584876
|
+
}
|
|
1584877
|
+
return convertWebhookPayload(irWebhookPayload);
|
|
1584878
|
+
}
|
|
1584825
1584879
|
function convertWebhookPayload(irWebhookPayload) {
|
|
1584826
1584880
|
switch (irWebhookPayload.type) {
|
|
1584827
1584881
|
case "inlinedPayload":
|
|
@@ -1595426,7 +1595480,7 @@ var import_path37 = __toESM(require("path"), 1);
|
|
|
1595426
1595480
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
1595427
1595481
|
var LOGS_FOLDER_NAME = "logs";
|
|
1595428
1595482
|
function getCliSource() {
|
|
1595429
|
-
const version6 = "3.
|
|
1595483
|
+
const version6 = "3.46.0";
|
|
1595430
1595484
|
return `cli@${version6}`;
|
|
1595431
1595485
|
}
|
|
1595432
1595486
|
var DebugLogger = class {
|
package/package.json
CHANGED