@getlatedev/node 0.2.1657 → 0.2.1658

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.1657",
39
+ version: "0.2.1658",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
@@ -3520,6 +3520,18 @@ var listSmsOptOuts = (options) => {
3520
3520
  url: "/v1/sms/opt-outs"
3521
3521
  });
3522
3522
  };
3523
+ var createSmsOptOut = (options) => {
3524
+ return (options?.client ?? client).post({
3525
+ ...options,
3526
+ url: "/v1/sms/opt-outs"
3527
+ });
3528
+ };
3529
+ var deleteSmsOptOut = (options) => {
3530
+ return (options?.client ?? client).delete({
3531
+ ...options,
3532
+ url: "/v1/sms/opt-outs"
3533
+ });
3534
+ };
3523
3535
  var createSmsSenderId = (options) => {
3524
3536
  return (options?.client ?? client).post({
3525
3537
  ...options,
@@ -8985,6 +8997,8 @@ var Zernio = class _Zernio {
8985
8997
  sendSms: this._bind(sendSms),
8986
8998
  lookupSmsNumber: this._bind(lookupSmsNumber),
8987
8999
  listSmsOptOuts: this._bind(listSmsOptOuts),
9000
+ createSmsOptOut: this._bind(createSmsOptOut),
9001
+ deleteSmsOptOut: this._bind(deleteSmsOptOut),
8988
9002
  createSmsSenderId: this._bind(createSmsSenderId),
8989
9003
  listSmsSenderIds: this._bind(listSmsSenderIds),
8990
9004
  requestSmsSenderIdLimitIncrease: this._bind(requestSmsSenderIdLimitIncrease),
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.1657",
8
+ version: "0.2.1658",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
@@ -3489,6 +3489,18 @@ var listSmsOptOuts = (options) => {
3489
3489
  url: "/v1/sms/opt-outs"
3490
3490
  });
3491
3491
  };
3492
+ var createSmsOptOut = (options) => {
3493
+ return (options?.client ?? client).post({
3494
+ ...options,
3495
+ url: "/v1/sms/opt-outs"
3496
+ });
3497
+ };
3498
+ var deleteSmsOptOut = (options) => {
3499
+ return (options?.client ?? client).delete({
3500
+ ...options,
3501
+ url: "/v1/sms/opt-outs"
3502
+ });
3503
+ };
3492
3504
  var createSmsSenderId = (options) => {
3493
3505
  return (options?.client ?? client).post({
3494
3506
  ...options,
@@ -8954,6 +8966,8 @@ var Zernio = class _Zernio {
8954
8966
  sendSms: this._bind(sendSms),
8955
8967
  lookupSmsNumber: this._bind(lookupSmsNumber),
8956
8968
  listSmsOptOuts: this._bind(listSmsOptOuts),
8969
+ createSmsOptOut: this._bind(createSmsOptOut),
8970
+ deleteSmsOptOut: this._bind(deleteSmsOptOut),
8957
8971
  createSmsSenderId: this._bind(createSmsSenderId),
8958
8972
  listSmsSenderIds: this._bind(listSmsSenderIds),
8959
8973
  requestSmsSenderIdLimitIncrease: this._bind(requestSmsSenderIdLimitIncrease),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1657",
3
+ "version": "0.2.1658",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/client.ts CHANGED
@@ -206,6 +206,7 @@ import {
206
206
  createSequence,
207
207
  createSharedBudget,
208
208
  createSipTrunk,
209
+ createSmsOptOut,
209
210
  createSmsSenderId,
210
211
  createStandaloneAd,
211
212
  createTestLead,
@@ -310,6 +311,7 @@ import {
310
311
  deleteQueueSlot,
311
312
  deleteSequence,
312
313
  deleteSipTrunk,
314
+ deleteSmsOptOut,
313
315
  deleteSmsSenderId,
314
316
  deleteTelegramCommands,
315
317
  deleteTestLead,
@@ -2307,6 +2309,8 @@ export class Zernio {
2307
2309
  sendSms: this._bind(sendSms),
2308
2310
  lookupSmsNumber: this._bind(lookupSmsNumber),
2309
2311
  listSmsOptOuts: this._bind(listSmsOptOuts),
2312
+ createSmsOptOut: this._bind(createSmsOptOut),
2313
+ deleteSmsOptOut: this._bind(deleteSmsOptOut),
2310
2314
  createSmsSenderId: this._bind(createSmsSenderId),
2311
2315
  listSmsSenderIds: this._bind(listSmsSenderIds),
2312
2316
  requestSmsSenderIdLimitIncrease: this._bind(requestSmsSenderIdLimitIncrease),