smartletter 1.1.0 → 1.3.0
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 +48 -0
- package/dist/index.cjs +42 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2351 -996
- package/dist/index.d.mts +2351 -996
- package/dist/index.mjs +42 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -4
package/dist/index.mjs
CHANGED
|
@@ -43,7 +43,7 @@ var Client = class {
|
|
|
43
43
|
}
|
|
44
44
|
this.key = resolved;
|
|
45
45
|
this.baseUrl = (options.baseUrl || env("SMARTLETTER_BASE_URL") || DEFAULT_BASE_URL).replace(/\/+$/, "");
|
|
46
|
-
this.userAgent = options.userAgent ?? `smartletter-node/${"1.
|
|
46
|
+
this.userAgent = options.userAgent ?? `smartletter-node/${"1.3.0"}`;
|
|
47
47
|
}
|
|
48
48
|
async call(op, args, options = {}) {
|
|
49
49
|
const headers = new Headers(options.headers);
|
|
@@ -641,6 +641,12 @@ var OPERATIONS = {
|
|
|
641
641
|
wire: "winner_mode"
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
+
},
|
|
645
|
+
kind: {
|
|
646
|
+
wire: "kind"
|
|
647
|
+
},
|
|
648
|
+
from: {
|
|
649
|
+
wire: "from"
|
|
644
650
|
}
|
|
645
651
|
}
|
|
646
652
|
},
|
|
@@ -755,6 +761,12 @@ var OPERATIONS = {
|
|
|
755
761
|
wire: "winner_mode"
|
|
756
762
|
}
|
|
757
763
|
}
|
|
764
|
+
},
|
|
765
|
+
kind: {
|
|
766
|
+
wire: "kind"
|
|
767
|
+
},
|
|
768
|
+
from: {
|
|
769
|
+
wire: "from"
|
|
758
770
|
}
|
|
759
771
|
}
|
|
760
772
|
},
|
|
@@ -939,6 +951,9 @@ var OPERATIONS = {
|
|
|
939
951
|
},
|
|
940
952
|
tags: {
|
|
941
953
|
wire: "tags"
|
|
954
|
+
},
|
|
955
|
+
newsletterSubscribed: {
|
|
956
|
+
wire: "newsletter_subscribed"
|
|
942
957
|
}
|
|
943
958
|
}
|
|
944
959
|
},
|
|
@@ -989,6 +1004,9 @@ var OPERATIONS = {
|
|
|
989
1004
|
tags: {
|
|
990
1005
|
wire: "tags"
|
|
991
1006
|
},
|
|
1007
|
+
newsletterSubscribed: {
|
|
1008
|
+
wire: "newsletter_subscribed"
|
|
1009
|
+
},
|
|
992
1010
|
status: {
|
|
993
1011
|
wire: "status"
|
|
994
1012
|
},
|
|
@@ -1079,6 +1097,9 @@ var OPERATIONS = {
|
|
|
1079
1097
|
},
|
|
1080
1098
|
removeTags: {
|
|
1081
1099
|
wire: "remove_tags"
|
|
1100
|
+
},
|
|
1101
|
+
newsletterSubscribed: {
|
|
1102
|
+
wire: "newsletter_subscribed"
|
|
1082
1103
|
}
|
|
1083
1104
|
}
|
|
1084
1105
|
},
|
|
@@ -2073,14 +2094,20 @@ var OPERATIONS = {
|
|
|
2073
2094
|
method: "GET",
|
|
2074
2095
|
path: "/sequences/{id}/enrollments",
|
|
2075
2096
|
pathParams: ["id"],
|
|
2076
|
-
paginated:
|
|
2097
|
+
paginated: true,
|
|
2077
2098
|
idempotent: false,
|
|
2078
2099
|
query: {
|
|
2079
|
-
status: {
|
|
2080
|
-
wire: "status"
|
|
2081
|
-
},
|
|
2082
2100
|
limit: {
|
|
2083
2101
|
wire: "limit"
|
|
2102
|
+
},
|
|
2103
|
+
after: {
|
|
2104
|
+
wire: "after"
|
|
2105
|
+
},
|
|
2106
|
+
before: {
|
|
2107
|
+
wire: "before"
|
|
2108
|
+
},
|
|
2109
|
+
status: {
|
|
2110
|
+
wire: "status"
|
|
2084
2111
|
}
|
|
2085
2112
|
}
|
|
2086
2113
|
},
|
|
@@ -2337,9 +2364,18 @@ var OPERATIONS = {
|
|
|
2337
2364
|
method: "GET",
|
|
2338
2365
|
path: "/threads",
|
|
2339
2366
|
pathParams: [],
|
|
2340
|
-
paginated:
|
|
2367
|
+
paginated: true,
|
|
2341
2368
|
idempotent: false,
|
|
2342
2369
|
query: {
|
|
2370
|
+
limit: {
|
|
2371
|
+
wire: "limit"
|
|
2372
|
+
},
|
|
2373
|
+
after: {
|
|
2374
|
+
wire: "after"
|
|
2375
|
+
},
|
|
2376
|
+
before: {
|
|
2377
|
+
wire: "before"
|
|
2378
|
+
},
|
|
2343
2379
|
inboxId: {
|
|
2344
2380
|
wire: "inbox_id"
|
|
2345
2381
|
},
|
|
@@ -2357,12 +2393,6 @@ var OPERATIONS = {
|
|
|
2357
2393
|
},
|
|
2358
2394
|
unread: {
|
|
2359
2395
|
wire: "unread"
|
|
2360
|
-
},
|
|
2361
|
-
limit: {
|
|
2362
|
-
wire: "limit"
|
|
2363
|
-
},
|
|
2364
|
-
after: {
|
|
2365
|
-
wire: "after"
|
|
2366
2396
|
}
|
|
2367
2397
|
}
|
|
2368
2398
|
},
|