@bisondesk/core-sdk 1.0.13 → 1.0.15

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.
@@ -0,0 +1,38 @@
1
+ export declare type Organization = {
2
+ countryCode: string;
3
+ createdAt: string;
4
+ createdBy: string;
5
+ externalId: number;
6
+ id: string;
7
+ name: string;
8
+ segment?: string;
9
+ type?: 'COMPANY' | 'INDIVIDUAL';
10
+ vatNumber?: string;
11
+ };
12
+ export declare type SearchOrganization = {
13
+ org: Partial<Organization>;
14
+ };
15
+ export declare type SearchContact = {
16
+ org: Partial<Organization>;
17
+ contact: Partial<Contact>;
18
+ };
19
+ export declare type Contact = {
20
+ id: string;
21
+ organizationId: string;
22
+ accountManager?: string;
23
+ language?: string;
24
+ firstName?: string;
25
+ lastName: string;
26
+ createdAt: string;
27
+ createdBy: string;
28
+ phones: {
29
+ label: string;
30
+ value: string;
31
+ }[];
32
+ emails: {
33
+ label: string;
34
+ value: string;
35
+ }[];
36
+ job?: string;
37
+ };
38
+ //# sourceMappingURL=crm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crm.d.ts","sourceRoot":"","sources":["../../src/types/crm.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oBAAY,kBAAkB,GAAG;IAC/B,GAAG,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CAC5B,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC1B,GAAG,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;CAC3B,CAAC;AAEF,oBAAY,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC3C,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC3C,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=crm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crm.js","sourceRoot":"","sources":["../../src/types/crm.ts"],"names":[],"mappings":""}
@@ -15,9 +15,13 @@ export declare type HdmsVehiclesSync = {
15
15
  active: boolean;
16
16
  filterName: string;
17
17
  };
18
+ export declare type HdmsCrmSync = {
19
+ active: boolean;
20
+ filterName: string;
21
+ };
18
22
  export declare type TenantSyncSettings = {
19
23
  tenantId: string;
20
24
  hdmsVehicles: HdmsVehiclesSync | undefined;
21
- hdmsCrm: unknown | undefined;
25
+ hdmsCrm: HdmsCrmSync | undefined;
22
26
  };
23
27
  //# sourceMappingURL=tenants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../src/types/tenants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,M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;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oBAAY,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC3C,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC;CAClC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bisondesk/core-sdk",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "clean": "rm -rf build dist lib *.tsbuildinfo",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "author": "Ivo Anastácio",
13
13
  "dependencies": {
14
- "@bisondesk/commons-sdk": "^1.0.13",
14
+ "@bisondesk/commons-sdk": "^1.0.15",
15
15
  "joi": "17.4.0"
16
16
  },
17
17
  "devDependencies": {
@@ -0,0 +1,34 @@
1
+ export type Organization = {
2
+ countryCode: string;
3
+ createdAt: string;
4
+ createdBy: string;
5
+ externalId: number;
6
+ id: string;
7
+ name: string;
8
+ segment?: string;
9
+ type?: 'COMPANY' | 'INDIVIDUAL';
10
+ vatNumber?: string;
11
+ };
12
+
13
+ export type SearchOrganization = {
14
+ org: Partial<Organization>;
15
+ };
16
+
17
+ export type SearchContact = {
18
+ org: Partial<Organization>;
19
+ contact: Partial<Contact>;
20
+ };
21
+
22
+ export type Contact = {
23
+ id: string;
24
+ organizationId: string;
25
+ accountManager?: string;
26
+ language?: string;
27
+ firstName?: string;
28
+ lastName: string;
29
+ createdAt: string;
30
+ createdBy: string;
31
+ phones: { label: string; value: string }[];
32
+ emails: { label: string; value: string }[];
33
+ job?: string;
34
+ };
@@ -6,7 +6,7 @@ export type NewTenant = {
6
6
  name: string;
7
7
  languages: string[];
8
8
  subdomain: string;
9
- currency: string
9
+ currency: string;
10
10
  };
11
11
 
12
12
  export type Tenant = NewTenant & {
@@ -21,8 +21,13 @@ export type HdmsVehiclesSync = {
21
21
  filterName: string;
22
22
  };
23
23
 
24
+ export type HdmsCrmSync = {
25
+ active: boolean;
26
+ filterName: string;
27
+ };
28
+
24
29
  export type TenantSyncSettings = {
25
30
  tenantId: string;
26
31
  hdmsVehicles: HdmsVehiclesSync | undefined;
27
- hdmsCrm: unknown | undefined;
32
+ hdmsCrm: HdmsCrmSync | undefined;
28
33
  };
@@ -221,6 +221,11 @@
221
221
  "signature": "c20d2c34fda1657c54c6da833623aabfae503c6f9b69105394a24c56baed5e3b",
222
222
  "affectsGlobalScope": false
223
223
  },
224
+ "./src/types/crm.ts": {
225
+ "version": "ca434b60fb8a49a9f37e056e31d870c053e965359d645c6be8ac997716f49d21",
226
+ "signature": "49f268113541b33e300c94ed6123bb2ab43d383b3eec2d2755d8fbbfaf125793",
227
+ "affectsGlobalScope": false
228
+ },
224
229
  "../commons-sdk/lib/types.d.ts": {
225
230
  "version": "a1f5b22e933458b9c3a5c6d96156e9865e32d047385006e7a6b1136c0c2ab9e5",
226
231
  "signature": "a1f5b22e933458b9c3a5c6d96156e9865e32d047385006e7a6b1136c0c2ab9e5",
@@ -257,8 +262,8 @@
257
262
  "affectsGlobalScope": false
258
263
  },
259
264
  "./src/types/tenants.ts": {
260
- "version": "3f1efabd2454d5d31fd9a9a3b2795bc784ff104d9a848b8f34f42e5d13778eb8",
261
- "signature": "b2bdb86b7d62f583380ad5a031e69f4bd8f6402b60b2cfbbeb6b4dc0cb7bf5e6",
265
+ "version": "30fdd661fcf1ab65cd5ee3d53e32f278f34526296120f8e54d78441113f8e5fd",
266
+ "signature": "a1107b6f41bfee997c5dee6a77da5b43deed1ce33f90e0eefcebcb2f6f90049d",
262
267
  "affectsGlobalScope": false
263
268
  },
264
269
  "./src/types/users.ts": {
@@ -2959,6 +2964,7 @@
2959
2964
  "../../node_modules/typescript/lib/lib.esnext.weakref.d.ts",
2960
2965
  "../commons-sdk/lib/types.d.ts",
2961
2966
  "./src/constants.ts",
2967
+ "./src/types/crm.ts",
2962
2968
  "./src/types/definitions.ts",
2963
2969
  "./src/types/events.ts",
2964
2970
  "./src/types/fields.ts",