From a5d132f25e02e2cfdf3e793f497e33faa1df48f8 Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 12 Nov 2023 15:56:54 +0000 Subject: [PATCH] Update types --- .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + .../types/callbacks/InventoryCallbacks.d.ts | 1 + .../types/controllers/InventoryController.d.ts | 10 ++++++++++ .../eft/inventory/IInventoryUnbindRequestData.d.ts | 6 ++++++ .../types/models/enums/ItemEventActions.d.ts | 1 + 84 files changed, 378 insertions(+) create mode 100644 TypeScript/10ScopesAndTypes/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/11BundleLoadingSample/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/12ClassExtensionOverride/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/13AddTrader/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/14AfterDBLoadHook/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/15HttpListenerExample/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/16ImporterUtil/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/17AsyncImporterWithDependency1/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/17AsyncImporterWithDependency2/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/18CustomItemService/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/19UseExternalLibraries/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/1LogToConsole/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/2EditDatabase/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/3GetSptConfigFile/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/4UseACustomConfigFile/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/5ReplaceMethod/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/6ReferenceAnotherClass/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/7OnLoadHook/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/8OnUpdateHook/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts create mode 100644 TypeScript/9RouterHooks/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts diff --git a/TypeScript/10ScopesAndTypes/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/10ScopesAndTypes/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/10ScopesAndTypes/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/10ScopesAndTypes/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/10ScopesAndTypes/types/controllers/InventoryController.d.ts b/TypeScript/10ScopesAndTypes/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/10ScopesAndTypes/types/controllers/InventoryController.d.ts +++ b/TypeScript/10ScopesAndTypes/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/10ScopesAndTypes/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/10ScopesAndTypes/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/10ScopesAndTypes/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/10ScopesAndTypes/types/models/enums/ItemEventActions.d.ts b/TypeScript/10ScopesAndTypes/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/10ScopesAndTypes/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/10ScopesAndTypes/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/11BundleLoadingSample/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/11BundleLoadingSample/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/11BundleLoadingSample/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/11BundleLoadingSample/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/11BundleLoadingSample/types/controllers/InventoryController.d.ts b/TypeScript/11BundleLoadingSample/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/11BundleLoadingSample/types/controllers/InventoryController.d.ts +++ b/TypeScript/11BundleLoadingSample/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/11BundleLoadingSample/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/11BundleLoadingSample/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/11BundleLoadingSample/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/11BundleLoadingSample/types/models/enums/ItemEventActions.d.ts b/TypeScript/11BundleLoadingSample/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/11BundleLoadingSample/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/11BundleLoadingSample/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/12ClassExtensionOverride/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/12ClassExtensionOverride/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/12ClassExtensionOverride/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/12ClassExtensionOverride/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/12ClassExtensionOverride/types/controllers/InventoryController.d.ts b/TypeScript/12ClassExtensionOverride/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/12ClassExtensionOverride/types/controllers/InventoryController.d.ts +++ b/TypeScript/12ClassExtensionOverride/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/12ClassExtensionOverride/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/12ClassExtensionOverride/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/12ClassExtensionOverride/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/12ClassExtensionOverride/types/models/enums/ItemEventActions.d.ts b/TypeScript/12ClassExtensionOverride/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/12ClassExtensionOverride/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/12ClassExtensionOverride/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/13AddTrader/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/13AddTrader/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/13AddTrader/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/13AddTrader/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/13AddTrader/types/controllers/InventoryController.d.ts b/TypeScript/13AddTrader/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/13AddTrader/types/controllers/InventoryController.d.ts +++ b/TypeScript/13AddTrader/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/13AddTrader/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/13AddTrader/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/13AddTrader/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/13AddTrader/types/models/enums/ItemEventActions.d.ts b/TypeScript/13AddTrader/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/13AddTrader/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/13AddTrader/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/14AfterDBLoadHook/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/14AfterDBLoadHook/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/14AfterDBLoadHook/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/14AfterDBLoadHook/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/14AfterDBLoadHook/types/controllers/InventoryController.d.ts b/TypeScript/14AfterDBLoadHook/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/14AfterDBLoadHook/types/controllers/InventoryController.d.ts +++ b/TypeScript/14AfterDBLoadHook/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/14AfterDBLoadHook/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/14AfterDBLoadHook/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/14AfterDBLoadHook/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/14AfterDBLoadHook/types/models/enums/ItemEventActions.d.ts b/TypeScript/14AfterDBLoadHook/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/14AfterDBLoadHook/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/14AfterDBLoadHook/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/15HttpListenerExample/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/15HttpListenerExample/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/15HttpListenerExample/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/15HttpListenerExample/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/15HttpListenerExample/types/controllers/InventoryController.d.ts b/TypeScript/15HttpListenerExample/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/15HttpListenerExample/types/controllers/InventoryController.d.ts +++ b/TypeScript/15HttpListenerExample/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/15HttpListenerExample/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/15HttpListenerExample/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/15HttpListenerExample/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/15HttpListenerExample/types/models/enums/ItemEventActions.d.ts b/TypeScript/15HttpListenerExample/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/15HttpListenerExample/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/15HttpListenerExample/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/16ImporterUtil/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/16ImporterUtil/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/16ImporterUtil/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/16ImporterUtil/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/16ImporterUtil/types/controllers/InventoryController.d.ts b/TypeScript/16ImporterUtil/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/16ImporterUtil/types/controllers/InventoryController.d.ts +++ b/TypeScript/16ImporterUtil/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/16ImporterUtil/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/16ImporterUtil/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/16ImporterUtil/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/16ImporterUtil/types/models/enums/ItemEventActions.d.ts b/TypeScript/16ImporterUtil/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/16ImporterUtil/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/16ImporterUtil/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/17AsyncImporterWithDependency1/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/17AsyncImporterWithDependency1/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/17AsyncImporterWithDependency1/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/17AsyncImporterWithDependency1/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/17AsyncImporterWithDependency1/types/controllers/InventoryController.d.ts b/TypeScript/17AsyncImporterWithDependency1/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/17AsyncImporterWithDependency1/types/controllers/InventoryController.d.ts +++ b/TypeScript/17AsyncImporterWithDependency1/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/17AsyncImporterWithDependency1/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/17AsyncImporterWithDependency1/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/17AsyncImporterWithDependency1/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/17AsyncImporterWithDependency1/types/models/enums/ItemEventActions.d.ts b/TypeScript/17AsyncImporterWithDependency1/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/17AsyncImporterWithDependency1/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/17AsyncImporterWithDependency1/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/17AsyncImporterWithDependency2/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/17AsyncImporterWithDependency2/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/17AsyncImporterWithDependency2/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/17AsyncImporterWithDependency2/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/17AsyncImporterWithDependency2/types/controllers/InventoryController.d.ts b/TypeScript/17AsyncImporterWithDependency2/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/17AsyncImporterWithDependency2/types/controllers/InventoryController.d.ts +++ b/TypeScript/17AsyncImporterWithDependency2/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/17AsyncImporterWithDependency2/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/17AsyncImporterWithDependency2/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/17AsyncImporterWithDependency2/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/17AsyncImporterWithDependency2/types/models/enums/ItemEventActions.d.ts b/TypeScript/17AsyncImporterWithDependency2/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/17AsyncImporterWithDependency2/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/17AsyncImporterWithDependency2/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/18CustomItemService/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/18CustomItemService/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/18CustomItemService/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/18CustomItemService/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/18CustomItemService/types/controllers/InventoryController.d.ts b/TypeScript/18CustomItemService/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/18CustomItemService/types/controllers/InventoryController.d.ts +++ b/TypeScript/18CustomItemService/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/18CustomItemService/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/18CustomItemService/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/18CustomItemService/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/18CustomItemService/types/models/enums/ItemEventActions.d.ts b/TypeScript/18CustomItemService/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/18CustomItemService/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/18CustomItemService/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/19UseExternalLibraries/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/19UseExternalLibraries/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/19UseExternalLibraries/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/19UseExternalLibraries/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/19UseExternalLibraries/types/controllers/InventoryController.d.ts b/TypeScript/19UseExternalLibraries/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/19UseExternalLibraries/types/controllers/InventoryController.d.ts +++ b/TypeScript/19UseExternalLibraries/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/19UseExternalLibraries/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/19UseExternalLibraries/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/19UseExternalLibraries/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/19UseExternalLibraries/types/models/enums/ItemEventActions.d.ts b/TypeScript/19UseExternalLibraries/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/19UseExternalLibraries/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/19UseExternalLibraries/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/1LogToConsole/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/1LogToConsole/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/1LogToConsole/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/1LogToConsole/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/1LogToConsole/types/controllers/InventoryController.d.ts b/TypeScript/1LogToConsole/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/1LogToConsole/types/controllers/InventoryController.d.ts +++ b/TypeScript/1LogToConsole/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/1LogToConsole/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/1LogToConsole/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/1LogToConsole/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/1LogToConsole/types/models/enums/ItemEventActions.d.ts b/TypeScript/1LogToConsole/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/1LogToConsole/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/1LogToConsole/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/2EditDatabase/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/2EditDatabase/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/2EditDatabase/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/2EditDatabase/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/2EditDatabase/types/controllers/InventoryController.d.ts b/TypeScript/2EditDatabase/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/2EditDatabase/types/controllers/InventoryController.d.ts +++ b/TypeScript/2EditDatabase/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/2EditDatabase/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/2EditDatabase/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/2EditDatabase/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/2EditDatabase/types/models/enums/ItemEventActions.d.ts b/TypeScript/2EditDatabase/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/2EditDatabase/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/2EditDatabase/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/3GetSptConfigFile/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/3GetSptConfigFile/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/3GetSptConfigFile/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/3GetSptConfigFile/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/3GetSptConfigFile/types/controllers/InventoryController.d.ts b/TypeScript/3GetSptConfigFile/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/3GetSptConfigFile/types/controllers/InventoryController.d.ts +++ b/TypeScript/3GetSptConfigFile/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/3GetSptConfigFile/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/3GetSptConfigFile/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/3GetSptConfigFile/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/3GetSptConfigFile/types/models/enums/ItemEventActions.d.ts b/TypeScript/3GetSptConfigFile/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/3GetSptConfigFile/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/3GetSptConfigFile/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/controllers/InventoryController.d.ts b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/controllers/InventoryController.d.ts +++ b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/models/enums/ItemEventActions.d.ts b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/4UseACustomConfigFile/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/4UseACustomConfigFile/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/4UseACustomConfigFile/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/4UseACustomConfigFile/types/controllers/InventoryController.d.ts b/TypeScript/4UseACustomConfigFile/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/4UseACustomConfigFile/types/controllers/InventoryController.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/4UseACustomConfigFile/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/4UseACustomConfigFile/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/4UseACustomConfigFile/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/4UseACustomConfigFile/types/models/enums/ItemEventActions.d.ts b/TypeScript/4UseACustomConfigFile/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/4UseACustomConfigFile/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/5ReplaceMethod/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/5ReplaceMethod/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/5ReplaceMethod/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/5ReplaceMethod/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/5ReplaceMethod/types/controllers/InventoryController.d.ts b/TypeScript/5ReplaceMethod/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/5ReplaceMethod/types/controllers/InventoryController.d.ts +++ b/TypeScript/5ReplaceMethod/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/5ReplaceMethod/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/5ReplaceMethod/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/5ReplaceMethod/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/5ReplaceMethod/types/models/enums/ItemEventActions.d.ts b/TypeScript/5ReplaceMethod/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/5ReplaceMethod/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/5ReplaceMethod/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/6ReferenceAnotherClass/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/6ReferenceAnotherClass/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/6ReferenceAnotherClass/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/6ReferenceAnotherClass/types/controllers/InventoryController.d.ts b/TypeScript/6ReferenceAnotherClass/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/6ReferenceAnotherClass/types/controllers/InventoryController.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/6ReferenceAnotherClass/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/6ReferenceAnotherClass/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/6ReferenceAnotherClass/types/models/enums/ItemEventActions.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/6ReferenceAnotherClass/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/7OnLoadHook/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/7OnLoadHook/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/7OnLoadHook/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/7OnLoadHook/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/7OnLoadHook/types/controllers/InventoryController.d.ts b/TypeScript/7OnLoadHook/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/7OnLoadHook/types/controllers/InventoryController.d.ts +++ b/TypeScript/7OnLoadHook/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/7OnLoadHook/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/7OnLoadHook/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/7OnLoadHook/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/7OnLoadHook/types/models/enums/ItemEventActions.d.ts b/TypeScript/7OnLoadHook/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/7OnLoadHook/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/7OnLoadHook/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/8OnUpdateHook/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/8OnUpdateHook/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/8OnUpdateHook/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/8OnUpdateHook/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/8OnUpdateHook/types/controllers/InventoryController.d.ts b/TypeScript/8OnUpdateHook/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/8OnUpdateHook/types/controllers/InventoryController.d.ts +++ b/TypeScript/8OnUpdateHook/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/8OnUpdateHook/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/8OnUpdateHook/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/8OnUpdateHook/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/8OnUpdateHook/types/models/enums/ItemEventActions.d.ts b/TypeScript/8OnUpdateHook/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/8OnUpdateHook/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/8OnUpdateHook/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges", diff --git a/TypeScript/9RouterHooks/types/callbacks/InventoryCallbacks.d.ts b/TypeScript/9RouterHooks/types/callbacks/InventoryCallbacks.d.ts index f140a2a..d1455c3 100644 --- a/TypeScript/9RouterHooks/types/callbacks/InventoryCallbacks.d.ts +++ b/TypeScript/9RouterHooks/types/callbacks/InventoryCallbacks.d.ts @@ -35,6 +35,7 @@ export declare class InventoryCallbacks { toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse; tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + unbindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse; /** Handle ReadEncyclopedia */ readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse; diff --git a/TypeScript/9RouterHooks/types/controllers/InventoryController.d.ts b/TypeScript/9RouterHooks/types/controllers/InventoryController.d.ts index 89a3e94..5612044 100644 --- a/TypeScript/9RouterHooks/types/controllers/InventoryController.d.ts +++ b/TypeScript/9RouterHooks/types/controllers/InventoryController.d.ts @@ -138,12 +138,22 @@ export declare class InventoryController { tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse; /** * Bind an inventory item to the quick access menu at bottom of player screen + * Handle bind event * @param pmcData Player profile * @param bindRequest Reqeust object * @param sessionID Session id * @returns IItemEventRouterResponse */ bindItem(pmcData: IPmcData, bindRequest: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; + /** + * Unbind an inventory item from quick access menu at bottom of player screen + * Handle unbind event + * @param pmcData Player profile + * @param bindRequest Request object + * @param sessionID Session id + * @returns IItemEventRouterResponse + */ + unbindItem(pmcData: IPmcData, request: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse; /** * Handles examining an item * @param pmcData player profile diff --git a/TypeScript/9RouterHooks/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts b/TypeScript/9RouterHooks/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts new file mode 100644 index 0000000..e303acf --- /dev/null +++ b/TypeScript/9RouterHooks/types/models/eft/inventory/IInventoryUnbindRequestData.d.ts @@ -0,0 +1,6 @@ +import { IInventoryBaseActionRequestData } from "@spt-aki/models/eft/inventory/IInventoryBaseActionRequestData"; +export interface IInventoryUnbindRequestData extends IInventoryBaseActionRequestData { + Action: "Unbind"; + item: string; + index: number; +} diff --git a/TypeScript/9RouterHooks/types/models/enums/ItemEventActions.d.ts b/TypeScript/9RouterHooks/types/models/enums/ItemEventActions.d.ts index 64339f1..4b3e9ef 100644 --- a/TypeScript/9RouterHooks/types/models/enums/ItemEventActions.d.ts +++ b/TypeScript/9RouterHooks/types/models/enums/ItemEventActions.d.ts @@ -9,6 +9,7 @@ export declare enum ItemEventActions { TOGGLE = "Toggle", TAG = "Tag", BIND = "Bind", + UNBIND = "Unbind", EXAMINE = "Examine", READ_ENCYCLOPEDIA = "ReadEncyclopedia", APPLY_INVENTORY_CHANGES = "ApplyInventoryChanges",