bx-rest 0.8.4 → 0.8.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.
Files changed (87) 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.mjs +2 -1
  15. package/esm2022/typification/rest/crm/company/add.mjs +2 -0
  16. package/esm2022/typification/rest/crm/company/company.mjs +2 -0
  17. package/esm2022/typification/rest/crm/company/delete.mjs +2 -0
  18. package/esm2022/typification/rest/crm/company/get.mjs +2 -0
  19. package/esm2022/typification/rest/crm/company/index.mjs +7 -0
  20. package/esm2022/typification/rest/crm/company/list.mjs +2 -0
  21. package/esm2022/typification/rest/crm/company/update.mjs +2 -0
  22. package/esm2022/typification/rest/crm/contact/add.mjs +2 -0
  23. package/esm2022/typification/rest/crm/contact/contact.mjs +2 -0
  24. package/esm2022/typification/rest/crm/contact/delete.mjs +2 -0
  25. package/esm2022/typification/rest/crm/contact/get.mjs +2 -0
  26. package/esm2022/typification/rest/crm/contact/index.mjs +7 -0
  27. package/esm2022/typification/rest/crm/contact/list.mjs +2 -0
  28. package/esm2022/typification/rest/crm/contact/update.mjs +2 -0
  29. package/esm2022/typification/rest/crm/deal/add.mjs +2 -0
  30. package/esm2022/typification/rest/crm/deal/deal.mjs +2 -0
  31. package/esm2022/typification/rest/crm/deal/delete.mjs +2 -0
  32. package/esm2022/typification/rest/crm/deal/get.mjs +2 -0
  33. package/esm2022/typification/rest/crm/deal/index.mjs +7 -0
  34. package/esm2022/typification/rest/crm/deal/list.mjs +2 -0
  35. package/esm2022/typification/rest/crm/deal/update.mjs +2 -0
  36. package/esm2022/typification/rest/crm/index.mjs +5 -0
  37. package/esm2022/typification/rest/crm/lead/add.mjs +2 -0
  38. package/esm2022/typification/rest/crm/lead/delete.mjs +2 -0
  39. package/esm2022/typification/rest/crm/lead/get.mjs +2 -0
  40. package/esm2022/typification/rest/crm/lead/index.mjs +7 -0
  41. package/esm2022/typification/rest/crm/lead/lead.mjs +2 -0
  42. package/esm2022/typification/rest/crm/lead/list.mjs +2 -0
  43. package/esm2022/typification/rest/crm/lead/update.mjs +2 -0
  44. package/fesm2022/bx-rest.mjs +532 -0
  45. package/fesm2022/bx-rest.mjs.map +1 -1
  46. package/map/crm/company.d.ts +19 -0
  47. package/map/crm/contact.d.ts +19 -0
  48. package/map/crm/deal.d.ts +19 -0
  49. package/map/crm/index.d.ts +4 -0
  50. package/map/crm/lead.d.ts +19 -0
  51. package/package.json +1 -1
  52. package/request-navvy/crm/company.d.ts +59 -0
  53. package/request-navvy/crm/contact.d.ts +59 -0
  54. package/request-navvy/crm/deal.d.ts +59 -0
  55. package/request-navvy/crm/lead.d.ts +59 -0
  56. package/request-navvy/crm.d.ts +10 -0
  57. package/rest/navvy.d.ts +2 -0
  58. package/typification/rest/base.d.ts +1 -0
  59. package/typification/rest/crm/company/add.d.ts +6 -0
  60. package/typification/rest/crm/company/company.d.ts +38 -0
  61. package/typification/rest/crm/company/delete.d.ts +3 -0
  62. package/typification/rest/crm/company/get.d.ts +3 -0
  63. package/typification/rest/crm/company/index.d.ts +6 -0
  64. package/typification/rest/crm/company/list.d.ts +6 -0
  65. package/typification/rest/crm/company/update.d.ts +7 -0
  66. package/typification/rest/crm/contact/add.d.ts +6 -0
  67. package/typification/rest/crm/contact/contact.d.ts +41 -0
  68. package/typification/rest/crm/contact/delete.d.ts +3 -0
  69. package/typification/rest/crm/contact/get.d.ts +3 -0
  70. package/typification/rest/crm/contact/index.d.ts +6 -0
  71. package/typification/rest/crm/contact/list.d.ts +6 -0
  72. package/typification/rest/crm/contact/update.d.ts +7 -0
  73. package/typification/rest/crm/deal/add.d.ts +6 -0
  74. package/typification/rest/crm/deal/deal.d.ts +47 -0
  75. package/typification/rest/crm/deal/delete.d.ts +3 -0
  76. package/typification/rest/crm/deal/get.d.ts +3 -0
  77. package/typification/rest/crm/deal/index.d.ts +6 -0
  78. package/typification/rest/crm/deal/list.d.ts +6 -0
  79. package/typification/rest/crm/deal/update.d.ts +7 -0
  80. package/typification/rest/crm/index.d.ts +4 -0
  81. package/typification/rest/crm/lead/add.d.ts +6 -0
  82. package/typification/rest/crm/lead/delete.d.ts +3 -0
  83. package/typification/rest/crm/lead/get.d.ts +3 -0
  84. package/typification/rest/crm/lead/index.d.ts +6 -0
  85. package/typification/rest/crm/lead/lead.d.ts +52 -0
  86. package/typification/rest/crm/lead/list.d.ts +6 -0
  87. package/typification/rest/crm/lead/update.d.ts +7 -0
