bx-rest 0.8.4 → 0.8.6

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.
Files changed (89) hide show
  1. package/consts/part-name-methods.d.ts +5 -0
  2. package/esm2022/consts/part-name-methods.mjs +6 -1
  3. package/esm2022/map/crm/company.mjs +53 -0
  4. package/esm2022/map/crm/contact.mjs +51 -0
  5. package/esm2022/map/crm/deal.mjs +63 -0
  6. package/esm2022/map/crm/index.mjs +5 -0
  7. package/esm2022/map/crm/lead.mjs +61 -0
  8. package/esm2022/request-navvy/crm/company.mjs +76 -0
  9. package/esm2022/request-navvy/crm/contact.mjs +76 -0
  10. package/esm2022/request-navvy/crm/deal.mjs +76 -0
  11. package/esm2022/request-navvy/crm/lead.mjs +76 -0
  12. package/esm2022/request-navvy/crm.mjs +13 -0
  13. package/esm2022/rest/navvy.mjs +3 -1
  14. package/esm2022/typification/rest/base/field-bx-type.mjs +2 -0
  15. package/esm2022/typification/rest/base.mjs +7 -1
  16. package/esm2022/typification/rest/crm/company/add.mjs +2 -0
  17. package/esm2022/typification/rest/crm/company/company.mjs +2 -0
  18. package/esm2022/typification/rest/crm/company/delete.mjs +2 -0
  19. package/esm2022/typification/rest/crm/company/get.mjs +2 -0
  20. package/esm2022/typification/rest/crm/company/index.mjs +7 -0
  21. package/esm2022/typification/rest/crm/company/list.mjs +2 -0
  22. package/esm2022/typification/rest/crm/company/update.mjs +2 -0
  23. package/esm2022/typification/rest/crm/contact/add.mjs +2 -0
  24. package/esm2022/typification/rest/crm/contact/contact.mjs +2 -0
  25. package/esm2022/typification/rest/crm/contact/delete.mjs +2 -0
  26. package/esm2022/typification/rest/crm/contact/get.mjs +2 -0
  27. package/esm2022/typification/rest/crm/contact/index.mjs +7 -0
  28. package/esm2022/typification/rest/crm/contact/list.mjs +2 -0
  29. package/esm2022/typification/rest/crm/contact/update.mjs +2 -0
  30. package/esm2022/typification/rest/crm/deal/add.mjs +2 -0
  31. package/esm2022/typification/rest/crm/deal/deal.mjs +2 -0
  32. package/esm2022/typification/rest/crm/deal/delete.mjs +2 -0
  33. package/esm2022/typification/rest/crm/deal/get.mjs +2 -0
  34. package/esm2022/typification/rest/crm/deal/index.mjs +7 -0
  35. package/esm2022/typification/rest/crm/deal/list.mjs +2 -0
  36. package/esm2022/typification/rest/crm/deal/update.mjs +2 -0
  37. package/esm2022/typification/rest/crm/index.mjs +5 -0
  38. package/esm2022/typification/rest/crm/lead/add.mjs +2 -0
  39. package/esm2022/typification/rest/crm/lead/delete.mjs +2 -0
  40. package/esm2022/typification/rest/crm/lead/get.mjs +2 -0
  41. package/esm2022/typification/rest/crm/lead/index.mjs +7 -0
  42. package/esm2022/typification/rest/crm/lead/lead.mjs +2 -0
  43. package/esm2022/typification/rest/crm/lead/list.mjs +2 -0
  44. package/esm2022/typification/rest/crm/lead/update.mjs +2 -0
  45. package/fesm2022/bx-rest.mjs +532 -0
  46. package/fesm2022/bx-rest.mjs.map +1 -1
  47. package/map/crm/company.d.ts +19 -0
  48. package/map/crm/contact.d.ts +19 -0
  49. package/map/crm/deal.d.ts +19 -0
  50. package/map/crm/index.d.ts +4 -0
  51. package/map/crm/lead.d.ts +19 -0
  52. package/package.json +1 -1
  53. package/request-navvy/crm/company.d.ts +59 -0
  54. package/request-navvy/crm/contact.d.ts +59 -0
  55. package/request-navvy/crm/deal.d.ts +59 -0
  56. package/request-navvy/crm/lead.d.ts +59 -0
  57. package/request-navvy/crm.d.ts +10 -0
  58. package/rest/navvy.d.ts +2 -0
  59. package/typification/rest/base/field-bx-type.d.ts +1 -0
  60. package/typification/rest/base.d.ts +6 -0
  61. package/typification/rest/crm/company/add.d.ts +6 -0
  62. package/typification/rest/crm/company/company.d.ts +38 -0
  63. package/typification/rest/crm/company/delete.d.ts +3 -0
  64. package/typification/rest/crm/company/get.d.ts +3 -0
  65. package/typification/rest/crm/company/index.d.ts +6 -0
  66. package/typification/rest/crm/company/list.d.ts +6 -0
  67. package/typification/rest/crm/company/update.d.ts +7 -0
  68. package/typification/rest/crm/contact/add.d.ts +6 -0
  69. package/typification/rest/crm/contact/contact.d.ts +41 -0
  70. package/typification/rest/crm/contact/delete.d.ts +3 -0
  71. package/typification/rest/crm/contact/get.d.ts +3 -0
  72. package/typification/rest/crm/contact/index.d.ts +6 -0
  73. package/typification/rest/crm/contact/list.d.ts +6 -0
  74. package/typification/rest/crm/contact/update.d.ts +7 -0
  75. package/typification/rest/crm/deal/add.d.ts +6 -0
  76. package/typification/rest/crm/deal/deal.d.ts +47 -0
  77. package/typification/rest/crm/deal/delete.d.ts +3 -0
  78. package/typification/rest/crm/deal/get.d.ts +3 -0
  79. package/typification/rest/crm/deal/index.d.ts +6 -0
  80. package/typification/rest/crm/deal/list.d.ts +6 -0
  81. package/typification/rest/crm/deal/update.d.ts +7 -0
  82. package/typification/rest/crm/index.d.ts +4 -0
  83. package/typification/rest/crm/lead/add.d.ts +6 -0
  84. package/typification/rest/crm/lead/delete.d.ts +3 -0
  85. package/typification/rest/crm/lead/get.d.ts +3 -0
  86. package/typification/rest/crm/lead/index.d.ts +6 -0
  87. package/typification/rest/crm/lead/lead.d.ts +52 -0
  88. package/typification/rest/crm/lead/list.d.ts +6 -0
  89. package/typification/rest/crm/lead/update.d.ts +7 -0
