Skip to content

Commit 8d5108b

Browse files
author
Univibe69
committed
1.1.1 release
1 parent ff88d28 commit 8d5108b

18 files changed

+2399
-2013
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "comapi-sdk-js-foundation",
33
"description": "Comapi Javascript SDK - Foundation",
4-
"version": "1.0.3",
4+
"version": "1.1.1",
55
"keywords": [
66
"messaging",
77
"chat",

dist/comapi-foundation.js

Lines changed: 2274 additions & 1920 deletions
Large diffs are not rendered by default.

dist/comapi-foundation.min.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/profile.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ sdk.profile.getMyProfile()
1616
```
1717

1818
## Updating the user's profile
19-
19+
Note, this will overwrite the existing profile - if you want to modify a subset of the user's profile, please used the patch function.
2020
```javascript
2121
sdk.services.profile.updateMyProfile(profile)
2222
.then(function (updatedProfile) {
@@ -27,6 +27,21 @@ sdk.services.profile.updateMyProfile(profile)
2727
});
2828
```
2929

30+
## Patching the user's profile
31+
Patching has the effect of merging the existing profile with the data supplied in the patch call.
32+
33+
```javascript
34+
sdk.services.profile.patchMyProfile(data)
35+
.then(function (updatedProfile) {
36+
console.error("patchMyProfile() succeeded", updatedProfile);
37+
})
38+
.catch(function (error) {
39+
console.error("patchMyProfile() failed", error);
40+
});
41+
```
42+
43+
44+
3045
## eTags
3146

3247
The SDK internally uses [eTags](https://en.wikipedia.org/wiki/HTTP_ETag) to prevent simultaneous updates of the profile from overwriting each other.

index.d.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

index.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "@comapi/sdk-js-foundation",
33
"author": "Comapi",
44
"description": "Comapi Javascript SDK - Foundation",
5-
"version": "1.1.0",
6-
"main": "./index.js",
7-
"types": "./index.d.ts",
5+
"version": "1.1.1",
6+
"main": "./src/index.js",
7+
"types": "./src/index.d.ts",
88
"repository": {
99
"type": "git",
1010
"url": "https://github.com/comapi/comapi-sdk-js.git"

src/interfaces.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ export interface ISessionManager {
182182
getValidToken(): Promise<string>;
183183
startSession(): Promise<ISessionInfo>;
184184
endSession(): Promise<boolean>;
185+
requestSession(): Promise<any>;
186+
removeSession(): Promise<boolean>;
185187
}
186188
/**
187189
* Network manager interface

src/interfaces.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)