@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,46 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { _Column } from './_Column';
6
+ import type { _Filter } from './_Filter';
7
+ import type { _Sort } from './_Sort';
8
+ import type { ObjectTypeEnum } from './ObjectTypeEnum';
9
+ import type { SavedViewTypeEnum } from './SavedViewTypeEnum';
10
+ export type SavedView = {
11
+ readonly id: number;
12
+ /**
13
+ * Tenant this view belongs to.
14
+ */
15
+ readonly platform: number;
16
+ /**
17
+ * The list this view belongs to.
18
+ *
19
+ * * `persons` - Persons
20
+ * * `organizations` - Organizations
21
+ * * `deals` - Deals
22
+ * * `activities` - Activities
23
+ */
24
+ object_type: ObjectTypeEnum;
25
+ /**
26
+ * Unique per user and list.
27
+ */
28
+ name: string;
29
+ /**
30
+ * `kanban` is available for deals only.
31
+ *
32
+ * * `table` - Table
33
+ * * `kanban` - Kanban
34
+ */
35
+ type?: SavedViewTypeEnum;
36
+ columns?: Array<_Column>;
37
+ filters?: Array<_Filter>;
38
+ sorts?: Array<_Sort>;
39
+ /**
40
+ * Kanban column field (e.g. `stage`).
41
+ */
42
+ group_by?: string;
43
+ readonly created_at: string;
44
+ readonly updated_at: string;
45
+ };
46
+
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * * `table` - Table
7
+ * * `kanban` - Kanban
8
+ */
9
+ export enum SavedViewTypeEnum {
10
+ TABLE = 'table',
11
+ KANBAN = 'kanban',
12
+ }
@@ -0,0 +1,45 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { Status05cEnum } from './Status05cEnum';
6
+ export type SearchDeal = {
7
+ readonly id: number;
8
+ /**
9
+ * Short display name (e.g. 'Acme renewal — 2026').
10
+ */
11
+ title: string;
12
+ /**
13
+ * Service-managed (read-only in serializer). Derived from the destination stage's is_won/is_lost.
14
+ *
15
+ * * `open` - Open
16
+ * * `won` - Won
17
+ * * `lost` - Lost
18
+ */
19
+ status?: Status05cEnum;
20
+ /**
21
+ * Estimated deal value in `currency`.
22
+ */
23
+ lead_value?: string;
24
+ /**
25
+ * ISO 4217 currency code.
26
+ */
27
+ currency?: string;
28
+ /**
29
+ * Primary contact for this Deal. PROTECTed — can't delete a Person with open Deals.
30
+ */
31
+ person: string;
32
+ /**
33
+ * Organization the Deal is with (nullable for solo-individual deals).
34
+ */
35
+ organization?: string | null;
36
+ /**
37
+ * Pipeline this Deal flows through.
38
+ */
39
+ pipeline: number;
40
+ /**
41
+ * Current stage. Must belong to `pipeline`.
42
+ */
43
+ stage: number;
44
+ };
45
+
@@ -0,0 +1,15 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type SearchOrganization = {
6
+ /**
7
+ * Opaque UUID — used in API URLs and external references.
8
+ */
9
+ readonly id: string;
10
+ /**
11
+ * Display name. Unique within the platform.
12
+ */
13
+ name: string;
14
+ };
15
+
@@ -0,0 +1,38 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { LifecycleStageEnum } from './LifecycleStageEnum';
6
+ export type SearchPerson = {
7
+ /**
8
+ * Opaque UUID — used in API URLs and external references.
9
+ */
10
+ readonly id: string;
11
+ /**
12
+ * Full display name.
13
+ */
14
+ name: string;
15
+ /**
16
+ * Email used by the Person→User auto-link query (case-insensitive match).
17
+ */
18
+ primary_email?: string;
19
+ /**
20
+ * Free-text job title at their Organization.
21
+ */
22
+ job_title?: string;
23
+ /**
24
+ * The Organization this Person belongs to (nullable).
25
+ */
26
+ organization?: string | null;
27
+ /**
28
+ * Funnel position. Transitions are unrestricted — any stage may move to any other.
29
+ *
30
+ * * `lead` - Lead
31
+ * * `qualified` - Qualified
32
+ * * `opportunity` - Opportunity
33
+ * * `customer` - Customer
34
+ * * `churned` - Churned
35
+ */
36
+ lifecycle_stage?: LifecycleStageEnum;
37
+ };
38
+
@@ -0,0 +1,17 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { SearchDeal } from './SearchDeal';
6
+ import type { SearchOrganization } from './SearchOrganization';
7
+ import type { SearchPerson } from './SearchPerson';
8
+ /**
9
+ * One bucket per resource the caller may list; an unlisted bucket is absent.
10
+ */
11
+ export type SearchResponse = {
12
+ 'q': string;
13
+ persons?: Array<SearchPerson>;
14
+ organizations?: Array<SearchOrganization>;
15
+ deals?: Array<SearchDeal>;
16
+ };
17
+
@@ -7,7 +7,7 @@
7
7
  * * `won` - Won
8
8
  * * `lost` - Lost
9
9
  */
10
- export enum DealStatusEnum {
10
+ export enum Status05cEnum {
11
11
  OPEN = 'open',
12
12
  WON = 'won',
13
13
  LOST = 'lost',
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type _Column = {
6
+ /**
7
+ * Field name shown as a column.
8
+ */
9
+ id: string;
10
+ visible?: boolean;
11
+ };
12
+
@@ -0,0 +1,13 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type _Filter = {
6
+ field: string;
7
+ /**
8
+ * e.g. `is`, `contains`, `gte`.
9
+ */
10
+ op: string;
11
+ value?: any;
12
+ };
13
+
@@ -0,0 +1,10 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { DirEnum } from './DirEnum';
6
+ export type _Sort = {
7
+ field: string;
8
+ dir?: DirEnum;
9
+ };
10
+