@getlatedev/node 0.2.1320 → 0.2.1322
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 +3 -0
- package/dist/index.d.mts +145 -6
- package/dist/index.d.ts +145 -6
- package/dist/index.js +22 -1
- package/dist/index.mjs +22 -1
- package/package.json +1 -1
- package/src/client.ts +6 -0
- package/src/generated/sdk.gen.ts +49 -11
- package/src/generated/types.gen.ts +150 -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.1322",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
|
@@ -1974,6 +1974,24 @@ var deleteInboxLabel = (options) => {
|
|
|
1974
1974
|
url: "/v1/inbox/labels/{labelId}"
|
|
1975
1975
|
});
|
|
1976
1976
|
};
|
|
1977
|
+
var listConversationLabels = (options) => {
|
|
1978
|
+
return (options?.client ?? client).get({
|
|
1979
|
+
...options,
|
|
1980
|
+
url: "/v1/inbox/conversations/{conversationId}/labels"
|
|
1981
|
+
});
|
|
1982
|
+
};
|
|
1983
|
+
var addConversationLabel = (options) => {
|
|
1984
|
+
return (options?.client ?? client).post({
|
|
1985
|
+
...options,
|
|
1986
|
+
url: "/v1/inbox/conversations/{conversationId}/labels"
|
|
1987
|
+
});
|
|
1988
|
+
};
|
|
1989
|
+
var removeConversationLabel = (options) => {
|
|
1990
|
+
return (options?.client ?? client).delete({
|
|
1991
|
+
...options,
|
|
1992
|
+
url: "/v1/inbox/conversations/{conversationId}/labels/{labelId}"
|
|
1993
|
+
});
|
|
1994
|
+
};
|
|
1977
1995
|
var markConversationRead = (options) => {
|
|
1978
1996
|
return (options?.client ?? client).post({
|
|
1979
1997
|
...options,
|
|
@@ -7041,6 +7059,9 @@ var Zernio = class _Zernio {
|
|
|
7041
7059
|
listInboxLabels: this._bind(listInboxLabels),
|
|
7042
7060
|
createInboxLabel: this._bind(createInboxLabel),
|
|
7043
7061
|
deleteInboxLabel: this._bind(deleteInboxLabel),
|
|
7062
|
+
listConversationLabels: this._bind(listConversationLabels),
|
|
7063
|
+
addConversationLabel: this._bind(addConversationLabel),
|
|
7064
|
+
removeConversationLabel: this._bind(removeConversationLabel),
|
|
7044
7065
|
markConversationRead: this._bind(markConversationRead),
|
|
7045
7066
|
addMessageReaction: this._bind(addMessageReaction),
|
|
7046
7067
|
removeMessageReaction: this._bind(removeMessageReaction),
|
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.1322",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -1943,6 +1943,24 @@ var deleteInboxLabel = (options) => {
|
|
|
1943
1943
|
url: "/v1/inbox/labels/{labelId}"
|
|
1944
1944
|
});
|
|
1945
1945
|
};
|
|
1946
|
+
var listConversationLabels = (options) => {
|
|
1947
|
+
return (options?.client ?? client).get({
|
|
1948
|
+
...options,
|
|
1949
|
+
url: "/v1/inbox/conversations/{conversationId}/labels"
|
|
1950
|
+
});
|
|
1951
|
+
};
|
|
1952
|
+
var addConversationLabel = (options) => {
|
|
1953
|
+
return (options?.client ?? client).post({
|
|
1954
|
+
...options,
|
|
1955
|
+
url: "/v1/inbox/conversations/{conversationId}/labels"
|
|
1956
|
+
});
|
|
1957
|
+
};
|
|
1958
|
+
var removeConversationLabel = (options) => {
|
|
1959
|
+
return (options?.client ?? client).delete({
|
|
1960
|
+
...options,
|
|
1961
|
+
url: "/v1/inbox/conversations/{conversationId}/labels/{labelId}"
|
|
1962
|
+
});
|
|
1963
|
+
};
|
|
1946
1964
|
var markConversationRead = (options) => {
|
|
1947
1965
|
return (options?.client ?? client).post({
|
|
1948
1966
|
...options,
|
|
@@ -7010,6 +7028,9 @@ var Zernio = class _Zernio {
|
|
|
7010
7028
|
listInboxLabels: this._bind(listInboxLabels),
|
|
7011
7029
|
createInboxLabel: this._bind(createInboxLabel),
|
|
7012
7030
|
deleteInboxLabel: this._bind(deleteInboxLabel),
|
|
7031
|
+
listConversationLabels: this._bind(listConversationLabels),
|
|
7032
|
+
addConversationLabel: this._bind(addConversationLabel),
|
|
7033
|
+
removeConversationLabel: this._bind(removeConversationLabel),
|
|
7013
7034
|
markConversationRead: this._bind(markConversationRead),
|
|
7014
7035
|
addMessageReaction: this._bind(addMessageReaction),
|
|
7015
7036
|
removeMessageReaction: this._bind(removeMessageReaction),
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
addCommerceDiscountCodes,
|
|
15
15
|
addCommerceMarketingEngagement,
|
|
16
16
|
addCommerceProductImages,
|
|
17
|
+
addConversationLabel,
|
|
17
18
|
addConversionAssociations,
|
|
18
19
|
addDiscordMemberRole,
|
|
19
20
|
addImessageGroupParticipant,
|
|
@@ -616,6 +617,7 @@ import {
|
|
|
616
617
|
listCommerceRedirects,
|
|
617
618
|
listConnectedApps,
|
|
618
619
|
listContacts,
|
|
620
|
+
listConversationLabels,
|
|
619
621
|
listConversionActions,
|
|
620
622
|
listConversionAssociations,
|
|
621
623
|
listConversionDestinations,
|
|
@@ -753,6 +755,7 @@ import {
|
|
|
753
755
|
removeBusinessAgentAllowlistEntry,
|
|
754
756
|
removeCampaignAssets,
|
|
755
757
|
removeCommerceProductImages,
|
|
758
|
+
removeConversationLabel,
|
|
756
759
|
removeConversionAssociations,
|
|
757
760
|
removeCustomConversionGoal,
|
|
758
761
|
removeDiscordMemberRole,
|
|
@@ -1684,6 +1687,9 @@ export class Zernio {
|
|
|
1684
1687
|
listInboxLabels: this._bind(listInboxLabels),
|
|
1685
1688
|
createInboxLabel: this._bind(createInboxLabel),
|
|
1686
1689
|
deleteInboxLabel: this._bind(deleteInboxLabel),
|
|
1690
|
+
listConversationLabels: this._bind(listConversationLabels),
|
|
1691
|
+
addConversationLabel: this._bind(addConversationLabel),
|
|
1692
|
+
removeConversationLabel: this._bind(removeConversationLabel),
|
|
1687
1693
|
markConversationRead: this._bind(markConversationRead),
|
|
1688
1694
|
addMessageReaction: this._bind(addMessageReaction),
|
|
1689
1695
|
removeMessageReaction: this._bind(removeMessageReaction),
|