@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 - To identify one catalogue the Portfolio ID CID is needed in addition to the parameters in this object. However as of now CID is not used in API calls and therefore this version without CID is needed. */
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
- /** CatalogueParamsWithCid */
44
- export interface DtoCatalogueParamsWithCid extends DtoCatalogueParams {
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
- /** ProductParamsWithCid */
82
- export interface DtoProductParamsWithCid extends DtoCatalogueParamsWithCid {
78
+ /** ProductParams */
79
+ export interface DtoProductParams extends DtoCatalogueParams {
83
80
  partNumber: string;
84
81
  }
85
- /** ProductParamsWithCidAndLang */
86
- export interface DtoProductParamsWithCidAndLang extends DtoProductParamsWithCid {
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. */
@@ -71,7 +71,7 @@ class CatalogueAuthAPI {
71
71
  if (this.auth === undefined) {
72
72
  throw new Error("missing auth");
73
73
  }
74
- const url = `/v1/authorize`;
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": "2.4.1-alpha.0",
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": "8f045b6109ef624503361fbea878bff6e6bb0d54"
24
+ "gitHead": "9fe91599222572a8625a70c03d745f1f2e5eb85b"
25
25
  }