@notifi-network/notifi-frontend-client
Advanced tools
Comparing version 0.31.1-alpha.21 to 0.31.1-alpha.22
@@ -18,2 +18,7 @@ import { Types, Operations } from '@notifi-network/notifi-graphql'; | ||
declare type NotifiFrontendConfiguration = NotifiSolanaConfiguration | NotifiAptosConfiguration; | ||
declare const newAptosConfig: (account: Readonly<{ | ||
address: string; | ||
publicKey: string; | ||
}>, tenantId: string, env?: NotifiEnvironment | undefined) => NotifiAptosConfiguration; | ||
declare const envUrl: (env: NotifiEnvironment) => string; | ||
@@ -164,2 +169,2 @@ declare const notNullOrEmpty: <T>(item: T | null | undefined) => item is T; | ||
export { Authorization, AuthorizationStorage, CreateFunc, EnsureSourceParams, EnsureWebhookParams, FetchFunc, GetStorageType, HasStorageType, IdentifyFunc, NotifiAptosConfiguration, NotifiEnvironment, NotifiEnvironmentConfiguration, NotifiFrontendConfiguration, NotifiFrontendStorage, NotifiSolanaConfiguration, NotifiStorage, Roles, RolesStorage, SetStorageType, StorageDriver, StorageType, ValueTransformFunc, createLocalForageStorageDriver, ensureBonfidaAuctionSource, ensureEmail, ensureMetaplexAuctionSource, ensureSms, ensureSource, ensureSourceGroup, ensureSourceRaw, ensureTelegram, ensureWebhook, notNullOrEmpty, packFilterOptions }; | ||
export { Authorization, AuthorizationStorage, CreateFunc, EnsureSourceParams, EnsureWebhookParams, FetchFunc, GetStorageType, HasStorageType, IdentifyFunc, NotifiAptosConfiguration, NotifiEnvironment, NotifiEnvironmentConfiguration, NotifiFrontendConfiguration, NotifiFrontendStorage, NotifiSolanaConfiguration, NotifiStorage, Roles, RolesStorage, SetStorageType, StorageDriver, StorageType, ValueTransformFunc, createLocalForageStorageDriver, ensureBonfidaAuctionSource, ensureEmail, ensureMetaplexAuctionSource, ensureSms, ensureSource, ensureSourceGroup, ensureSourceRaw, ensureTelegram, ensureWebhook, envUrl, newAptosConfig, notNullOrEmpty, packFilterOptions }; |
@@ -40,2 +40,4 @@ "use strict"; | ||
ensureWebhook: () => ensureWebhook, | ||
envUrl: () => envUrl, | ||
newAptosConfig: () => newAptosConfig, | ||
notNullOrEmpty: () => notNullOrEmpty, | ||
@@ -46,2 +48,25 @@ packFilterOptions: () => packFilterOptions | ||
// lib/configuration/NotifiFrontendConfiguration.ts | ||
var newAptosConfig = (account, tenantId, env = "Development") => { | ||
return { | ||
tenantId, | ||
env, | ||
walletBlockchain: "APTOS", | ||
authenticationKey: account.publicKey, | ||
accountAddress: account.address | ||
}; | ||
}; | ||
var envUrl = (env) => { | ||
switch (env) { | ||
case "Development": | ||
return "https://api.dev.notifi.network/gql"; | ||
case "Local": | ||
return "https://localhost:5001/gql"; | ||
case "Production": | ||
return "https://api.notifi.network/gql"; | ||
case "Staging": | ||
return "https://api.stg.notifi.network/gql"; | ||
} | ||
}; | ||
// lib/utils/notNullOrEmpty.ts | ||
@@ -348,4 +373,6 @@ var notNullOrEmpty = (item) => { | ||
ensureWebhook, | ||
envUrl, | ||
newAptosConfig, | ||
notNullOrEmpty, | ||
packFilterOptions | ||
}); |
@@ -56,5 +56,6 @@ import type { FilterOptions } from '@notifi-network/notifi-core'; | ||
private _storage: NotifiStorage, | ||
private _clientRandomUuid: string | null = null, | ||
) {} | ||
private _clientRandomUuid: string | null = null; | ||
async logIn( | ||
@@ -61,0 +62,0 @@ signMessageParams: SignMessageParams, |
@@ -28,1 +28,31 @@ export type NotifiEnvironment = | ||
| NotifiAptosConfiguration; | ||
export const newAptosConfig = ( | ||
account: Readonly<{ | ||
address: string; | ||
publicKey: string; | ||
}>, | ||
tenantId: string, | ||
env: NotifiEnvironment | undefined = 'Development', | ||
): NotifiAptosConfiguration => { | ||
return { | ||
tenantId, | ||
env, | ||
walletBlockchain: 'APTOS', | ||
authenticationKey: account.publicKey, | ||
accountAddress: account.address, | ||
}; | ||
}; | ||
export const envUrl = (env: NotifiEnvironment): string => { | ||
switch (env) { | ||
case 'Development': | ||
return 'https://api.dev.notifi.network/gql'; | ||
case 'Local': | ||
return 'https://localhost:5001/gql'; | ||
case 'Production': | ||
return 'https://api.notifi.network/gql'; | ||
case 'Staging': | ||
return 'https://api.stg.notifi.network/gql'; | ||
} | ||
}; |
{ | ||
"name": "@notifi-network/notifi-frontend-client", | ||
"version": "0.31.1-alpha.21+ca3ade1", | ||
"version": "0.31.1-alpha.22+e99674a", | ||
"description": "The frontend client for Notifi", | ||
@@ -36,6 +36,7 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"@notifi-network/notifi-graphql": "^0.31.1-alpha.21+ca3ade1", | ||
"@notifi-network/notifi-graphql": "^0.31.1-alpha.22+e99674a", | ||
"graphql-request": "^5.0.0", | ||
"localforage": "^1.10.0" | ||
}, | ||
"gitHead": "ca3ade1398839b396add6b818f0982c0dccba3ef" | ||
"gitHead": "e99674a97b743bdc3eac048f9b1b3bfa691e668e" | ||
} |
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
61718
22
1730
3