@getlatedev/node 0.2.1367 → 0.2.1369
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.d.mts +30 -6
- package/dist/index.d.ts +30 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +1 -1
- package/src/generated/types.gen.ts +30 -5
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.1369",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
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.1369",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -3858,7 +3858,7 @@ export const getHubSpotSettings = <ThrowOnError extends boolean = false>(options
|
|
|
3858
3858
|
|
|
3859
3859
|
/**
|
|
3860
3860
|
* Update HubSpot account settings
|
|
3861
|
-
* Turn contact sync
|
|
3861
|
+
* Turn contact sync, message logging or deal reporting on or off for a connected HubSpot portal. Send at least one field; omitted fields keep their value. Settings survive reconnecting the same portal.
|
|
3862
3862
|
*/
|
|
3863
3863
|
export const updateHubSpotSettings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateHubSpotSettingsData, ThrowOnError>) => {
|
|
3864
3864
|
return (options?.client ?? client).patch<UpdateHubSpotSettingsResponse, UpdateHubSpotSettingsError, ThrowOnError>({
|
|
@@ -8871,6 +8871,10 @@ export type HubSpotSettings = {
|
|
|
8871
8871
|
* Whether Zernio logs inbox messages on HubSpot contact timelines.
|
|
8872
8872
|
*/
|
|
8873
8873
|
logMessages: boolean;
|
|
8874
|
+
/**
|
|
8875
|
+
* Whether Zernio sends closed-won deals as Purchase events to the profile's event destinations.
|
|
8876
|
+
*/
|
|
8877
|
+
reportDeals: boolean;
|
|
8874
8878
|
};
|
|
8875
8879
|
|
|
8876
8880
|
export type platform7 = 'hubspot';
|
|
@@ -11164,7 +11168,7 @@ export type OAuthApp = {
|
|
|
11164
11168
|
/**
|
|
11165
11169
|
* The permission areas every connect through this app requests. Pick only what your app is approved for on the platform.
|
|
11166
11170
|
*/
|
|
11167
|
-
scopeAreas: Array<('posting' | 'analytics' | 'comments' | 'messaging'
|
|
11171
|
+
scopeAreas: Array<('posting' | 'analytics' | 'comments' | 'messaging')>;
|
|
11168
11172
|
/**
|
|
11169
11173
|
* `ok`: the platform accepted the keys at the last check. `unchecked`: the check could not reach a verdict (see lastError). `invalid`: the platform rejected the keys; connects and token refreshes through this app will fail until the secret is rotated.
|
|
11170
11174
|
*/
|
|
@@ -11179,6 +11183,18 @@ export type OAuthApp = {
|
|
|
11179
11183
|
* The OAuth redirect URI to allow in your app's settings on the platform.
|
|
11180
11184
|
*/
|
|
11181
11185
|
redirectUri: string;
|
|
11186
|
+
/**
|
|
11187
|
+
* Facebook and Instagram only: Meta delivers comments and messages to your app's own webhook, so set it to this callback URL and verify token on the app's webhook product (Page for Facebook, Instagram for Instagram) and subscribe the listed fields. Zernio checks each delivery against your app secret. Null on platforms with nothing to set up.
|
|
11188
|
+
*/
|
|
11189
|
+
webhook?: {
|
|
11190
|
+
callbackUrl: string;
|
|
11191
|
+
verifyToken: string;
|
|
11192
|
+
object: OAuthAppWebhookObject;
|
|
11193
|
+
/**
|
|
11194
|
+
* Subscribe the app to these fields.
|
|
11195
|
+
*/
|
|
11196
|
+
fields: Array<(string)>;
|
|
11197
|
+
} | null;
|
|
11182
11198
|
createdAt: string;
|
|
11183
11199
|
};
|
|
11184
11200
|
|
|
@@ -11201,11 +11217,16 @@ export type OAuthAppSetup = {
|
|
|
11201
11217
|
* The areas an app on this platform can enable, each with the scopes it requests.
|
|
11202
11218
|
*/
|
|
11203
11219
|
scopeAreas: Array<{
|
|
11204
|
-
area: 'posting' | 'analytics' | 'comments' | 'messaging'
|
|
11220
|
+
area: 'posting' | 'analytics' | 'comments' | 'messaging';
|
|
11205
11221
|
scopes: Array<(string)>;
|
|
11206
11222
|
}>;
|
|
11207
11223
|
};
|
|
11208
11224
|
|
|
11225
|
+
/**
|
|
11226
|
+
* The webhook object to configure.
|
|
11227
|
+
*/
|
|
11228
|
+
export type OAuthAppWebhookObject = 'page' | 'instagram';
|
|
11229
|
+
|
|
11209
11230
|
export type OpenHours = Array<{
|
|
11210
11231
|
/**
|
|
11211
11232
|
* 0 = Sunday.
|
|
@@ -15251,7 +15272,7 @@ export type WebhookPayloadAccountPermissionsChanged = {
|
|
|
15251
15272
|
/**
|
|
15252
15273
|
* Every area now missing. Enable the permission on your app (or have the user grant it), then reconnect the account.
|
|
15253
15274
|
*/
|
|
15254
|
-
missingScopeAreas: Array<('posting' | 'analytics' | 'comments' | 'messaging'
|
|
15275
|
+
missingScopeAreas: Array<('posting' | 'analytics' | 'comments' | 'messaging')>;
|
|
15255
15276
|
/**
|
|
15256
15277
|
* The platform error that revealed it.
|
|
15257
15278
|
*/
|
|
@@ -27413,7 +27434,7 @@ export type CreateOAuthAppData = {
|
|
|
27413
27434
|
/**
|
|
27414
27435
|
* Areas this app requests. Defaults to every area the platform supports; an area the platform cannot request separately is a 400.
|
|
27415
27436
|
*/
|
|
27416
|
-
scopeAreas?: Array<('posting' | 'analytics' | 'comments' | 'messaging'
|
|
27437
|
+
scopeAreas?: Array<('posting' | 'analytics' | 'comments' | 'messaging')>;
|
|
27417
27438
|
};
|
|
27418
27439
|
};
|
|
27419
27440
|
|
|
@@ -27444,7 +27465,7 @@ export type UpdateOAuthAppData = {
|
|
|
27444
27465
|
/**
|
|
27445
27466
|
* Replaces the areas new connects request. Accounts already connected keep what they were granted until they reconnect.
|
|
27446
27467
|
*/
|
|
27447
|
-
scopeAreas?: Array<('posting' | 'analytics' | 'comments' | 'messaging'
|
|
27468
|
+
scopeAreas?: Array<('posting' | 'analytics' | 'comments' | 'messaging')>;
|
|
27448
27469
|
};
|
|
27449
27470
|
path: {
|
|
27450
27471
|
appId: string;
|
|
@@ -30232,6 +30253,10 @@ export type UpdateHubSpotSettingsData = {
|
|
|
30232
30253
|
* Log inbound and outbound inbox messages on the contact's HubSpot timeline.
|
|
30233
30254
|
*/
|
|
30234
30255
|
logMessages?: boolean;
|
|
30256
|
+
/**
|
|
30257
|
+
* Send each deal that becomes closed won as a Purchase to the profile's event destinations, about once an hour. Requires the portal to have granted `crm.objects.deals.read`; otherwise 400. Deals closed before it was turned on are not sent.
|
|
30258
|
+
*/
|
|
30259
|
+
reportDeals?: boolean;
|
|
30235
30260
|
};
|
|
30236
30261
|
path: {
|
|
30237
30262
|
accountId: string;
|