Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fdy/faraday-js

Package Overview
Dependencies
Maintainers
0
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fdy/faraday-js - npm Package Compare versions

Comparing version 0.1.191 to 0.1.192

7

CHANGELOG.md

@@ -13,2 +13,9 @@ # Changelog

## [0.10.30] - 2024-09-04
### Added
- `GET /traits.csv` to return information about all traits the user has access to, in csv form.
- `GET /traits` and `GET /traits/{id}` added `tier` and `permissions` for each trait.
## [0.10.29] - 2024-08-30

@@ -15,0 +22,0 @@

@@ -111,2 +111,12 @@ /**

/**
* Get a csv of all available traits, including those provided by Faraday and those defined by the user.
* List all user-defined and Faraday-provided traits, in csv form
*/
private getTraitsCsvRaw;
/**
* Get a csv of all available traits, including those provided by Faraday and those defined by the user.
* List all user-defined and Faraday-provided traits, in csv form
*/
getTraitsCsv(): Promise<string>;
/**
* Unarchive a trait

@@ -113,0 +123,0 @@ * Unarchive a trait

@@ -287,2 +287,36 @@ "use strict";

/**
* Get a csv of all available traits, including those provided by Faraday and those defined by the user.
* List all user-defined and Faraday-provided traits, in csv form
*/
getTraitsCsvRaw() {
return __awaiter(this, void 0, void 0, function* () {
const queryParameters = {};
const headerParameters = {};
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = yield token("bearer", []);
if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = yield this.request({
path: `/traits.csv`,
method: 'GET',
headers: headerParameters,
query: queryParameters,
});
return new runtime.TextApiResponse(response);
});
}
/**
* Get a csv of all available traits, including those provided by Faraday and those defined by the user.
* List all user-defined and Faraday-provided traits, in csv form
*/
getTraitsCsv() {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.getTraitsCsvRaw();
return yield response.value();
});
}
/**
* Unarchive a trait

@@ -289,0 +323,0 @@ * Unarchive a trait

23

dist/models/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TraitStatisticalType = exports.TraitCategory = exports.TargetTransformPresetReferenced = exports.TargetTransformPresetIdentified = exports.TargetTransformPresetHashed = exports.TargetTransformPresetAggregated = exports.TargetStructureTransformationAggregationEnum = exports.TargetLimitRowCountPutDirectionEnum = exports.TargetLimitRowCountPostDirectionEnum = exports.TargetLimitRowCountMergePatchDirectionEnum = exports.TargetLimitRowCountDirectionEnum = exports.TargetAggregateIdentified = exports.TargetAggregateGeographic = exports.ResourceType = exports.ResourceStatus = exports.RecencyOccurrence = exports.PrimitiveDataType = exports.OutcomeBiasMitigationStrategy = exports.OutcomeAnalysisBiasDataGenderProportionLevelEnum = exports.OutcomeAnalysisBiasDataAgeDistributionLevelEnum = exports.ModelingField = exports.LookupMatchType = exports.ErrorCode = exports.DatasetPutPrivacyEnum = exports.DatasetPostPrivacyEnum = exports.DatasetMergePatchPrivacyEnum = exports.DatasetPrivacyEnum = exports.DataMapColumnFormat = exports.ConnectionDirectionalityEnum = exports.ComplexDataTypeOneOfLogicalTypeEnum = void 0;
exports.TraitTier = exports.TraitStatisticalType = exports.TraitPermission = exports.TraitCategory = exports.TargetTransformPresetReferenced = exports.TargetTransformPresetIdentified = exports.TargetTransformPresetHashed = exports.TargetTransformPresetAggregated = exports.TargetStructureTransformationAggregationEnum = exports.TargetLimitRowCountPutDirectionEnum = exports.TargetLimitRowCountPostDirectionEnum = exports.TargetLimitRowCountMergePatchDirectionEnum = exports.TargetLimitRowCountDirectionEnum = exports.TargetAggregateIdentified = exports.TargetAggregateGeographic = exports.ResourceType = exports.ResourceStatus = exports.RecencyOccurrence = exports.PrimitiveDataType = exports.OutcomeBiasMitigationStrategy = exports.OutcomeAnalysisBiasDataGenderProportionLevelEnum = exports.OutcomeAnalysisBiasDataAgeDistributionLevelEnum = exports.ModelingField = exports.LookupMatchType = exports.ErrorCode = exports.DatasetPutPrivacyEnum = exports.DatasetPostPrivacyEnum = exports.DatasetMergePatchPrivacyEnum = exports.DatasetPrivacyEnum = exports.DataMapColumnFormat = exports.ConnectionDirectionalityEnum = exports.ComplexDataTypeOneOfLogicalTypeEnum = void 0;
/**

@@ -500,5 +500,16 @@ * @export

TraitCategory["FigSociety"] = "fig/society";
TraitCategory["FigFinancial"] = "fig/financial";
TraitCategory["UserDefined"] = "user_defined";
})(TraitCategory = exports.TraitCategory || (exports.TraitCategory = {}));
/**
* Where the account can use the trait.
* @export
* @enum {string}
*/
var TraitPermission;
(function (TraitPermission) {
TraitPermission["AddToScopePayload"] = "add_to_scope_payload";
TraitPermission["DefineCohort"] = "define_cohort";
})(TraitPermission = exports.TraitPermission || (exports.TraitPermission = {}));
/**
* A string describing the nature of data represented by the trait.

@@ -520,1 +531,11 @@ *

})(TraitStatisticalType = exports.TraitStatisticalType || (exports.TraitStatisticalType = {}));
/**
* A broad category describing the flavor of a trait.
* @export
* @enum {string}
*/
var TraitTier;
(function (TraitTier) {
TraitTier["Standard"] = "standard";
TraitTier["Premium"] = "premium";
})(TraitTier = exports.TraitTier || (exports.TraitTier = {}));

2

package.json
{
"name": "@fdy/faraday-js",
"version": "0.1.191",
"version": "0.1.192",
"description": "OpenAPI client for @fdy/faraday-js",

@@ -5,0 +5,0 @@ "author": "@hana.kslr",

@@ -339,2 +339,38 @@ /* tslint:disable */

/**
* Get a csv of all available traits, including those provided by Faraday and those defined by the user.
* List all user-defined and Faraday-provided traits, in csv form
*/
private async getTraitsCsvRaw(): Promise<runtime.ApiResponse<string>> {
const queryParameters: any = {};
const headerParameters: runtime.HTTPHeaders = {};
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("bearer", []);
if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = await this.request({
path: `/traits.csv`,
method: 'GET',
headers: headerParameters,
query: queryParameters,
});
return new runtime.TextApiResponse(response) as any;
}
/**
* Get a csv of all available traits, including those provided by Faraday and those defined by the user.
* List all user-defined and Faraday-provided traits, in csv form
*/
async getTraitsCsv(): Promise<string> {
const response = await this.getTraitsCsvRaw();
return await response.value();
}
/**
* Unarchive a trait

@@ -341,0 +377,0 @@ * Unarchive a trait

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc