@iblai/iblai-api 4.415.0-core → 4.416.0-core

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 (83) hide show
  1. package/dist/index.cjs.js +648 -30
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +649 -31
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +648 -30
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +27 -1
  8. package/dist/types/models/Activity.d.ts +6 -2
  9. package/dist/types/models/Deal.d.ts +14 -2
  10. package/dist/types/models/DealBoard.d.ts +7 -0
  11. package/dist/types/models/DealBoardStage.d.ts +19 -0
  12. package/dist/types/models/DirEnum.d.ts +8 -0
  13. package/dist/types/models/Favorite.d.ts +28 -0
  14. package/dist/types/models/HistoryEntry.d.ts +15 -0
  15. package/dist/types/models/HistoryEntryActionEnum.d.ts +12 -0
  16. package/dist/types/models/ObjectTypeEnum.d.ts +12 -0
  17. package/dist/types/models/Overview.d.ts +24 -0
  18. package/dist/types/models/OverviewActivities.d.ts +5 -0
  19. package/dist/types/models/OverviewCount.d.ts +3 -0
  20. package/dist/types/models/OverviewDeals.d.ts +22 -0
  21. package/dist/types/models/OverviewMonth.d.ts +10 -0
  22. package/dist/types/models/OverviewStage.d.ts +13 -0
  23. package/dist/types/models/PaginatedFavoriteList.d.ts +7 -0
  24. package/dist/types/models/PaginatedSavedViewList.d.ts +7 -0
  25. package/dist/types/models/PatchedActivity.d.ts +6 -2
  26. package/dist/types/models/PatchedDeal.d.ts +14 -2
  27. package/dist/types/models/PatchedPerson.d.ts +4 -0
  28. package/dist/types/models/PatchedPipeline.d.ts +1 -1
  29. package/dist/types/models/PatchedSavedView.d.ts +41 -0
  30. package/dist/types/models/Person.d.ts +4 -0
  31. package/dist/types/models/Pipeline.d.ts +1 -1
  32. package/dist/types/models/PipelineStageReorderRequest.d.ts +6 -0
  33. package/dist/types/models/SavedView.d.ts +41 -0
  34. package/dist/types/models/SavedViewTypeEnum.d.ts +8 -0
  35. package/dist/types/models/SearchDeal.d.ts +40 -0
  36. package/dist/types/models/SearchOrganization.d.ts +10 -0
  37. package/dist/types/models/SearchPerson.d.ts +33 -0
  38. package/dist/types/models/SearchResponse.d.ts +12 -0
  39. package/dist/types/models/{DealStatusEnum.d.ts → Status05cEnum.d.ts} +1 -1
  40. package/dist/types/models/_Column.d.ts +7 -0
  41. package/dist/types/models/_Filter.d.ts +8 -0
  42. package/dist/types/models/_Sort.d.ts +5 -0
  43. package/dist/types/services/CrmService.d.ts +523 -12
  44. package/package.json +1 -1
  45. package/sdk_schema.yml +1905 -27
  46. package/src/core/OpenAPI.ts +1 -1
  47. package/src/index.ts +27 -1
  48. package/src/models/Activity.ts +6 -2
  49. package/src/models/Deal.ts +14 -2
  50. package/src/models/DealBoard.ts +12 -0
  51. package/src/models/DealBoardStage.ts +24 -0
  52. package/src/models/DirEnum.ts +12 -0
  53. package/src/models/Favorite.ts +33 -0
  54. package/src/models/HistoryEntry.ts +20 -0
  55. package/src/models/HistoryEntryActionEnum.ts +16 -0
  56. package/src/models/ObjectTypeEnum.ts +16 -0
  57. package/src/models/Overview.ts +29 -0
  58. package/src/models/OverviewActivities.ts +10 -0
  59. package/src/models/OverviewCount.ts +8 -0
  60. package/src/models/OverviewDeals.ts +27 -0
  61. package/src/models/OverviewMonth.ts +15 -0
  62. package/src/models/OverviewStage.ts +18 -0
  63. package/src/models/PaginatedFavoriteList.ts +12 -0
  64. package/src/models/PaginatedSavedViewList.ts +12 -0
  65. package/src/models/PatchedActivity.ts +6 -2
  66. package/src/models/PatchedDeal.ts +14 -2
  67. package/src/models/PatchedPerson.ts +4 -0
  68. package/src/models/PatchedPipeline.ts +1 -1
  69. package/src/models/PatchedSavedView.ts +46 -0
  70. package/src/models/Person.ts +4 -0
  71. package/src/models/Pipeline.ts +1 -1
  72. package/src/models/PipelineStageReorderRequest.ts +11 -0
  73. package/src/models/SavedView.ts +46 -0
  74. package/src/models/SavedViewTypeEnum.ts +12 -0
  75. package/src/models/SearchDeal.ts +45 -0
  76. package/src/models/SearchOrganization.ts +15 -0
  77. package/src/models/SearchPerson.ts +38 -0
  78. package/src/models/SearchResponse.ts +17 -0
  79. package/src/models/{DealStatusEnum.ts → Status05cEnum.ts} +1 -1
  80. package/src/models/_Column.ts +12 -0
  81. package/src/models/_Filter.ts +13 -0
  82. package/src/models/_Sort.ts +10 -0
  83. package/src/services/CrmService.ts +924 -4
