@unchainedshop/core-warehousing 4.8.3 → 4.8.9
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.
|
@@ -43,7 +43,7 @@ export declare const configureWarehousingModule: ({ db }: ModuleInput<Record<str
|
|
|
43
43
|
walletAddress: string;
|
|
44
44
|
}) => Promise<mongodb.WithId<TokenSurrogate> | null>;
|
|
45
45
|
invalidateToken: (tokenId: string) => Promise<mongodb.WithId<TokenSurrogate> | null>;
|
|
46
|
-
|
|
46
|
+
buildAccessKeyFromToken: (token: TokenSurrogate) => Promise<string>;
|
|
47
47
|
create: (doc: Omit<WarehousingProvider, "_id" | "created"> & Pick<Partial<WarehousingProvider>, "_id">) => Promise<WarehousingProvider>;
|
|
48
48
|
update: (warehousingProviderId: string, doc: Partial<WarehousingProvider>) => Promise<mongodb.WithId<WarehousingProvider> | null>;
|
|
49
49
|
delete: (providerId: string) => Promise<mongodb.WithId<WarehousingProvider> | null>;
|
|
@@ -131,10 +131,7 @@ export const configureWarehousingModule = async ({ db }) => {
|
|
|
131
131
|
await emit('TOKEN_INVALIDATED', { token });
|
|
132
132
|
return token;
|
|
133
133
|
},
|
|
134
|
-
|
|
135
|
-
const token = await TokenSurrogates.findOne(generateDbFilterById(tokenId));
|
|
136
|
-
if (!token)
|
|
137
|
-
return null;
|
|
134
|
+
buildAccessKeyFromToken: async (token) => {
|
|
138
135
|
const payload = [
|
|
139
136
|
token._id,
|
|
140
137
|
token.walletAddress || token.userId,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unchainedshop/core-warehousing",
|
|
3
3
|
"description": "Inventory and stock management module for the Unchained Engine",
|
|
4
|
-
"version": "4.8.
|
|
4
|
+
"version": "4.8.9",
|
|
5
5
|
"main": "lib/warehousing-index.js",
|
|
6
6
|
"types": "lib/warehousing-index.d.ts",
|
|
7
7
|
"type": "module",
|