@@ -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 './lead';
@@ -0,0 +1,52 @@
1
+ import { iBXRestYesNo } from '../../base/yes-no';
2
+ export interface iBXRestCrmLead extends iBXRestCrmLeadBase {
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
+ BIRTHDATE?: Date;
12
+ OPENED?: boolean;
13
+ IS_MANUAL_OPPORTUNITY?: boolean;
14
+ HAS_PHONE?: boolean;
15
+ HAS_EMAIL?: boolean;
16
+ HAS_IMOL?: boolean;
17
+ OPPORTUNITY?: number;
18
+ }
19
+ export interface iBXRestCrmLeadHttp extends iBXRestCrmLeadBase {
20
+ ID: string;
21
+ COMPANY_ID?: string;
22
+ CONTACT_ID?: string;
23
+ ASSIGNED_BY_ID?: string;
24
+ CREATED_BY_ID?: string;
25
+ MODIFY_BY_ID?: string;
26
+ DATE_CREATE?: string;
27
+ DATE_MODIFY?: string;
28
+ BIRTHDATE?: string;
29
+ OPENED?: iBXRestYesNo;
30
+ IS_MANUAL_OPPORTUNITY?: iBXRestYesNo;
31
+ HAS_PHONE?: iBXRestYesNo;
32
+ HAS_EMAIL?: iBXRestYesNo;
33
+ HAS_IMOL?: iBXRestYesNo;
34
+ OPPORTUNITY?: string;
35
+ }
36
+ interface iBXRestCrmLeadBase {
37
+ TITLE?: string;
38
+ HONORIFIC?: string;
39
+ NAME?: string;
40
+ SECOND_NAME?: string;
41
+ LAST_NAME?: string;
42
+ COMPANY_TITLE?: string;
43
+ SOURCE_ID?: string;
44
+ SOURCE_DESCRIPTION?: string;
45
+ STATUS_ID?: string;
46
+ STATUS_DESCRIPTION?: string;
47
+ STATUS_SEMANTIC_ID?: string;
48
+ CURRENCY_ID?: string;
49
+ COMMENTS?: string;
50
+ [key: string]: any;
51
+ }
52
+ export {};
@@ -0,0 +1,6 @@
1
+ import { iBXRestPagination } from '../../base/api-pagination-bx';
2
+ export interface iBXRestParamCrmLeadList extends iBXRestPagination {
3
+ order?: Record<string, 'asc' | 'desc'>;
4
+ filter?: Record<string, any>;
5
+ select?: string[];
6
+ }
@@ -0,0 +1,7 @@
1
+ export interface iBXRestParamCrmLeadUpdate {
2
+ id: number | string;
3
+ fields: Record<string, any>;
4
+ params?: {
5
+ REGISTER_SONET_EVENT?: 'Y' | 'N';
6
+ };
7
+ }