@basedone/core 0.2.7 → 0.2.8
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/{chunk-L63E7FZC.mjs → chunk-NKSQEISP.mjs} +17 -1
- package/dist/{client-CgmiTuEX.d.mts → client-DMVXX1Gw.d.mts} +5 -2
- package/dist/{client-CgmiTuEX.d.ts → client-DMVXX1Gw.d.ts} +5 -2
- package/dist/ecommerce.d.mts +74 -1
- package/dist/ecommerce.d.ts +74 -1
- package/dist/ecommerce.js +18 -0
- package/dist/ecommerce.mjs +1 -2
- package/dist/index.d.mts +4 -160
- package/dist/index.d.ts +4 -160
- package/dist/index.js +154 -41445
- package/dist/index.mjs +115 -640
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.mjs +0 -1
- package/lib/ecommerce/types/entities.ts +56 -0
- package/lib/ecommerce/types/enums.ts +32 -0
- package/lib/ecommerce/types/requests.ts +2 -0
- package/lib/hip3/market-info.ts +5 -1
- package/lib/hip3/utils.ts +2 -0
- package/lib/meta/metadata.ts +0 -666
- package/package.json +1 -1
- package/dist/chunk-4UEJOM6W.mjs +0 -7
- package/dist/meta-JB5ITE27.mjs +0 -1390
- package/dist/meta-UOGUG3OW.mjs +0 -1504
- package/dist/perpDexs-3LRJ5ZHM.mjs +0 -288
- package/dist/perpDexs-4ISLD7NX.mjs +0 -2975
- package/dist/spotMeta-GHXX7C5M.mjs +0 -6968
- package/dist/spotMeta-IBBUP2SG.mjs +0 -27592
- package/dist/staticMeta-GM7T3OYL.mjs +0 -20
- package/dist/staticMeta-QV2KMX57.mjs +0 -22
package/dist/react.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { SpotMeta } from '@nktkas/hyperliquid';
|
|
4
|
-
import { A as AllPerpsMeta, I as InstrumentClient } from './client-
|
|
4
|
+
import { A as AllPerpsMeta, I as InstrumentClient } from './client-DMVXX1Gw.mjs';
|
|
5
5
|
|
|
6
6
|
interface InstrumentsProviderProps {
|
|
7
7
|
spotMeta: SpotMeta;
|
package/dist/react.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { SpotMeta } from '@nktkas/hyperliquid';
|
|
4
|
-
import { A as AllPerpsMeta, I as InstrumentClient } from './client-
|
|
4
|
+
import { A as AllPerpsMeta, I as InstrumentClient } from './client-DMVXX1Gw.js';
|
|
5
5
|
|
|
6
6
|
interface InstrumentsProviderProps {
|
|
7
7
|
spotMeta: SpotMeta;
|
package/dist/react.mjs
CHANGED
|
@@ -9,6 +9,8 @@ import {
|
|
|
9
9
|
PaymentMethod,
|
|
10
10
|
PaymentStatus,
|
|
11
11
|
MerchantStatus,
|
|
12
|
+
MerchantBusinessType,
|
|
13
|
+
MerchantReturnPolicyType,
|
|
12
14
|
ShipmentStatus,
|
|
13
15
|
ReturnStatus,
|
|
14
16
|
ReviewStatus,
|
|
@@ -127,6 +129,22 @@ export interface ProductVariant extends BaseEntity {
|
|
|
127
129
|
sortOrder: number;
|
|
128
130
|
}
|
|
129
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Social links for merchant profile
|
|
134
|
+
*/
|
|
135
|
+
export interface MerchantSocialLinks {
|
|
136
|
+
/** Twitter/X profile URL */
|
|
137
|
+
twitter?: string | null;
|
|
138
|
+
/** Instagram profile URL */
|
|
139
|
+
instagram?: string | null;
|
|
140
|
+
/** Facebook page URL */
|
|
141
|
+
facebook?: string | null;
|
|
142
|
+
/** Discord server invite URL */
|
|
143
|
+
discord?: string | null;
|
|
144
|
+
/** Telegram channel/group URL */
|
|
145
|
+
telegram?: string | null;
|
|
146
|
+
}
|
|
147
|
+
|
|
130
148
|
/**
|
|
131
149
|
* Merchant entity
|
|
132
150
|
*/
|
|
@@ -141,6 +159,44 @@ export interface Merchant extends BaseEntity {
|
|
|
141
159
|
payoutAddress: string;
|
|
142
160
|
/** Merchant status */
|
|
143
161
|
status: MerchantStatus;
|
|
162
|
+
|
|
163
|
+
// Contact information
|
|
164
|
+
/** Contact email for notifications and customer inquiries */
|
|
165
|
+
email?: string | null;
|
|
166
|
+
/** Contact phone number */
|
|
167
|
+
phone?: string | null;
|
|
168
|
+
/** Store website URL */
|
|
169
|
+
website?: string | null;
|
|
170
|
+
|
|
171
|
+
// Business information
|
|
172
|
+
/** Business type (individual, company, etc.) */
|
|
173
|
+
businessType?: MerchantBusinessType;
|
|
174
|
+
|
|
175
|
+
// Branding
|
|
176
|
+
/** Store logo/avatar URL */
|
|
177
|
+
logoUrl?: string | null;
|
|
178
|
+
/** Store banner image URL */
|
|
179
|
+
bannerUrl?: string | null;
|
|
180
|
+
|
|
181
|
+
// Social links
|
|
182
|
+
/** Social media links */
|
|
183
|
+
socialLinks?: MerchantSocialLinks | null;
|
|
184
|
+
|
|
185
|
+
// Return policy
|
|
186
|
+
/** Return policy type */
|
|
187
|
+
returnPolicyType?: MerchantReturnPolicyType;
|
|
188
|
+
/** Custom return policy details/text */
|
|
189
|
+
returnPolicyDetails?: string | null;
|
|
190
|
+
/** Return window in days (e.g., 30) */
|
|
191
|
+
returnWindowDays?: number | null;
|
|
192
|
+
|
|
193
|
+
// Location
|
|
194
|
+
/** ISO 2-letter country code (for tax/shipping) */
|
|
195
|
+
country?: string | null;
|
|
196
|
+
/** City name */
|
|
197
|
+
city?: string | null;
|
|
198
|
+
/** Street address */
|
|
199
|
+
addressLine1?: string | null;
|
|
144
200
|
}
|
|
145
201
|
|
|
146
202
|
/**
|
|
@@ -70,6 +70,38 @@ export enum MerchantStatus {
|
|
|
70
70
|
PENDING = "PENDING",
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Merchant business type enum
|
|
75
|
+
*/
|
|
76
|
+
export enum MerchantBusinessType {
|
|
77
|
+
/** Individual seller */
|
|
78
|
+
INDIVIDUAL = "INDIVIDUAL",
|
|
79
|
+
/** Registered company */
|
|
80
|
+
COMPANY = "COMPANY",
|
|
81
|
+
/** Partnership */
|
|
82
|
+
PARTNERSHIP = "PARTNERSHIP",
|
|
83
|
+
/** Non-profit organization */
|
|
84
|
+
NON_PROFIT = "NON_PROFIT",
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Merchant return policy type enum
|
|
89
|
+
*/
|
|
90
|
+
export enum MerchantReturnPolicyType {
|
|
91
|
+
/** No returns accepted */
|
|
92
|
+
NO_RETURNS = "NO_RETURNS",
|
|
93
|
+
/** Exchange for same/similar item only */
|
|
94
|
+
EXCHANGE_ONLY = "EXCHANGE_ONLY",
|
|
95
|
+
/** Refund as store credit only */
|
|
96
|
+
STORE_CREDIT = "STORE_CREDIT",
|
|
97
|
+
/** Full refund available */
|
|
98
|
+
FULL_REFUND = "FULL_REFUND",
|
|
99
|
+
/** Partial refund (restocking fee may apply) */
|
|
100
|
+
PARTIAL_REFUND = "PARTIAL_REFUND",
|
|
101
|
+
/** Handled on a case-by-case basis */
|
|
102
|
+
CASE_BY_CASE = "CASE_BY_CASE",
|
|
103
|
+
}
|
|
104
|
+
|
|
73
105
|
/**
|
|
74
106
|
* Shipment status enum
|
|
75
107
|
*/
|
|
@@ -184,6 +184,8 @@ export interface CreateOrderRequest {
|
|
|
184
184
|
export interface ListOrdersParams extends PaginationParams {
|
|
185
185
|
/** Filter by status */
|
|
186
186
|
status?: OrderStatus;
|
|
187
|
+
/** Filter by merchant ID (for godview access) */
|
|
188
|
+
merchantId?: string;
|
|
187
189
|
}
|
|
188
190
|
|
|
189
191
|
/**
|
package/lib/hip3/market-info.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InfoClient, PerpsAssetCtx, MarginTables } from "@nktkas/hyperliquid";
|
|
1
|
+
import { InfoClient, PerpsAssetCtx, MarginTables, PerpDex as LegacyPerpDex } from "@nktkas/hyperliquid";
|
|
2
2
|
|
|
3
3
|
export interface PerpsMeta {
|
|
4
4
|
collateralToken: number;
|
|
@@ -34,6 +34,10 @@ export interface PerpsUniverse {
|
|
|
34
34
|
marginMode?: "strictIsolated" | "noCross";
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
export interface PerpDex extends LegacyPerpDex {
|
|
38
|
+
deployerFeeScale: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
37
41
|
export type AllPerpsMeta = PerpsMeta[];
|
|
38
42
|
|
|
39
43
|
export async function getAllPerpsMeta(
|