koishi-plugin-warframe 1.7.9 → 1.7.11
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/lib/index.d.ts +84 -15
- package/lib/index.js +129 -3226
- package/lib/index.tsbuildinfo +1 -1
- package/package.json +4 -6
package/lib/index.d.ts
CHANGED
|
@@ -168,7 +168,7 @@ declare module "warframe/types/wfm" {
|
|
|
168
168
|
onlineMin: number;
|
|
169
169
|
}
|
|
170
170
|
export type RivenAttributeShortInternal = RivenOrder['item']['attributes'][number] & {
|
|
171
|
-
attribute
|
|
171
|
+
attribute?: RivenAttribute;
|
|
172
172
|
};
|
|
173
173
|
export type RivenOrderInternal = Omit<RivenOrder, 'item'> & {
|
|
174
174
|
item: Omit<RivenOrder['item'], 'attributes'> & {
|
|
@@ -466,23 +466,92 @@ declare module "warframe/data/wf/rivenStatData" {
|
|
|
466
466
|
export const rivenStatFixFactor: RivenStatFixFactorMap;
|
|
467
467
|
}
|
|
468
468
|
declare module "warframe/infrastructure/wfm-client" {
|
|
469
|
+
import type { WfmApiClient, WfmFetcher, WfmPlugin } from 'wfm-api-client';
|
|
470
|
+
/** Warframe-local: map request failures to `undefined` (not part of upstream client). */
|
|
471
|
+
export function softFailPlugin(): WfmPlugin;
|
|
472
|
+
/** `fetcher` is a test injection seam only; production uses the client default. */
|
|
473
|
+
export function createPluginWfmClient(fetcher?: WfmFetcher): WfmApiClient;
|
|
469
474
|
export const wfmClient: {
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
|
|
475
|
+
auth: ReturnType<(request: import("wfm-api-client").WfmRequest, hooks?: {
|
|
476
|
+
onTokens?: (tokens: import("wfm-api-client").AuthTokens) => void;
|
|
477
|
+
onSignOut?: () => void;
|
|
478
|
+
}) => ReturnType<(request: import("wfm-api-client").WfmRequest, hooks?: {
|
|
479
|
+
onTokens?: (tokens: import("wfm-api-client").AuthTokens) => void;
|
|
480
|
+
onSignOut?: () => void;
|
|
481
|
+
}) => {
|
|
482
|
+
refresh: (body: import("wfm-api-client").RefreshSessionBody, options?: import("wfm-api-client").RefreshSessionOptions) => Promise<import("wfm-api-client").AuthTokens>;
|
|
483
|
+
signOut: (options?: import("wfm-api-client").CallOptions) => Promise<void>;
|
|
484
|
+
}>>;
|
|
485
|
+
items: ReturnType<(request: import("wfm-api-client").WfmRequest) => ReturnType<(request: import("wfm-api-client").WfmRequest) => {
|
|
486
|
+
list: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").Item[]>;
|
|
487
|
+
get: (ref: import("wfm-api-client").ItemRef, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").Item>;
|
|
488
|
+
getSet: (ref: import("wfm-api-client").ItemRef, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").ItemSet>;
|
|
489
|
+
}> & ReturnType<(request: import("wfm-api-client").WfmRequest) => {
|
|
490
|
+
getStatistics: (slug: string, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").StatisticsCollection>;
|
|
491
|
+
}>>;
|
|
492
|
+
rivens: ReturnType<(request: import("wfm-api-client").WfmRequest) => ReturnType<(request: import("wfm-api-client").WfmRequest) => {
|
|
493
|
+
listWeapons: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").RivenItem[]>;
|
|
494
|
+
getWeapon: (slug: string, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").RivenItem>;
|
|
495
|
+
listAttributes: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").RivenAttribute[]>;
|
|
496
|
+
}> & ReturnType<(request: import("wfm-api-client").WfmRequest) => {
|
|
497
|
+
getOrders: (weaponUrlName: string, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").RivenOrder[]>;
|
|
498
|
+
}>>;
|
|
499
|
+
orders: ReturnType<(request: import("wfm-api-client").WfmRequest) => ReturnType<(request: import("wfm-api-client").WfmRequest) => {
|
|
500
|
+
getRecent: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").Order[]>;
|
|
501
|
+
listByItem: (ref: import("wfm-api-client").ItemRef, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").Order[]>;
|
|
502
|
+
getTopByItem: (ref: import("wfm-api-client").ItemRef, query?: import("wfm-api-client").TopOrdersQuery, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").TopOrders>;
|
|
503
|
+
listByUser: (ref: import("wfm-api-client").UserRef, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").Order[]>;
|
|
504
|
+
listMine: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").Order[]>;
|
|
505
|
+
get: (id: string, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").Order>;
|
|
506
|
+
create: (body: import("wfm-api-client").CreateOrderBody, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").Order>;
|
|
507
|
+
update: (id: string, body: import("wfm-api-client").UpdateOrderBody, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").Order>;
|
|
508
|
+
delete: (id: string, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").Order>;
|
|
509
|
+
close: (id: string, body: import("wfm-api-client").CloseOrderBody, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").Transaction>;
|
|
510
|
+
updateGroupVisibility: (id: string, body: import("wfm-api-client").UpdateOrderGroupVisibilityBody, options?: import("wfm-api-client").CallOptions) => Promise<{
|
|
511
|
+
updated: number;
|
|
512
|
+
}>;
|
|
513
|
+
}>>;
|
|
514
|
+
users: ReturnType<(request: import("wfm-api-client").WfmRequest) => ReturnType<(request: import("wfm-api-client").WfmRequest) => {
|
|
515
|
+
getMe: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").UserPrivate>;
|
|
516
|
+
updateMe: (body: import("wfm-api-client").UpdateMeBody, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").UserPrivate>;
|
|
517
|
+
uploadAvatar: (file: import("wfm-api-client").UploadBody, filename?: string, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").UserPrivate>;
|
|
518
|
+
uploadBackground: (file: import("wfm-api-client").UploadBody, filename?: string, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").UserPrivate>;
|
|
519
|
+
get: (ref: import("wfm-api-client").UserRef, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").User>;
|
|
520
|
+
}>>;
|
|
521
|
+
liches: ReturnType<(request: import("wfm-api-client").WfmRequest) => ReturnType<(request: import("wfm-api-client").WfmRequest) => {
|
|
522
|
+
listWeapons: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").LichWeapon[]>;
|
|
523
|
+
getWeapon: (slug: string, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").LichWeapon>;
|
|
524
|
+
listEphemeras: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").LichEphemera[]>;
|
|
525
|
+
listQuirks: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").LichQuirk[]>;
|
|
526
|
+
}>>;
|
|
527
|
+
sisters: ReturnType<(request: import("wfm-api-client").WfmRequest) => ReturnType<(request: import("wfm-api-client").WfmRequest) => {
|
|
528
|
+
listWeapons: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").SisterWeapon[]>;
|
|
529
|
+
getWeapon: (slug: string, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").SisterWeapon>;
|
|
530
|
+
listEphemeras: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").SisterEphemera[]>;
|
|
531
|
+
listQuirks: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").SisterQuirk[]>;
|
|
532
|
+
}>>;
|
|
533
|
+
manifests: ReturnType<(request: import("wfm-api-client").WfmRequest) => ReturnType<(request: import("wfm-api-client").WfmRequest) => {
|
|
534
|
+
getVersions: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").Versions>;
|
|
535
|
+
listLocations: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").Location[]>;
|
|
536
|
+
listNpcs: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").Npc[]>;
|
|
537
|
+
listMissions: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").Mission[]>;
|
|
538
|
+
}>>;
|
|
539
|
+
achievements: ReturnType<(request: import("wfm-api-client").WfmRequest) => ReturnType<(request: import("wfm-api-client").WfmRequest) => {
|
|
540
|
+
list: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").Achievement[]>;
|
|
541
|
+
listByUser: (ref: import("wfm-api-client").UserRef, query?: {
|
|
542
|
+
featured?: boolean;
|
|
543
|
+
}, options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").Achievement[]>;
|
|
544
|
+
}>>;
|
|
545
|
+
dashboard: ReturnType<(request: import("wfm-api-client").WfmRequest) => ReturnType<(request: import("wfm-api-client").WfmRequest) => {
|
|
546
|
+
getShowcase: (options?: import("wfm-api-client").CallOptions) => Promise<import("wfm-api-client").DashboardShowcase>;
|
|
547
|
+
}>>;
|
|
548
|
+
tools: ReturnType<(request: import("wfm-api-client").WfmRequest) => ReturnType<(request: import("wfm-api-client").WfmRequest) => {
|
|
549
|
+
getDucatnator: (options?: import("wfm-api-client").CallOptions) => Promise<{
|
|
482
550
|
day: import("wfm-api-client").Ducatnator[];
|
|
483
551
|
hour: import("wfm-api-client").Ducatnator[];
|
|
484
|
-
}
|
|
485
|
-
}
|
|
552
|
+
}>;
|
|
553
|
+
}>>;
|
|
554
|
+
setAccessToken: (token: string | undefined) => void;
|
|
486
555
|
};
|
|
487
556
|
}
|
|
488
557
|
declare module "warframe/data/wfm/globalRivenAttribute" {
|