From a98aa2081369e7de9da76c5d738fe1570e4206a7 Mon Sep 17 00:00:00 2001 From: Tobias Knop Date: Thu, 8 Oct 2020 12:36:17 +0200 Subject: [PATCH 1/3] SPR-10621: add new version to package json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c4cc709..7478ba6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ps-web-apis", - "version": "1.6.0", + "version": "1.8.1", "description": "", "main": "dist/ps-web-apis.cjs.js", "module": "dist/ps-web-apis.esm.js", From e71f41276d03b13cad35835da39aad99b8efa8ef Mon Sep 17 00:00:00 2001 From: Tobias Knop Date: Thu, 8 Oct 2020 12:38:14 +0200 Subject: [PATCH 2/3] SPR-10621: add new version to package json --- README.md | 2 +- package-lock.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7b51c8c..6449144 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ps-web-apis is a client side library to interface with ps services on ps support # Installation -`npm install --save github:spring-media/ps-web-apis#v1.6.0` +`npm install --save github:spring-media/ps-web-apis#v1.8.1` # Usage diff --git a/package-lock.json b/package-lock.json index 433a41d..118a785 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ps-web-apis", - "version": "1.6.0", + "version": "1.8.1", "lockfileVersion": 1, "requires": true, "dependencies": { From e113124be1ea11a9d9e2350fe0deec92ba8ec3a4 Mon Sep 17 00:00:00 2001 From: Tobias Knop Date: Thu, 8 Oct 2020 12:49:20 +0200 Subject: [PATCH 3/3] SPR-10621: add missing dist files --- dist/ps-web-apis.cjs.js | 4 ++++ dist/ps-web-apis.d.ts | 5 +++++ dist/ps-web-apis.esm.js | 5 ++++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/dist/ps-web-apis.cjs.js b/dist/ps-web-apis.cjs.js index 91b2249..86487d6 100644 --- a/dist/ps-web-apis.cjs.js +++ b/dist/ps-web-apis.cjs.js @@ -43,5 +43,9 @@ function requireApi(name) { function whoamiV1() { return requireApi("whoami:v1"); } +function rosettaV1() { + return requireApi("rosetta:v1"); +} exports.whoamiV1 = whoamiV1; +exports.rosettaV1 = rosettaV1; diff --git a/dist/ps-web-apis.d.ts b/dist/ps-web-apis.d.ts index b016d16..9869ba4 100644 --- a/dist/ps-web-apis.d.ts +++ b/dist/ps-web-apis.d.ts @@ -1,3 +1,4 @@ +import { TealiumData } from "./model"; export interface WhoamiUserInfo { user_id: string; first_name?: string; @@ -50,3 +51,7 @@ export interface WhoamiV1 { getCustomerId(clientId: string): Promise; } export declare function whoamiV1(): Promise; +export interface RosettaV1 { + trackEvent(event: TealiumData): void; +} +export declare function rosettaV1(): Promise; diff --git a/dist/ps-web-apis.esm.js b/dist/ps-web-apis.esm.js index 5eb2db6..73c7f44 100644 --- a/dist/ps-web-apis.esm.js +++ b/dist/ps-web-apis.esm.js @@ -39,5 +39,8 @@ function requireApi(name) { function whoamiV1() { return requireApi("whoami:v1"); } +function rosettaV1() { + return requireApi("rosetta:v1"); +} -export { whoamiV1 }; +export { whoamiV1, rosettaV1 };