@iblai/iblai-api 4.450.0-core → 4.452.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 +763 -60
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +763 -61
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +763 -60
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +15 -0
- package/dist/types/models/Activity.d.ts +4 -0
- package/dist/types/models/Deal.d.ts +4 -0
- package/dist/types/models/LeadSource.d.ts +4 -0
- package/dist/types/models/Member.d.ts +16 -0
- package/dist/types/models/Organization.d.ts +4 -0
- package/dist/types/models/Overview.d.ts +4 -0
- package/dist/types/models/PaginatedMemberList.d.ts +7 -0
- package/dist/types/models/PaginatedWebFormList.d.ts +7 -0
- package/dist/types/models/PaginatedWebFormSubmissionList.d.ts +7 -0
- package/dist/types/models/PatchedActivity.d.ts +4 -0
- package/dist/types/models/PatchedDeal.d.ts +4 -0
- package/dist/types/models/PatchedLeadSource.d.ts +4 -0
- package/dist/types/models/PatchedOrganization.d.ts +4 -0
- package/dist/types/models/PatchedPerson.d.ts +4 -0
- package/dist/types/models/PatchedPipeline.d.ts +4 -0
- package/dist/types/models/PatchedSavedView.d.ts +4 -0
- package/dist/types/models/PatchedTag.d.ts +4 -0
- package/dist/types/models/PatchedWebForm.d.ts +41 -0
- package/dist/types/models/Person.d.ts +4 -0
- package/dist/types/models/Pipeline.d.ts +4 -0
- package/dist/types/models/SavedView.d.ts +4 -0
- package/dist/types/models/SearchDeal.d.ts +4 -0
- package/dist/types/models/SearchOrganization.d.ts +5 -1
- package/dist/types/models/SearchPerson.d.ts +4 -0
- package/dist/types/models/Tag.d.ts +4 -0
- package/dist/types/models/Type240Enum.d.ts +20 -0
- package/dist/types/models/WebForm.d.ts +41 -0
- package/dist/types/models/WebFormField.d.ts +20 -0
- package/dist/types/models/WebFormPublic.d.ts +25 -0
- package/dist/types/models/WebFormPublicField.d.ts +10 -0
- package/dist/types/models/WebFormRouting.d.ts +45 -0
- package/dist/types/models/WebFormSubmission.d.ts +15 -0
- package/dist/types/models/WebFormSubmitRequest.d.ts +15 -0
- package/dist/types/models/WebFormSubmitResponse.d.ts +4 -0
- package/dist/types/services/CrmService.d.ts +662 -83
- package/dist/types/services/V1CoursesService.d.ts +25 -0
- package/package.json +1 -1
- package/sdk_schema.yml +1895 -10
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +15 -0
- package/src/models/Activity.ts +4 -0
- package/src/models/Deal.ts +4 -0
- package/src/models/LeadSource.ts +4 -0
- package/src/models/Member.ts +21 -0
- package/src/models/Organization.ts +4 -0
- package/src/models/Overview.ts +4 -0
- package/src/models/PaginatedMemberList.ts +12 -0
- package/src/models/PaginatedWebFormList.ts +12 -0
- package/src/models/PaginatedWebFormSubmissionList.ts +12 -0
- package/src/models/PatchedActivity.ts +4 -0
- package/src/models/PatchedDeal.ts +4 -0
- package/src/models/PatchedLeadSource.ts +4 -0
- package/src/models/PatchedOrganization.ts +4 -0
- package/src/models/PatchedPerson.ts +4 -0
- package/src/models/PatchedPipeline.ts +4 -0
- package/src/models/PatchedSavedView.ts +4 -0
- package/src/models/PatchedTag.ts +4 -0
- package/src/models/PatchedWebForm.ts +46 -0
- package/src/models/Person.ts +4 -0
- package/src/models/Pipeline.ts +4 -0
- package/src/models/SavedView.ts +4 -0
- package/src/models/SearchDeal.ts +4 -0
- package/src/models/SearchOrganization.ts +5 -1
- package/src/models/SearchPerson.ts +4 -0
- package/src/models/Tag.ts +4 -0
- package/src/models/Type240Enum.ts +24 -0
- package/src/models/WebForm.ts +46 -0
- package/src/models/WebFormField.ts +25 -0
- package/src/models/WebFormPublic.ts +30 -0
- package/src/models/WebFormPublicField.ts +15 -0
- package/src/models/WebFormRouting.ts +50 -0
- package/src/models/WebFormSubmission.ts +20 -0
- package/src/models/WebFormSubmitRequest.ts +20 -0
- package/src/models/WebFormSubmitResponse.ts +9 -0
- package/src/services/CrmService.ts +1151 -38
- package/src/services/V1CoursesService.ts +52 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { WebFormPublicField } from './WebFormPublicField';
|
|
2
|
+
/**
|
|
3
|
+
* What a visitor's page needs, by allow-list: never routing or targets.
|
|
4
|
+
*/
|
|
5
|
+
export type WebFormPublic = {
|
|
6
|
+
/**
|
|
7
|
+
* The app this record belongs to: blank for the CRM, e.g. `recruit`.
|
|
8
|
+
*/
|
|
9
|
+
readonly app: string;
|
|
10
|
+
/**
|
|
11
|
+
* URL segment. Unique per platform and app.
|
|
12
|
+
*/
|
|
13
|
+
readonly slug: string;
|
|
14
|
+
/**
|
|
15
|
+
* Shown to visitors; names the lead source and note.
|
|
16
|
+
*/
|
|
17
|
+
readonly name: string;
|
|
18
|
+
/**
|
|
19
|
+
* The app's page copy. Opaque to the CRM and served publicly.
|
|
20
|
+
*/
|
|
21
|
+
readonly metadata: any;
|
|
22
|
+
readonly fields: Array<WebFormPublicField>;
|
|
23
|
+
readonly success_title: string;
|
|
24
|
+
readonly success_message: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { LifecycleStageEnum } from './LifecycleStageEnum';
|
|
2
|
+
export type WebFormRouting = {
|
|
3
|
+
/**
|
|
4
|
+
* Open a deal for every submission.
|
|
5
|
+
*/
|
|
6
|
+
create_deal?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* The deal's pipeline; blank or gone means the default pipeline.
|
|
9
|
+
*/
|
|
10
|
+
pipeline_code?: string;
|
|
11
|
+
/**
|
|
12
|
+
* An open stage of that pipeline; blank or gone means its first open stage.
|
|
13
|
+
*/
|
|
14
|
+
stage_code?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The deal's lead source; a new code is created with the form, named after it.
|
|
17
|
+
*/
|
|
18
|
+
lead_source_code?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Tag names for the person and the deal, created on first use.
|
|
21
|
+
*/
|
|
22
|
+
tags?: Array<string>;
|
|
23
|
+
/**
|
|
24
|
+
* Platform user who owns new persons, the deal and the note.
|
|
25
|
+
*/
|
|
26
|
+
owner?: number | null;
|
|
27
|
+
/**
|
|
28
|
+
* For persons the form creates; an existing person keeps theirs.
|
|
29
|
+
*
|
|
30
|
+
* * `lead` - Lead
|
|
31
|
+
* * `qualified` - Qualified
|
|
32
|
+
* * `opportunity` - Opportunity
|
|
33
|
+
* * `customer` - Customer
|
|
34
|
+
* * `churned` - Churned
|
|
35
|
+
*/
|
|
36
|
+
lifecycle_stage?: LifecycleStageEnum;
|
|
37
|
+
/**
|
|
38
|
+
* `{name}` (the person), `{form}` (the form's name) and `{<key>}` for any deal metadata key.
|
|
39
|
+
*/
|
|
40
|
+
deal_title?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Default deal metadata; mapped answers override it.
|
|
43
|
+
*/
|
|
44
|
+
deal_metadata?: Record<string, string>;
|
|
45
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type WebFormSubmission = {
|
|
2
|
+
readonly id: string;
|
|
3
|
+
/**
|
|
4
|
+
* The person it landed in (may since be deleted).
|
|
5
|
+
*/
|
|
6
|
+
readonly person: string | null;
|
|
7
|
+
/**
|
|
8
|
+
* The deal it opened, or null.
|
|
9
|
+
*/
|
|
10
|
+
readonly deal: number | null;
|
|
11
|
+
readonly answers: any;
|
|
12
|
+
readonly utm: any;
|
|
13
|
+
readonly page_url: string;
|
|
14
|
+
readonly created_at: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type WebFormSubmitRequest = {
|
|
2
|
+
/**
|
|
3
|
+
* Field key → answer.
|
|
4
|
+
*/
|
|
5
|
+
answers: Record<string, any>;
|
|
6
|
+
/**
|
|
7
|
+
* Up to 8 `utm_*` tags.
|
|
8
|
+
*/
|
|
9
|
+
utm?: Record<string, any>;
|
|
10
|
+
page_url?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Honeypot: leave empty.
|
|
13
|
+
*/
|
|
14
|
+
website?: string;
|
|
15
|
+
};
|