@getlatedev/node 0.2.1364 → 0.2.1366
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 +7 -0
- package/dist/index.d.mts +409 -130
- package/dist/index.d.ts +409 -130
- package/dist/index.js +50 -1
- package/dist/index.mjs +50 -1
- package/package.json +1 -1
- package/src/client.ts +14 -0
- package/src/generated/sdk.gen.ts +81 -1
- package/src/generated/types.gen.ts +431 -130
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.1366",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
|
@@ -1242,6 +1242,42 @@ var updateConnectWelcomeScreen = (options) => {
|
|
|
1242
1242
|
url: "/v1/connect/welcome-screen"
|
|
1243
1243
|
});
|
|
1244
1244
|
};
|
|
1245
|
+
var listOAuthApps = (options) => {
|
|
1246
|
+
return (options?.client ?? client).get({
|
|
1247
|
+
...options,
|
|
1248
|
+
url: "/v1/connect/oauth-apps"
|
|
1249
|
+
});
|
|
1250
|
+
};
|
|
1251
|
+
var createOAuthApp = (options) => {
|
|
1252
|
+
return (options?.client ?? client).post({
|
|
1253
|
+
...options,
|
|
1254
|
+
url: "/v1/connect/oauth-apps"
|
|
1255
|
+
});
|
|
1256
|
+
};
|
|
1257
|
+
var getOAuthApp = (options) => {
|
|
1258
|
+
return (options?.client ?? client).get({
|
|
1259
|
+
...options,
|
|
1260
|
+
url: "/v1/connect/oauth-apps/{appId}"
|
|
1261
|
+
});
|
|
1262
|
+
};
|
|
1263
|
+
var updateOAuthApp = (options) => {
|
|
1264
|
+
return (options?.client ?? client).patch({
|
|
1265
|
+
...options,
|
|
1266
|
+
url: "/v1/connect/oauth-apps/{appId}"
|
|
1267
|
+
});
|
|
1268
|
+
};
|
|
1269
|
+
var deleteOAuthApp = (options) => {
|
|
1270
|
+
return (options?.client ?? client).delete({
|
|
1271
|
+
...options,
|
|
1272
|
+
url: "/v1/connect/oauth-apps/{appId}"
|
|
1273
|
+
});
|
|
1274
|
+
};
|
|
1275
|
+
var testOAuthApp = (options) => {
|
|
1276
|
+
return (options?.client ?? client).post({
|
|
1277
|
+
...options,
|
|
1278
|
+
url: "/v1/connect/oauth-apps/{appId}/test"
|
|
1279
|
+
});
|
|
1280
|
+
};
|
|
1245
1281
|
var getPendingOAuthData = (options) => {
|
|
1246
1282
|
return (options?.client ?? client).get({
|
|
1247
1283
|
...options,
|
|
@@ -4308,6 +4344,12 @@ var createAdRule = (options) => {
|
|
|
4308
4344
|
url: "/v1/ads/rules"
|
|
4309
4345
|
});
|
|
4310
4346
|
};
|
|
4347
|
+
var listAdRuleActivity = (options) => {
|
|
4348
|
+
return (options?.client ?? client).get({
|
|
4349
|
+
...options,
|
|
4350
|
+
url: "/v1/ads/rules/activity"
|
|
4351
|
+
});
|
|
4352
|
+
};
|
|
4311
4353
|
var getAdRule = (options) => {
|
|
4312
4354
|
return (options?.client ?? client).get({
|
|
4313
4355
|
...options,
|
|
@@ -7141,6 +7183,12 @@ var Zernio = class _Zernio {
|
|
|
7141
7183
|
getConnectHandoff: this._bind(getConnectHandoff),
|
|
7142
7184
|
getConnectWelcomeScreen: this._bind(getConnectWelcomeScreen),
|
|
7143
7185
|
updateConnectWelcomeScreen: this._bind(updateConnectWelcomeScreen),
|
|
7186
|
+
listOAuthApps: this._bind(listOAuthApps),
|
|
7187
|
+
createOAuthApp: this._bind(createOAuthApp),
|
|
7188
|
+
getOAuthApp: this._bind(getOAuthApp),
|
|
7189
|
+
updateOAuthApp: this._bind(updateOAuthApp),
|
|
7190
|
+
deleteOAuthApp: this._bind(deleteOAuthApp),
|
|
7191
|
+
testOAuthApp: this._bind(testOAuthApp),
|
|
7144
7192
|
getPendingOAuthData: this._bind(getPendingOAuthData),
|
|
7145
7193
|
connectOpenAIAdsCredentials: this._bind(connectOpenAiAdsCredentials),
|
|
7146
7194
|
connectWhopAdsCredentials: this._bind(connectWhopAdsCredentials),
|
|
@@ -7909,6 +7957,7 @@ var Zernio = class _Zernio {
|
|
|
7909
7957
|
this.adrules = {
|
|
7910
7958
|
listAdRules: this._bind(listAdRules),
|
|
7911
7959
|
createAdRule: this._bind(createAdRule),
|
|
7960
|
+
listAdRuleActivity: this._bind(listAdRuleActivity),
|
|
7912
7961
|
getAdRule: this._bind(getAdRule),
|
|
7913
7962
|
updateAdRule: this._bind(updateAdRule),
|
|
7914
7963
|
deleteAdRule: this._bind(deleteAdRule),
|
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.1366",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -1211,6 +1211,42 @@ var updateConnectWelcomeScreen = (options) => {
|
|
|
1211
1211
|
url: "/v1/connect/welcome-screen"
|
|
1212
1212
|
});
|
|
1213
1213
|
};
|
|
1214
|
+
var listOAuthApps = (options) => {
|
|
1215
|
+
return (options?.client ?? client).get({
|
|
1216
|
+
...options,
|
|
1217
|
+
url: "/v1/connect/oauth-apps"
|
|
1218
|
+
});
|
|
1219
|
+
};
|
|
1220
|
+
var createOAuthApp = (options) => {
|
|
1221
|
+
return (options?.client ?? client).post({
|
|
1222
|
+
...options,
|
|
1223
|
+
url: "/v1/connect/oauth-apps"
|
|
1224
|
+
});
|
|
1225
|
+
};
|
|
1226
|
+
var getOAuthApp = (options) => {
|
|
1227
|
+
return (options?.client ?? client).get({
|
|
1228
|
+
...options,
|
|
1229
|
+
url: "/v1/connect/oauth-apps/{appId}"
|
|
1230
|
+
});
|
|
1231
|
+
};
|
|
1232
|
+
var updateOAuthApp = (options) => {
|
|
1233
|
+
return (options?.client ?? client).patch({
|
|
1234
|
+
...options,
|
|
1235
|
+
url: "/v1/connect/oauth-apps/{appId}"
|
|
1236
|
+
});
|
|
1237
|
+
};
|
|
1238
|
+
var deleteOAuthApp = (options) => {
|
|
1239
|
+
return (options?.client ?? client).delete({
|
|
1240
|
+
...options,
|
|
1241
|
+
url: "/v1/connect/oauth-apps/{appId}"
|
|
1242
|
+
});
|
|
1243
|
+
};
|
|
1244
|
+
var testOAuthApp = (options) => {
|
|
1245
|
+
return (options?.client ?? client).post({
|
|
1246
|
+
...options,
|
|
1247
|
+
url: "/v1/connect/oauth-apps/{appId}/test"
|
|
1248
|
+
});
|
|
1249
|
+
};
|
|
1214
1250
|
var getPendingOAuthData = (options) => {
|
|
1215
1251
|
return (options?.client ?? client).get({
|
|
1216
1252
|
...options,
|
|
@@ -4277,6 +4313,12 @@ var createAdRule = (options) => {
|
|
|
4277
4313
|
url: "/v1/ads/rules"
|
|
4278
4314
|
});
|
|
4279
4315
|
};
|
|
4316
|
+
var listAdRuleActivity = (options) => {
|
|
4317
|
+
return (options?.client ?? client).get({
|
|
4318
|
+
...options,
|
|
4319
|
+
url: "/v1/ads/rules/activity"
|
|
4320
|
+
});
|
|
4321
|
+
};
|
|
4280
4322
|
var getAdRule = (options) => {
|
|
4281
4323
|
return (options?.client ?? client).get({
|
|
4282
4324
|
...options,
|
|
@@ -7110,6 +7152,12 @@ var Zernio = class _Zernio {
|
|
|
7110
7152
|
getConnectHandoff: this._bind(getConnectHandoff),
|
|
7111
7153
|
getConnectWelcomeScreen: this._bind(getConnectWelcomeScreen),
|
|
7112
7154
|
updateConnectWelcomeScreen: this._bind(updateConnectWelcomeScreen),
|
|
7155
|
+
listOAuthApps: this._bind(listOAuthApps),
|
|
7156
|
+
createOAuthApp: this._bind(createOAuthApp),
|
|
7157
|
+
getOAuthApp: this._bind(getOAuthApp),
|
|
7158
|
+
updateOAuthApp: this._bind(updateOAuthApp),
|
|
7159
|
+
deleteOAuthApp: this._bind(deleteOAuthApp),
|
|
7160
|
+
testOAuthApp: this._bind(testOAuthApp),
|
|
7113
7161
|
getPendingOAuthData: this._bind(getPendingOAuthData),
|
|
7114
7162
|
connectOpenAIAdsCredentials: this._bind(connectOpenAiAdsCredentials),
|
|
7115
7163
|
connectWhopAdsCredentials: this._bind(connectWhopAdsCredentials),
|
|
@@ -7878,6 +7926,7 @@ var Zernio = class _Zernio {
|
|
|
7878
7926
|
this.adrules = {
|
|
7879
7927
|
listAdRules: this._bind(listAdRules),
|
|
7880
7928
|
createAdRule: this._bind(createAdRule),
|
|
7929
|
+
listAdRuleActivity: this._bind(listAdRuleActivity),
|
|
7881
7930
|
getAdRule: this._bind(getAdRule),
|
|
7882
7931
|
updateAdRule: this._bind(updateAdRule),
|
|
7883
7932
|
deleteAdRule: this._bind(deleteAdRule),
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -147,6 +147,7 @@ import {
|
|
|
147
147
|
createInviteToken,
|
|
148
148
|
createLeadForm,
|
|
149
149
|
createMessagingAd,
|
|
150
|
+
createOAuthApp,
|
|
150
151
|
createPhoneNumberKycLink,
|
|
151
152
|
createPhoneNumberPortIn,
|
|
152
153
|
createPhoneNumberStockWatch,
|
|
@@ -243,6 +244,7 @@ import {
|
|
|
243
244
|
deleteMessengerGreeting,
|
|
244
245
|
deleteMessengerIceBreakers,
|
|
245
246
|
deleteMessengerMenu,
|
|
247
|
+
deleteOAuthApp,
|
|
246
248
|
deletePhoneNumberStockWatch,
|
|
247
249
|
deletePost,
|
|
248
250
|
deleteProfile,
|
|
@@ -456,6 +458,7 @@ import {
|
|
|
456
458
|
getMessengerIceBreakers,
|
|
457
459
|
getMessengerMenu,
|
|
458
460
|
getNextQueueSlot,
|
|
461
|
+
getOAuthApp,
|
|
459
462
|
getPageWebhookSubscription,
|
|
460
463
|
getPendingOAuthData,
|
|
461
464
|
getPhoneNumber,
|
|
@@ -586,6 +589,7 @@ import {
|
|
|
586
589
|
listAdKeywords,
|
|
587
590
|
listAdLabels,
|
|
588
591
|
listAdNegativeKeywordLists,
|
|
592
|
+
listAdRuleActivity,
|
|
589
593
|
listAdRuleRuns,
|
|
590
594
|
listAdRules,
|
|
591
595
|
listAdSets,
|
|
@@ -698,6 +702,7 @@ import {
|
|
|
698
702
|
listLogs,
|
|
699
703
|
listMetaBusinessUsers,
|
|
700
704
|
listMetaBusinesses,
|
|
705
|
+
listOAuthApps,
|
|
701
706
|
listPageUsers,
|
|
702
707
|
listPartnershipAdContent,
|
|
703
708
|
listPartnershipAdPermissions,
|
|
@@ -915,6 +920,7 @@ import {
|
|
|
915
920
|
submitPhoneNumberKyc,
|
|
916
921
|
submitWhatsAppNumberKyc,
|
|
917
922
|
syncExternalPosts,
|
|
923
|
+
testOAuthApp,
|
|
918
924
|
testWebhook,
|
|
919
925
|
transferVoiceCall,
|
|
920
926
|
trashEmailMessage,
|
|
@@ -1010,6 +1016,7 @@ import {
|
|
|
1010
1016
|
updateInboxConversation,
|
|
1011
1017
|
updateLead,
|
|
1012
1018
|
updateLinkedInOrganization,
|
|
1019
|
+
updateOAuthApp,
|
|
1013
1020
|
updatePinterestBoards,
|
|
1014
1021
|
updatePost,
|
|
1015
1022
|
updatePostMetadata,
|
|
@@ -1489,6 +1496,12 @@ export class Zernio {
|
|
|
1489
1496
|
getConnectHandoff: this._bind(getConnectHandoff),
|
|
1490
1497
|
getConnectWelcomeScreen: this._bind(getConnectWelcomeScreen),
|
|
1491
1498
|
updateConnectWelcomeScreen: this._bind(updateConnectWelcomeScreen),
|
|
1499
|
+
listOAuthApps: this._bind(listOAuthApps),
|
|
1500
|
+
createOAuthApp: this._bind(createOAuthApp),
|
|
1501
|
+
getOAuthApp: this._bind(getOAuthApp),
|
|
1502
|
+
updateOAuthApp: this._bind(updateOAuthApp),
|
|
1503
|
+
deleteOAuthApp: this._bind(deleteOAuthApp),
|
|
1504
|
+
testOAuthApp: this._bind(testOAuthApp),
|
|
1492
1505
|
getPendingOAuthData: this._bind(getPendingOAuthData),
|
|
1493
1506
|
connectOpenAIAdsCredentials: this._bind(connectOpenAiAdsCredentials),
|
|
1494
1507
|
connectWhopAdsCredentials: this._bind(connectWhopAdsCredentials),
|
|
@@ -2301,6 +2314,7 @@ export class Zernio {
|
|
|
2301
2314
|
adrules = {
|
|
2302
2315
|
listAdRules: this._bind(listAdRules),
|
|
2303
2316
|
createAdRule: this._bind(createAdRule),
|
|
2317
|
+
listAdRuleActivity: this._bind(listAdRuleActivity),
|
|
2304
2318
|
getAdRule: this._bind(getAdRule),
|
|
2305
2319
|
updateAdRule: this._bind(updateAdRule),
|
|
2306
2320
|
deleteAdRule: this._bind(deleteAdRule),
|