bx-rest 0.8.3 → 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 (133) 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/services/navvy.mjs +7 -1
  15. package/esm2022/typification/rest/base.mjs +2 -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 +545 -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 +5 -2
  53. package/request-navvy/app.d.ts +1 -1
  54. package/request-navvy/bizproc/workflow.d.ts +1 -1
  55. package/request-navvy/calendar/event.d.ts +6 -6
  56. package/request-navvy/calendar/section.d.ts +4 -4
  57. package/request-navvy/calendar/user/settings.d.ts +2 -2
  58. package/request-navvy/crm/company.d.ts +59 -0
  59. package/request-navvy/crm/contact.d.ts +59 -0
  60. package/request-navvy/crm/deal.d.ts +59 -0
  61. package/request-navvy/crm/lead.d.ts +59 -0
  62. package/request-navvy/crm.d.ts +10 -0
  63. package/request-navvy/department.d.ts +4 -4
  64. package/request-navvy/disk/attachedObject.d.ts +1 -1
  65. package/request-navvy/disk/file.d.ts +2 -2
  66. package/request-navvy/disk/folder.d.ts +12 -12
  67. package/request-navvy/disk/storage.d.ts +4 -4
  68. package/request-navvy/im/chat/user.d.ts +3 -3
  69. package/request-navvy/im/chat.d.ts +8 -8
  70. package/request-navvy/im/counters.d.ts +1 -1
  71. package/request-navvy/im/dialog/messages.d.ts +1 -1
  72. package/request-navvy/im/dialog/read.d.ts +2 -2
  73. package/request-navvy/im/dialog/users.d.ts +1 -1
  74. package/request-navvy/im/dialog.d.ts +5 -5
  75. package/request-navvy/im/recent.d.ts +5 -5
  76. package/request-navvy/im/user/list.d.ts +1 -1
  77. package/request-navvy/im/user/status/idle.d.ts +2 -2
  78. package/request-navvy/im/user/status.d.ts +2 -2
  79. package/request-navvy/im/user.d.ts +1 -1
  80. package/request-navvy/lists/element.d.ts +2 -2
  81. package/request-navvy/lists/field.d.ts +1 -1
  82. package/request-navvy/lists.d.ts +1 -1
  83. package/request-navvy/log/blogpost.d.ts +2 -2
  84. package/request-navvy/pull/application/config.d.ts +1 -1
  85. package/request-navvy/pull/channel/public.d.ts +1 -1
  86. package/request-navvy/pull/config.d.ts +1 -1
  87. package/request-navvy/server.d.ts +1 -1
  88. package/request-navvy/socialnetwork/api/contentview.d.ts +1 -1
  89. package/request-navvy/socialnetwork/api/livefeed/blogpost/important.d.ts +1 -1
  90. package/request-navvy/sonet_group.d.ts +1 -1
  91. package/request-navvy/task/commentitem.d.ts +4 -4
  92. package/request-navvy/task/delegate/elapseditem.d.ts +1 -1
  93. package/request-navvy/task/elapseditem.d.ts +5 -5
  94. package/request-navvy/task/item/userfield.d.ts +1 -1
  95. package/request-navvy/task/operation/elapseditem.d.ts +1 -1
  96. package/request-navvy/task/planner.d.ts +1 -1
  97. package/request-navvy/tasks/task/result.d.ts +3 -3
  98. package/request-navvy/tasks/task.d.ts +6 -6
  99. package/request-navvy/timeman.d.ts +5 -5
  100. package/request-navvy/user/userfield.d.ts +1 -1
  101. package/request-navvy/user.d.ts +6 -6
  102. package/rest/navvy.d.ts +3 -1
  103. package/services/navvy.d.ts +6 -0
  104. package/typification/rest/base.d.ts +1 -0
  105. package/typification/rest/crm/company/add.d.ts +6 -0
  106. package/typification/rest/crm/company/company.d.ts +38 -0
  107. package/typification/rest/crm/company/delete.d.ts +3 -0
  108. package/typification/rest/crm/company/get.d.ts +3 -0
  109. package/typification/rest/crm/company/index.d.ts +6 -0
  110. package/typification/rest/crm/company/list.d.ts +6 -0
  111. package/typification/rest/crm/company/update.d.ts +7 -0
  112. package/typification/rest/crm/contact/add.d.ts +6 -0
  113. package/typification/rest/crm/contact/contact.d.ts +41 -0
  114. package/typification/rest/crm/contact/delete.d.ts +3 -0
  115. package/typification/rest/crm/contact/get.d.ts +3 -0
  116. package/typification/rest/crm/contact/index.d.ts +6 -0
  117. package/typification/rest/crm/contact/list.d.ts +6 -0
  118. package/typification/rest/crm/contact/update.d.ts +7 -0
  119. package/typification/rest/crm/deal/add.d.ts +6 -0
  120. package/typification/rest/crm/deal/deal.d.ts +47 -0
  121. package/typification/rest/crm/deal/delete.d.ts +3 -0
  122. package/typification/rest/crm/deal/get.d.ts +3 -0
  123. package/typification/rest/crm/deal/index.d.ts +6 -0
  124. package/typification/rest/crm/deal/list.d.ts +6 -0
  125. package/typification/rest/crm/deal/update.d.ts +7 -0
  126. package/typification/rest/crm/index.d.ts +4 -0
  127. package/typification/rest/crm/lead/add.d.ts +6 -0
  128. package/typification/rest/crm/lead/delete.d.ts +3 -0
  129. package/typification/rest/crm/lead/get.d.ts +3 -0
  130. package/typification/rest/crm/lead/index.d.ts +6 -0
  131. package/typification/rest/crm/lead/lead.d.ts +52 -0
  132. package/typification/rest/crm/lead/list.d.ts +6 -0
  133. package/typification/rest/crm/lead/update.d.ts +7 -0
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ export interface iBXRestParamCrmLeadGet {
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 './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
+ }