@@ -0,0 +1,41 @@
1
+ import type { _Column } from './_Column';
2
+ import type { _Filter } from './_Filter';
3
+ import type { _Sort } from './_Sort';
4
+ import type { ObjectTypeEnum } from './ObjectTypeEnum';
5
+ import type { SavedViewTypeEnum } from './SavedViewTypeEnum';
6
+ export type PatchedSavedView = {
7
+ readonly id?: number;
8
+ /**
9
+ * Tenant this view belongs to.
10
+ */
11
+ readonly platform?: number;
12
+ /**
13
+ * The list this view belongs to.
14
+ *
15
+ * * `persons` - Persons
16
+ * * `organizations` - Organizations
17
+ * * `deals` - Deals
18
+ * * `activities` - Activities
19
+ */
20
+ object_type?: ObjectTypeEnum;
21
+ /**
22
+ * Unique per user and list.
23
+ */
24
+ name?: string;
25
+ /**
26
+ * `kanban` is available for deals only.
27
+ *
28
+ * * `table` - Table
29
+ * * `kanban` - Kanban
30
+ */
31
+ type?: SavedViewTypeEnum;
32
+ columns?: Array<_Column>;
33
+ filters?: Array<_Filter>;
34
+ sorts?: Array<_Sort>;
35
+ /**
36
+ * Kanban column field (e.g. `stage`).
37
+ */
38
+ group_by?: string;
39
+ readonly created_at?: string;
40
+ readonly updated_at?: string;
41
+ };
@@ -39,6 +39,10 @@ export type Person = {
39
39
  * UUID of an organization in your Platform. References to organizations in other Platforms are rejected.
40
40
  */
41
41
  organization?: string | null;
42
+ /**
43
+ * The organization's name, or null.
44
+ */
45
+ readonly organization_name: string | null;
42
46
  /**
43
47
  * Id of the platform user who owns / manages this person (internal account manager). Optional.
44
48
  */
@@ -21,7 +21,7 @@ export type Pipeline = {
21
21
  */
22
22
  is_default?: boolean;
23
23
  /**
24
- * Days a Deal can sit in a stage before it's surfaced as stale.
24
+ * Days without a change before an open Deal shows `is_stale`; 0 turns it off.
25
25
  */
26
26
  rotten_days?: number;
27
27
  readonly stages: Array<PipelineStage>;
@@ -0,0 +1,6 @@
1
+ export type PipelineStageReorderRequest = {
2
+ /**
3
+ * Every stage id of the Pipeline, in the new left-to-right order.
4
+ */
5
+ order: Array<number>;
6
+ };
@@ -0,0 +1,41 @@
1
+ import type { _Column } from './_Column';
2
+ import type { _Filter } from './_Filter';
3
+ import type { _Sort } from './_Sort';
4
+ import type { ObjectTypeEnum } from './ObjectTypeEnum';
5
+ import type { SavedViewTypeEnum } from './SavedViewTypeEnum';
6
+ export type SavedView = {
7
+ readonly id: number;
8
+ /**
9
+ * Tenant this view belongs to.
10
+ */
11
+ readonly platform: number;
12
+ /**
13
+ * The list this view belongs to.
14
+ *
15
+ * * `persons` - Persons
16
+ * * `organizations` - Organizations
17
+ * * `deals` - Deals
18
+ * * `activities` - Activities
19
+ */
20
+ object_type: ObjectTypeEnum;
21
+ /**
22
+ * Unique per user and list.
23
+ */
24
+ name: string;
25
+ /**
26
+ * `kanban` is available for deals only.
27
+ *
28
+ * * `table` - Table
29
+ * * `kanban` - Kanban
30
+ */
31
+ type?: SavedViewTypeEnum;
32
+ columns?: Array<_Column>;
33
+ filters?: Array<_Filter>;
34
+ sorts?: Array<_Sort>;
35
+ /**
36
+ * Kanban column field (e.g. `stage`).
37
+ */
38
+ group_by?: string;
39
+ readonly created_at: string;
40
+ readonly updated_at: string;
41
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * * `table` - Table
3
+ * * `kanban` - Kanban
4
+ */
5
+ export declare enum SavedViewTypeEnum {
6
+ TABLE = "table",
7
+ KANBAN = "kanban"
8
+ }
@@ -0,0 +1,40 @@
1
+ import type { Status05cEnum } from './Status05cEnum';
2
+ export type SearchDeal = {
3
+ readonly id: number;
4
+ /**
5
+ * Short display name (e.g. 'Acme renewal — 2026').
6
+ */
7
+ title: string;
8
+ /**
9
+ * Service-managed (read-only in serializer). Derived from the destination stage's is_won/is_lost.
10
+ *
11
+ * * `open` - Open
12
+ * * `won` - Won
13
+ * * `lost` - Lost
14
+ */
15
+ status?: Status05cEnum;
16
+ /**
17
+ * Estimated deal value in `currency`.
18
+ */
19
+ lead_value?: string;
20
+ /**
21
+ * ISO 4217 currency code.
22
+ */
23
+ currency?: string;
24
+ /**
25
+ * Primary contact for this Deal. PROTECTed — can't delete a Person with open Deals.
26
+ */
27
+ person: string;
28
+ /**
29
+ * Organization the Deal is with (nullable for solo-individual deals).
30
+ */
31
+ organization?: string | null;
32
+ /**
33
+ * Pipeline this Deal flows through.
34
+ */
35
+ pipeline: number;
36
+ /**
37
+ * Current stage. Must belong to `pipeline`.
38
+ */
39
+ stage: number;
40
+ };
@@ -0,0 +1,10 @@
1
+ export type SearchOrganization = {
2
+ /**
3
+ * Opaque UUID — used in API URLs and external references.
4
+ */
5
+ readonly id: string;
6
+ /**
7
+ * Display name. Unique within the platform.
8
+ */
9
+ name: string;
10
+ };
@@ -0,0 +1,33 @@
1
+ import type { LifecycleStageEnum } from './LifecycleStageEnum';
2
+ export type SearchPerson = {
3
+ /**
4
+ * Opaque UUID — used in API URLs and external references.
5
+ */
6
+ readonly id: string;
7
+ /**
8
+ * Full display name.
9
+ */
10
+ name: string;
11
+ /**
12
+ * Email used by the Person→User auto-link query (case-insensitive match).
13
+ */
14
+ primary_email?: string;
15
+ /**
16
+ * Free-text job title at their Organization.
17
+ */
18
+ job_title?: string;
19
+ /**
20
+ * The Organization this Person belongs to (nullable).
21
+ */
22
+ organization?: string | null;
23
+ /**
24
+ * Funnel position. Transitions are unrestricted — any stage may move to any other.
25
+ *
26
+ * * `lead` - Lead
27
+ * * `qualified` - Qualified
28
+ * * `opportunity` - Opportunity
29
+ * * `customer` - Customer
30
+ * * `churned` - Churned
31
+ */
32
+ lifecycle_stage?: LifecycleStageEnum;
33
+ };
@@ -0,0 +1,12 @@
1
+ import type { SearchDeal } from './SearchDeal';
2
+ import type { SearchOrganization } from './SearchOrganization';
3
+ import type { SearchPerson } from './SearchPerson';
4
+ /**
5
+ * One bucket per resource the caller may list; an unlisted bucket is absent.
6
+ */
7
+ export type SearchResponse = {
8
+ 'q': string;
9
+ persons?: Array<SearchPerson>;
10
+ organizations?: Array<SearchOrganization>;
11
+ deals?: Array<SearchDeal>;
12
+ };
@@ -3,7 +3,7 @@
3
3
  * * `won` - Won
4
4
  * * `lost` - Lost
5
5
  */
6
- export declare enum DealStatusEnum {
6
+ export declare enum Status05cEnum {
7
7
  OPEN = "open",
8
8
  WON = "won",
9
9
  LOST = "lost"
@@ -0,0 +1,7 @@
1
+ export type _Column = {
2
+ /**
3
+ * Field name shown as a column.
4
+ */
5
+ id: string;
6
+ visible?: boolean;
7
+ };
@@ -0,0 +1,8 @@
1
+ export type _Filter = {
2
+ field: string;
3
+ /**
4
+ * e.g. `is`, `contains`, `gte`.
5
+ */
6
+ op: string;
7
+ value?: any;
8
+ };
@@ -0,0 +1,5 @@
1
+ import type { DirEnum } from './DirEnum';
2
+ export type _Sort = {
3
+ field: string;
4
+ dir?: DirEnum;
5
+ };