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

@refinableco/refinable-sdk

Package Overview
Dependencies
Maintainers
2
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@refinableco/refinable-sdk - npm Package Compare versions

Comparing version 1.2.5 to 1.3.0

50

lib/@types/graphql.d.ts

@@ -202,2 +202,8 @@ export declare type Maybe<T> = T | null;

}
export declare type Contract = {
__typename?: "Contract";
chainId: Scalars["Float"];
contractAddress: Scalars["String"];
contractId?: Maybe<Scalars["String"]>;
};
export declare type ContractCount = {

@@ -208,2 +214,6 @@ __typename?: "ContractCount";

};
export declare type ContractInput = {
chainId: Scalars["Float"];
contractAddress: Scalars["String"];
};
export declare type ContractOutput = {

@@ -293,4 +303,3 @@ __typename?: "ContractOutput";

backgroundColor: Scalars["String"];
chainId: Scalars["Float"];
contractAddress: Scalars["String"];
contracts: Array<ContractInput>;
customLinks?: Maybe<Array<CustomLinkInput>>;

@@ -652,2 +661,3 @@ description: Scalars["String"];

placeAuctionBid: Scalars["Boolean"];
refreshMetadata: Scalars["Boolean"];
reportItem: ItemReport;

@@ -698,2 +708,5 @@ updateNotificationSeenStatus: Notification;

};
export declare type MutationRefreshMetadataArgs = {
input: RefreshMetadataInput;
};
export declare type MutationReportItemArgs = {

@@ -862,3 +875,5 @@ input: ItemReportInput;

export declare type QueryCollectionArgs = {
slug: Scalars["String"];
chainId?: Maybe<Scalars["Int"]>;
contractAddress?: Maybe<Scalars["String"]>;
slug?: Maybe<Scalars["String"]>;
};

@@ -926,3 +941,4 @@ export declare type QueryCollectionMetadataValuesArgs = {

export declare type QueryStoreArgs = {
domain: Scalars["String"];
domain?: Maybe<Scalars["String"]>;
id?: Maybe<Scalars["String"]>;
isExternal?: Maybe<Scalars["Boolean"]>;

@@ -939,2 +955,8 @@ };

};
export declare type RefreshMetadataInput = {
chainId: Scalars["Int"];
contractAddress: Scalars["String"];
tokenId: Scalars["String"];
type: Scalars["String"];
};
export declare type RoyaltiesInput = {

@@ -983,4 +1005,3 @@ recipient: Scalars["String"];

backgroundColor: Scalars["String"];
chainId: Scalars["Float"];
contractAddress: Scalars["String"];
contracts: Array<Contract>;
creator: Scalars["String"];

@@ -995,3 +1016,5 @@ customLinks?: Maybe<Array<CustomLink>>;

fontFamily?: Maybe<Scalars["String"]>;
id: Scalars["String"];
instagram?: Maybe<Scalars["String"]>;
items: ItemsWithOffersResponse;
logo: Scalars["String"];

@@ -1008,2 +1031,7 @@ logoHeight?: Maybe<Scalars["Float"]>;

};
export declare type StoreItemsArgs = {
filter?: Maybe<CollectionMetadataFilterInput>;
paging: PagingInput;
sort?: Maybe<SortInput>;
};
export declare type Subscription = {

@@ -1116,4 +1144,3 @@ __typename?: "Subscription";

backgroundColor: Scalars["String"];
chainId: Scalars["Float"];
contractAddress: Scalars["String"];
contracts: Array<ContractInput>;
customLinks?: Maybe<Array<CustomLinkInput>>;

@@ -1735,2 +1762,9 @@ description: Scalars["String"];

};
export declare type RefreshMetadataMutationVariables = Exact<{
input: RefreshMetadataInput;
}>;
export declare type RefreshMetadataMutation = {
__typename?: "Mutation";
refreshMetadata: boolean;
};
export declare type UploadFileMutationVariables = Exact<{

@@ -1737,0 +1771,0 @@ file: Scalars["Upload"];

export declare const GET_USER_OFFER_ITEMS: string;
export declare const GET_USER_ITEMS: string;
export declare const REFRESH_METADATA: string;

5

lib/graphql/items.js

@@ -7,3 +7,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.GET_USER_ITEMS = exports.GET_USER_OFFER_ITEMS = void 0;
exports.REFRESH_METADATA = exports.GET_USER_ITEMS = exports.GET_USER_OFFER_ITEMS = void 0;
var graphql_request_1 = require("graphql-request");

@@ -13,3 +13,4 @@ var fragments_1 = require("./fragments");

exports.GET_USER_ITEMS = (0, graphql_request_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query getUserItems(\n $ethAddress: String!\n $filter: UserItemFilterInput!\n $paging: PagingInput!\n ) {\n user(ethAddress: $ethAddress) {\n id\n items(filter: $filter, paging: $paging) {\n edges {\n cursor\n node {\n ...userItems\n }\n }\n pageInfo {\n startCursor\n endCursor\n hasNextPage\n hasPreviousPage\n }\n totalCount\n }\n }\n }\n ", "\n"], ["\n query getUserItems(\n $ethAddress: String!\n $filter: UserItemFilterInput!\n $paging: PagingInput!\n ) {\n user(ethAddress: $ethAddress) {\n id\n items(filter: $filter, paging: $paging) {\n edges {\n cursor\n node {\n ...userItems\n }\n }\n pageInfo {\n startCursor\n endCursor\n hasNextPage\n hasPreviousPage\n }\n totalCount\n }\n }\n }\n ", "\n"])), fragments_1.UserItemsFragment);
var templateObject_1, templateObject_2;
exports.REFRESH_METADATA = (0, graphql_request_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation refreshMetadata($input: RefreshMetadataInput!) {\n refreshMetadata(input: $input)\n }\n"], ["\n mutation refreshMetadata($input: RefreshMetadataInput!) {\n refreshMetadata(input: $input)\n }\n"])));
var templateObject_1, templateObject_2, templateObject_3;
//# sourceMappingURL=items.js.map

@@ -66,2 +66,3 @@ import { TransactionResponse } from "@ethersproject/abstract-provider";

endAuction(auctionContractAddress: string, auctionId?: string, ownerEthAddress?: string): Promise<TransactionResponse>;
refreshMetadata(): Promise<boolean>;
airdrop(recipients: string[]): Promise<TransactionResponse>;

@@ -68,0 +69,0 @@ getBuyServiceFee(serviceFeeUserAddress: string, address: string): Promise<number>;

@@ -70,2 +70,3 @@ "use strict";

var sale_1 = require("../graphql/sale");
var items_1 = require("../graphql/items");
var chain_1 = require("../utils/chain");

@@ -373,2 +374,22 @@ var time_1 = require("../utils/time");

};
AbstractNFT.prototype.refreshMetadata = function () {
return __awaiter(this, void 0, void 0, function () {
var response;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.refinable.apiClient.request(items_1.REFRESH_METADATA, {
input: {
tokenId: this.item.tokenId,
contractAddress: this.item.contractAddress,
chainId: this.item.chainId,
type: this.type,
},
})];
case 1:
response = _a.sent();
return [2 /*return*/, response.refreshMetadata];
}
});
});
};
AbstractNFT.prototype.airdrop = function (recipients) {

@@ -375,0 +396,0 @@ return __awaiter(this, void 0, void 0, function () {

{
"name": "@refinableco/refinable-sdk",
"version": "1.2.5",
"version": "1.3.0",
"description": "The Refinable SDK allows you to easily interact with the Refinable Marketplace to mint, sell and buy NFTs",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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