@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
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1705",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
|
@@ -2046,6 +2046,60 @@ var updateSalesforceSettings = (options) => {
|
|
|
2046
2046
|
url: "/v1/accounts/{accountId}/salesforce-settings"
|
|
2047
2047
|
});
|
|
2048
2048
|
};
|
|
2049
|
+
var searchCrmContacts = (options) => {
|
|
2050
|
+
return (options?.client ?? client).get({
|
|
2051
|
+
...options,
|
|
2052
|
+
url: "/v1/crm/{accountId}/contacts/search"
|
|
2053
|
+
});
|
|
2054
|
+
};
|
|
2055
|
+
var createCrmContact = (options) => {
|
|
2056
|
+
return (options?.client ?? client).post({
|
|
2057
|
+
...options,
|
|
2058
|
+
url: "/v1/crm/{accountId}/contacts"
|
|
2059
|
+
});
|
|
2060
|
+
};
|
|
2061
|
+
var getCrmContact = (options) => {
|
|
2062
|
+
return (options?.client ?? client).get({
|
|
2063
|
+
...options,
|
|
2064
|
+
url: "/v1/crm/{accountId}/contacts/{contactId}"
|
|
2065
|
+
});
|
|
2066
|
+
};
|
|
2067
|
+
var updateCrmContact = (options) => {
|
|
2068
|
+
return (options?.client ?? client).patch({
|
|
2069
|
+
...options,
|
|
2070
|
+
url: "/v1/crm/{accountId}/contacts/{contactId}"
|
|
2071
|
+
});
|
|
2072
|
+
};
|
|
2073
|
+
var createCrmActivity = (options) => {
|
|
2074
|
+
return (options?.client ?? client).post({
|
|
2075
|
+
...options,
|
|
2076
|
+
url: "/v1/crm/{accountId}/contacts/{contactId}/activities"
|
|
2077
|
+
});
|
|
2078
|
+
};
|
|
2079
|
+
var listCrmDeals = (options) => {
|
|
2080
|
+
return (options?.client ?? client).get({
|
|
2081
|
+
...options,
|
|
2082
|
+
url: "/v1/crm/{accountId}/deals"
|
|
2083
|
+
});
|
|
2084
|
+
};
|
|
2085
|
+
var getCrmDeal = (options) => {
|
|
2086
|
+
return (options?.client ?? client).get({
|
|
2087
|
+
...options,
|
|
2088
|
+
url: "/v1/crm/{accountId}/deals/{dealId}"
|
|
2089
|
+
});
|
|
2090
|
+
};
|
|
2091
|
+
var updateCrmDeal = (options) => {
|
|
2092
|
+
return (options?.client ?? client).patch({
|
|
2093
|
+
...options,
|
|
2094
|
+
url: "/v1/crm/{accountId}/deals/{dealId}"
|
|
2095
|
+
});
|
|
2096
|
+
};
|
|
2097
|
+
var listCrmOwners = (options) => {
|
|
2098
|
+
return (options?.client ?? client).get({
|
|
2099
|
+
...options,
|
|
2100
|
+
url: "/v1/crm/{accountId}/owners"
|
|
2101
|
+
});
|
|
2102
|
+
};
|
|
2049
2103
|
var getStripeSettings = (options) => {
|
|
2050
2104
|
return (options?.client ?? client).get({
|
|
2051
2105
|
...options,
|
|
@@ -8796,6 +8850,20 @@ var Zernio = class _Zernio {
|
|
|
8796
8850
|
getInstagramMentionedComment: this._bind(getInstagramMentionedComment),
|
|
8797
8851
|
getInstagramStoryInsights: this._bind(getInstagramStoryInsights)
|
|
8798
8852
|
};
|
|
8853
|
+
/**
|
|
8854
|
+
* crm API
|
|
8855
|
+
*/
|
|
8856
|
+
this.crm = {
|
|
8857
|
+
searchCrmContacts: this._bind(searchCrmContacts),
|
|
8858
|
+
createCrmContact: this._bind(createCrmContact),
|
|
8859
|
+
getCrmContact: this._bind(getCrmContact),
|
|
8860
|
+
updateCrmContact: this._bind(updateCrmContact),
|
|
8861
|
+
createCrmActivity: this._bind(createCrmActivity),
|
|
8862
|
+
listCrmDeals: this._bind(listCrmDeals),
|
|
8863
|
+
getCrmDeal: this._bind(getCrmDeal),
|
|
8864
|
+
updateCrmDeal: this._bind(updateCrmDeal),
|
|
8865
|
+
listCrmOwners: this._bind(listCrmOwners)
|
|
8866
|
+
};
|
|
8799
8867
|
/**
|
|
8800
8868
|
* discord API
|
|
8801
8869
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1705",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -2015,6 +2015,60 @@ var updateSalesforceSettings = (options) => {
|
|
|
2015
2015
|
url: "/v1/accounts/{accountId}/salesforce-settings"
|
|
2016
2016
|
});
|
|
2017
2017
|
};
|
|
2018
|
+
var searchCrmContacts = (options) => {
|
|
2019
|
+
return (options?.client ?? client).get({
|
|
2020
|
+
...options,
|
|
2021
|
+
url: "/v1/crm/{accountId}/contacts/search"
|
|
2022
|
+
});
|
|
2023
|
+
};
|
|
2024
|
+
var createCrmContact = (options) => {
|
|
2025
|
+
return (options?.client ?? client).post({
|
|
2026
|
+
...options,
|
|
2027
|
+
url: "/v1/crm/{accountId}/contacts"
|
|
2028
|
+
});
|
|
2029
|
+
};
|
|
2030
|
+
var getCrmContact = (options) => {
|
|
2031
|
+
return (options?.client ?? client).get({
|
|
2032
|
+
...options,
|
|
2033
|
+
url: "/v1/crm/{accountId}/contacts/{contactId}"
|
|
2034
|
+
});
|
|
2035
|
+
};
|
|
2036
|
+
var updateCrmContact = (options) => {
|
|
2037
|
+
return (options?.client ?? client).patch({
|
|
2038
|
+
...options,
|
|
2039
|
+
url: "/v1/crm/{accountId}/contacts/{contactId}"
|
|
2040
|
+
});
|
|
2041
|
+
};
|
|
2042
|
+
var createCrmActivity = (options) => {
|
|
2043
|
+
return (options?.client ?? client).post({
|
|
2044
|
+
...options,
|
|
2045
|
+
url: "/v1/crm/{accountId}/contacts/{contactId}/activities"
|
|
2046
|
+
});
|
|
2047
|
+
};
|
|
2048
|
+
var listCrmDeals = (options) => {
|
|
2049
|
+
return (options?.client ?? client).get({
|
|
2050
|
+
...options,
|
|
2051
|
+
url: "/v1/crm/{accountId}/deals"
|
|
2052
|
+
});
|
|
2053
|
+
};
|
|
2054
|
+
var getCrmDeal = (options) => {
|
|
2055
|
+
return (options?.client ?? client).get({
|
|
2056
|
+
...options,
|
|
2057
|
+
url: "/v1/crm/{accountId}/deals/{dealId}"
|
|
2058
|
+
});
|
|
2059
|
+
};
|
|
2060
|
+
var updateCrmDeal = (options) => {
|
|
2061
|
+
return (options?.client ?? client).patch({
|
|
2062
|
+
...options,
|
|
2063
|
+
url: "/v1/crm/{accountId}/deals/{dealId}"
|
|
2064
|
+
});
|
|
2065
|
+
};
|
|
2066
|
+
var listCrmOwners = (options) => {
|
|
2067
|
+
return (options?.client ?? client).get({
|
|
2068
|
+
...options,
|
|
2069
|
+
url: "/v1/crm/{accountId}/owners"
|
|
2070
|
+
});
|
|
2071
|
+
};
|
|
2018
2072
|
var getStripeSettings = (options) => {
|
|
2019
2073
|
return (options?.client ?? client).get({
|
|
2020
2074
|
...options,
|
|
@@ -8765,6 +8819,20 @@ var Zernio = class _Zernio {
|
|
|
8765
8819
|
getInstagramMentionedComment: this._bind(getInstagramMentionedComment),
|
|
8766
8820
|
getInstagramStoryInsights: this._bind(getInstagramStoryInsights)
|
|
8767
8821
|
};
|
|
8822
|
+
/**
|
|
8823
|
+
* crm API
|
|
8824
|
+
*/
|
|
8825
|
+
this.crm = {
|
|
8826
|
+
searchCrmContacts: this._bind(searchCrmContacts),
|
|
8827
|
+
createCrmContact: this._bind(createCrmContact),
|
|
8828
|
+
getCrmContact: this._bind(getCrmContact),
|
|
8829
|
+
updateCrmContact: this._bind(updateCrmContact),
|
|
8830
|
+
createCrmActivity: this._bind(createCrmActivity),
|
|
8831
|
+
listCrmDeals: this._bind(listCrmDeals),
|
|
8832
|
+
getCrmDeal: this._bind(getCrmDeal),
|
|
8833
|
+
updateCrmDeal: this._bind(updateCrmDeal),
|
|
8834
|
+
listCrmOwners: this._bind(listCrmOwners)
|
|
8835
|
+
};
|
|
8768
8836
|
/**
|
|
8769
8837
|
* discord API
|
|
8770
8838
|
*/
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -163,6 +163,8 @@ import {
|
|
|
163
163
|
createConversionDestination,
|
|
164
164
|
createCreatorCampaign,
|
|
165
165
|
createCreatorPayoutLogin,
|
|
166
|
+
createCrmActivity,
|
|
167
|
+
createCrmContact,
|
|
166
168
|
createCtwaAd,
|
|
167
169
|
createCustomConversion,
|
|
168
170
|
createCustomConversionGoal,
|
|
@@ -474,6 +476,8 @@ import {
|
|
|
474
476
|
getCreatorPayoutStatement,
|
|
475
477
|
getCreatorPayouts,
|
|
476
478
|
getCreatorPortal,
|
|
479
|
+
getCrmContact,
|
|
480
|
+
getCrmDeal,
|
|
477
481
|
getDailyMetrics,
|
|
478
482
|
getDiscordChannels,
|
|
479
483
|
getDiscordGuildMember,
|
|
@@ -806,6 +810,8 @@ import {
|
|
|
806
810
|
listConversionAssociations,
|
|
807
811
|
listConversionDestinations,
|
|
808
812
|
listCreatorCampaigns,
|
|
813
|
+
listCrmDeals,
|
|
814
|
+
listCrmOwners,
|
|
809
815
|
listCustomConversionGoals,
|
|
810
816
|
listCustomConversions,
|
|
811
817
|
listCustomFields,
|
|
@@ -1056,6 +1062,7 @@ import {
|
|
|
1056
1062
|
searchAdTargeting,
|
|
1057
1063
|
searchAvailablePhoneNumbers,
|
|
1058
1064
|
searchAvailableWhatsAppNumbers,
|
|
1065
|
+
searchCrmContacts,
|
|
1059
1066
|
searchDiscordGuildMembers,
|
|
1060
1067
|
searchGoogleBusinessLocations,
|
|
1061
1068
|
searchInboxConversations,
|
|
@@ -1211,6 +1218,8 @@ import {
|
|
|
1211
1218
|
updateConversionAction,
|
|
1212
1219
|
updateConversionDestination,
|
|
1213
1220
|
updateCreatorCampaign,
|
|
1221
|
+
updateCrmContact,
|
|
1222
|
+
updateCrmDeal,
|
|
1214
1223
|
updateCustomConversionGoal,
|
|
1215
1224
|
updateCustomField,
|
|
1216
1225
|
updateDiscordScheduledEvent,
|
|
@@ -2016,6 +2025,21 @@ export class Zernio {
|
|
|
2016
2025
|
getInstagramStoryInsights: this._bind(getInstagramStoryInsights),
|
|
2017
2026
|
};
|
|
2018
2027
|
|
|
2028
|
+
/**
|
|
2029
|
+
* crm API
|
|
2030
|
+
*/
|
|
2031
|
+
crm = {
|
|
2032
|
+
searchCrmContacts: this._bind(searchCrmContacts),
|
|
2033
|
+
createCrmContact: this._bind(createCrmContact),
|
|
2034
|
+
getCrmContact: this._bind(getCrmContact),
|
|
2035
|
+
updateCrmContact: this._bind(updateCrmContact),
|
|
2036
|
+
createCrmActivity: this._bind(createCrmActivity),
|
|
2037
|
+
listCrmDeals: this._bind(listCrmDeals),
|
|
2038
|
+
getCrmDeal: this._bind(getCrmDeal),
|
|
2039
|
+
updateCrmDeal: this._bind(updateCrmDeal),
|
|
2040
|
+
listCrmOwners: this._bind(listCrmOwners),
|
|
2041
|
+
};
|
|
2042
|
+
|
|
2019
2043
|
/**
|
|
2020
2044
|
* discord API
|
|
2021
2045
|
*/
|