@iblai/iblai-api 4.266.0-core → 4.267.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.
- package/dist/index.cjs.js +681 -41
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +681 -42
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +681 -41
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +5 -0
- package/dist/types/models/Deal.d.ts +12 -0
- package/dist/types/models/Organization.d.ts +12 -0
- package/dist/types/models/PaginatedTagList.d.ts +7 -0
- package/dist/types/models/PatchedDeal.d.ts +12 -0
- package/dist/types/models/PatchedOrganization.d.ts +12 -0
- package/dist/types/models/PatchedPerson.d.ts +12 -0
- package/dist/types/models/PatchedTag.d.ts +30 -0
- package/dist/types/models/Person.d.ts +12 -0
- package/dist/types/models/Tag.d.ts +30 -0
- package/dist/types/models/_TagAttachRequest.d.ts +6 -0
- package/dist/types/services/ActivitiesService.d.ts +1 -1
- package/dist/types/services/CrmService.d.ts +185 -10
- package/dist/types/services/DealsService.d.ts +34 -2
- package/dist/types/services/LeadSourcesService.d.ts +1 -1
- package/dist/types/services/OrganizationsService.d.ts +28 -2
- package/dist/types/services/PersonsService.d.ts +28 -2
- package/dist/types/services/PipelinesService.d.ts +2 -2
- package/dist/types/services/TagsService.d.ts +96 -0
- package/package.json +1 -1
- package/sdk_schema.yml +1484 -239
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +5 -0
- package/src/models/Deal.ts +12 -0
- package/src/models/Organization.ts +12 -0
- package/src/models/PaginatedTagList.ts +12 -0
- package/src/models/PatchedDeal.ts +12 -0
- package/src/models/PatchedOrganization.ts +12 -0
- package/src/models/PatchedPerson.ts +12 -0
- package/src/models/PatchedTag.ts +35 -0
- package/src/models/Person.ts +12 -0
- package/src/models/Tag.ts +35 -0
- package/src/models/_TagAttachRequest.ts +11 -0
- package/src/services/ActivitiesService.ts +2 -2
- package/src/services/CrmService.ts +399 -14
- package/src/services/DealsService.ts +71 -2
- package/src/services/LeadSourcesService.ts +2 -2
- package/src/services/OrganizationsService.ts +65 -2
- package/src/services/PersonsService.ts +65 -2
- package/src/services/PipelinesService.ts +4 -4
- package/src/services/TagsService.ts +201 -0
package/src/core/OpenAPI.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
|
|
7
7
|
export { OpenAPI } from './core/OpenAPI';
|
|
8
8
|
export type { OpenAPIConfig } from './core/OpenAPI';
|
|
9
9
|
|
|
10
|
+
export type { _TagAttachRequest } from './models/_TagAttachRequest';
|
|
10
11
|
export { AcceptanceEnum } from './models/AcceptanceEnum';
|
|
11
12
|
export type { ActivateUserFreeTrial } from './models/ActivateUserFreeTrial';
|
|
12
13
|
export type { ActiveUsersData } from './models/ActiveUsersData';
|
|
@@ -280,6 +281,7 @@ export type { PaginatedRbacPolicyList } from './models/PaginatedRbacPolicyList';
|
|
|
280
281
|
export type { PaginatedRbacRoleList } from './models/PaginatedRbacRoleList';
|
|
281
282
|
export type { PaginatedResource } from './models/PaginatedResource';
|
|
282
283
|
export type { PaginatedSkill } from './models/PaginatedSkill';
|
|
284
|
+
export type { PaginatedTagList } from './models/PaginatedTagList';
|
|
283
285
|
export type { PaginatedUserAppList } from './models/PaginatedUserAppList';
|
|
284
286
|
export type { PaginatedUserGroupList } from './models/PaginatedUserGroupList';
|
|
285
287
|
export type { PaginatedUserLicense } from './models/PaginatedUserLicense';
|
|
@@ -311,6 +313,7 @@ export type { PatchedRbacRole } from './models/PatchedRbacRole';
|
|
|
311
313
|
export type { PatchedSCIMGroup } from './models/PatchedSCIMGroup';
|
|
312
314
|
export type { PatchedSCIMUserResponse } from './models/PatchedSCIMUserResponse';
|
|
313
315
|
export type { PatchedSkillThreshold } from './models/PatchedSkillThreshold';
|
|
316
|
+
export type { PatchedTag } from './models/PatchedTag';
|
|
314
317
|
export type { PatchedUserGroup } from './models/PatchedUserGroup';
|
|
315
318
|
export type { PatchedUserNotificationPreferences } from './models/PatchedUserNotificationPreferences';
|
|
316
319
|
export type { PatchedUserPlatformMetadataUpdate } from './models/PatchedUserPlatformMetadataUpdate';
|
|
@@ -503,6 +506,7 @@ export type { StripeSubscriptionRenewalResponse } from './models/StripeSubscript
|
|
|
503
506
|
export type { StudentLLMAccessResponse } from './models/StudentLLMAccessResponse';
|
|
504
507
|
export type { StudentMentorCreationPermissionResponse } from './models/StudentMentorCreationPermissionResponse';
|
|
505
508
|
export type { SubTimeChild } from './models/SubTimeChild';
|
|
509
|
+
export type { Tag } from './models/Tag';
|
|
506
510
|
export type { TenantLaunchError } from './models/TenantLaunchError';
|
|
507
511
|
export type { TenantLaunchFailed } from './models/TenantLaunchFailed';
|
|
508
512
|
export type { TenantLaunchRequest } from './models/TenantLaunchRequest';
|
|
@@ -633,4 +637,5 @@ export { ReportsService } from './services/ReportsService';
|
|
|
633
637
|
export { ScimService } from './services/ScimService';
|
|
634
638
|
export { SearchService } from './services/SearchService';
|
|
635
639
|
export { SkillsService } from './services/SkillsService';
|
|
640
|
+
export { TagsService } from './services/TagsService';
|
|
636
641
|
export { TransactionsService } from './services/TransactionsService';
|
package/src/models/Deal.ts
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
import type { DealStatusEnum } from './DealStatusEnum';
|
|
6
|
+
/**
|
|
7
|
+
* Adds a read-only ``tags`` field to a host serializer.
|
|
8
|
+
*
|
|
9
|
+
* Emits ``[{id, name, color}]``. Cheap when the host queryset uses
|
|
10
|
+
* ``prefetch_related("tag_assignments__tag")`` — without that prefetch
|
|
11
|
+
* every record triggers two extra queries.
|
|
12
|
+
*/
|
|
6
13
|
export type Deal = {
|
|
7
14
|
/**
|
|
8
15
|
* Server-assigned id.
|
|
@@ -72,6 +79,11 @@ export type Deal = {
|
|
|
72
79
|
* Id of the platform user responsible for this Deal (sales rep). Defaults to the calling user on create.
|
|
73
80
|
*/
|
|
74
81
|
owner?: number | null;
|
|
82
|
+
readonly tags: Array<{
|
|
83
|
+
id: number;
|
|
84
|
+
name: string;
|
|
85
|
+
color: string;
|
|
86
|
+
}>;
|
|
75
87
|
/**
|
|
76
88
|
* Free-form JSON for Platform-defined attributes.
|
|
77
89
|
*/
|
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Adds a read-only ``tags`` field to a host serializer.
|
|
7
|
+
*
|
|
8
|
+
* Emits ``[{id, name, color}]``. Cheap when the host queryset uses
|
|
9
|
+
* ``prefetch_related("tag_assignments__tag")`` — without that prefetch
|
|
10
|
+
* every record triggers two extra queries.
|
|
11
|
+
*/
|
|
5
12
|
export type Organization = {
|
|
6
13
|
/**
|
|
7
14
|
* Server-assigned UUID.
|
|
@@ -23,6 +30,11 @@ export type Organization = {
|
|
|
23
30
|
* Id of the Platform user who owns / manages this Organization. Must be an active member of your Platform.
|
|
24
31
|
*/
|
|
25
32
|
owner?: number | null;
|
|
33
|
+
readonly tags: Array<{
|
|
34
|
+
id: number;
|
|
35
|
+
name: string;
|
|
36
|
+
color: string;
|
|
37
|
+
}>;
|
|
26
38
|
/**
|
|
27
39
|
* Free-form JSON for Platform-defined attributes.
|
|
28
40
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { Tag } from './Tag';
|
|
6
|
+
export type PaginatedTagList = {
|
|
7
|
+
count: number;
|
|
8
|
+
next?: string | null;
|
|
9
|
+
previous?: string | null;
|
|
10
|
+
results: Array<Tag>;
|
|
11
|
+
};
|
|
12
|
+
|
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
import type { DealStatusEnum } from './DealStatusEnum';
|
|
6
|
+
/**
|
|
7
|
+
* Adds a read-only ``tags`` field to a host serializer.
|
|
8
|
+
*
|
|
9
|
+
* Emits ``[{id, name, color}]``. Cheap when the host queryset uses
|
|
10
|
+
* ``prefetch_related("tag_assignments__tag")`` — without that prefetch
|
|
11
|
+
* every record triggers two extra queries.
|
|
12
|
+
*/
|
|
6
13
|
export type PatchedDeal = {
|
|
7
14
|
/**
|
|
8
15
|
* Server-assigned id.
|
|
@@ -72,6 +79,11 @@ export type PatchedDeal = {
|
|
|
72
79
|
* Id of the platform user responsible for this Deal (sales rep). Defaults to the calling user on create.
|
|
73
80
|
*/
|
|
74
81
|
owner?: number | null;
|
|
82
|
+
readonly tags?: Array<{
|
|
83
|
+
id: number;
|
|
84
|
+
name: string;
|
|
85
|
+
color: string;
|
|
86
|
+
}>;
|
|
75
87
|
/**
|
|
76
88
|
* Free-form JSON for Platform-defined attributes.
|
|
77
89
|
*/
|
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Adds a read-only ``tags`` field to a host serializer.
|
|
7
|
+
*
|
|
8
|
+
* Emits ``[{id, name, color}]``. Cheap when the host queryset uses
|
|
9
|
+
* ``prefetch_related("tag_assignments__tag")`` — without that prefetch
|
|
10
|
+
* every record triggers two extra queries.
|
|
11
|
+
*/
|
|
5
12
|
export type PatchedOrganization = {
|
|
6
13
|
/**
|
|
7
14
|
* Server-assigned UUID.
|
|
@@ -23,6 +30,11 @@ export type PatchedOrganization = {
|
|
|
23
30
|
* Id of the Platform user who owns / manages this Organization. Must be an active member of your Platform.
|
|
24
31
|
*/
|
|
25
32
|
owner?: number | null;
|
|
33
|
+
readonly tags?: Array<{
|
|
34
|
+
id: number;
|
|
35
|
+
name: string;
|
|
36
|
+
color: string;
|
|
37
|
+
}>;
|
|
26
38
|
/**
|
|
27
39
|
* Free-form JSON for Platform-defined attributes.
|
|
28
40
|
*/
|
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
import type { LifecycleStageEnum } from './LifecycleStageEnum';
|
|
6
|
+
/**
|
|
7
|
+
* Adds a read-only ``tags`` field to a host serializer.
|
|
8
|
+
*
|
|
9
|
+
* Emits ``[{id, name, color}]``. Cheap when the host queryset uses
|
|
10
|
+
* ``prefetch_related("tag_assignments__tag")`` — without that prefetch
|
|
11
|
+
* every record triggers two extra queries.
|
|
12
|
+
*/
|
|
6
13
|
export type PatchedPerson = {
|
|
7
14
|
/**
|
|
8
15
|
* Server-assigned UUID. Stable across renames and merges.
|
|
@@ -62,6 +69,11 @@ export type PatchedPerson = {
|
|
|
62
69
|
* Read-only. Set to `false` when the person is linked to a platform user or merged into another person.
|
|
63
70
|
*/
|
|
64
71
|
readonly active?: boolean;
|
|
72
|
+
readonly tags?: Array<{
|
|
73
|
+
id: number;
|
|
74
|
+
name: string;
|
|
75
|
+
color: string;
|
|
76
|
+
}>;
|
|
65
77
|
/**
|
|
66
78
|
* Free-form JSON for Platform-defined attributes.
|
|
67
79
|
*/
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type PatchedTag = {
|
|
6
|
+
/**
|
|
7
|
+
* Server-assigned id.
|
|
8
|
+
*/
|
|
9
|
+
readonly id?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Platform this Tag belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
|
|
12
|
+
*/
|
|
13
|
+
readonly platform?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Display label shown on tag chips. Must be unique within your Platform (case-sensitive). Up to 64 characters.
|
|
16
|
+
*/
|
|
17
|
+
name?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Hex color (e.g. `#3F6BFF`) used to render the chip. Six lowercase or uppercase hex digits with a leading `#`.
|
|
20
|
+
*/
|
|
21
|
+
color?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Free-form JSON for Platform-defined attributes.
|
|
24
|
+
*/
|
|
25
|
+
metadata?: any;
|
|
26
|
+
/**
|
|
27
|
+
* Creation timestamp.
|
|
28
|
+
*/
|
|
29
|
+
readonly created_at?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Last-modified timestamp.
|
|
32
|
+
*/
|
|
33
|
+
readonly updated_at?: string;
|
|
34
|
+
};
|
|
35
|
+
|
package/src/models/Person.ts
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
import type { LifecycleStageEnum } from './LifecycleStageEnum';
|
|
6
|
+
/**
|
|
7
|
+
* Adds a read-only ``tags`` field to a host serializer.
|
|
8
|
+
*
|
|
9
|
+
* Emits ``[{id, name, color}]``. Cheap when the host queryset uses
|
|
10
|
+
* ``prefetch_related("tag_assignments__tag")`` — without that prefetch
|
|
11
|
+
* every record triggers two extra queries.
|
|
12
|
+
*/
|
|
6
13
|
export type Person = {
|
|
7
14
|
/**
|
|
8
15
|
* Server-assigned UUID. Stable across renames and merges.
|
|
@@ -62,6 +69,11 @@ export type Person = {
|
|
|
62
69
|
* Read-only. Set to `false` when the person is linked to a platform user or merged into another person.
|
|
63
70
|
*/
|
|
64
71
|
readonly active: boolean;
|
|
72
|
+
readonly tags: Array<{
|
|
73
|
+
id: number;
|
|
74
|
+
name: string;
|
|
75
|
+
color: string;
|
|
76
|
+
}>;
|
|
65
77
|
/**
|
|
66
78
|
* Free-form JSON for Platform-defined attributes.
|
|
67
79
|
*/
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type Tag = {
|
|
6
|
+
/**
|
|
7
|
+
* Server-assigned id.
|
|
8
|
+
*/
|
|
9
|
+
readonly id: number;
|
|
10
|
+
/**
|
|
11
|
+
* Platform this Tag belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
|
|
12
|
+
*/
|
|
13
|
+
readonly platform: number;
|
|
14
|
+
/**
|
|
15
|
+
* Display label shown on tag chips. Must be unique within your Platform (case-sensitive). Up to 64 characters.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* Hex color (e.g. `#3F6BFF`) used to render the chip. Six lowercase or uppercase hex digits with a leading `#`.
|
|
20
|
+
*/
|
|
21
|
+
color?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Free-form JSON for Platform-defined attributes.
|
|
24
|
+
*/
|
|
25
|
+
metadata?: any;
|
|
26
|
+
/**
|
|
27
|
+
* Creation timestamp.
|
|
28
|
+
*/
|
|
29
|
+
readonly created_at: string;
|
|
30
|
+
/**
|
|
31
|
+
* Last-modified timestamp.
|
|
32
|
+
*/
|
|
33
|
+
readonly updated_at: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type _TagAttachRequest = {
|
|
6
|
+
/**
|
|
7
|
+
* Id of the Tag to attach. Must belong to your Platform.
|
|
8
|
+
*/
|
|
9
|
+
tag_id: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
@@ -82,7 +82,7 @@ export class ActivitiesService {
|
|
|
82
82
|
* Create an activity
|
|
83
83
|
* Creates an Activity. Either `deal` or `person` must be supplied; both must belong to your Platform.
|
|
84
84
|
*
|
|
85
|
-
* **Required permission:** `Ibl.CRM/Activities/
|
|
85
|
+
* **Required permission:** `Ibl.CRM/Activities/action`.
|
|
86
86
|
* @returns Activity
|
|
87
87
|
* @throws ApiError
|
|
88
88
|
*/
|
|
@@ -98,7 +98,7 @@ export class ActivitiesService {
|
|
|
98
98
|
mediaType: 'application/json',
|
|
99
99
|
errors: {
|
|
100
100
|
400: `Validation error.`,
|
|
101
|
-
403: `Missing required permission \`Ibl.CRM/Activities/
|
|
101
|
+
403: `Missing required permission \`Ibl.CRM/Activities/action\`.`,
|
|
102
102
|
},
|
|
103
103
|
});
|
|
104
104
|
}
|