rcs-js 2.0.7 → 2.0.8
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/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/messages/client/Client.d.ts +6 -21
- package/dist/cjs/api/resources/messages/client/Client.js +16 -84
- package/dist/cjs/api/resources/messages/resources/blast/client/Client.d.ts +105 -0
- package/dist/cjs/api/resources/messages/resources/blast/client/Client.js +325 -0
- package/dist/cjs/api/resources/messages/resources/blast/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/messages/resources/blast/client/index.js +17 -0
- package/dist/cjs/api/resources/messages/resources/blast/client/requests/BlastMms.d.ts +61 -0
- package/dist/cjs/api/resources/messages/resources/blast/client/requests/BlastRcs.d.ts +110 -0
- package/dist/cjs/api/resources/messages/resources/blast/client/requests/BlastRcs.js +23 -0
- package/dist/cjs/api/resources/messages/resources/blast/client/requests/BlastSms.d.ts +47 -0
- package/dist/cjs/api/resources/messages/resources/blast/client/requests/BlastSms.js +3 -0
- package/dist/cjs/api/resources/messages/resources/blast/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/messages/resources/blast/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/messages/resources/blast/index.d.ts +2 -0
- package/dist/cjs/api/resources/messages/resources/blast/index.js +18 -0
- package/dist/cjs/api/resources/messages/resources/blast/types/BlastMmsResponse.d.ts +2 -0
- package/dist/cjs/api/resources/messages/resources/blast/types/BlastMmsResponse.js +3 -0
- package/dist/cjs/api/resources/messages/resources/blast/types/BlastRcsResponse.d.ts +2 -0
- package/dist/cjs/api/resources/messages/resources/blast/types/BlastRcsResponse.js +3 -0
- package/dist/cjs/api/resources/messages/resources/blast/types/BlastSmsResponse.d.ts +2 -0
- package/dist/cjs/api/resources/messages/resources/blast/types/BlastSmsResponse.js +3 -0
- package/dist/cjs/api/resources/messages/resources/blast/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/messages/resources/blast/types/index.js +19 -0
- package/dist/cjs/api/resources/messages/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/messages/resources/index.js +5 -1
- package/dist/cjs/api/resources/messages/resources/schedule/client/Client.d.ts +32 -0
- package/dist/cjs/api/resources/messages/resources/schedule/client/Client.js +135 -0
- package/dist/cjs/api/resources/messages/resources/schedule/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/messages/resources/schedule/client/index.js +2 -0
- package/dist/cjs/api/resources/messages/resources/schedule/index.d.ts +1 -0
- package/dist/cjs/api/resources/messages/resources/schedule/index.js +17 -0
- package/dist/cjs/api/types/BlastDetails.d.ts +17 -0
- package/dist/cjs/api/types/BlastDetails.js +3 -0
- package/dist/cjs/api/types/DlcCampaignWithExtendedBrandAndStatus.d.ts +42 -0
- package/dist/cjs/api/types/DlcCampaignWithExtendedBrandAndStatus.js +32 -0
- package/dist/cjs/api/types/MessageSchedule.d.ts +25 -11
- package/dist/cjs/api/types/MessageStatusEnum.d.ts +1 -0
- package/dist/cjs/api/types/MessageStatusEnum.js +1 -0
- package/dist/cjs/api/types/ScheduleCancelResult.d.ts +7 -0
- package/dist/cjs/api/types/ScheduleCancelResult.js +3 -0
- package/dist/cjs/api/types/ScheduledBlastDetails.d.ts +24 -0
- package/dist/cjs/api/types/ScheduledBlastDetails.js +3 -0
- package/dist/cjs/api/types/index.d.ts +3 -1
- package/dist/cjs/api/types/index.js +3 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/messages/client/Client.d.mts +6 -21
- package/dist/esm/api/resources/messages/client/Client.mjs +10 -78
- package/dist/esm/api/resources/messages/resources/blast/client/Client.d.mts +105 -0
- package/dist/esm/api/resources/messages/resources/blast/client/Client.mjs +288 -0
- package/dist/esm/api/resources/messages/resources/blast/client/index.d.mts +1 -0
- package/dist/esm/api/resources/messages/resources/blast/client/index.mjs +1 -0
- package/dist/esm/api/resources/messages/resources/blast/client/requests/BlastMms.d.mts +61 -0
- package/dist/esm/api/resources/messages/resources/blast/client/requests/BlastRcs.d.mts +110 -0
- package/dist/esm/api/resources/messages/resources/blast/client/requests/BlastRcs.mjs +20 -0
- package/dist/esm/api/resources/messages/resources/blast/client/requests/BlastSms.d.mts +47 -0
- package/dist/esm/api/resources/messages/resources/blast/client/requests/BlastSms.mjs +2 -0
- package/dist/esm/api/resources/messages/resources/blast/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/messages/resources/blast/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/messages/resources/blast/index.d.mts +2 -0
- package/dist/esm/api/resources/messages/resources/blast/index.mjs +2 -0
- package/dist/esm/api/resources/messages/resources/blast/types/BlastMmsResponse.d.mts +2 -0
- package/dist/esm/api/resources/messages/resources/blast/types/BlastMmsResponse.mjs +2 -0
- package/dist/esm/api/resources/messages/resources/blast/types/BlastRcsResponse.d.mts +2 -0
- package/dist/esm/api/resources/messages/resources/blast/types/BlastRcsResponse.mjs +2 -0
- package/dist/esm/api/resources/messages/resources/blast/types/BlastSmsResponse.d.mts +2 -0
- package/dist/esm/api/resources/messages/resources/blast/types/BlastSmsResponse.mjs +2 -0
- package/dist/esm/api/resources/messages/resources/blast/types/index.d.mts +3 -0
- package/dist/esm/api/resources/messages/resources/blast/types/index.mjs +3 -0
- package/dist/esm/api/resources/messages/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/messages/resources/index.mjs +4 -0
- package/dist/esm/api/resources/messages/resources/schedule/client/Client.d.mts +32 -0
- package/dist/esm/api/resources/messages/resources/schedule/client/Client.mjs +98 -0
- package/dist/esm/api/resources/messages/resources/schedule/client/index.d.mts +1 -0
- package/dist/esm/api/resources/messages/resources/schedule/client/index.mjs +1 -0
- package/dist/esm/api/resources/messages/resources/schedule/index.d.mts +1 -0
- package/dist/esm/api/resources/messages/resources/schedule/index.mjs +1 -0
- package/dist/esm/api/types/BlastDetails.d.mts +17 -0
- package/dist/esm/api/types/BlastDetails.mjs +2 -0
- package/dist/esm/api/types/DlcCampaignWithExtendedBrandAndStatus.d.mts +42 -0
- package/dist/esm/api/types/DlcCampaignWithExtendedBrandAndStatus.mjs +31 -1
- package/dist/esm/api/types/MessageSchedule.d.mts +25 -11
- package/dist/esm/api/types/MessageStatusEnum.d.mts +1 -0
- package/dist/esm/api/types/MessageStatusEnum.mjs +1 -0
- package/dist/esm/api/types/ScheduleCancelResult.d.mts +7 -0
- package/dist/esm/api/types/ScheduleCancelResult.mjs +2 -0
- package/dist/esm/api/types/ScheduledBlastDetails.d.mts +24 -0
- package/dist/esm/api/types/ScheduledBlastDetails.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +3 -1
- package/dist/esm/api/types/index.mjs +3 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +299 -68
- package/dist/cjs/api/types/CancelScheduledMessageResponse.d.ts +0 -4
- package/dist/esm/api/types/CancelScheduledMessageResponse.d.mts +0 -4
- /package/dist/cjs/api/{types/CancelScheduledMessageResponse.js → resources/messages/resources/blast/client/requests/BlastMms.js} +0 -0
- /package/dist/esm/api/{types/CancelScheduledMessageResponse.mjs → resources/messages/resources/blast/client/requests/BlastMms.mjs} +0 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
|
|
12
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
13
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
14
|
+
import * as errors from "../../../../../../errors/index.mjs";
|
|
15
|
+
import * as Pinnacle from "../../../../../index.mjs";
|
|
16
|
+
export class Schedule {
|
|
17
|
+
constructor(_options = {}) {
|
|
18
|
+
this._options = _options;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Cancel a scheduled message or blast. <br>
|
|
22
|
+
*
|
|
23
|
+
* Works for both individual scheduled messages and scheduled blasts. Use the `scheduleId` returned when the message or blast was scheduled.
|
|
24
|
+
*
|
|
25
|
+
* @param {string} id - Unique identifier of the scheduled message. This identifier is a string that always begins with the prefix `msg_sched_`, for example: `msg_sched_1234567890`.
|
|
26
|
+
* @param {Schedule.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
29
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
30
|
+
* @throws {@link Pinnacle.NotFoundError}
|
|
31
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* await client.messages.schedule.cancel("id")
|
|
35
|
+
*/
|
|
36
|
+
cancel(id, requestOptions) {
|
|
37
|
+
return core.HttpResponsePromise.fromPromise(this.__cancel(id, requestOptions));
|
|
38
|
+
}
|
|
39
|
+
__cancel(id, requestOptions) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
42
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
43
|
+
const _response = yield core.fetcher({
|
|
44
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, `messages/schedule/${core.url.encodePathParam(id)}`),
|
|
45
|
+
method: "DELETE",
|
|
46
|
+
headers: _headers,
|
|
47
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
48
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
49
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
50
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
51
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
52
|
+
logging: this._options.logging,
|
|
53
|
+
});
|
|
54
|
+
if (_response.ok) {
|
|
55
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
56
|
+
}
|
|
57
|
+
if (_response.error.reason === "status-code") {
|
|
58
|
+
switch (_response.error.statusCode) {
|
|
59
|
+
case 400:
|
|
60
|
+
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
61
|
+
case 401:
|
|
62
|
+
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
63
|
+
case 404:
|
|
64
|
+
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
65
|
+
case 500:
|
|
66
|
+
throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
|
|
67
|
+
default:
|
|
68
|
+
throw new errors.PinnacleError({
|
|
69
|
+
statusCode: _response.error.statusCode,
|
|
70
|
+
body: _response.error.body,
|
|
71
|
+
rawResponse: _response.rawResponse,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
switch (_response.error.reason) {
|
|
76
|
+
case "non-json":
|
|
77
|
+
throw new errors.PinnacleError({
|
|
78
|
+
statusCode: _response.error.statusCode,
|
|
79
|
+
body: _response.error.rawBody,
|
|
80
|
+
rawResponse: _response.rawResponse,
|
|
81
|
+
});
|
|
82
|
+
case "timeout":
|
|
83
|
+
throw new errors.PinnacleTimeoutError("Timeout exceeded when calling DELETE /messages/schedule/{id}.");
|
|
84
|
+
case "unknown":
|
|
85
|
+
throw new errors.PinnacleError({
|
|
86
|
+
message: _response.error.errorMessage,
|
|
87
|
+
rawResponse: _response.rawResponse,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
_getCustomAuthorizationHeaders() {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
95
|
+
return { "PINNACLE-API-KEY": apiKeyValue };
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response containing details about the scheduled blast.
|
|
3
|
+
*/
|
|
4
|
+
export interface BlastDetails {
|
|
5
|
+
/** Unique identifier for the blast. This identifier is a string that always begins with the prefix `blast_`, for example: `blast_1234567890`. */
|
|
6
|
+
blastId: string;
|
|
7
|
+
/** The audience ID the blast was sent to. This identifier is a string that always begins with the prefix `aud_`, for example: `aud_abc123`. */
|
|
8
|
+
audienceId: string;
|
|
9
|
+
/** Total number of recipients in the audience. */
|
|
10
|
+
totalRecipients: number;
|
|
11
|
+
/** Total number of messages to be sent. */
|
|
12
|
+
totalMessages: number;
|
|
13
|
+
/** Total number of message segments across all messages. */
|
|
14
|
+
totalSegments: number;
|
|
15
|
+
/** Total estimated cost of the blast. Calculated by multiplying the number of segments by the number of messages by the unit cost. */
|
|
16
|
+
totalCost: number;
|
|
17
|
+
}
|
|
@@ -37,6 +37,18 @@ export interface DlcCampaignWithExtendedBrandAndStatus {
|
|
|
37
37
|
status: Pinnacle.ProfileStatusEnum;
|
|
38
38
|
/** Use case for the campaign. */
|
|
39
39
|
useCase?: DlcCampaignWithExtendedBrandAndStatus.UseCase;
|
|
40
|
+
/**
|
|
41
|
+
* The MNO brand tier for T-Mobile rate limits. Tiers range from `TOP` (highest) to `LOW` (lowest), based on your brand's vetting score.
|
|
42
|
+
*
|
|
43
|
+
* See [SMS Rate Limits](/guides/messages/rate-limits) for details.
|
|
44
|
+
*/
|
|
45
|
+
mnoBrandTier?: DlcCampaignWithExtendedBrandAndStatus.MnoBrandTier;
|
|
46
|
+
/**
|
|
47
|
+
* The MNO TCR message class for AT&T, Verizon, and other carriers. Classes `A`-`G` are standard (based on vetting score), while `T`, `N`, and `S` are for special use cases.
|
|
48
|
+
*
|
|
49
|
+
* See [SMS Rate Limits](/guides/messages/rate-limits) for details.
|
|
50
|
+
*/
|
|
51
|
+
mnoTcrTier?: DlcCampaignWithExtendedBrandAndStatus.MnoTcrTier;
|
|
40
52
|
}
|
|
41
53
|
export declare namespace DlcCampaignWithExtendedBrandAndStatus {
|
|
42
54
|
/**
|
|
@@ -113,4 +125,34 @@ export declare namespace DlcCampaignWithExtendedBrandAndStatus {
|
|
|
113
125
|
sub?: Pinnacle.SubUseCaseEnum[];
|
|
114
126
|
value?: Pinnacle.DlcCampaignUseCaseEnum;
|
|
115
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* The MNO brand tier for T-Mobile rate limits. Tiers range from `TOP` (highest) to `LOW` (lowest), based on your brand's vetting score.
|
|
130
|
+
*
|
|
131
|
+
* See [SMS Rate Limits](/guides/messages/rate-limits) for details.
|
|
132
|
+
*/
|
|
133
|
+
const MnoBrandTier: {
|
|
134
|
+
readonly Top: "TOP";
|
|
135
|
+
readonly HighMid: "HIGH_MID";
|
|
136
|
+
readonly LowMid: "LOW_MID";
|
|
137
|
+
readonly Low: "LOW";
|
|
138
|
+
};
|
|
139
|
+
type MnoBrandTier = (typeof MnoBrandTier)[keyof typeof MnoBrandTier];
|
|
140
|
+
/**
|
|
141
|
+
* The MNO TCR message class for AT&T, Verizon, and other carriers. Classes `A`-`G` are standard (based on vetting score), while `T`, `N`, and `S` are for special use cases.
|
|
142
|
+
*
|
|
143
|
+
* See [SMS Rate Limits](/guides/messages/rate-limits) for details.
|
|
144
|
+
*/
|
|
145
|
+
const MnoTcrTier: {
|
|
146
|
+
readonly A: "A";
|
|
147
|
+
readonly B: "B";
|
|
148
|
+
readonly C: "C";
|
|
149
|
+
readonly D: "D";
|
|
150
|
+
readonly E: "E";
|
|
151
|
+
readonly F: "F";
|
|
152
|
+
readonly G: "G";
|
|
153
|
+
readonly N: "N";
|
|
154
|
+
readonly T: "T";
|
|
155
|
+
readonly S: "S";
|
|
156
|
+
};
|
|
157
|
+
type MnoTcrTier = (typeof MnoTcrTier)[keyof typeof MnoTcrTier];
|
|
116
158
|
}
|
|
@@ -1,2 +1,32 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
2
|
+
export var DlcCampaignWithExtendedBrandAndStatus;
|
|
3
|
+
(function (DlcCampaignWithExtendedBrandAndStatus) {
|
|
4
|
+
/**
|
|
5
|
+
* The MNO brand tier for T-Mobile rate limits. Tiers range from `TOP` (highest) to `LOW` (lowest), based on your brand's vetting score.
|
|
6
|
+
*
|
|
7
|
+
* See [SMS Rate Limits](/guides/messages/rate-limits) for details.
|
|
8
|
+
*/
|
|
9
|
+
DlcCampaignWithExtendedBrandAndStatus.MnoBrandTier = {
|
|
10
|
+
Top: "TOP",
|
|
11
|
+
HighMid: "HIGH_MID",
|
|
12
|
+
LowMid: "LOW_MID",
|
|
13
|
+
Low: "LOW",
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The MNO TCR message class for AT&T, Verizon, and other carriers. Classes `A`-`G` are standard (based on vetting score), while `T`, `N`, and `S` are for special use cases.
|
|
17
|
+
*
|
|
18
|
+
* See [SMS Rate Limits](/guides/messages/rate-limits) for details.
|
|
19
|
+
*/
|
|
20
|
+
DlcCampaignWithExtendedBrandAndStatus.MnoTcrTier = {
|
|
21
|
+
A: "A",
|
|
22
|
+
B: "B",
|
|
23
|
+
C: "C",
|
|
24
|
+
D: "D",
|
|
25
|
+
E: "E",
|
|
26
|
+
F: "F",
|
|
27
|
+
G: "G",
|
|
28
|
+
N: "N",
|
|
29
|
+
T: "T",
|
|
30
|
+
S: "S",
|
|
31
|
+
};
|
|
32
|
+
})(DlcCampaignWithExtendedBrandAndStatus || (DlcCampaignWithExtendedBrandAndStatus = {}));
|
|
@@ -2,22 +2,36 @@
|
|
|
2
2
|
* Define when and how your message should be sent.
|
|
3
3
|
*/
|
|
4
4
|
export interface MessageSchedule {
|
|
5
|
-
/** Date and time when you want recurring messages to stop in ISO 8601 format. */
|
|
6
|
-
endDate?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Provide an AWS cron expression to control the when messages are sent. <br>
|
|
9
|
-
*
|
|
10
|
-
* [Learn more about cron expressions](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-scheduled-rule-pattern.html).
|
|
11
|
-
*/
|
|
12
|
-
recurrence?: string;
|
|
13
5
|
/**
|
|
14
6
|
* The date and time you want your message to be sent.
|
|
15
|
-
* - Use [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), for example: `2024-12-17T14:30:00Z`.
|
|
7
|
+
* - Use [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), for example: `2024-12-17T14:30:00Z`. Format: `YYYY-MM-DDThh:mm` (e.g., `2024-12-25T14:30`).
|
|
16
8
|
* - This time must be at least 5 minutes in the future.
|
|
17
9
|
* - The message will be scheduled based on the `timezone` you provide.
|
|
18
10
|
* - If you set a `recurrence` schedule, this is the start date and time for the recurring schedule.
|
|
19
11
|
*/
|
|
20
12
|
sendAt: string;
|
|
21
|
-
/**
|
|
22
|
-
|
|
13
|
+
/**
|
|
14
|
+
* AWS cron expression for recurring schedules (6 fields). <br>
|
|
15
|
+
*
|
|
16
|
+
* [Learn more about cron expressions](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-scheduled-rule-pattern.html). <br>
|
|
17
|
+
*
|
|
18
|
+
* **Examples:**
|
|
19
|
+
* - `0 10 * * ? *` - Every day at 10:00 AM
|
|
20
|
+
* - `0/30 * * * ? *` - Every 30 minutes
|
|
21
|
+
* - `0 9 ? * MON-FRI *` - Every weekday at 9:00 AM
|
|
22
|
+
* - `0 12 1 * ? *` - First day of every month at noon
|
|
23
|
+
*/
|
|
24
|
+
recurrence?: string;
|
|
25
|
+
/**
|
|
26
|
+
* IANA timezone identifier (e.g., `America/New_York`, `UTC`). <br>
|
|
27
|
+
*
|
|
28
|
+
* Defaults to `UTC` if not specified.
|
|
29
|
+
*/
|
|
30
|
+
timezone?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Date and time when recurring messages should stop. <br>
|
|
33
|
+
*
|
|
34
|
+
* Format: `YYYY-MM-DDThh:mm`. Required if `recurrence` is set.
|
|
35
|
+
*/
|
|
36
|
+
endDate?: string;
|
|
23
37
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response returned when a blast is scheduled for future delivery.
|
|
3
|
+
*/
|
|
4
|
+
export interface ScheduledBlastDetails {
|
|
5
|
+
/** Unique identifier for the scheduled blast. This identifier is a string that always begins with the prefix `msg_sched_`, for example: `msg_sched_xxxxx`. */
|
|
6
|
+
scheduleId: string;
|
|
7
|
+
/** The schedule configuration for the blast. */
|
|
8
|
+
config: ScheduledBlastDetails.Config;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace ScheduledBlastDetails {
|
|
11
|
+
/**
|
|
12
|
+
* The schedule configuration for the blast.
|
|
13
|
+
*/
|
|
14
|
+
interface Config {
|
|
15
|
+
/** When the first message will be sent. */
|
|
16
|
+
sendAt?: string;
|
|
17
|
+
/** AWS cron expression for recurring schedules. */
|
|
18
|
+
recurrence?: string;
|
|
19
|
+
/** IANA timezone identifier. */
|
|
20
|
+
timezone?: string;
|
|
21
|
+
/** When recurring schedules will stop. */
|
|
22
|
+
endDate?: string;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -8,6 +8,7 @@ export * from "./AutofillDlcCampaignResponse.mjs";
|
|
|
8
8
|
export * from "./BadRequestErrorBody.mjs";
|
|
9
9
|
export * from "./BaseRichMessage.mjs";
|
|
10
10
|
export * from "./BasicPhoneInformation.mjs";
|
|
11
|
+
export * from "./BlastDetails.mjs";
|
|
11
12
|
export * from "./BrandStatus.mjs";
|
|
12
13
|
export * from "./BrandStatusEnum.mjs";
|
|
13
14
|
export * from "./ButtonClicked.mjs";
|
|
@@ -16,7 +17,6 @@ export * from "./CampaignEnum.mjs";
|
|
|
16
17
|
export * from "./CampaignQuery.mjs";
|
|
17
18
|
export * from "./CampaignSubmissionResult.mjs";
|
|
18
19
|
export * from "./CampaignValidationResult.mjs";
|
|
19
|
-
export * from "./CancelScheduledMessageResponse.mjs";
|
|
20
20
|
export * from "./CompanyEntityTypeEnum.mjs";
|
|
21
21
|
export * from "./CompanySectorEnum.mjs";
|
|
22
22
|
export * from "./CompanyTypeEnum.mjs";
|
|
@@ -109,6 +109,8 @@ export * from "./RichMediaMessage.mjs";
|
|
|
109
109
|
export * from "./RichMessage.mjs";
|
|
110
110
|
export * from "./RichText.mjs";
|
|
111
111
|
export * from "./RichTextMessage.mjs";
|
|
112
|
+
export * from "./ScheduleCancelResult.mjs";
|
|
113
|
+
export * from "./ScheduledBlastDetails.mjs";
|
|
112
114
|
export * from "./ScheduledMessage.mjs";
|
|
113
115
|
export * from "./Sender.mjs";
|
|
114
116
|
export * from "./SendRichMessageOptions.mjs";
|
|
@@ -8,6 +8,7 @@ export * from "./AutofillDlcCampaignResponse.mjs";
|
|
|
8
8
|
export * from "./BadRequestErrorBody.mjs";
|
|
9
9
|
export * from "./BaseRichMessage.mjs";
|
|
10
10
|
export * from "./BasicPhoneInformation.mjs";
|
|
11
|
+
export * from "./BlastDetails.mjs";
|
|
11
12
|
export * from "./BrandStatus.mjs";
|
|
12
13
|
export * from "./BrandStatusEnum.mjs";
|
|
13
14
|
export * from "./ButtonClicked.mjs";
|
|
@@ -16,7 +17,6 @@ export * from "./CampaignEnum.mjs";
|
|
|
16
17
|
export * from "./CampaignQuery.mjs";
|
|
17
18
|
export * from "./CampaignSubmissionResult.mjs";
|
|
18
19
|
export * from "./CampaignValidationResult.mjs";
|
|
19
|
-
export * from "./CancelScheduledMessageResponse.mjs";
|
|
20
20
|
export * from "./CompanyEntityTypeEnum.mjs";
|
|
21
21
|
export * from "./CompanySectorEnum.mjs";
|
|
22
22
|
export * from "./CompanyTypeEnum.mjs";
|
|
@@ -109,6 +109,8 @@ export * from "./RichMediaMessage.mjs";
|
|
|
109
109
|
export * from "./RichMessage.mjs";
|
|
110
110
|
export * from "./RichText.mjs";
|
|
111
111
|
export * from "./RichTextMessage.mjs";
|
|
112
|
+
export * from "./ScheduleCancelResult.mjs";
|
|
113
|
+
export * from "./ScheduledBlastDetails.mjs";
|
|
112
114
|
export * from "./ScheduledMessage.mjs";
|
|
113
115
|
export * from "./Sender.mjs";
|
|
114
116
|
export * from "./SendRichMessageOptions.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.8";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "2.0.
|
|
1
|
+
export const SDK_VERSION = "2.0.8";
|