whio-api-sdk 1.0.3 → 1.0.5

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.
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export { ApiSDK } from "./src/sdk";
2
+ export * from "./src/sdk/types";
package/dist/index.js CHANGED
@@ -1 +1,2 @@
1
1
  export { ApiSDK } from "./src/sdk";
2
+ export * from "./src/sdk/types";
@@ -29,15 +29,15 @@ const config = {
29
29
  storage: new storage(),
30
30
  };
31
31
  const loginCredentials = {
32
- email: "rimu.boddy@make.nz",
33
- password: "cbr400rr",
32
+ email: "",
33
+ password: "",
34
34
  };
35
35
  const sdk = new ApiSDK(config);
36
36
  function main() {
37
37
  return __awaiter(this, void 0, void 0, function* () {
38
38
  yield sdk.login(loginCredentials);
39
39
  const user = sdk.getCurrentUser();
40
- const newUser = yield sdk.createEditorUser("Rimu", "Rimu", "chiscs2snw2@bread.com", "cbr400rr");
40
+ const newUser = yield sdk.createEditorUser("", "", "", "");
41
41
  const team = yield sdk.createTeam("best team ever", "this is the best team ever");
42
42
  console.log(team);
43
43
  const assignRes = yield sdk.addUserToTeam(team.id, newUser.id, "admin");
package/index.ts CHANGED
@@ -1 +1,2 @@
1
- export { ApiSDK } from "./src/sdk";
1
+ export { ApiSDK } from "./src/sdk";
2
+ export * from "./src/sdk/types";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whio-api-sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -1,4 +1,3 @@
1
- import { title } from 'process';
2
1
  import { ApiSDK } from './sdk';
3
2
  import { LoginCredentials, User, SDKConfig } from './types';
4
3
 
@@ -31,8 +30,8 @@ const config: SDKConfig = {
31
30
  };
32
31
 
33
32
  const loginCredentials: LoginCredentials = {
34
- email: "rimu.boddy@make.nz",
35
- password: "cbr400rr",
33
+ email: "",
34
+ password: "",
36
35
  }
37
36
 
38
37
  const sdk = new ApiSDK(config);
@@ -40,10 +39,10 @@ async function main() {
40
39
  await sdk.login(loginCredentials);
41
40
  const user: User | null = sdk.getCurrentUser();
42
41
  const newUser: User = await sdk.createEditorUser(
43
- "Rimu",
44
- "Rimu",
45
- "chiscs2snw2@bread.com",
46
- "cbr400rr",
42
+ "",
43
+ "",
44
+ "",
45
+ "",
47
46
  );
48
47
 
49
48
  const team = await sdk.createTeam(