@configura/web-api 2.2.0 → 2.3.0-alpha.0
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.
|
@@ -22,17 +22,15 @@ export declare const getPrdCatVersionFromPermissions: (cataloguePermissions: Dto
|
|
|
22
22
|
* Sometimes you will want a missing prdCatVersion to represent "Get the current highest version".
|
|
23
23
|
* This method will, if the prdCatVersion is not set, fetch the highest available from the catalogue
|
|
24
24
|
* permissions. If it fails to find any applicable permissions the original value is returned.
|
|
25
|
-
* @param auth
|
|
26
|
-
* @param params
|
|
27
25
|
*/
|
|
28
|
-
export declare const getPrdCatVersionOrLatestFromPermissions: (params: DtoCatalogueParamsWithCid,
|
|
26
|
+
export declare const getPrdCatVersionOrLatestFromPermissions: (params: Omit<DtoCatalogueParamsWithCid, "cid"> & {
|
|
27
|
+
cid: number | undefined;
|
|
28
|
+
}, cataloguePermissions: DtoCataloguePermission[]) => string;
|
|
29
29
|
/**
|
|
30
30
|
* Sometimes you will want a missing prdCatVersion to represent "Get the current highest version".
|
|
31
31
|
* This method will, if the prdCatVersion is not set, fetch the highest available from the
|
|
32
32
|
* cataloguePermissions and insert it into a copy of the original params. If it fails to find any
|
|
33
33
|
* applicable auth-permissions the original value is returned.
|
|
34
|
-
* @param auth
|
|
35
|
-
* @param params
|
|
36
34
|
*/
|
|
37
35
|
export declare const fillMissingPrdCatVersionFromPermissions: <T extends DtoCatalogueParamsWithCid>(params: T, cataloguePermissions: DtoCataloguePermission[]) => T;
|
|
38
36
|
export {};
|
|
@@ -54,8 +54,6 @@ export const getPrdCatVersionFromPermissions = (cataloguePermissions, catParams)
|
|
|
54
54
|
* Sometimes you will want a missing prdCatVersion to represent "Get the current highest version".
|
|
55
55
|
* This method will, if the prdCatVersion is not set, fetch the highest available from the catalogue
|
|
56
56
|
* permissions. If it fails to find any applicable permissions the original value is returned.
|
|
57
|
-
* @param auth
|
|
58
|
-
* @param params
|
|
59
57
|
*/
|
|
60
58
|
export const getPrdCatVersionOrLatestFromPermissions = (params, cataloguePermissions) => {
|
|
61
59
|
const { prdCatVersion } = params;
|
|
@@ -73,7 +71,5 @@ export const getPrdCatVersionOrLatestFromPermissions = (params, cataloguePermiss
|
|
|
73
71
|
* This method will, if the prdCatVersion is not set, fetch the highest available from the
|
|
74
72
|
* cataloguePermissions and insert it into a copy of the original params. If it fails to find any
|
|
75
73
|
* applicable auth-permissions the original value is returned.
|
|
76
|
-
* @param auth
|
|
77
|
-
* @param params
|
|
78
74
|
*/
|
|
79
75
|
export const fillMissingPrdCatVersionFromPermissions = (params, cataloguePermissions) => (Object.assign(Object.assign({}, params), { prdCatVersion: getPrdCatVersionOrLatestFromPermissions(params, cataloguePermissions) }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configura/web-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0-alpha.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@configura/web-utilities": "2.
|
|
26
|
+
"@configura/web-utilities": "2.3.0-alpha.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "45b11d8e97c4f0c6e75cb3bb785005d238ffd046"
|
|
29
29
|
}
|