Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion types/html-minifier-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"minimumTypeScriptVersion": "5.3",
"projects": [
"https://j9t.github.io/html-minifier-next"
"https://github.com/j9t/html-minifier-next"
],
"owners": [
{
Expand Down
1 change: 1 addition & 0 deletions types/invity-api/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ export interface ExchangeTradeQuoteRequest {
send: CryptoId; // bitcoin
receive: CryptoId; // litecoin
sendStringAmount?: string | undefined; // "0.01"
receiveAddress?: string; // user's address where they'll receive exchanged crypto
dex?: "enable" | "exclusively" | undefined; // 'enable' means add dex offers, 'exclusively' means only dex offers
}

Expand Down
10 changes: 9 additions & 1 deletion types/invity-api/invity-api-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
CryptoId,
ExchangeProviderInfo,
ExchangeTrade,
ExchangeTradeQuoteRequest,
ExchangeTradeSigned,
InfoResponse,
SellFiatTrade,
Expand Down Expand Up @@ -154,9 +155,16 @@ const exchangeSignatureRequest: CreateTradeSignatureRequestExchange = {
receiveSlip44: 2,
};

const exchangeTradeQuoteRequest: ConfirmExchangeTradeRequest = {
const exchangeTradeRequest: ConfirmExchangeTradeRequest = {
trade: et,
receiveAddress: "receiveAddress",
refundAddress: "refundAddress",
approvalFlow: true,
};

const exchangeTradeQuoteRequest: ExchangeTradeQuoteRequest = {
send: "bitcoin" as CryptoId,
receive: "ethereum" as CryptoId,
sendStringAmount: "0.1",
receiveAddress: "receiveAddress",
};
6 changes: 6 additions & 0 deletions types/mparticle__web-sdk/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,10 @@ interface SelectPlacements {
(options: RoktSelectPlacementsOptions): Promise<RoktSelection>;
}

interface Use {
(name: string): Promise<unknown>;
}

interface HashAttributes {
(attributes: RoktPartnerAttributes): Promise<Record<string, string>>;
}
Expand Down Expand Up @@ -556,6 +560,7 @@ export namespace Rokt {
const selectPlacements: SelectPlacements;
const hashAttributes: HashAttributes;
const setExtensionData: SetExtensionData;
const use: Use;
}

export interface IdentifyRequest {
Expand Down Expand Up @@ -817,6 +822,7 @@ declare class mParticleInstance {
selectPlacements: SelectPlacements;
hashAttributes: HashAttributes;
setExtensionData: SetExtensionData;
use: Use;
};
PromotionType: {
Unknown: PromotionType.Unknown;
Expand Down
2 changes: 2 additions & 0 deletions types/mparticle__web-sdk/test/mparticle__web-sdk-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ mParticle.Rokt.setExtensionData({
},
});

mParticle.Rokt.use("test-extension-name");

mParticle.ready(() => {
console.log("hi");
});
Expand Down