@getlatedev/node 0.2.1704 → 0.2.1705
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/README.md +13 -0
- package/dist/index.d.mts +435 -3
- package/dist/index.d.ts +435 -3
- package/dist/index.js +69 -1
- package/dist/index.mjs +69 -1
- package/package.json +1 -1
- package/src/client.ts +24 -0
- package/src/generated/sdk.gen.ts +123 -1
- package/src/generated/types.gen.ts +464 -2
|
@@ -9754,6 +9754,150 @@ export type CreatorPortalSubmission = {
|
|
|
9754
9754
|
draftId: (string) | null;
|
|
9755
9755
|
};
|
|
9756
9756
|
|
|
9757
|
+
export type CrmActivity = {
|
|
9758
|
+
id: string;
|
|
9759
|
+
/**
|
|
9760
|
+
* HubSpot `note` or `communication` (WhatsApp, SMS); Salesforce `task`.
|
|
9761
|
+
*/
|
|
9762
|
+
objectType: 'note' | 'communication' | 'task';
|
|
9763
|
+
contactId: string;
|
|
9764
|
+
channel: 'whatsapp' | 'sms' | 'email' | 'call' | 'meeting' | 'instagram' | 'messenger' | 'telegram' | 'other';
|
|
9765
|
+
direction: ('inbound' | 'outbound') | null;
|
|
9766
|
+
subject: (string) | null;
|
|
9767
|
+
body: string;
|
|
9768
|
+
occurredAt: string;
|
|
9769
|
+
/**
|
|
9770
|
+
* The Salesforce Task, or the HubSpot contact whose timeline shows it.
|
|
9771
|
+
*/
|
|
9772
|
+
url: string;
|
|
9773
|
+
};
|
|
9774
|
+
|
|
9775
|
+
/**
|
|
9776
|
+
* HubSpot `note` or `communication` (WhatsApp, SMS); Salesforce `task`.
|
|
9777
|
+
*/
|
|
9778
|
+
export type objectType = 'note' | 'communication' | 'task';
|
|
9779
|
+
|
|
9780
|
+
export type channel4 = 'whatsapp' | 'sms' | 'email' | 'call' | 'meeting' | 'instagram' | 'messenger' | 'telegram' | 'other';
|
|
9781
|
+
|
|
9782
|
+
/**
|
|
9783
|
+
* A person in the connected CRM, in the same shape for HubSpot and Salesforce.
|
|
9784
|
+
*/
|
|
9785
|
+
export type CrmContact = {
|
|
9786
|
+
/**
|
|
9787
|
+
* The CRM's own id.
|
|
9788
|
+
*/
|
|
9789
|
+
id: string;
|
|
9790
|
+
/**
|
|
9791
|
+
* `lead` only on Salesforce.
|
|
9792
|
+
*/
|
|
9793
|
+
objectType: 'contact' | 'lead';
|
|
9794
|
+
firstName: (string) | null;
|
|
9795
|
+
lastName: (string) | null;
|
|
9796
|
+
email: (string) | null;
|
|
9797
|
+
/**
|
|
9798
|
+
* The phone, else the mobile phone, as stored in the CRM.
|
|
9799
|
+
*/
|
|
9800
|
+
phone: (string) | null;
|
|
9801
|
+
/**
|
|
9802
|
+
* HubSpot `company`; Salesforce Lead `Company` or Contact Account name.
|
|
9803
|
+
*/
|
|
9804
|
+
company: (string) | null;
|
|
9805
|
+
ownerId: (string) | null;
|
|
9806
|
+
createdAt: (string) | null;
|
|
9807
|
+
updatedAt: (string) | null;
|
|
9808
|
+
/**
|
|
9809
|
+
* Opens the record in the CRM.
|
|
9810
|
+
*/
|
|
9811
|
+
url: string;
|
|
9812
|
+
/**
|
|
9813
|
+
* The native fields asked for with `properties`, by name.
|
|
9814
|
+
*/
|
|
9815
|
+
properties: {
|
|
9816
|
+
[key: string]: unknown;
|
|
9817
|
+
};
|
|
9818
|
+
/**
|
|
9819
|
+
* The CRM's own record, only with `includeRaw=true`.
|
|
9820
|
+
*/
|
|
9821
|
+
raw?: {
|
|
9822
|
+
[key: string]: unknown;
|
|
9823
|
+
};
|
|
9824
|
+
};
|
|
9825
|
+
|
|
9826
|
+
/**
|
|
9827
|
+
* `lead` only on Salesforce.
|
|
9828
|
+
*/
|
|
9829
|
+
export type objectType2 = 'contact' | 'lead';
|
|
9830
|
+
|
|
9831
|
+
/**
|
|
9832
|
+
* Unified fields, mapped to HubSpot `firstname`, `lastname`, `email`, `phone`, `company`, `hubspot_owner_id` and Salesforce `FirstName`, `LastName`, `Email`, `Phone`, `Company` (Leads), `OwnerId`.
|
|
9833
|
+
*/
|
|
9834
|
+
export type CrmContactInput = {
|
|
9835
|
+
firstName?: (string) | null;
|
|
9836
|
+
lastName?: (string) | null;
|
|
9837
|
+
email?: (string) | null;
|
|
9838
|
+
phone?: (string) | null;
|
|
9839
|
+
company?: (string) | null;
|
|
9840
|
+
/**
|
|
9841
|
+
* An id from `GET /v1/crm/{accountId}/owners`.
|
|
9842
|
+
*/
|
|
9843
|
+
ownerId?: (string) | null;
|
|
9844
|
+
properties?: CrmNativeProperties;
|
|
9845
|
+
};
|
|
9846
|
+
|
|
9847
|
+
/**
|
|
9848
|
+
* A HubSpot deal or a Salesforce Opportunity.
|
|
9849
|
+
*/
|
|
9850
|
+
export type CrmDeal = {
|
|
9851
|
+
id: string;
|
|
9852
|
+
objectType: 'deal' | 'opportunity';
|
|
9853
|
+
name: (string) | null;
|
|
9854
|
+
/**
|
|
9855
|
+
* HubSpot stage id (`closedwon`) or Salesforce `StageName` (`Closed Won`).
|
|
9856
|
+
*/
|
|
9857
|
+
stage: (string) | null;
|
|
9858
|
+
amount: (number) | null;
|
|
9859
|
+
/**
|
|
9860
|
+
* ISO 4217. HubSpot sets it on multi-currency portals only. Salesforce gives the Opportunity's currency on multi-currency orgs, else the org currency read from its Currency Locale.
|
|
9861
|
+
*/
|
|
9862
|
+
currency: (string) | null;
|
|
9863
|
+
closeDate: (string) | null;
|
|
9864
|
+
ownerId: (string) | null;
|
|
9865
|
+
/**
|
|
9866
|
+
* Associated HubSpot contacts, or the Opportunity's contact roles (primary first).
|
|
9867
|
+
*/
|
|
9868
|
+
contactIds: Array<(string)>;
|
|
9869
|
+
createdAt: (string) | null;
|
|
9870
|
+
updatedAt: (string) | null;
|
|
9871
|
+
url: string;
|
|
9872
|
+
properties: {
|
|
9873
|
+
[key: string]: unknown;
|
|
9874
|
+
};
|
|
9875
|
+
raw?: {
|
|
9876
|
+
[key: string]: unknown;
|
|
9877
|
+
};
|
|
9878
|
+
};
|
|
9879
|
+
|
|
9880
|
+
export type objectType3 = 'deal' | 'opportunity';
|
|
9881
|
+
|
|
9882
|
+
/**
|
|
9883
|
+
* Native fields by internal name (HubSpot `lifecyclestage`, Salesforce `LeadSource` or `Industry__c`). A unified field of the same request wins over its native twin. `null` clears a field.
|
|
9884
|
+
*/
|
|
9885
|
+
export type CrmNativeProperties = {
|
|
9886
|
+
[key: string]: ((string | number | boolean) | null);
|
|
9887
|
+
};
|
|
9888
|
+
|
|
9889
|
+
export type CrmOwner = {
|
|
9890
|
+
id: string;
|
|
9891
|
+
firstName: (string) | null;
|
|
9892
|
+
lastName: (string) | null;
|
|
9893
|
+
name: (string) | null;
|
|
9894
|
+
email: (string) | null;
|
|
9895
|
+
active: boolean;
|
|
9896
|
+
raw?: {
|
|
9897
|
+
[key: string]: unknown;
|
|
9898
|
+
};
|
|
9899
|
+
};
|
|
9900
|
+
|
|
9757
9901
|
/**
|
|
9758
9902
|
* Besides the `required` list, the request must use EXACTLY ONE of these shapes:
|
|
9759
9903
|
*
|
|
@@ -13144,7 +13288,7 @@ export type level3 = 'LEVEL1' | 'LEVEL2' | 'LEVEL3' | 'LEVEL4' | 'LEVEL5';
|
|
|
13144
13288
|
|
|
13145
13289
|
export type condition = 'NEW' | 'REFURBISHED' | 'USED';
|
|
13146
13290
|
|
|
13147
|
-
export type
|
|
13291
|
+
export type channel5 = 'ONLINE' | 'LOCAL';
|
|
13148
13292
|
|
|
13149
13293
|
export type index = 'INDEX0' | 'INDEX1' | 'INDEX2' | 'INDEX3' | 'INDEX4';
|
|
13150
13294
|
|
|
@@ -16494,6 +16638,38 @@ export type ParameterCatalogTokenAccountId = string;
|
|
|
16494
16638
|
*/
|
|
16495
16639
|
export type ParameterCreatorPortalToken = string;
|
|
16496
16640
|
|
|
16641
|
+
/**
|
|
16642
|
+
* The connected HubSpot or Salesforce account (`GET /v1/accounts?platform=hubspot` or `salesforce`).
|
|
16643
|
+
*/
|
|
16644
|
+
export type ParameterCrmAccountId = string;
|
|
16645
|
+
|
|
16646
|
+
/**
|
|
16647
|
+
* The CRM's own id. HubSpot contact id, or Salesforce Contact (`003...`) or Lead (`00Q...`) id.
|
|
16648
|
+
*/
|
|
16649
|
+
export type ParameterCrmContactId = string;
|
|
16650
|
+
|
|
16651
|
+
/**
|
|
16652
|
+
* The `nextCursor` of the previous page, unchanged.
|
|
16653
|
+
*/
|
|
16654
|
+
export type ParameterCrmCursor = string;
|
|
16655
|
+
|
|
16656
|
+
/**
|
|
16657
|
+
* HubSpot deal id or Salesforce Opportunity id (`006...`).
|
|
16658
|
+
*/
|
|
16659
|
+
export type ParameterCrmDealId = string;
|
|
16660
|
+
|
|
16661
|
+
/**
|
|
16662
|
+
* Also return the CRM's own record as `raw`.
|
|
16663
|
+
*/
|
|
16664
|
+
export type ParameterCrmIncludeRaw = boolean;
|
|
16665
|
+
|
|
16666
|
+
export type ParameterCrmLimit = number;
|
|
16667
|
+
|
|
16668
|
+
/**
|
|
16669
|
+
* Comma-separated native field names to return in `properties` (at most 50), for example `lifecyclestage,hs_lead_status` or `LeadSource,Industry__c`.
|
|
16670
|
+
*/
|
|
16671
|
+
export type ParameterCrmProperties = string;
|
|
16672
|
+
|
|
16497
16673
|
/**
|
|
16498
16674
|
* The connected Google, Microsoft or IMAP account.
|
|
16499
16675
|
*/
|
|
@@ -21010,7 +21186,7 @@ export type Verification = {
|
|
|
21010
21186
|
|
|
21011
21187
|
export type status61 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
21012
21188
|
|
|
21013
|
-
export type
|
|
21189
|
+
export type channel6 = 'sms' | 'whatsapp';
|
|
21014
21190
|
|
|
21015
21191
|
/**
|
|
21016
21192
|
* WhatsApp only. What Meta reported for the latest send, null until it reports. Returned by GET /v1/verify/verifications/{verificationId} (null on create and check responses).
|
|
@@ -42434,6 +42610,292 @@ export type UpdateSalesforceSettingsResponse = ({
|
|
|
42434
42610
|
|
|
42435
42611
|
export type UpdateSalesforceSettingsError = (ErrorResponse | unknown);
|
|
42436
42612
|
|
|
42613
|
+
export type SearchCrmContactsData = {
|
|
42614
|
+
path: {
|
|
42615
|
+
/**
|
|
42616
|
+
* The connected HubSpot or Salesforce account (`GET /v1/accounts?platform=hubspot` or `salesforce`).
|
|
42617
|
+
*/
|
|
42618
|
+
accountId: string;
|
|
42619
|
+
};
|
|
42620
|
+
query?: {
|
|
42621
|
+
/**
|
|
42622
|
+
* The `nextCursor` of the previous page, unchanged.
|
|
42623
|
+
*/
|
|
42624
|
+
cursor?: string;
|
|
42625
|
+
email?: string;
|
|
42626
|
+
/**
|
|
42627
|
+
* Also return the CRM's own record as `raw`.
|
|
42628
|
+
*/
|
|
42629
|
+
includeRaw?: boolean;
|
|
42630
|
+
limit?: number;
|
|
42631
|
+
/**
|
|
42632
|
+
* International number with its country code, for example `+14155550100`.
|
|
42633
|
+
*/
|
|
42634
|
+
phone?: string;
|
|
42635
|
+
/**
|
|
42636
|
+
* Comma-separated native field names to return in `properties` (at most 50), for example `lifecyclestage,hs_lead_status` or `LeadSource,Industry__c`.
|
|
42637
|
+
*/
|
|
42638
|
+
properties?: string;
|
|
42639
|
+
/**
|
|
42640
|
+
* Free text, at least 2 characters.
|
|
42641
|
+
*/
|
|
42642
|
+
q?: string;
|
|
42643
|
+
};
|
|
42644
|
+
};
|
|
42645
|
+
|
|
42646
|
+
export type SearchCrmContactsResponse = ({
|
|
42647
|
+
contacts: Array<CrmContact>;
|
|
42648
|
+
/**
|
|
42649
|
+
* Pass back as `cursor` for the next page; null on the last page.
|
|
42650
|
+
*/
|
|
42651
|
+
nextCursor: (string) | null;
|
|
42652
|
+
});
|
|
42653
|
+
|
|
42654
|
+
export type SearchCrmContactsError = (ErrorResponse);
|
|
42655
|
+
|
|
42656
|
+
export type CreateCrmContactData = {
|
|
42657
|
+
body: (CrmContactInput & {
|
|
42658
|
+
/**
|
|
42659
|
+
* Salesforce only. Defaults to the connection's `createAs` setting. Ignored on HubSpot.
|
|
42660
|
+
*/
|
|
42661
|
+
createAs?: 'lead' | 'contact';
|
|
42662
|
+
});
|
|
42663
|
+
path: {
|
|
42664
|
+
/**
|
|
42665
|
+
* The connected HubSpot or Salesforce account (`GET /v1/accounts?platform=hubspot` or `salesforce`).
|
|
42666
|
+
*/
|
|
42667
|
+
accountId: string;
|
|
42668
|
+
};
|
|
42669
|
+
};
|
|
42670
|
+
|
|
42671
|
+
export type CreateCrmContactResponse = ({
|
|
42672
|
+
contact: CrmContact;
|
|
42673
|
+
});
|
|
42674
|
+
|
|
42675
|
+
export type CreateCrmContactError = (ErrorResponse);
|
|
42676
|
+
|
|
42677
|
+
export type GetCrmContactData = {
|
|
42678
|
+
path: {
|
|
42679
|
+
/**
|
|
42680
|
+
* The connected HubSpot or Salesforce account (`GET /v1/accounts?platform=hubspot` or `salesforce`).
|
|
42681
|
+
*/
|
|
42682
|
+
accountId: string;
|
|
42683
|
+
/**
|
|
42684
|
+
* The CRM's own id. HubSpot contact id, or Salesforce Contact (`003...`) or Lead (`00Q...`) id.
|
|
42685
|
+
*/
|
|
42686
|
+
contactId: string;
|
|
42687
|
+
};
|
|
42688
|
+
query?: {
|
|
42689
|
+
/**
|
|
42690
|
+
* Also return the CRM's own record as `raw`.
|
|
42691
|
+
*/
|
|
42692
|
+
includeRaw?: boolean;
|
|
42693
|
+
/**
|
|
42694
|
+
* Comma-separated native field names to return in `properties` (at most 50), for example `lifecyclestage,hs_lead_status` or `LeadSource,Industry__c`.
|
|
42695
|
+
*/
|
|
42696
|
+
properties?: string;
|
|
42697
|
+
};
|
|
42698
|
+
};
|
|
42699
|
+
|
|
42700
|
+
export type GetCrmContactResponse = ({
|
|
42701
|
+
contact: CrmContact;
|
|
42702
|
+
});
|
|
42703
|
+
|
|
42704
|
+
export type GetCrmContactError = (ErrorResponse);
|
|
42705
|
+
|
|
42706
|
+
export type UpdateCrmContactData = {
|
|
42707
|
+
body: CrmContactInput;
|
|
42708
|
+
path: {
|
|
42709
|
+
/**
|
|
42710
|
+
* The connected HubSpot or Salesforce account (`GET /v1/accounts?platform=hubspot` or `salesforce`).
|
|
42711
|
+
*/
|
|
42712
|
+
accountId: string;
|
|
42713
|
+
/**
|
|
42714
|
+
* The CRM's own id. HubSpot contact id, or Salesforce Contact (`003...`) or Lead (`00Q...`) id.
|
|
42715
|
+
*/
|
|
42716
|
+
contactId: string;
|
|
42717
|
+
};
|
|
42718
|
+
};
|
|
42719
|
+
|
|
42720
|
+
export type UpdateCrmContactResponse = ({
|
|
42721
|
+
contact: CrmContact;
|
|
42722
|
+
});
|
|
42723
|
+
|
|
42724
|
+
export type UpdateCrmContactError = (ErrorResponse);
|
|
42725
|
+
|
|
42726
|
+
export type CreateCrmActivityData = {
|
|
42727
|
+
body: {
|
|
42728
|
+
/**
|
|
42729
|
+
* The text to log.
|
|
42730
|
+
*/
|
|
42731
|
+
body: string;
|
|
42732
|
+
/**
|
|
42733
|
+
* Salesforce Task subject (default `<Channel> activity (<direction>)`); on HubSpot, the bold first line.
|
|
42734
|
+
*/
|
|
42735
|
+
subject?: string;
|
|
42736
|
+
channel?: 'whatsapp' | 'sms' | 'email' | 'call' | 'meeting' | 'instagram' | 'messenger' | 'telegram' | 'other';
|
|
42737
|
+
direction?: 'inbound' | 'outbound';
|
|
42738
|
+
/**
|
|
42739
|
+
* When it happened. Defaults to now.
|
|
42740
|
+
*/
|
|
42741
|
+
occurredAt?: string;
|
|
42742
|
+
};
|
|
42743
|
+
path: {
|
|
42744
|
+
/**
|
|
42745
|
+
* The connected HubSpot or Salesforce account (`GET /v1/accounts?platform=hubspot` or `salesforce`).
|
|
42746
|
+
*/
|
|
42747
|
+
accountId: string;
|
|
42748
|
+
/**
|
|
42749
|
+
* The CRM's own id. HubSpot contact id, or Salesforce Contact (`003...`) or Lead (`00Q...`) id.
|
|
42750
|
+
*/
|
|
42751
|
+
contactId: string;
|
|
42752
|
+
};
|
|
42753
|
+
};
|
|
42754
|
+
|
|
42755
|
+
export type CreateCrmActivityResponse = ({
|
|
42756
|
+
activity: CrmActivity;
|
|
42757
|
+
});
|
|
42758
|
+
|
|
42759
|
+
export type CreateCrmActivityError = (ErrorResponse);
|
|
42760
|
+
|
|
42761
|
+
export type ListCrmDealsData = {
|
|
42762
|
+
path: {
|
|
42763
|
+
/**
|
|
42764
|
+
* The connected HubSpot or Salesforce account (`GET /v1/accounts?platform=hubspot` or `salesforce`).
|
|
42765
|
+
*/
|
|
42766
|
+
accountId: string;
|
|
42767
|
+
};
|
|
42768
|
+
query?: {
|
|
42769
|
+
/**
|
|
42770
|
+
* The `nextCursor` of the previous page, unchanged.
|
|
42771
|
+
*/
|
|
42772
|
+
cursor?: string;
|
|
42773
|
+
/**
|
|
42774
|
+
* Also return the CRM's own record as `raw`.
|
|
42775
|
+
*/
|
|
42776
|
+
includeRaw?: boolean;
|
|
42777
|
+
limit?: number;
|
|
42778
|
+
/**
|
|
42779
|
+
* Comma-separated native field names to return in `properties` (at most 50), for example `lifecyclestage,hs_lead_status` or `LeadSource,Industry__c`.
|
|
42780
|
+
*/
|
|
42781
|
+
properties?: string;
|
|
42782
|
+
/**
|
|
42783
|
+
* Only deals in this stage. HubSpot takes the stage's internal id (`closedwon`, `appointmentscheduled`); Salesforce the `StageName` (`Closed Won`).
|
|
42784
|
+
*/
|
|
42785
|
+
stage?: string;
|
|
42786
|
+
/**
|
|
42787
|
+
* Only deals changed at or after this time.
|
|
42788
|
+
*/
|
|
42789
|
+
updatedSince?: string;
|
|
42790
|
+
};
|
|
42791
|
+
};
|
|
42792
|
+
|
|
42793
|
+
export type ListCrmDealsResponse = ({
|
|
42794
|
+
deals: Array<CrmDeal>;
|
|
42795
|
+
/**
|
|
42796
|
+
* Pass back as `cursor` for the next page; null on the last page.
|
|
42797
|
+
*/
|
|
42798
|
+
nextCursor: (string) | null;
|
|
42799
|
+
});
|
|
42800
|
+
|
|
42801
|
+
export type ListCrmDealsError = (ErrorResponse);
|
|
42802
|
+
|
|
42803
|
+
export type GetCrmDealData = {
|
|
42804
|
+
path: {
|
|
42805
|
+
/**
|
|
42806
|
+
* The connected HubSpot or Salesforce account (`GET /v1/accounts?platform=hubspot` or `salesforce`).
|
|
42807
|
+
*/
|
|
42808
|
+
accountId: string;
|
|
42809
|
+
/**
|
|
42810
|
+
* HubSpot deal id or Salesforce Opportunity id (`006...`).
|
|
42811
|
+
*/
|
|
42812
|
+
dealId: string;
|
|
42813
|
+
};
|
|
42814
|
+
query?: {
|
|
42815
|
+
/**
|
|
42816
|
+
* Also return the CRM's own record as `raw`.
|
|
42817
|
+
*/
|
|
42818
|
+
includeRaw?: boolean;
|
|
42819
|
+
/**
|
|
42820
|
+
* Comma-separated native field names to return in `properties` (at most 50), for example `lifecyclestage,hs_lead_status` or `LeadSource,Industry__c`.
|
|
42821
|
+
*/
|
|
42822
|
+
properties?: string;
|
|
42823
|
+
};
|
|
42824
|
+
};
|
|
42825
|
+
|
|
42826
|
+
export type GetCrmDealResponse = ({
|
|
42827
|
+
deal: CrmDeal;
|
|
42828
|
+
});
|
|
42829
|
+
|
|
42830
|
+
export type GetCrmDealError = (ErrorResponse);
|
|
42831
|
+
|
|
42832
|
+
export type UpdateCrmDealData = {
|
|
42833
|
+
body: {
|
|
42834
|
+
name?: string;
|
|
42835
|
+
/**
|
|
42836
|
+
* HubSpot stage id or Salesforce `StageName`.
|
|
42837
|
+
*/
|
|
42838
|
+
stage?: string;
|
|
42839
|
+
amount?: (number) | null;
|
|
42840
|
+
/**
|
|
42841
|
+
* ISO 4217 code. Multi-currency portals and orgs only.
|
|
42842
|
+
*/
|
|
42843
|
+
currency?: string;
|
|
42844
|
+
closeDate?: (string) | null;
|
|
42845
|
+
/**
|
|
42846
|
+
* An id from `GET /v1/crm/{accountId}/owners`.
|
|
42847
|
+
*/
|
|
42848
|
+
ownerId?: string;
|
|
42849
|
+
properties?: CrmNativeProperties;
|
|
42850
|
+
};
|
|
42851
|
+
path: {
|
|
42852
|
+
/**
|
|
42853
|
+
* The connected HubSpot or Salesforce account (`GET /v1/accounts?platform=hubspot` or `salesforce`).
|
|
42854
|
+
*/
|
|
42855
|
+
accountId: string;
|
|
42856
|
+
/**
|
|
42857
|
+
* HubSpot deal id or Salesforce Opportunity id (`006...`).
|
|
42858
|
+
*/
|
|
42859
|
+
dealId: string;
|
|
42860
|
+
};
|
|
42861
|
+
};
|
|
42862
|
+
|
|
42863
|
+
export type UpdateCrmDealResponse = ({
|
|
42864
|
+
deal: CrmDeal;
|
|
42865
|
+
});
|
|
42866
|
+
|
|
42867
|
+
export type UpdateCrmDealError = (ErrorResponse);
|
|
42868
|
+
|
|
42869
|
+
export type ListCrmOwnersData = {
|
|
42870
|
+
path: {
|
|
42871
|
+
/**
|
|
42872
|
+
* The connected HubSpot or Salesforce account (`GET /v1/accounts?platform=hubspot` or `salesforce`).
|
|
42873
|
+
*/
|
|
42874
|
+
accountId: string;
|
|
42875
|
+
};
|
|
42876
|
+
query?: {
|
|
42877
|
+
/**
|
|
42878
|
+
* The `nextCursor` of the previous page, unchanged.
|
|
42879
|
+
*/
|
|
42880
|
+
cursor?: string;
|
|
42881
|
+
/**
|
|
42882
|
+
* Also return the CRM's own record as `raw`.
|
|
42883
|
+
*/
|
|
42884
|
+
includeRaw?: boolean;
|
|
42885
|
+
limit?: number;
|
|
42886
|
+
};
|
|
42887
|
+
};
|
|
42888
|
+
|
|
42889
|
+
export type ListCrmOwnersResponse = ({
|
|
42890
|
+
owners: Array<CrmOwner>;
|
|
42891
|
+
/**
|
|
42892
|
+
* Pass back as `cursor` for the next page; null on the last page.
|
|
42893
|
+
*/
|
|
42894
|
+
nextCursor: (string) | null;
|
|
42895
|
+
});
|
|
42896
|
+
|
|
42897
|
+
export type ListCrmOwnersError = (ErrorResponse);
|
|
42898
|
+
|
|
42437
42899
|
export type GetStripeSettingsData = {
|
|
42438
42900
|
path: {
|
|
42439
42901
|
accountId: string;
|