@@ -0,0 +1,19 @@
1
+ import { iBXRestCrmCompany, iBXRestCrmCompanyHttp } from '../../typification/rest/crm';
2
+ export declare class BXRestMapCrmCompany {
3
+ /**
4
+ * Преобразует массив компаний из HTTP формата в локальный
5
+ */
6
+ static list(v: iBXRestCrmCompanyHttp[] | undefined): iBXRestCrmCompany[] | undefined;
7
+ /**
8
+ * Преобразует одну компанию из HTTP формата в локальный
9
+ */
10
+ static get(v: iBXRestCrmCompanyHttp | undefined): iBXRestCrmCompany | undefined;
11
+ /**
12
+ * Преобразует компанию из HTTP формата в локальный
13
+ */
14
+ static httpToLocal(company: iBXRestCrmCompanyHttp): iBXRestCrmCompany;
15
+ /**
16
+ * Преобразует компанию из локального формата в HTTP
17
+ */
18
+ static localToHttp(company: iBXRestCrmCompany): iBXRestCrmCompanyHttp;
19
+ }
@@ -0,0 +1,19 @@
1
+ import { iBXRestCrmContact, iBXRestCrmContactHttp } from '../../typification/rest/crm';
2
+ export declare class BXRestMapCrmContact {
3
+ /**
4
+ * Преобразует массив контактов из HTTP формата в локальный
5
+ */
6
+ static list(v: iBXRestCrmContactHttp[] | undefined): iBXRestCrmContact[] | undefined;
7
+ /**
8
+ * Преобразует один контакт из HTTP формата в локальный
9
+ */
10
+ static get(v: iBXRestCrmContactHttp | undefined): iBXRestCrmContact | undefined;
11
+ /**
12
+ * Преобразует контакт из HTTP формата в локальный
13
+ */
14
+ static httpToLocal(contact: iBXRestCrmContactHttp): iBXRestCrmContact;
15
+ /**
16
+ * Преобразует контакт из локального формата в HTTP
17
+ */
18
+ static localToHttp(contact: iBXRestCrmContact): iBXRestCrmContactHttp;
19
+ }
@@ -0,0 +1,19 @@
1
+ import { iBXRestCrmDeal, iBXRestCrmDealHttp } from '../../typification/rest/crm';
2
+ export declare class BXRestMapCrmDeal {
3
+ /**
4
+ * Преобразует массив сделок из HTTP формата в локальный
5
+ */
6
+ static list(v: iBXRestCrmDealHttp[] | undefined): iBXRestCrmDeal[] | undefined;
7
+ /**
8
+ * Преобразует одну сделку из HTTP формата в локальный
9
+ */
10
+ static get(v: iBXRestCrmDealHttp | undefined): iBXRestCrmDeal | undefined;
11
+ /**
12
+ * Преобразует сделку из HTTP формата в локальный
13
+ */
14
+ static httpToLocal(deal: iBXRestCrmDealHttp): iBXRestCrmDeal;
15
+ /**
16
+ * Преобразует сделку из локального формата в HTTP
17
+ */
18
+ static localToHttp(deal: iBXRestCrmDeal): iBXRestCrmDealHttp;
19
+ }
@@ -0,0 +1,4 @@
1
+ export * from './lead';
2
+ export * from './deal';
3
+ export * from './contact';
4
+ export * from './company';
@@ -0,0 +1,19 @@
1
+ import { iBXRestCrmLead, iBXRestCrmLeadHttp } from '../../typification/rest/crm';
2
+ export declare class BXRestMapCrmLead {
3
+ /**
4
+ * Преобразует массив лидов из HTTP формата в локальный
5
+ */
6
+ static list(v: iBXRestCrmLeadHttp[] | undefined): iBXRestCrmLead[] | undefined;
7
+ /**
8
+ * Преобразует один лид из HTTP формата в локальный
9
+ */
10
+ static get(v: iBXRestCrmLeadHttp | undefined): iBXRestCrmLead | undefined;
11
+ /**
12
+ * Преобразует лид из HTTP формата в локальный
13
+ */
14
+ static httpToLocal(lead: iBXRestCrmLeadHttp): iBXRestCrmLead;
15
+ /**
16
+ * Преобразует лид из локального формата в HTTP
17
+ */
18
+ static localToHttp(lead: iBXRestCrmLead): iBXRestCrmLeadHttp;
19
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bx-rest",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "description": "Bitrix24 REST API client angular, vue or typescript",
5
5
  "keywords": [
6
6
  "bitrix",
@@ -0,0 +1,59 @@
1
+ import { iBXRestParamCrmCompanyAdd, iBXRestParamCrmCompanyGet, iBXRestParamCrmCompanyList, iBXRestParamCrmCompanyUpdate, iBXRestParamCrmCompanyDelete } from '../../typification/rest/crm';
2
+ export declare class BXRestNavvyCrmCompany {
3
+ url: {
4
+ /**
5
+ * Создает новую компанию
6
+ */
7
+ add: string[];
8
+ /**
9
+ * Возвращает компанию по идентификатору
10
+ */
11
+ get: string[];
12
+ /**
13
+ * Возвращает список компаний
14
+ */
15
+ list: string[];
16
+ /**
17
+ * Обновляет существующую компанию
18
+ */
19
+ update: string[];
20
+ /**
21
+ * Удаляет компанию
22
+ */
23
+ delete: string[];
24
+ /**
25
+ * Возвращает описание полей компании
26
+ */
27
+ fields: string[];
28
+ };
29
+ private Navvy;
30
+ /**
31
+ * Создает новую компанию
32
+ * @param param
33
+ */
34
+ add(param: iBXRestParamCrmCompanyAdd): import("../../services/navvy").NavvySimple<number, number, iBXRestParamCrmCompanyAdd | undefined>;
35
+ /**
36
+ * Возвращает компанию по идентификатору
37
+ * @param param
38
+ */
39
+ get(param: iBXRestParamCrmCompanyGet): import("../../services/navvy").NavvySimple<import("../../typification/rest/crm").iBXRestCrmCompanyHttp, import("../../typification/rest/crm").iBXRestCrmCompany, iBXRestParamCrmCompanyGet | undefined>;
40
+ /**
41
+ * Возвращает список компаний
42
+ * @param param
43
+ */
44
+ list(param: iBXRestParamCrmCompanyList): import("../../services/navvy").NavvyPag<import("../../typification/rest/crm").iBXRestCrmCompanyHttp, import("../../typification/rest/crm").iBXRestCrmCompany, iBXRestParamCrmCompanyList>;
45
+ /**
46
+ * Обновляет существующую компанию
47
+ * @param param
48
+ */
49
+ update(param: iBXRestParamCrmCompanyUpdate): import("../../services/navvy").NavvySimple<boolean, boolean, iBXRestParamCrmCompanyUpdate | undefined>;
50
+ /**
51
+ * Удаляет компанию
52
+ * @param param
53
+ */
54
+ delete(param: iBXRestParamCrmCompanyDelete): import("../../services/navvy").NavvySimple<boolean, boolean, iBXRestParamCrmCompanyDelete | undefined>;
55
+ /**
56
+ * Возвращает описание полей компании
57
+ */
58
+ fields(): import("../../services/navvy").NavvySimple<Record<string, any>, Record<string, any>, undefined>;
59
+ }
@@ -0,0 +1,59 @@
1
+ import { iBXRestParamCrmContactAdd, iBXRestParamCrmContactGet, iBXRestParamCrmContactList, iBXRestParamCrmContactUpdate, iBXRestParamCrmContactDelete } from '../../typification/rest/crm';
2
+ export declare class BXRestNavvyCrmContact {
3
+ url: {
4
+ /**
5
+ * Создает новый контакт
6
+ */
7
+ add: string[];
8
+ /**
9
+ * Возвращает контакт по идентификатору
10
+ */
11
+ get: string[];
12
+ /**
13
+ * Возвращает список контактов
14
+ */
15
+ list: string[];
16
+ /**
17
+ * Обновляет существующий контакт
18
+ */
19
+ update: string[];
20
+ /**
21
+ * Удаляет контакт
22
+ */
23
+ delete: string[];
24
+ /**
25
+ * Возвращает описание полей контакта
26
+ */
27
+ fields: string[];
28
+ };
29
+ private Navvy;
30
+ /**
31
+ * Создает новый контакт
32
+ * @param param
33
+ */
34
+ add(param: iBXRestParamCrmContactAdd): import("../../services/navvy").NavvySimple<number, number, iBXRestParamCrmContactAdd | undefined>;
35
+ /**
36
+ * Возвращает контакт по идентификатору
37
+ * @param param
38
+ */
39
+ get(param: iBXRestParamCrmContactGet): import("../../services/navvy").NavvySimple<import("../../typification/rest/crm").iBXRestCrmContactHttp, import("../../typification/rest/crm").iBXRestCrmContact, iBXRestParamCrmContactGet | undefined>;
40
+ /**
41
+ * Возвращает список контактов
42
+ * @param param
43
+ */
44
+ list(param: iBXRestParamCrmContactList): import("../../services/navvy").NavvyPag<import("../../typification/rest/crm").iBXRestCrmContactHttp, import("../../typification/rest/crm").iBXRestCrmContact, iBXRestParamCrmContactList>;
45
+ /**
46
+ * Обновляет существующий контакт
47
+ * @param param
48
+ */
49
+ update(param: iBXRestParamCrmContactUpdate): import("../../services/navvy").NavvySimple<boolean, boolean, iBXRestParamCrmContactUpdate | undefined>;
50
+ /**
51
+ * Удаляет контакт
52
+ * @param param
53
+ */
54
+ delete(param: iBXRestParamCrmContactDelete): import("../../services/navvy").NavvySimple<boolean, boolean, iBXRestParamCrmContactDelete | undefined>;
55
+ /**
56
+ * Возвращает описание полей контакта
57
+ */
58
+ fields(): import("../../services/navvy").NavvySimple<Record<string, any>, Record<string, any>, undefined>;
59
+ }
@@ -0,0 +1,59 @@
1
+ import { iBXRestParamCrmDealAdd, iBXRestParamCrmDealGet, iBXRestParamCrmDealList, iBXRestParamCrmDealUpdate, iBXRestParamCrmDealDelete } from '../../typification/rest/crm';
2
+ export declare class BXRestNavvyCrmDeal {
3
+ url: {
4
+ /**
5
+ * Создает новую сделку
6
+ */
7
+ add: string[];
8
+ /**
9
+ * Возвращает сделку по идентификатору
10
+ */
11
+ get: string[];
12
+ /**
13
+ * Возвращает список сделок
14
+ */
15
+ list: string[];
16
+ /**
17
+ * Обновляет существующую сделку
18
+ */
19
+ update: string[];
20
+ /**
21
+ * Удаляет сделку
22
+ */
23
+ delete: string[];
24
+ /**
25
+ * Возвращает описание полей сделки
26
+ */
27
+ fields: string[];
28
+ };
29
+ private Navvy;
30
+ /**
31
+ * Создает новую сделку
32
+ * @param param
33
+ */
34
+ add(param: iBXRestParamCrmDealAdd): import("../../services/navvy").NavvySimple<number, number, iBXRestParamCrmDealAdd | undefined>;
35
+ /**
36
+ * Возвращает сделку по идентификатору
37
+ * @param param
38
+ */
39
+ get(param: iBXRestParamCrmDealGet): import("../../services/navvy").NavvySimple<import("../../typification/rest/crm").iBXRestCrmDealHttp, import("../../typification/rest/crm").iBXRestCrmDeal, iBXRestParamCrmDealGet | undefined>;
40
+ /**
41
+ * Возвращает список сделок
42
+ * @param param
43
+ */
44
+ list(param: iBXRestParamCrmDealList): import("../../services/navvy").NavvyPag<import("../../typification/rest/crm").iBXRestCrmDealHttp, import("../../typification/rest/crm").iBXRestCrmDeal, iBXRestParamCrmDealList>;
45
+ /**
46
+ * Обновляет существующую сделку
47
+ * @param param
48
+ */
49
+ update(param: iBXRestParamCrmDealUpdate): import("../../services/navvy").NavvySimple<boolean, boolean, iBXRestParamCrmDealUpdate | undefined>;
50
+ /**
51
+ * Удаляет сделку
52
+ * @param param
53
+ */
54
+ delete(param: iBXRestParamCrmDealDelete): import("../../services/navvy").NavvySimple<boolean, boolean, iBXRestParamCrmDealDelete | undefined>;
55
+ /**
56
+ * Возвращает описание полей сделки
57
+ */
58
+ fields(): import("../../services/navvy").NavvySimple<Record<string, any>, Record<string, any>, undefined>;
59
+ }
@@ -0,0 +1,59 @@
1
+ import { iBXRestParamCrmLeadAdd, iBXRestParamCrmLeadGet, iBXRestParamCrmLeadList, iBXRestParamCrmLeadUpdate, iBXRestParamCrmLeadDelete } from '../../typification/rest/crm';
2
+ export declare class BXRestNavvyCrmLead {
3
+ url: {
4
+ /**
5
+ * Создает новый лид
6
+ */
7
+ add: string[];
8
+ /**
9
+ * Возвращает лид по идентификатору
10
+ */
11
+ get: string[];
12
+ /**
13
+ * Возвращает список лидов
14
+ */
15
+ list: string[];
16
+ /**
17
+ * Обновляет существующий лид
18
+ */
19
+ update: string[];
20
+ /**
21
+ * Удаляет лид
22
+ */
23
+ delete: string[];
24
+ /**
25
+ * Возвращает описание полей лида
26
+ */
27
+ fields: string[];
28
+ };
29
+ private Navvy;
30
+ /**
31
+ * Создает новый лид
32
+ * @param param
33
+ */
34
+ add(param: iBXRestParamCrmLeadAdd): import("../../services/navvy").NavvySimple<number, number, iBXRestParamCrmLeadAdd | undefined>;
35
+ /**
36
+ * Возвращает лид по идентификатору
37
+ * @param param
38
+ */
39
+ get(param: iBXRestParamCrmLeadGet): import("../../services/navvy").NavvySimple<import("../../typification/rest/crm").iBXRestCrmLeadHttp, import("../../typification/rest/crm").iBXRestCrmLead, iBXRestParamCrmLeadGet | undefined>;
40
+ /**
41
+ * Возвращает список лидов
42
+ * @param param
43
+ */
44
+ list(param: iBXRestParamCrmLeadList): import("../../services/navvy").NavvyPag<import("../../typification/rest/crm").iBXRestCrmLeadHttp, import("../../typification/rest/crm").iBXRestCrmLead, iBXRestParamCrmLeadList>;
45
+ /**
46
+ * Обновляет существующий лид
47
+ * @param param
48
+ */
49
+ update(param: iBXRestParamCrmLeadUpdate): import("../../services/navvy").NavvySimple<boolean, boolean, iBXRestParamCrmLeadUpdate | undefined>;
50
+ /**
51
+ * Удаляет лид
52
+ * @param param
53
+ */
54
+ delete(param: iBXRestParamCrmLeadDelete): import("../../services/navvy").NavvySimple<boolean, boolean, iBXRestParamCrmLeadDelete | undefined>;
55
+ /**
56
+ * Возвращает описание полей лида
57
+ */
58
+ fields(): import("../../services/navvy").NavvySimple<Record<string, any>, Record<string, any>, undefined>;
59
+ }
@@ -0,0 +1,10 @@
1
+ import { BXRestNavvyCrmLead } from './crm/lead';
2
+ import { BXRestNavvyCrmDeal } from './crm/deal';
3
+ import { BXRestNavvyCrmContact } from './crm/contact';
4
+ import { BXRestNavvyCrmCompany } from './crm/company';
5
+ export declare class BXRestNavvyCrm {
6
+ readonly lead: BXRestNavvyCrmLead;
7
+ readonly deal: BXRestNavvyCrmDeal;
8
+ readonly contact: BXRestNavvyCrmContact;
9
+ readonly company: BXRestNavvyCrmCompany;
10
+ }
package/rest/navvy.d.ts CHANGED
@@ -16,6 +16,7 @@ import { BXRestNavvyApp } from '../request-navvy/app';
16
16
  import { BXRestNavvyTimeMan } from '../request-navvy/timeman';
17
17
  import { BXRestNavvySocialNetWork } from '../request-navvy/socialnetwork';
18
18
  import { BXRestNavvyPull } from '../request-navvy/pull';
19
+ import { BXRestNavvyCrm } from '../request-navvy/crm';
19
20
  export declare class BXRestNavvy {
20
21
  readonly user: BXRestNavvyUser;
21
22
  readonly lists: BXRestNavvyLists;
@@ -33,6 +34,7 @@ export declare class BXRestNavvy {
33
34
  readonly timeMan: BXRestNavvyTimeMan;
34
35
  readonly socialNetWork: BXRestNavvySocialNetWork;
35
36
  readonly pull: BXRestNavvyPull;
37
+ readonly crm: BXRestNavvyCrm;
36
38
  readonly Navvy: Navvy;
37
39
  profile(): import("../services/navvy").NavvySimple<unknown, unknown, typeof BXRestMap.profile | undefined>;
38
40
  }
@@ -0,0 +1 @@
1
+ export type iFieldBXType = 'text' | 'link' | 'datetime' | 'list' | 'phone' | 'timezone' | 'userField' | 'multilist';
@@ -2,3 +2,9 @@
2
2
  * Файл для возможности импорта интерфейсов данного пакета в локальные проекты
3
3
  */
4
4
  export * from './base/answer';
5
+ export * from './base/api-pagination-bx';
6
+ export * from './base/yes-no';
7
+ export * from './base/sort';
8
+ export * from './base/order-options';
9
+ export * from './base/filter-generator';
10
+ export * from './base/field-bx-type';
@@ -0,0 +1,6 @@
1
+ export interface iBXRestParamCrmCompanyAdd {
2
+ fields: Record<string, any>;
3
+ params?: {
4
+ REGISTER_SONET_EVENT?: 'Y' | 'N';
5
+ };
6
+ }
@@ -0,0 +1,38 @@
1
+ import { iBXRestYesNo } from '../../base/yes-no';
2
+ export interface iBXRestCrmCompany extends iBXRestCrmCompanyBase {
3
+ ID: number;
4
+ LEAD_ID?: number;
5
+ ASSIGNED_BY_ID?: number;
6
+ CREATED_BY_ID?: number;
7
+ MODIFY_BY_ID?: number;
8
+ DATE_CREATE?: Date;
9
+ DATE_MODIFY?: Date;
10
+ OPENED?: boolean;
11
+ IS_MY_COMPANY?: boolean;
12
+ EMPLOYEES?: number;
13
+ REVENUE?: number;
14
+ }
15
+ export interface iBXRestCrmCompanyHttp extends iBXRestCrmCompanyBase {
16
+ ID: string;
17
+ LEAD_ID?: string;
18
+ ASSIGNED_BY_ID?: string;
19
+ CREATED_BY_ID?: string;
20
+ MODIFY_BY_ID?: string;
21
+ DATE_CREATE?: string;
22
+ DATE_MODIFY?: string;
23
+ OPENED?: iBXRestYesNo;
24
+ IS_MY_COMPANY?: iBXRestYesNo;
25
+ EMPLOYEES?: string;
26
+ REVENUE?: string;
27
+ }
28
+ interface iBXRestCrmCompanyBase {
29
+ TITLE?: string;
30
+ COMPANY_TYPE?: string;
31
+ LOGO?: string;
32
+ ADDRESS?: string;
33
+ BANKING_DETAILS?: string;
34
+ INDUSTRY?: string;
35
+ CURRENCY_ID?: string;
36
+ [key: string]: any;
37
+ }
38
+ export {};
@@ -0,0 +1,3 @@
1
+ export interface iBXRestParamCrmCompanyDelete {
2
+ id: number | string;
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface iBXRestParamCrmCompanyGet {
2
+ id: number | string;
3
+ }
@@ -0,0 +1,6 @@
1
+ export * from './add';
2
+ export * from './get';
3
+ export * from './list';
4
+ export * from './update';
5
+ export * from './delete';
6
+ export * from './company';
@@ -0,0 +1,6 @@
1
+ import { iBXRestPagination } from '../../base/api-pagination-bx';
2
+ export interface iBXRestParamCrmCompanyList extends iBXRestPagination {
3
+ order?: Record<string, 'asc' | 'desc'>;
4
+ filter?: Record<string, any>;
5
+ select?: string[];
6
+ }
@@ -0,0 +1,7 @@
1
+ export interface iBXRestParamCrmCompanyUpdate {
2
+ id: number | string;
3
+ fields: Record<string, any>;
4
+ params?: {
5
+ REGISTER_SONET_EVENT?: 'Y' | 'N';
6
+ };
7
+ }
@@ -0,0 +1,6 @@
1
+ export interface iBXRestParamCrmContactAdd {
2
+ fields: Record<string, any>;
3
+ params?: {
4
+ REGISTER_SONET_EVENT?: 'Y' | 'N';
5
+ };
6
+ }
@@ -0,0 +1,41 @@
1
+ import { iBXRestYesNo } from '../../base/yes-no';
2
+ export interface iBXRestCrmContact extends iBXRestCrmContactBase {
3
+ ID: number;
4
+ COMPANY_ID?: number;
5
+ LEAD_ID?: number;
6
+ ASSIGNED_BY_ID?: number;
7
+ CREATED_BY_ID?: number;
8
+ MODIFY_BY_ID?: number;
9
+ DATE_CREATE?: Date;
10
+ DATE_MODIFY?: Date;
11
+ BIRTHDATE?: Date;
12
+ OPENED?: boolean;
13
+ }
14
+ export interface iBXRestCrmContactHttp extends iBXRestCrmContactBase {
15
+ ID: string;
16
+ COMPANY_ID?: string;
17
+ LEAD_ID?: string;
18
+ ASSIGNED_BY_ID?: string;
19
+ CREATED_BY_ID?: string;
20
+ MODIFY_BY_ID?: string;
21
+ DATE_CREATE?: string;
22
+ DATE_MODIFY?: string;
23
+ BIRTHDATE?: string;
24
+ OPENED?: iBXRestYesNo;
25
+ }
26
+ interface iBXRestCrmContactBase {
27
+ HONORIFIC?: string;
28
+ NAME?: string;
29
+ SECOND_NAME?: string;
30
+ LAST_NAME?: string;
31
+ PHOTO?: string;
32
+ TYPE_ID?: string;
33
+ SOURCE_ID?: string;
34
+ SOURCE_DESCRIPTION?: string;
35
+ COMPANY_TITLE?: string;
36
+ POST?: string;
37
+ ADDRESS?: string;
38
+ COMMENTS?: string;
39
+ [key: string]: any;
40
+ }
41
+ export {};
@@ -0,0 +1,3 @@
1
+ export interface iBXRestParamCrmContactDelete {
2
+ id: number | string;
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface iBXRestParamCrmContactGet {
2
+ id: number | string;
3
+ }
@@ -0,0 +1,6 @@
1
+ export * from './add';
2
+ export * from './get';
3
+ export * from './list';
4
+ export * from './update';
5
+ export * from './delete';
6
+ export * from './contact';
@@ -0,0 +1,6 @@
1
+ import { iBXRestPagination } from '../../base/api-pagination-bx';
2
+ export interface iBXRestParamCrmContactList extends iBXRestPagination {
3
+ order?: Record<string, 'asc' | 'desc'>;
4
+ filter?: Record<string, any>;
5
+ select?: string[];
6
+ }
@@ -0,0 +1,7 @@
1
+ export interface iBXRestParamCrmContactUpdate {
2
+ id: number | string;
3
+ fields: Record<string, any>;
4
+ params?: {
5
+ REGISTER_SONET_EVENT?: 'Y' | 'N';
6
+ };
7
+ }
@@ -0,0 +1,6 @@
1
+ export interface iBXRestParamCrmDealAdd {
2
+ fields: Record<string, any>;
3
+ params?: {
4
+ REGISTER_SONET_EVENT?: 'Y' | 'N';
5
+ };
6
+ }
@@ -0,0 +1,47 @@
1
+ import { iBXRestYesNo } from '../../base/yes-no';
2
+ export interface iBXRestCrmDeal extends iBXRestCrmDealBase {
3
+ ID: number;
4
+ COMPANY_ID?: number;
5
+ CONTACT_ID?: number;
6
+ ASSIGNED_BY_ID?: number;
7
+ CREATED_BY_ID?: number;
8
+ MODIFY_BY_ID?: number;
9
+ DATE_CREATE?: Date;
10
+ DATE_MODIFY?: Date;
11
+ BEGINDATE?: Date;
12
+ CLOSEDATE?: Date;
13
+ OPENED?: boolean;
14
+ IS_MANUAL_OPPORTUNITY?: boolean;
15
+ OPPORTUNITY?: number;
16
+ PROBABILITY?: number;
17
+ TAX_VALUE?: number;
18
+ LOCATION_ID?: number;
19
+ }
20
+ export interface iBXRestCrmDealHttp extends iBXRestCrmDealBase {
21
+ ID: string;
22
+ COMPANY_ID?: string;
23
+ CONTACT_ID?: string;
24
+ ASSIGNED_BY_ID?: string;
25
+ CREATED_BY_ID?: string;
26
+ MODIFY_BY_ID?: string;
27
+ DATE_CREATE?: string;
28
+ DATE_MODIFY?: string;
29
+ BEGINDATE?: string;
30
+ CLOSEDATE?: string;
31
+ OPENED?: iBXRestYesNo;
32
+ IS_MANUAL_OPPORTUNITY?: iBXRestYesNo;
33
+ OPPORTUNITY?: string;
34
+ PROBABILITY?: string;
35
+ TAX_VALUE?: string;
36
+ LOCATION_ID?: string;
37
+ }
38
+ interface iBXRestCrmDealBase {
39
+ TITLE?: string;
40
+ TYPE_ID?: string;
41
+ STAGE_ID?: string;
42
+ CURRENCY_ID?: string;
43
+ COMMENTS?: string;
44
+ ADDITIONAL_INFO?: string;
45
+ [key: string]: any;
46
+ }
47
+ export {};
@@ -0,0 +1,3 @@
1
+ export interface iBXRestParamCrmDealDelete {
2
+ id: number | string;
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface iBXRestParamCrmDealGet {
2
+ id: number | string;
3
+ }
@@ -0,0 +1,6 @@
1
+ export * from './add';
2
+ export * from './get';
3
+ export * from './list';
4
+ export * from './update';
5
+ export * from './delete';
6
+ export * from './deal';
@@ -0,0 +1,6 @@
1
+ import { iBXRestPagination } from '../../base/api-pagination-bx';
2
+ export interface iBXRestParamCrmDealList extends iBXRestPagination {
3
+ order?: Record<string, 'asc' | 'desc'>;
4
+ filter?: Record<string, any>;
5
+ select?: string[];
6
+ }
@@ -0,0 +1,7 @@
1
+ export interface iBXRestParamCrmDealUpdate {
2
+ id: number | string;
3
+ fields: Record<string, any>;
4
+ params?: {
5
+ REGISTER_SONET_EVENT?: 'Y' | 'N';
6
+ };
7
+ }
@@ -0,0 +1,4 @@
1
+ export * from './lead';
2
+ export * from './deal';
3
+ export * from './contact';
4
+ export * from './company';
@@ -0,0 +1,6 @@
1
+ export interface iBXRestParamCrmLeadAdd {
2
+ fields: Record<string, any>;
3
+ params?: {
4
+ REGISTER_SONET_EVENT?: 'Y' | 'N';
5
+ };
6
+ }
@@ -0,0 +1,3 @@
1
+ export interface iBXRestParamCrmLeadDelete {
2
+ id: number | string;
3
+ }