@configura/web-api-auth 2.4.1-alpha.0 → 3.0.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.
|
@@ -32,20 +32,17 @@ export interface DtoCatalogueAuthAPISession {
|
|
|
32
32
|
features?: Array<string>;
|
|
33
33
|
permissions?: Array<DtoCataloguePermission>;
|
|
34
34
|
}
|
|
35
|
-
/** CatalogueParams
|
|
35
|
+
/** CatalogueParams */
|
|
36
36
|
export interface DtoCatalogueParams {
|
|
37
|
+
cid: number;
|
|
37
38
|
enterprise: string;
|
|
38
39
|
prdCat: string;
|
|
39
40
|
prdCatVersion: string;
|
|
40
41
|
vendor: string;
|
|
41
42
|
priceList: string;
|
|
42
43
|
}
|
|
43
|
-
/**
|
|
44
|
-
export interface
|
|
45
|
-
cid: number;
|
|
46
|
-
}
|
|
47
|
-
/** CatalogueParamsWithCidAndLang */
|
|
48
|
-
export interface DtoCatalogueParamsWithCidAndLang extends DtoCatalogueParamsWithCid {
|
|
44
|
+
/** CatalogueParamsWithLang */
|
|
45
|
+
export interface DtoCatalogueParamsWithLang extends DtoCatalogueParams {
|
|
49
46
|
lang: string;
|
|
50
47
|
}
|
|
51
48
|
/** CataloguePermission */
|
|
@@ -78,12 +75,12 @@ export interface DtoPoint {
|
|
|
78
75
|
y: number;
|
|
79
76
|
z: number;
|
|
80
77
|
}
|
|
81
|
-
/**
|
|
82
|
-
export interface
|
|
78
|
+
/** ProductParams */
|
|
79
|
+
export interface DtoProductParams extends DtoCatalogueParams {
|
|
83
80
|
partNumber: string;
|
|
84
81
|
}
|
|
85
|
-
/**
|
|
86
|
-
export interface
|
|
82
|
+
/** ProductParamsWithLang */
|
|
83
|
+
export interface DtoProductParamsWithLang extends DtoProductParams {
|
|
87
84
|
lang: string;
|
|
88
85
|
}
|
|
89
86
|
/** RefreshSessionTokenResponse - The response to a refresh session token request. It contains a new API session. */
|
package/dist/CatalogueAuthAPI.js
CHANGED
|
@@ -71,7 +71,7 @@ class CatalogueAuthAPI {
|
|
|
71
71
|
if (this.auth === undefined) {
|
|
72
72
|
throw new Error("missing auth");
|
|
73
73
|
}
|
|
74
|
-
const url = `/
|
|
74
|
+
const url = `/v2/authorize`;
|
|
75
75
|
const options = {
|
|
76
76
|
method: "POST",
|
|
77
77
|
headers: { "X-API-Key": this.auth.secretToken || "", "X-SDK-Version": package_json_1.default.version },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configura/web-api-auth",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "9fe91599222572a8625a70c03d745f1f2e5eb85b"
|
|
25
25
|
}
|