@bisondesk/core-sdk 1.0.1 → 1.0.4
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/lib/types/fields.d.ts +1 -6
- package/lib/types/fields.d.ts.map +1 -1
- package/lib/types/fields.js +0 -5
- package/lib/types/fields.js.map +1 -1
- package/lib/types/tenants.d.ts.map +1 -1
- package/lib/types/users.d.ts +6 -0
- package/lib/types/users.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/types/fields.ts +0 -5
- package/src/types/tenants.ts +2 -0
- package/src/types/users.ts +9 -0
- package/tsconfig.tsbuildinfo +5 -5
package/lib/types/fields.d.ts
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
import { MultiLangValue } from '@bisondesk/commons-sdk/lib/types';
|
|
2
2
|
export declare enum FieldTypes {
|
|
3
3
|
checkbox = "checkbox",
|
|
4
|
-
collaborator = "collaborator",
|
|
5
4
|
date = "date",
|
|
6
5
|
email = "email",
|
|
7
6
|
image = "image",
|
|
8
|
-
picklist = "picklist",
|
|
9
7
|
multilang = "multilang",
|
|
10
|
-
multiRecord = "multiRecord",
|
|
11
8
|
multiline = "multiline",
|
|
12
9
|
number = "number",
|
|
13
10
|
phoneNumber = "phoneNumber",
|
|
14
11
|
rating = "rating",
|
|
15
|
-
|
|
16
|
-
text = "text",
|
|
17
|
-
location = "location"
|
|
12
|
+
text = "text"
|
|
18
13
|
}
|
|
19
14
|
export declare type PhoneNumberValue = {
|
|
20
15
|
country?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../src/types/fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,oBAAY,UAAU;IACpB,QAAQ,aAAa;IACrB,
|
|
1
|
+
{"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../src/types/fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,oBAAY,UAAU;IACpB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,oBAAY,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;CACxC,CAAC"}
|
package/lib/types/fields.js
CHANGED
|
@@ -4,19 +4,14 @@ exports.FieldTypes = void 0;
|
|
|
4
4
|
var FieldTypes;
|
|
5
5
|
(function (FieldTypes) {
|
|
6
6
|
FieldTypes["checkbox"] = "checkbox";
|
|
7
|
-
FieldTypes["collaborator"] = "collaborator";
|
|
8
7
|
FieldTypes["date"] = "date";
|
|
9
8
|
FieldTypes["email"] = "email";
|
|
10
9
|
FieldTypes["image"] = "image";
|
|
11
|
-
FieldTypes["picklist"] = "picklist";
|
|
12
10
|
FieldTypes["multilang"] = "multilang";
|
|
13
|
-
FieldTypes["multiRecord"] = "multiRecord";
|
|
14
11
|
FieldTypes["multiline"] = "multiline";
|
|
15
12
|
FieldTypes["number"] = "number";
|
|
16
13
|
FieldTypes["phoneNumber"] = "phoneNumber";
|
|
17
14
|
FieldTypes["rating"] = "rating";
|
|
18
|
-
FieldTypes["record"] = "record";
|
|
19
15
|
FieldTypes["text"] = "text";
|
|
20
|
-
FieldTypes["location"] = "location";
|
|
21
16
|
})(FieldTypes = exports.FieldTypes || (exports.FieldTypes = {}));
|
|
22
17
|
//# sourceMappingURL=fields.js.map
|
package/lib/types/fields.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../src/types/fields.ts"],"names":[],"mappings":";;;AAEA,IAAY,
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../src/types/fields.ts"],"names":[],"mappings":";;;AAEA,IAAY,UAWX;AAXD,WAAY,UAAU;IACpB,mCAAqB,CAAA;IACrB,2BAAa,CAAA;IACb,6BAAe,CAAA;IACf,6BAAe,CAAA;IACf,qCAAuB,CAAA;IACvB,qCAAuB,CAAA;IACvB,+BAAiB,CAAA;IACjB,yCAA2B,CAAA;IAC3B,+BAAiB,CAAA;IACjB,2BAAa,CAAA;AACf,CAAC,EAXW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAWrB"}
|
|
@@ -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;
|
|
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"}
|
package/lib/types/users.d.ts
CHANGED
package/lib/types/users.d.ts.map
CHANGED
|
@@ -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
package/src/types/fields.ts
CHANGED
|
@@ -2,20 +2,15 @@ import { MultiLangValue } from '@bisondesk/commons-sdk/lib/types';
|
|
|
2
2
|
|
|
3
3
|
export enum FieldTypes {
|
|
4
4
|
checkbox = 'checkbox',
|
|
5
|
-
collaborator = 'collaborator',
|
|
6
5
|
date = 'date',
|
|
7
6
|
email = 'email',
|
|
8
7
|
image = 'image',
|
|
9
|
-
picklist = 'picklist',
|
|
10
8
|
multilang = 'multilang',
|
|
11
|
-
multiRecord = 'multiRecord',
|
|
12
9
|
multiline = 'multiline',
|
|
13
10
|
number = 'number',
|
|
14
11
|
phoneNumber = 'phoneNumber',
|
|
15
12
|
rating = 'rating',
|
|
16
|
-
record = 'record',
|
|
17
13
|
text = 'text',
|
|
18
|
-
location = 'location',
|
|
19
14
|
}
|
|
20
15
|
|
|
21
16
|
export type PhoneNumberValue = {
|
package/src/types/tenants.ts
CHANGED
package/src/types/users.ts
CHANGED
|
@@ -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
|
+
};
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -232,8 +232,8 @@
|
|
|
232
232
|
"affectsGlobalScope": false
|
|
233
233
|
},
|
|
234
234
|
"./src/types/fields.ts": {
|
|
235
|
-
"version": "
|
|
236
|
-
"signature": "
|
|
235
|
+
"version": "8ac9ce89d90d69cdf0d12ceb3b5da672298484fb83a5373e35fad9fa6827ddee",
|
|
236
|
+
"signature": "6668e44f0a2b203d500c18f6762d892a848623b6aa6b0e8d52b4e1343e29ef03",
|
|
237
237
|
"affectsGlobalScope": false
|
|
238
238
|
},
|
|
239
239
|
"./src/types/picklists.ts": {
|
|
@@ -252,13 +252,13 @@
|
|
|
252
252
|
"affectsGlobalScope": false
|
|
253
253
|
},
|
|
254
254
|
"./src/types/tenants.ts": {
|
|
255
|
-
"version": "
|
|
255
|
+
"version": "161ca6be8a2a840cbe03b2f9d309a01d00564e16c3d1a3d41020673179766914",
|
|
256
256
|
"signature": "a102ad1c4a064d0e037ce9e314ae190252eafab20674073ef5acab7735eb3f81",
|
|
257
257
|
"affectsGlobalScope": false
|
|
258
258
|
},
|
|
259
259
|
"./src/types/users.ts": {
|
|
260
|
-
"version": "
|
|
261
|
-
"signature": "
|
|
260
|
+
"version": "56af8acceb88210c252c83905a6e81b6f505cde2096d0fb67d0a050d46e049b2",
|
|
261
|
+
"signature": "8d4faca6544efee79f10c4a606bf8c7bf39f0a9eabf2fdc941f09b1c9f7e323d",
|
|
262
262
|
"affectsGlobalScope": false
|
|
263
263
|
},
|
|
264
264
|
"./src/types/utils.ts": {
|