anymal-protocol 1.0.88 → 1.0.90
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/dist/index.d.mts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -391,6 +391,28 @@ declare function useCreateOrganizationAppData(): (appId: string, pid: string, db
|
|
|
391
391
|
|
|
392
392
|
declare function useFetchBalance(): (publicClient: any, walletAddress: string, kibbleTokenAddress: string) => Promise<number | undefined>;
|
|
393
393
|
|
|
394
|
+
interface NotificationData {
|
|
395
|
+
anymalTxId: string;
|
|
396
|
+
title: string;
|
|
397
|
+
_group: NotificationEventData[];
|
|
398
|
+
createdAtUtc: number;
|
|
399
|
+
}
|
|
400
|
+
interface NotificationEventData {
|
|
401
|
+
_docID: string;
|
|
402
|
+
action: string | null;
|
|
403
|
+
anymalTxId: string;
|
|
404
|
+
id: string;
|
|
405
|
+
pid: string;
|
|
406
|
+
source: string;
|
|
407
|
+
tags: string[];
|
|
408
|
+
read: boolean;
|
|
409
|
+
text: string;
|
|
410
|
+
timeAddedUtc: number;
|
|
411
|
+
timeUpdatedUtc: number;
|
|
412
|
+
title: string;
|
|
413
|
+
type: string;
|
|
414
|
+
}
|
|
415
|
+
|
|
394
416
|
declare function useClaimActionReward(): (actionId: string, claimIndex: number, rewardableActionContractAddress: string, smartAccount: any, bundlerClient: any) => Promise<{
|
|
395
417
|
success: boolean;
|
|
396
418
|
message: string;
|
|
@@ -403,4 +425,4 @@ declare function useClaimOrgActionReward(): (orgContractAddress: string, rewarda
|
|
|
403
425
|
|
|
404
426
|
declare function useSubmitContractAction(): (idToken: string, pid: string, source: ActionSourceType, endpoint: string, payload: ActionPayload) => Promise<SubmitResponse> | undefined;
|
|
405
427
|
|
|
406
|
-
export { AUTH_API_ENDPOINTS, type ActionDefinition, type ActionPayload, type ActionRecord, ActionSourceType, ActionStatus, ActionType, type AnymalNftMetadataInputData, type AuthEnvelope, type ContractActionPayload, type CreateAnymalInputData, type ExternalActionPayload, type GraphQLActionPayload, type JWTOptions, type MarketplaceActionPayload, MarketplacePaymentType, NETWORK_HOSTS, Network, type SubmitResponse, type WishlistPurchaseActionPayload, convertToActionDefinition, convertToActionRecord, convertToMultipleActionDefinitions, convertToMultipleActionRecords, createAuthEnvelope, fetchAnymals, generateAppSignature, generateBytes32Nonce, generateJWT, loadExistingSecp256k1PrivateKey, serializePublicKeyCompressed, submitAction, useAddAnymalToDatabase, useApproveKibbleToken, useApproveOrgPartialPayment, useClaimActionReward, useClaimOrgActionReward, useCreateOrganizationAppData, useCreateOrganizationBase, useCreateUserAppData, useCreateWeb3Account, useDeleteAnymalFromDatabase, useFetchActionDefinitions, useFetchActions, useFetchAnymals, useFetchBalance, useFetchNotifications, useFetchUserData, useMintAnymalNFT, useProcessOrgPartialKibblePayment, useProcessPartialKibblePayment, useSaveAnymalMetadata, useSubmitContractAction, useUpdateAnymalWithNFT, useUpdateOrgWalletAddress, useUpdateUserAsVerified, useUpdateUserEmail, useUpdateUserName, useUpdateUserPid, useUploadAnymalImage, useVerifyAccount, useVerifyWeb3AuthSession };
|
|
428
|
+
export { AUTH_API_ENDPOINTS, type ActionDefinition, type ActionPayload, type ActionRecord, ActionSourceType, ActionStatus, ActionType, type AnymalNftMetadataInputData, type AuthEnvelope, type ContractActionPayload, type CreateAnymalInputData, type ExternalActionPayload, type GraphQLActionPayload, type JWTOptions, type MarketplaceActionPayload, MarketplacePaymentType, NETWORK_HOSTS, Network, type NotificationData, type NotificationEventData, type SubmitResponse, type WishlistPurchaseActionPayload, convertToActionDefinition, convertToActionRecord, convertToMultipleActionDefinitions, convertToMultipleActionRecords, createAuthEnvelope, fetchAnymals, generateAppSignature, generateBytes32Nonce, generateJWT, loadExistingSecp256k1PrivateKey, serializePublicKeyCompressed, submitAction, useAddAnymalToDatabase, useApproveKibbleToken, useApproveOrgPartialPayment, useClaimActionReward, useClaimOrgActionReward, useCreateOrganizationAppData, useCreateOrganizationBase, useCreateUserAppData, useCreateWeb3Account, useDeleteAnymalFromDatabase, useFetchActionDefinitions, useFetchActions, useFetchAnymals, useFetchBalance, useFetchNotifications, useFetchUserData, useMintAnymalNFT, useProcessOrgPartialKibblePayment, useProcessPartialKibblePayment, useSaveAnymalMetadata, useSubmitContractAction, useUpdateAnymalWithNFT, useUpdateOrgWalletAddress, useUpdateUserAsVerified, useUpdateUserEmail, useUpdateUserName, useUpdateUserPid, useUploadAnymalImage, useVerifyAccount, useVerifyWeb3AuthSession };
|
package/dist/index.d.ts
CHANGED
|
@@ -391,6 +391,28 @@ declare function useCreateOrganizationAppData(): (appId: string, pid: string, db
|
|
|
391
391
|
|
|
392
392
|
declare function useFetchBalance(): (publicClient: any, walletAddress: string, kibbleTokenAddress: string) => Promise<number | undefined>;
|
|
393
393
|
|
|
394
|
+
interface NotificationData {
|
|
395
|
+
anymalTxId: string;
|
|
396
|
+
title: string;
|
|
397
|
+
_group: NotificationEventData[];
|
|
398
|
+
createdAtUtc: number;
|
|
399
|
+
}
|
|
400
|
+
interface NotificationEventData {
|
|
401
|
+
_docID: string;
|
|
402
|
+
action: string | null;
|
|
403
|
+
anymalTxId: string;
|
|
404
|
+
id: string;
|
|
405
|
+
pid: string;
|
|
406
|
+
source: string;
|
|
407
|
+
tags: string[];
|
|
408
|
+
read: boolean;
|
|
409
|
+
text: string;
|
|
410
|
+
timeAddedUtc: number;
|
|
411
|
+
timeUpdatedUtc: number;
|
|
412
|
+
title: string;
|
|
413
|
+
type: string;
|
|
414
|
+
}
|
|
415
|
+
|
|
394
416
|
declare function useClaimActionReward(): (actionId: string, claimIndex: number, rewardableActionContractAddress: string, smartAccount: any, bundlerClient: any) => Promise<{
|
|
395
417
|
success: boolean;
|
|
396
418
|
message: string;
|
|
@@ -403,4 +425,4 @@ declare function useClaimOrgActionReward(): (orgContractAddress: string, rewarda
|
|
|
403
425
|
|
|
404
426
|
declare function useSubmitContractAction(): (idToken: string, pid: string, source: ActionSourceType, endpoint: string, payload: ActionPayload) => Promise<SubmitResponse> | undefined;
|
|
405
427
|
|
|
406
|
-
export { AUTH_API_ENDPOINTS, type ActionDefinition, type ActionPayload, type ActionRecord, ActionSourceType, ActionStatus, ActionType, type AnymalNftMetadataInputData, type AuthEnvelope, type ContractActionPayload, type CreateAnymalInputData, type ExternalActionPayload, type GraphQLActionPayload, type JWTOptions, type MarketplaceActionPayload, MarketplacePaymentType, NETWORK_HOSTS, Network, type SubmitResponse, type WishlistPurchaseActionPayload, convertToActionDefinition, convertToActionRecord, convertToMultipleActionDefinitions, convertToMultipleActionRecords, createAuthEnvelope, fetchAnymals, generateAppSignature, generateBytes32Nonce, generateJWT, loadExistingSecp256k1PrivateKey, serializePublicKeyCompressed, submitAction, useAddAnymalToDatabase, useApproveKibbleToken, useApproveOrgPartialPayment, useClaimActionReward, useClaimOrgActionReward, useCreateOrganizationAppData, useCreateOrganizationBase, useCreateUserAppData, useCreateWeb3Account, useDeleteAnymalFromDatabase, useFetchActionDefinitions, useFetchActions, useFetchAnymals, useFetchBalance, useFetchNotifications, useFetchUserData, useMintAnymalNFT, useProcessOrgPartialKibblePayment, useProcessPartialKibblePayment, useSaveAnymalMetadata, useSubmitContractAction, useUpdateAnymalWithNFT, useUpdateOrgWalletAddress, useUpdateUserAsVerified, useUpdateUserEmail, useUpdateUserName, useUpdateUserPid, useUploadAnymalImage, useVerifyAccount, useVerifyWeb3AuthSession };
|
|
428
|
+
export { AUTH_API_ENDPOINTS, type ActionDefinition, type ActionPayload, type ActionRecord, ActionSourceType, ActionStatus, ActionType, type AnymalNftMetadataInputData, type AuthEnvelope, type ContractActionPayload, type CreateAnymalInputData, type ExternalActionPayload, type GraphQLActionPayload, type JWTOptions, type MarketplaceActionPayload, MarketplacePaymentType, NETWORK_HOSTS, Network, type NotificationData, type NotificationEventData, type SubmitResponse, type WishlistPurchaseActionPayload, convertToActionDefinition, convertToActionRecord, convertToMultipleActionDefinitions, convertToMultipleActionRecords, createAuthEnvelope, fetchAnymals, generateAppSignature, generateBytes32Nonce, generateJWT, loadExistingSecp256k1PrivateKey, serializePublicKeyCompressed, submitAction, useAddAnymalToDatabase, useApproveKibbleToken, useApproveOrgPartialPayment, useClaimActionReward, useClaimOrgActionReward, useCreateOrganizationAppData, useCreateOrganizationBase, useCreateUserAppData, useCreateWeb3Account, useDeleteAnymalFromDatabase, useFetchActionDefinitions, useFetchActions, useFetchAnymals, useFetchBalance, useFetchNotifications, useFetchUserData, useMintAnymalNFT, useProcessOrgPartialKibblePayment, useProcessPartialKibblePayment, useSaveAnymalMetadata, useSubmitContractAction, useUpdateAnymalWithNFT, useUpdateOrgWalletAddress, useUpdateUserAsVerified, useUpdateUserEmail, useUpdateUserName, useUpdateUserPid, useUploadAnymalImage, useVerifyAccount, useVerifyWeb3AuthSession };
|
package/dist/index.js
CHANGED
|
@@ -2552,6 +2552,12 @@ function useSubmitContractAction() {
|
|
|
2552
2552
|
if (isWishlistPurchaseAction(payload)) {
|
|
2553
2553
|
sourceTypePayload = {
|
|
2554
2554
|
...basisType,
|
|
2555
|
+
orderId: payload.orderId,
|
|
2556
|
+
totalSpent: payload.totalSpent,
|
|
2557
|
+
paymentTxId: payload.paymentTxId,
|
|
2558
|
+
paymentSource: payload.paymentSource,
|
|
2559
|
+
kibblePaymentTxId: payload.kibblePaymentTxId,
|
|
2560
|
+
lineItems: payload.lineItems || [],
|
|
2555
2561
|
wishlistId: payload.wishlistId
|
|
2556
2562
|
};
|
|
2557
2563
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2409,6 +2409,12 @@ function useSubmitContractAction() {
|
|
|
2409
2409
|
if (isWishlistPurchaseAction(payload)) {
|
|
2410
2410
|
sourceTypePayload = {
|
|
2411
2411
|
...basisType,
|
|
2412
|
+
orderId: payload.orderId,
|
|
2413
|
+
totalSpent: payload.totalSpent,
|
|
2414
|
+
paymentTxId: payload.paymentTxId,
|
|
2415
|
+
paymentSource: payload.paymentSource,
|
|
2416
|
+
kibblePaymentTxId: payload.kibblePaymentTxId,
|
|
2417
|
+
lineItems: payload.lineItems || [],
|
|
2412
2418
|
wishlistId: payload.wishlistId
|
|
2413
2419
|
};
|
|
2414
2420
|
}
|
package/package.json
CHANGED