@getlatedev/node 0.2.1352 → 0.2.1353

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.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.1352",
39
+ version: "0.2.1353",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
@@ -1908,6 +1908,186 @@ var listLogs = (options) => {
1908
1908
  url: "/v1/logs"
1909
1909
  });
1910
1910
  };
1911
+ var listEmailThreads = (options) => {
1912
+ return (options?.client ?? client).get({
1913
+ ...options,
1914
+ url: "/v1/email/threads"
1915
+ });
1916
+ };
1917
+ var getEmailThread = (options) => {
1918
+ return (options?.client ?? client).get({
1919
+ ...options,
1920
+ url: "/v1/email/threads/{threadId}"
1921
+ });
1922
+ };
1923
+ var updateEmailThread = (options) => {
1924
+ return (options?.client ?? client).patch({
1925
+ ...options,
1926
+ url: "/v1/email/threads/{threadId}"
1927
+ });
1928
+ };
1929
+ var listEmailMessages = (options) => {
1930
+ return (options?.client ?? client).get({
1931
+ ...options,
1932
+ url: "/v1/email/messages"
1933
+ });
1934
+ };
1935
+ var sendEmailMessage = (options) => {
1936
+ return (options?.client ?? client).post({
1937
+ ...options,
1938
+ url: "/v1/email/messages"
1939
+ });
1940
+ };
1941
+ var getEmailMessage = (options) => {
1942
+ return (options?.client ?? client).get({
1943
+ ...options,
1944
+ url: "/v1/email/messages/{messageId}"
1945
+ });
1946
+ };
1947
+ var updateEmailMessage = (options) => {
1948
+ return (options?.client ?? client).patch({
1949
+ ...options,
1950
+ url: "/v1/email/messages/{messageId}"
1951
+ });
1952
+ };
1953
+ var trashEmailMessage = (options) => {
1954
+ return (options?.client ?? client).delete({
1955
+ ...options,
1956
+ url: "/v1/email/messages/{messageId}"
1957
+ });
1958
+ };
1959
+ var replyEmailMessage = (options) => {
1960
+ return (options?.client ?? client).post({
1961
+ ...options,
1962
+ url: "/v1/email/messages/{messageId}/reply"
1963
+ });
1964
+ };
1965
+ var listEmailFolders = (options) => {
1966
+ return (options?.client ?? client).get({
1967
+ ...options,
1968
+ url: "/v1/email/folders"
1969
+ });
1970
+ };
1971
+ var downloadEmailAttachment = (options) => {
1972
+ return (options?.client ?? client).get({
1973
+ ...options,
1974
+ url: "/v1/email/attachments/{attachmentId}"
1975
+ });
1976
+ };
1977
+ var listCalendars = (options) => {
1978
+ return (options?.client ?? client).get({
1979
+ ...options,
1980
+ url: "/v1/calendar/calendars"
1981
+ });
1982
+ };
1983
+ var listCalendarEvents = (options) => {
1984
+ return (options?.client ?? client).get({
1985
+ ...options,
1986
+ url: "/v1/calendar/events"
1987
+ });
1988
+ };
1989
+ var createCalendarEvent = (options) => {
1990
+ return (options?.client ?? client).post({
1991
+ ...options,
1992
+ url: "/v1/calendar/events"
1993
+ });
1994
+ };
1995
+ var getCalendarEvent = (options) => {
1996
+ return (options?.client ?? client).get({
1997
+ ...options,
1998
+ url: "/v1/calendar/events/{eventId}"
1999
+ });
2000
+ };
2001
+ var updateCalendarEvent = (options) => {
2002
+ return (options?.client ?? client).patch({
2003
+ ...options,
2004
+ url: "/v1/calendar/events/{eventId}"
2005
+ });
2006
+ };
2007
+ var deleteCalendarEvent = (options) => {
2008
+ return (options?.client ?? client).delete({
2009
+ ...options,
2010
+ url: "/v1/calendar/events/{eventId}"
2011
+ });
2012
+ };
2013
+ var rsvpCalendarEvent = (options) => {
2014
+ return (options?.client ?? client).post({
2015
+ ...options,
2016
+ url: "/v1/calendar/events/{eventId}/rsvp"
2017
+ });
2018
+ };
2019
+ var calendarFreeBusy = (options) => {
2020
+ return (options?.client ?? client).post({
2021
+ ...options,
2022
+ url: "/v1/calendar/free-busy"
2023
+ });
2024
+ };
2025
+ var calendarAvailability = (options) => {
2026
+ return (options?.client ?? client).post({
2027
+ ...options,
2028
+ url: "/v1/calendar/availability"
2029
+ });
2030
+ };
2031
+ var listFiles = (options) => {
2032
+ return (options?.client ?? client).get({
2033
+ ...options,
2034
+ url: "/v1/files"
2035
+ });
2036
+ };
2037
+ var uploadFile = (options) => {
2038
+ return (options?.client ?? client).post({
2039
+ ...options,
2040
+ url: "/v1/files"
2041
+ });
2042
+ };
2043
+ var createFolder = (options) => {
2044
+ return (options?.client ?? client).post({
2045
+ ...options,
2046
+ url: "/v1/files/folders"
2047
+ });
2048
+ };
2049
+ var createFilePickerSession = (options) => {
2050
+ return (options?.client ?? client).post({
2051
+ ...options,
2052
+ url: "/v1/files/picker-sessions"
2053
+ });
2054
+ };
2055
+ var getFile = (options) => {
2056
+ return (options?.client ?? client).get({
2057
+ ...options,
2058
+ url: "/v1/files/{fileId}"
2059
+ });
2060
+ };
2061
+ var updateFile = (options) => {
2062
+ return (options?.client ?? client).patch({
2063
+ ...options,
2064
+ url: "/v1/files/{fileId}"
2065
+ });
2066
+ };
2067
+ var trashFile = (options) => {
2068
+ return (options?.client ?? client).delete({
2069
+ ...options,
2070
+ url: "/v1/files/{fileId}"
2071
+ });
2072
+ };
2073
+ var downloadFile = (options) => {
2074
+ return (options?.client ?? client).get({
2075
+ ...options,
2076
+ url: "/v1/files/{fileId}/download"
2077
+ });
2078
+ };
2079
+ var getFileShareLink = (options) => {
2080
+ return (options?.client ?? client).get({
2081
+ ...options,
2082
+ url: "/v1/files/{fileId}/share-link"
2083
+ });
2084
+ };
2085
+ var startMicrosoftAdminConsent = (options) => {
2086
+ return (options?.client ?? client).get({
2087
+ ...options,
2088
+ url: "/v1/connect/microsoft/admin-consent"
2089
+ });
2090
+ };
1911
2091
  var listInboxConversations = (options) => {
1912
2092
  return (options?.client ?? client).get({
1913
2093
  ...options,
@@ -6982,6 +7162,7 @@ var Zernio = class _Zernio {
6982
7162
  voteRedditThing: this._bind(voteRedditThing),
6983
7163
  getRedditFlairs: this._bind(getRedditFlairs),
6984
7164
  setRedditPostFlair: this._bind(setRedditPostFlair),
7165
+ startMicrosoftAdminConsent: this._bind(startMicrosoftAdminConsent),
6985
7166
  facebook: {
6986
7167
  listFacebookPages: this._bind(listFacebookPages),
6987
7168
  selectFacebookPage: this._bind(selectFacebookPage)
@@ -7171,6 +7352,50 @@ var Zernio = class _Zernio {
7171
7352
  this.logs = {
7172
7353
  listLogs: this._bind(listLogs)
7173
7354
  };
7355
+ /**
7356
+ * email API
7357
+ */
7358
+ this.email = {
7359
+ listEmailThreads: this._bind(listEmailThreads),
7360
+ getEmailThread: this._bind(getEmailThread),
7361
+ updateEmailThread: this._bind(updateEmailThread),
7362
+ listEmailMessages: this._bind(listEmailMessages),
7363
+ sendEmailMessage: this._bind(sendEmailMessage),
7364
+ getEmailMessage: this._bind(getEmailMessage),
7365
+ updateEmailMessage: this._bind(updateEmailMessage),
7366
+ trashEmailMessage: this._bind(trashEmailMessage),
7367
+ replyEmailMessage: this._bind(replyEmailMessage),
7368
+ listEmailFolders: this._bind(listEmailFolders),
7369
+ downloadEmailAttachment: this._bind(downloadEmailAttachment)
7370
+ };
7371
+ /**
7372
+ * calendar API
7373
+ */
7374
+ this.calendar = {
7375
+ listCalendars: this._bind(listCalendars),
7376
+ listCalendarEvents: this._bind(listCalendarEvents),
7377
+ createCalendarEvent: this._bind(createCalendarEvent),
7378
+ getCalendarEvent: this._bind(getCalendarEvent),
7379
+ updateCalendarEvent: this._bind(updateCalendarEvent),
7380
+ deleteCalendarEvent: this._bind(deleteCalendarEvent),
7381
+ rsvpCalendarEvent: this._bind(rsvpCalendarEvent),
7382
+ calendarFreeBusy: this._bind(calendarFreeBusy),
7383
+ calendarAvailability: this._bind(calendarAvailability)
7384
+ };
7385
+ /**
7386
+ * files API
7387
+ */
7388
+ this.files = {
7389
+ listFiles: this._bind(listFiles),
7390
+ uploadFile: this._bind(uploadFile),
7391
+ createFolder: this._bind(createFolder),
7392
+ createFilePickerSession: this._bind(createFilePickerSession),
7393
+ getFile: this._bind(getFile),
7394
+ updateFile: this._bind(updateFile),
7395
+ trashFile: this._bind(trashFile),
7396
+ downloadFile: this._bind(downloadFile),
7397
+ getFileShareLink: this._bind(getFileShareLink)
7398
+ };
7174
7399
  /**
7175
7400
  * messages API
7176
7401
  */
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.1352",
8
+ version: "0.2.1353",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
@@ -1877,6 +1877,186 @@ var listLogs = (options) => {
1877
1877
  url: "/v1/logs"
1878
1878
  });
1879
1879
  };
1880
+ var listEmailThreads = (options) => {
1881
+ return (options?.client ?? client).get({
1882
+ ...options,
1883
+ url: "/v1/email/threads"
1884
+ });
1885
+ };
1886
+ var getEmailThread = (options) => {
1887
+ return (options?.client ?? client).get({
1888
+ ...options,
1889
+ url: "/v1/email/threads/{threadId}"
1890
+ });
1891
+ };
1892
+ var updateEmailThread = (options) => {
1893
+ return (options?.client ?? client).patch({
1894
+ ...options,
1895
+ url: "/v1/email/threads/{threadId}"
1896
+ });
1897
+ };
1898
+ var listEmailMessages = (options) => {
1899
+ return (options?.client ?? client).get({
1900
+ ...options,
1901
+ url: "/v1/email/messages"
1902
+ });
1903
+ };
1904
+ var sendEmailMessage = (options) => {
1905
+ return (options?.client ?? client).post({
1906
+ ...options,
1907
+ url: "/v1/email/messages"
1908
+ });
1909
+ };
1910
+ var getEmailMessage = (options) => {
1911
+ return (options?.client ?? client).get({
1912
+ ...options,
1913
+ url: "/v1/email/messages/{messageId}"
1914
+ });
1915
+ };
1916
+ var updateEmailMessage = (options) => {
1917
+ return (options?.client ?? client).patch({
1918
+ ...options,
1919
+ url: "/v1/email/messages/{messageId}"
1920
+ });
1921
+ };
1922
+ var trashEmailMessage = (options) => {
1923
+ return (options?.client ?? client).delete({
1924
+ ...options,
1925
+ url: "/v1/email/messages/{messageId}"
1926
+ });
1927
+ };
1928
+ var replyEmailMessage = (options) => {
1929
+ return (options?.client ?? client).post({
1930
+ ...options,
1931
+ url: "/v1/email/messages/{messageId}/reply"
1932
+ });
1933
+ };
1934
+ var listEmailFolders = (options) => {
1935
+ return (options?.client ?? client).get({
1936
+ ...options,
1937
+ url: "/v1/email/folders"
1938
+ });
1939
+ };
1940
+ var downloadEmailAttachment = (options) => {
1941
+ return (options?.client ?? client).get({
1942
+ ...options,
1943
+ url: "/v1/email/attachments/{attachmentId}"
1944
+ });
1945
+ };
1946
+ var listCalendars = (options) => {
1947
+ return (options?.client ?? client).get({
1948
+ ...options,
1949
+ url: "/v1/calendar/calendars"
1950
+ });
1951
+ };
1952
+ var listCalendarEvents = (options) => {
1953
+ return (options?.client ?? client).get({
1954
+ ...options,
1955
+ url: "/v1/calendar/events"
1956
+ });
1957
+ };
1958
+ var createCalendarEvent = (options) => {
1959
+ return (options?.client ?? client).post({
1960
+ ...options,
1961
+ url: "/v1/calendar/events"
1962
+ });
1963
+ };
1964
+ var getCalendarEvent = (options) => {
1965
+ return (options?.client ?? client).get({
1966
+ ...options,
1967
+ url: "/v1/calendar/events/{eventId}"
1968
+ });
1969
+ };
1970
+ var updateCalendarEvent = (options) => {
1971
+ return (options?.client ?? client).patch({
1972
+ ...options,
1973
+ url: "/v1/calendar/events/{eventId}"
1974
+ });
1975
+ };
1976
+ var deleteCalendarEvent = (options) => {
1977
+ return (options?.client ?? client).delete({
1978
+ ...options,
1979
+ url: "/v1/calendar/events/{eventId}"
1980
+ });
1981
+ };
1982
+ var rsvpCalendarEvent = (options) => {
1983
+ return (options?.client ?? client).post({
1984
+ ...options,
1985
+ url: "/v1/calendar/events/{eventId}/rsvp"
1986
+ });
1987
+ };
1988
+ var calendarFreeBusy = (options) => {
1989
+ return (options?.client ?? client).post({
1990
+ ...options,
1991
+ url: "/v1/calendar/free-busy"
1992
+ });
1993
+ };
1994
+ var calendarAvailability = (options) => {
1995
+ return (options?.client ?? client).post({
1996
+ ...options,
1997
+ url: "/v1/calendar/availability"
1998
+ });
1999
+ };
2000
+ var listFiles = (options) => {
2001
+ return (options?.client ?? client).get({
2002
+ ...options,
2003
+ url: "/v1/files"
2004
+ });
2005
+ };
2006
+ var uploadFile = (options) => {
2007
+ return (options?.client ?? client).post({
2008
+ ...options,
2009
+ url: "/v1/files"
2010
+ });
2011
+ };
2012
+ var createFolder = (options) => {
2013
+ return (options?.client ?? client).post({
2014
+ ...options,
2015
+ url: "/v1/files/folders"
2016
+ });
2017
+ };
2018
+ var createFilePickerSession = (options) => {
2019
+ return (options?.client ?? client).post({
2020
+ ...options,
2021
+ url: "/v1/files/picker-sessions"
2022
+ });
2023
+ };
2024
+ var getFile = (options) => {
2025
+ return (options?.client ?? client).get({
2026
+ ...options,
2027
+ url: "/v1/files/{fileId}"
2028
+ });
2029
+ };
2030
+ var updateFile = (options) => {
2031
+ return (options?.client ?? client).patch({
2032
+ ...options,
2033
+ url: "/v1/files/{fileId}"
2034
+ });
2035
+ };
2036
+ var trashFile = (options) => {
2037
+ return (options?.client ?? client).delete({
2038
+ ...options,
2039
+ url: "/v1/files/{fileId}"
2040
+ });
2041
+ };
2042
+ var downloadFile = (options) => {
2043
+ return (options?.client ?? client).get({
2044
+ ...options,
2045
+ url: "/v1/files/{fileId}/download"
2046
+ });
2047
+ };
2048
+ var getFileShareLink = (options) => {
2049
+ return (options?.client ?? client).get({
2050
+ ...options,
2051
+ url: "/v1/files/{fileId}/share-link"
2052
+ });
2053
+ };
2054
+ var startMicrosoftAdminConsent = (options) => {
2055
+ return (options?.client ?? client).get({
2056
+ ...options,
2057
+ url: "/v1/connect/microsoft/admin-consent"
2058
+ });
2059
+ };
1880
2060
  var listInboxConversations = (options) => {
1881
2061
  return (options?.client ?? client).get({
1882
2062
  ...options,
@@ -6951,6 +7131,7 @@ var Zernio = class _Zernio {
6951
7131
  voteRedditThing: this._bind(voteRedditThing),
6952
7132
  getRedditFlairs: this._bind(getRedditFlairs),
6953
7133
  setRedditPostFlair: this._bind(setRedditPostFlair),
7134
+ startMicrosoftAdminConsent: this._bind(startMicrosoftAdminConsent),
6954
7135
  facebook: {
6955
7136
  listFacebookPages: this._bind(listFacebookPages),
6956
7137
  selectFacebookPage: this._bind(selectFacebookPage)
@@ -7140,6 +7321,50 @@ var Zernio = class _Zernio {
7140
7321
  this.logs = {
7141
7322
  listLogs: this._bind(listLogs)
7142
7323
  };
7324
+ /**
7325
+ * email API
7326
+ */
7327
+ this.email = {
7328
+ listEmailThreads: this._bind(listEmailThreads),
7329
+ getEmailThread: this._bind(getEmailThread),
7330
+ updateEmailThread: this._bind(updateEmailThread),
7331
+ listEmailMessages: this._bind(listEmailMessages),
7332
+ sendEmailMessage: this._bind(sendEmailMessage),
7333
+ getEmailMessage: this._bind(getEmailMessage),
7334
+ updateEmailMessage: this._bind(updateEmailMessage),
7335
+ trashEmailMessage: this._bind(trashEmailMessage),
7336
+ replyEmailMessage: this._bind(replyEmailMessage),
7337
+ listEmailFolders: this._bind(listEmailFolders),
7338
+ downloadEmailAttachment: this._bind(downloadEmailAttachment)
7339
+ };
7340
+ /**
7341
+ * calendar API
7342
+ */
7343
+ this.calendar = {
7344
+ listCalendars: this._bind(listCalendars),
7345
+ listCalendarEvents: this._bind(listCalendarEvents),
7346
+ createCalendarEvent: this._bind(createCalendarEvent),
7347
+ getCalendarEvent: this._bind(getCalendarEvent),
7348
+ updateCalendarEvent: this._bind(updateCalendarEvent),
7349
+ deleteCalendarEvent: this._bind(deleteCalendarEvent),
7350
+ rsvpCalendarEvent: this._bind(rsvpCalendarEvent),
7351
+ calendarFreeBusy: this._bind(calendarFreeBusy),
7352
+ calendarAvailability: this._bind(calendarAvailability)
7353
+ };
7354
+ /**
7355
+ * files API
7356
+ */
7357
+ this.files = {
7358
+ listFiles: this._bind(listFiles),
7359
+ uploadFile: this._bind(uploadFile),
7360
+ createFolder: this._bind(createFolder),
7361
+ createFilePickerSession: this._bind(createFilePickerSession),
7362
+ getFile: this._bind(getFile),
7363
+ updateFile: this._bind(updateFile),
7364
+ trashFile: this._bind(trashFile),
7365
+ downloadFile: this._bind(downloadFile),
7366
+ getFileShareLink: this._bind(getFileShareLink)
7367
+ };
7143
7368
  /**
7144
7369
  * messages API
7145
7370
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1352",
3
+ "version": "0.2.1353",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",