@sweepbright/api-client 0.40.1 → 0.40.2

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/client.d.ts CHANGED
@@ -58,7 +58,7 @@ export declare class ClientImpl implements Client {
58
58
  ids: string;
59
59
  companyId: string;
60
60
  }) => Promise<{
61
- data: import("./types").NegotiatorInfo[];
61
+ data: import("./entities/negotiator").CompanyNegotiator[];
62
62
  }>;
63
63
  };
64
64
  get offices(): {
@@ -4,15 +4,28 @@ export interface Negotiator {
4
4
  last_name?: string;
5
5
  email?: string;
6
6
  phone?: string;
7
- picture?: string;
8
- picture_url?: string;
9
- full_name: string;
7
+ full_name?: string;
8
+ role_id?: string;
9
+ created_at: string;
10
+ updated_at: string;
11
+ locale?: string;
12
+ office_id: string;
10
13
  photo?: {
11
14
  data: {
12
15
  url: string;
16
+ uploaded_at: string;
17
+ photo_file_id: string;
13
18
  };
14
19
  };
15
20
  }
16
21
  export interface NegotiatorData {
17
22
  data: Negotiator;
18
23
  }
24
+ export interface CompanyNegotiator {
25
+ id: number;
26
+ first_name?: string;
27
+ last_name?: string;
28
+ picture_url?: string;
29
+ is_archived: boolean;
30
+ photo_file_id?: string;
31
+ }
@@ -1,9 +1,10 @@
1
- import { ClientCtx, NegotiatorInfo } from '../types';
1
+ import { CompanyNegotiator } from '../entities/negotiator';
2
+ import { ClientCtx } from '../types';
2
3
  export default function (ctx: ClientCtx): {
3
4
  getNegotiatorsByIdCompanyId: (attributes: {
4
5
  ids: string;
5
6
  companyId: string;
6
7
  }) => Promise<{
7
- data: NegotiatorInfo[];
8
+ data: CompanyNegotiator[];
8
9
  }>;
9
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"negotiators.js","sourceRoot":"","sources":["../../src/resources/negotiators.ts"],"names":[],"mappings":";;AAEA,4BAgBC;AAlBD,oCAAgE;AAEhE,mBAAyB,GAAc;IACrC,SAAS,2BAA2B,CAAC,UAGpC;QACC,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CACvB,uBAAuB,UAAU,CAAC,SAAS,cAAc,EACzD;YACE,MAAM,EAAE,EAAE,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE;SAChC,CACgD,CAAC;IACtD,CAAC;IACD,OAAO;QACL,2BAA2B;KAC5B,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"negotiators.js","sourceRoot":"","sources":["../../src/resources/negotiators.ts"],"names":[],"mappings":";;AAGA,4BAgBC;AAlBD,oCAAgD;AAEhD,mBAAyB,GAAc;IACrC,SAAS,2BAA2B,CAAC,UAGpC;QACC,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CACvB,uBAAuB,UAAU,CAAC,SAAS,cAAc,EACzD;YACE,MAAM,EAAE,EAAE,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE;SAChC,CACF,CAAC;IACJ,CAAC;IACD,OAAO;QACL,2BAA2B;KAC5B,CAAC;AACJ,CAAC"}
package/dist/types.d.ts CHANGED
@@ -64,16 +64,6 @@ export type ClientCtx = {
64
64
  checkAuth: (tokenType: TokenType) => void;
65
65
  httpClient: AxiosInstance;
66
66
  };
67
- export interface NegotiatorInfo {
68
- id: number;
69
- first_name?: string;
70
- last_name?: string;
71
- picture_url?: string;
72
- full_name?: string;
73
- email?: string;
74
- phone?: string;
75
- picture?: string;
76
- }
77
67
  export interface GetUnitsInput {
78
68
  page?: number;
79
69
  limit?: number;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.40.1",
2
+ "version": "0.40.2",
3
3
  "license": "UNLICENCED",
4
4
  "main": "./dist/index.js",
5
5
  "typings": "./dist/index.d.ts",