smartletter 1.1.0 → 1.2.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 +38 -0
- package/dist/index.cjs +21 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2273 -984
- package/dist/index.d.mts +2273 -984
- package/dist/index.mjs +21 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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.2.0"}`;
|
|
47
47
|
}
|
|
48
48
|
async call(op, args, options = {}) {
|
|
49
49
|
const headers = new Headers(options.headers);
|
|
@@ -2073,14 +2073,20 @@ var OPERATIONS = {
|
|
|
2073
2073
|
method: "GET",
|
|
2074
2074
|
path: "/sequences/{id}/enrollments",
|
|
2075
2075
|
pathParams: ["id"],
|
|
2076
|
-
paginated:
|
|
2076
|
+
paginated: true,
|
|
2077
2077
|
idempotent: false,
|
|
2078
2078
|
query: {
|
|
2079
|
-
status: {
|
|
2080
|
-
wire: "status"
|
|
2081
|
-
},
|
|
2082
2079
|
limit: {
|
|
2083
2080
|
wire: "limit"
|
|
2081
|
+
},
|
|
2082
|
+
after: {
|
|
2083
|
+
wire: "after"
|
|
2084
|
+
},
|
|
2085
|
+
before: {
|
|
2086
|
+
wire: "before"
|
|
2087
|
+
},
|
|
2088
|
+
status: {
|
|
2089
|
+
wire: "status"
|
|
2084
2090
|
}
|
|
2085
2091
|
}
|
|
2086
2092
|
},
|
|
@@ -2337,9 +2343,18 @@ var OPERATIONS = {
|
|
|
2337
2343
|
method: "GET",
|
|
2338
2344
|
path: "/threads",
|
|
2339
2345
|
pathParams: [],
|
|
2340
|
-
paginated:
|
|
2346
|
+
paginated: true,
|
|
2341
2347
|
idempotent: false,
|
|
2342
2348
|
query: {
|
|
2349
|
+
limit: {
|
|
2350
|
+
wire: "limit"
|
|
2351
|
+
},
|
|
2352
|
+
after: {
|
|
2353
|
+
wire: "after"
|
|
2354
|
+
},
|
|
2355
|
+
before: {
|
|
2356
|
+
wire: "before"
|
|
2357
|
+
},
|
|
2343
2358
|
inboxId: {
|
|
2344
2359
|
wire: "inbox_id"
|
|
2345
2360
|
},
|
|
@@ -2357,12 +2372,6 @@ var OPERATIONS = {
|
|
|
2357
2372
|
},
|
|
2358
2373
|
unread: {
|
|
2359
2374
|
wire: "unread"
|
|
2360
|
-
},
|
|
2361
|
-
limit: {
|
|
2362
|
-
wire: "limit"
|
|
2363
|
-
},
|
|
2364
|
-
after: {
|
|
2365
|
-
wire: "after"
|
|
2366
2375
|
}
|
|
2367
2376
|
}
|
|
2368
2377
|
},
|