@shopify/shopify-api
Version:
Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks
70 lines • 2.66 kB
TypeScript
/***********************************************************************************************************************
* This file is auto-generated. If you have an issue, please create a GitHub issue. *
***********************************************************************************************************************/
import { Base, FindAllResponse } from '../../base';
import { ResourcePath, ResourceNames } from '../../types';
import { Session } from '../../../lib/session/session';
import { ApiVersion } from '../../../lib/types';
interface DeleteArgs {
session: Session;
inventory_item_id?: unknown;
location_id?: unknown;
}
interface AllArgs {
[key: string]: unknown;
session: Session;
inventory_item_ids?: unknown;
location_ids?: unknown;
limit?: unknown;
updated_at_min?: unknown;
}
interface AdjustArgs {
[key: string]: unknown;
inventory_item_id?: unknown;
location_id?: unknown;
available_adjustment?: unknown;
body?: {
[key: string]: unknown;
} | null;
}
interface ConnectArgs {
[key: string]: unknown;
inventory_item_id?: unknown;
location_id?: unknown;
relocate_if_necessary?: unknown;
body?: {
[key: string]: unknown;
} | null;
}
interface SetArgs {
[key: string]: unknown;
inventory_item_id?: unknown;
location_id?: unknown;
available?: unknown;
disconnect_if_necessary?: unknown;
body?: {
[key: string]: unknown;
} | null;
}
export declare class InventoryLevel extends Base {
static apiVersion: ApiVersion;
protected static hasOne: {
[key: string]: typeof Base;
};
protected static hasMany: {
[key: string]: typeof Base;
};
protected static paths: ResourcePath[];
protected static resourceNames: ResourceNames[];
static delete({ session, inventory_item_id, location_id }: DeleteArgs): Promise<unknown>;
static all({ session, inventory_item_ids, location_ids, limit, updated_at_min, ...otherArgs }: AllArgs): Promise<FindAllResponse<InventoryLevel>>;
adjust({ inventory_item_id, location_id, available_adjustment, body, ...otherArgs }: AdjustArgs): Promise<unknown>;
connect({ inventory_item_id, location_id, relocate_if_necessary, body, ...otherArgs }: ConnectArgs): Promise<unknown>;
set({ inventory_item_id, location_id, available, disconnect_if_necessary, body, ...otherArgs }: SetArgs): Promise<unknown>;
available: number | null;
inventory_item_id: string | null;
location_id: string | null;
updated_at: string | null;
}
export {};
//# sourceMappingURL=inventory_level.d.ts.map