@bisondesk/core-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.
@@ -1 +1 @@
1
- {"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../src/types/tenants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAE1D,oBAAY,SAAS,GAAG;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,MAAM,GAAG,SAAS,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../src/types/tenants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAE1D,oBAAY,SAAS,GAAG;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,MAAM,GAAG,SAAS,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;CAGnB,CAAC"}
@@ -12,4 +12,10 @@ export declare type User = {
12
12
  roles: string[];
13
13
  updatedAt: string;
14
14
  };
15
+ export declare type UserSummary = {
16
+ firstName: string;
17
+ id: string;
18
+ lastName: string;
19
+ picture?: AttachmentValue;
20
+ };
15
21
  //# sourceMappingURL=users.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/types/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE7D,oBAAY,IAAI,GAAG;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,gBAAgB,CAAC;IACxB,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/types/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE7D,oBAAY,IAAI,GAAG;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,gBAAgB,CAAC;IACxB,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAIF,oBAAY,WAAW,GAAG;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,eAAe,CAAC;CAC3B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bisondesk/core-sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "clean": "rm -rf build dist lib *.tsbuildinfo",
@@ -11,4 +11,6 @@ export type NewTenant = {
11
11
  export type Tenant = NewTenant & {
12
12
  id: string;
13
13
  subdomain: string;
14
+ // Pay attention to what information is added here since
15
+ // the tenant can be obtained without authentication
14
16
  };
@@ -13,3 +13,12 @@ export type User = {
13
13
  roles: string[];
14
14
  updatedAt: string;
15
15
  };
16
+
17
+ // Short version of the User entity, with only the properties
18
+ // that should be available to any app user.
19
+ export type UserSummary = {
20
+ firstName: string;
21
+ id: string;
22
+ lastName: string;
23
+ picture?: AttachmentValue;
24
+ };
@@ -252,13 +252,13 @@
252
252
  "affectsGlobalScope": false
253
253
  },
254
254
  "./src/types/tenants.ts": {
255
- "version": "218d750e68bb77615b05962fddbed157e863b997c90ec57acbb7a97fee0fbee2",
255
+ "version": "161ca6be8a2a840cbe03b2f9d309a01d00564e16c3d1a3d41020673179766914",
256
256
  "signature": "a102ad1c4a064d0e037ce9e314ae190252eafab20674073ef5acab7735eb3f81",
257
257
  "affectsGlobalScope": false
258
258
  },
259
259
  "./src/types/users.ts": {
260
- "version": "43754509c95165cddd691999409bc5e5d68a7ead7d68e8b00e93ecfbfedc512c",
261
- "signature": "a60a823fccc9ba383ed1407104d6b796095bf3cb2246da0463f5c608f91feb9c",
260
+ "version": "56af8acceb88210c252c83905a6e81b6f505cde2096d0fb67d0a050d46e049b2",
261
+ "signature": "8d4faca6544efee79f10c4a606bf8c7bf39f0a9eabf2fdc941f09b1c9f7e323d",
262
262
  "affectsGlobalScope": false
263
263
  },
264
264
  "./src/types/utils.ts": {