@zernio/node 0.2.199 → 0.2.201
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 +491 -9
- package/dist/index.d.ts +491 -9
- package/dist/index.js +93 -2
- package/dist/index.mjs +93 -2
- package/package.json +1 -1
- package/src/client.ts +26 -0
- package/src/generated/sdk.gen.ts +254 -7
- package/src/generated/types.gen.ts +520 -8
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: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.201",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
|
@@ -1121,6 +1121,84 @@ var getDiscordChannels = (options) => {
|
|
|
1121
1121
|
url: "/v1/accounts/{accountId}/discord-channels"
|
|
1122
1122
|
});
|
|
1123
1123
|
};
|
|
1124
|
+
var sendDiscordDirectMessage = (options) => {
|
|
1125
|
+
return (options?.client ?? client).post({
|
|
1126
|
+
...options,
|
|
1127
|
+
url: "/v1/discord/dms"
|
|
1128
|
+
});
|
|
1129
|
+
};
|
|
1130
|
+
var listDiscordGuildRoles = (options) => {
|
|
1131
|
+
return (options?.client ?? client).get({
|
|
1132
|
+
...options,
|
|
1133
|
+
url: "/v1/discord/guilds/{guildId}/roles"
|
|
1134
|
+
});
|
|
1135
|
+
};
|
|
1136
|
+
var listDiscordGuildMembers = (options) => {
|
|
1137
|
+
return (options?.client ?? client).get({
|
|
1138
|
+
...options,
|
|
1139
|
+
url: "/v1/discord/guilds/{guildId}/members"
|
|
1140
|
+
});
|
|
1141
|
+
};
|
|
1142
|
+
var addDiscordMemberRole = (options) => {
|
|
1143
|
+
return (options?.client ?? client).put({
|
|
1144
|
+
...options,
|
|
1145
|
+
url: "/v1/discord/guilds/{guildId}/members/{userId}/roles/{roleId}"
|
|
1146
|
+
});
|
|
1147
|
+
};
|
|
1148
|
+
var removeDiscordMemberRole = (options) => {
|
|
1149
|
+
return (options?.client ?? client).delete({
|
|
1150
|
+
...options,
|
|
1151
|
+
url: "/v1/discord/guilds/{guildId}/members/{userId}/roles/{roleId}"
|
|
1152
|
+
});
|
|
1153
|
+
};
|
|
1154
|
+
var listDiscordPinnedMessages = (options) => {
|
|
1155
|
+
return (options?.client ?? client).get({
|
|
1156
|
+
...options,
|
|
1157
|
+
url: "/v1/discord/channels/{channelId}/pins"
|
|
1158
|
+
});
|
|
1159
|
+
};
|
|
1160
|
+
var pinDiscordMessage = (options) => {
|
|
1161
|
+
return (options?.client ?? client).put({
|
|
1162
|
+
...options,
|
|
1163
|
+
url: "/v1/discord/channels/{channelId}/pins/{messageId}"
|
|
1164
|
+
});
|
|
1165
|
+
};
|
|
1166
|
+
var unpinDiscordMessage = (options) => {
|
|
1167
|
+
return (options?.client ?? client).delete({
|
|
1168
|
+
...options,
|
|
1169
|
+
url: "/v1/discord/channels/{channelId}/pins/{messageId}"
|
|
1170
|
+
});
|
|
1171
|
+
};
|
|
1172
|
+
var listDiscordScheduledEvents = (options) => {
|
|
1173
|
+
return (options?.client ?? client).get({
|
|
1174
|
+
...options,
|
|
1175
|
+
url: "/v1/discord/guilds/{guildId}/events"
|
|
1176
|
+
});
|
|
1177
|
+
};
|
|
1178
|
+
var createDiscordScheduledEvent = (options) => {
|
|
1179
|
+
return (options?.client ?? client).post({
|
|
1180
|
+
...options,
|
|
1181
|
+
url: "/v1/discord/guilds/{guildId}/events"
|
|
1182
|
+
});
|
|
1183
|
+
};
|
|
1184
|
+
var getDiscordScheduledEvent = (options) => {
|
|
1185
|
+
return (options?.client ?? client).get({
|
|
1186
|
+
...options,
|
|
1187
|
+
url: "/v1/discord/guilds/{guildId}/events/{eventId}"
|
|
1188
|
+
});
|
|
1189
|
+
};
|
|
1190
|
+
var updateDiscordScheduledEvent = (options) => {
|
|
1191
|
+
return (options?.client ?? client).patch({
|
|
1192
|
+
...options,
|
|
1193
|
+
url: "/v1/discord/guilds/{guildId}/events/{eventId}"
|
|
1194
|
+
});
|
|
1195
|
+
};
|
|
1196
|
+
var deleteDiscordScheduledEvent = (options) => {
|
|
1197
|
+
return (options?.client ?? client).delete({
|
|
1198
|
+
...options,
|
|
1199
|
+
url: "/v1/discord/guilds/{guildId}/events/{eventId}"
|
|
1200
|
+
});
|
|
1201
|
+
};
|
|
1124
1202
|
var listQueueSlots = (options) => {
|
|
1125
1203
|
return (options?.client ?? client).get({
|
|
1126
1204
|
...options,
|
|
@@ -2796,7 +2874,20 @@ var Zernio = class {
|
|
|
2796
2874
|
this.discord = {
|
|
2797
2875
|
getDiscordSettings,
|
|
2798
2876
|
updateDiscordSettings,
|
|
2799
|
-
getDiscordChannels
|
|
2877
|
+
getDiscordChannels,
|
|
2878
|
+
sendDiscordDirectMessage,
|
|
2879
|
+
listDiscordGuildRoles,
|
|
2880
|
+
listDiscordGuildMembers,
|
|
2881
|
+
addDiscordMemberRole,
|
|
2882
|
+
removeDiscordMemberRole,
|
|
2883
|
+
listDiscordPinnedMessages,
|
|
2884
|
+
pinDiscordMessage,
|
|
2885
|
+
unpinDiscordMessage,
|
|
2886
|
+
listDiscordScheduledEvents,
|
|
2887
|
+
createDiscordScheduledEvent,
|
|
2888
|
+
getDiscordScheduledEvent,
|
|
2889
|
+
updateDiscordScheduledEvent,
|
|
2890
|
+
deleteDiscordScheduledEvent
|
|
2800
2891
|
};
|
|
2801
2892
|
/**
|
|
2802
2893
|
* Queue API - Manage posting queue
|
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: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.201",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -1090,6 +1090,84 @@ var getDiscordChannels = (options) => {
|
|
|
1090
1090
|
url: "/v1/accounts/{accountId}/discord-channels"
|
|
1091
1091
|
});
|
|
1092
1092
|
};
|
|
1093
|
+
var sendDiscordDirectMessage = (options) => {
|
|
1094
|
+
return (options?.client ?? client).post({
|
|
1095
|
+
...options,
|
|
1096
|
+
url: "/v1/discord/dms"
|
|
1097
|
+
});
|
|
1098
|
+
};
|
|
1099
|
+
var listDiscordGuildRoles = (options) => {
|
|
1100
|
+
return (options?.client ?? client).get({
|
|
1101
|
+
...options,
|
|
1102
|
+
url: "/v1/discord/guilds/{guildId}/roles"
|
|
1103
|
+
});
|
|
1104
|
+
};
|
|
1105
|
+
var listDiscordGuildMembers = (options) => {
|
|
1106
|
+
return (options?.client ?? client).get({
|
|
1107
|
+
...options,
|
|
1108
|
+
url: "/v1/discord/guilds/{guildId}/members"
|
|
1109
|
+
});
|
|
1110
|
+
};
|
|
1111
|
+
var addDiscordMemberRole = (options) => {
|
|
1112
|
+
return (options?.client ?? client).put({
|
|
1113
|
+
...options,
|
|
1114
|
+
url: "/v1/discord/guilds/{guildId}/members/{userId}/roles/{roleId}"
|
|
1115
|
+
});
|
|
1116
|
+
};
|
|
1117
|
+
var removeDiscordMemberRole = (options) => {
|
|
1118
|
+
return (options?.client ?? client).delete({
|
|
1119
|
+
...options,
|
|
1120
|
+
url: "/v1/discord/guilds/{guildId}/members/{userId}/roles/{roleId}"
|
|
1121
|
+
});
|
|
1122
|
+
};
|
|
1123
|
+
var listDiscordPinnedMessages = (options) => {
|
|
1124
|
+
return (options?.client ?? client).get({
|
|
1125
|
+
...options,
|
|
1126
|
+
url: "/v1/discord/channels/{channelId}/pins"
|
|
1127
|
+
});
|
|
1128
|
+
};
|
|
1129
|
+
var pinDiscordMessage = (options) => {
|
|
1130
|
+
return (options?.client ?? client).put({
|
|
1131
|
+
...options,
|
|
1132
|
+
url: "/v1/discord/channels/{channelId}/pins/{messageId}"
|
|
1133
|
+
});
|
|
1134
|
+
};
|
|
1135
|
+
var unpinDiscordMessage = (options) => {
|
|
1136
|
+
return (options?.client ?? client).delete({
|
|
1137
|
+
...options,
|
|
1138
|
+
url: "/v1/discord/channels/{channelId}/pins/{messageId}"
|
|
1139
|
+
});
|
|
1140
|
+
};
|
|
1141
|
+
var listDiscordScheduledEvents = (options) => {
|
|
1142
|
+
return (options?.client ?? client).get({
|
|
1143
|
+
...options,
|
|
1144
|
+
url: "/v1/discord/guilds/{guildId}/events"
|
|
1145
|
+
});
|
|
1146
|
+
};
|
|
1147
|
+
var createDiscordScheduledEvent = (options) => {
|
|
1148
|
+
return (options?.client ?? client).post({
|
|
1149
|
+
...options,
|
|
1150
|
+
url: "/v1/discord/guilds/{guildId}/events"
|
|
1151
|
+
});
|
|
1152
|
+
};
|
|
1153
|
+
var getDiscordScheduledEvent = (options) => {
|
|
1154
|
+
return (options?.client ?? client).get({
|
|
1155
|
+
...options,
|
|
1156
|
+
url: "/v1/discord/guilds/{guildId}/events/{eventId}"
|
|
1157
|
+
});
|
|
1158
|
+
};
|
|
1159
|
+
var updateDiscordScheduledEvent = (options) => {
|
|
1160
|
+
return (options?.client ?? client).patch({
|
|
1161
|
+
...options,
|
|
1162
|
+
url: "/v1/discord/guilds/{guildId}/events/{eventId}"
|
|
1163
|
+
});
|
|
1164
|
+
};
|
|
1165
|
+
var deleteDiscordScheduledEvent = (options) => {
|
|
1166
|
+
return (options?.client ?? client).delete({
|
|
1167
|
+
...options,
|
|
1168
|
+
url: "/v1/discord/guilds/{guildId}/events/{eventId}"
|
|
1169
|
+
});
|
|
1170
|
+
};
|
|
1093
1171
|
var listQueueSlots = (options) => {
|
|
1094
1172
|
return (options?.client ?? client).get({
|
|
1095
1173
|
...options,
|
|
@@ -2765,7 +2843,20 @@ var Zernio = class {
|
|
|
2765
2843
|
this.discord = {
|
|
2766
2844
|
getDiscordSettings,
|
|
2767
2845
|
updateDiscordSettings,
|
|
2768
|
-
getDiscordChannels
|
|
2846
|
+
getDiscordChannels,
|
|
2847
|
+
sendDiscordDirectMessage,
|
|
2848
|
+
listDiscordGuildRoles,
|
|
2849
|
+
listDiscordGuildMembers,
|
|
2850
|
+
addDiscordMemberRole,
|
|
2851
|
+
removeDiscordMemberRole,
|
|
2852
|
+
listDiscordPinnedMessages,
|
|
2853
|
+
pinDiscordMessage,
|
|
2854
|
+
unpinDiscordMessage,
|
|
2855
|
+
listDiscordScheduledEvents,
|
|
2856
|
+
createDiscordScheduledEvent,
|
|
2857
|
+
getDiscordScheduledEvent,
|
|
2858
|
+
updateDiscordScheduledEvent,
|
|
2859
|
+
deleteDiscordScheduledEvent
|
|
2769
2860
|
};
|
|
2770
2861
|
/**
|
|
2771
2862
|
* Queue API - Manage posting queue
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
activateWorkflow,
|
|
6
6
|
addBroadcastRecipients,
|
|
7
7
|
addConversionAssociations,
|
|
8
|
+
addDiscordMemberRole,
|
|
8
9
|
addMessageReaction,
|
|
9
10
|
addTrackingTagSharedAccount,
|
|
10
11
|
addUsersToAdAudience,
|
|
@@ -35,6 +36,7 @@ import {
|
|
|
35
36
|
createConversionDestination,
|
|
36
37
|
createCtwaAd,
|
|
37
38
|
createCustomField,
|
|
39
|
+
createDiscordScheduledEvent,
|
|
38
40
|
createGoogleBusinessMedia,
|
|
39
41
|
createGoogleBusinessPlaceAction,
|
|
40
42
|
createInboxConversation,
|
|
@@ -66,6 +68,7 @@ import {
|
|
|
66
68
|
deleteContact,
|
|
67
69
|
deleteConversionDestination,
|
|
68
70
|
deleteCustomField,
|
|
71
|
+
deleteDiscordScheduledEvent,
|
|
69
72
|
deleteGoogleBusinessMedia,
|
|
70
73
|
deleteGoogleBusinessPlaceAction,
|
|
71
74
|
deleteGoogleBusinessReviewReply,
|
|
@@ -116,6 +119,7 @@ import {
|
|
|
116
119
|
getConversionMetrics,
|
|
117
120
|
getDailyMetrics,
|
|
118
121
|
getDiscordChannels,
|
|
122
|
+
getDiscordScheduledEvent,
|
|
119
123
|
getDiscordSettings,
|
|
120
124
|
getFacebookPageInsights,
|
|
121
125
|
getFacebookPages,
|
|
@@ -212,6 +216,10 @@ import {
|
|
|
212
216
|
listConversionAssociations,
|
|
213
217
|
listConversionDestinations,
|
|
214
218
|
listCustomFields,
|
|
219
|
+
listDiscordGuildMembers,
|
|
220
|
+
listDiscordGuildRoles,
|
|
221
|
+
listDiscordPinnedMessages,
|
|
222
|
+
listDiscordScheduledEvents,
|
|
215
223
|
listFacebookPages,
|
|
216
224
|
listFormLeads,
|
|
217
225
|
listGoogleBusinessLocations,
|
|
@@ -253,6 +261,7 @@ import {
|
|
|
253
261
|
moveAccountToProfile,
|
|
254
262
|
pauseSequence,
|
|
255
263
|
pauseWorkflow,
|
|
264
|
+
pinDiscordMessage,
|
|
256
265
|
previewQueue,
|
|
257
266
|
publishWhatsAppFlow,
|
|
258
267
|
purchaseWhatsAppPhoneNumber,
|
|
@@ -260,6 +269,7 @@ import {
|
|
|
260
269
|
releaseWhatsAppPhoneNumber,
|
|
261
270
|
removeBookmark,
|
|
262
271
|
removeConversionAssociations,
|
|
272
|
+
removeDiscordMemberRole,
|
|
263
273
|
removeMessageReaction,
|
|
264
274
|
removeTrackingTagSharedAccount,
|
|
265
275
|
removeWhatsAppGroupParticipants,
|
|
@@ -281,6 +291,7 @@ import {
|
|
|
281
291
|
selectSnapchatProfile,
|
|
282
292
|
sendBroadcast,
|
|
283
293
|
sendConversions,
|
|
294
|
+
sendDiscordDirectMessage,
|
|
284
295
|
sendInboxMessage,
|
|
285
296
|
sendPrivateReplyToComment,
|
|
286
297
|
sendTypingIndicator,
|
|
@@ -299,6 +310,7 @@ import {
|
|
|
299
310
|
unfollowUser,
|
|
300
311
|
unhideInboxComment,
|
|
301
312
|
unlikeInboxComment,
|
|
313
|
+
unpinDiscordMessage,
|
|
302
314
|
unpublishPost,
|
|
303
315
|
updateAccount,
|
|
304
316
|
updateAccountGroup,
|
|
@@ -312,6 +324,7 @@ import {
|
|
|
312
324
|
updateContact,
|
|
313
325
|
updateConversionDestination,
|
|
314
326
|
updateCustomField,
|
|
327
|
+
updateDiscordScheduledEvent,
|
|
315
328
|
updateDiscordSettings,
|
|
316
329
|
updateFacebookPage,
|
|
317
330
|
updateGmbLocation,
|
|
@@ -680,6 +693,19 @@ export class Zernio {
|
|
|
680
693
|
getDiscordSettings: getDiscordSettings,
|
|
681
694
|
updateDiscordSettings: updateDiscordSettings,
|
|
682
695
|
getDiscordChannels: getDiscordChannels,
|
|
696
|
+
sendDiscordDirectMessage: sendDiscordDirectMessage,
|
|
697
|
+
listDiscordGuildRoles: listDiscordGuildRoles,
|
|
698
|
+
listDiscordGuildMembers: listDiscordGuildMembers,
|
|
699
|
+
addDiscordMemberRole: addDiscordMemberRole,
|
|
700
|
+
removeDiscordMemberRole: removeDiscordMemberRole,
|
|
701
|
+
listDiscordPinnedMessages: listDiscordPinnedMessages,
|
|
702
|
+
pinDiscordMessage: pinDiscordMessage,
|
|
703
|
+
unpinDiscordMessage: unpinDiscordMessage,
|
|
704
|
+
listDiscordScheduledEvents: listDiscordScheduledEvents,
|
|
705
|
+
createDiscordScheduledEvent: createDiscordScheduledEvent,
|
|
706
|
+
getDiscordScheduledEvent: getDiscordScheduledEvent,
|
|
707
|
+
updateDiscordScheduledEvent: updateDiscordScheduledEvent,
|
|
708
|
+
deleteDiscordScheduledEvent: deleteDiscordScheduledEvent,
|
|
683
709
|
};
|
|
684
710
|
|
|
685
711
|
/**
|