rcs-js 1.0.1 → 1.0.3
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/Client.d.ts +5 -2
- package/Client.js +9 -6
- package/api/types/Call.d.ts +2 -0
- package/api/types/Event.d.ts +2 -0
- package/api/types/Postback.d.ts +3 -1
- package/api/types/SendRequest.d.ts +1 -1
- package/api/types/ShareLocation.d.ts +2 -0
- package/api/types/Url.d.ts +2 -0
- package/api/types/ViewLocation.d.ts +3 -1
- package/dist/Client.d.ts +5 -2
- package/dist/Client.js +9 -6
- package/dist/api/types/Call.d.ts +2 -0
- package/dist/api/types/Event.d.ts +2 -0
- package/dist/api/types/Postback.d.ts +3 -1
- package/dist/api/types/SendRequest.d.ts +1 -1
- package/dist/api/types/ShareLocation.d.ts +2 -0
- package/dist/api/types/Url.d.ts +2 -0
- package/dist/api/types/ViewLocation.d.ts +3 -1
- package/dist/serialization/types/Call.d.ts +1 -0
- package/dist/serialization/types/Call.js +1 -0
- package/dist/serialization/types/Event.d.ts +1 -0
- package/dist/serialization/types/Event.js +1 -0
- package/dist/serialization/types/Postback.d.ts +1 -0
- package/dist/serialization/types/Postback.js +1 -0
- package/dist/serialization/types/SendRequest.d.ts +2 -2
- package/dist/serialization/types/SendRequest.js +2 -2
- package/dist/serialization/types/ShareLocation.d.ts +1 -0
- package/dist/serialization/types/ShareLocation.js +1 -0
- package/dist/serialization/types/Url.d.ts +1 -0
- package/dist/serialization/types/Url.js +1 -0
- package/dist/serialization/types/ViewLocation.d.ts +2 -1
- package/dist/serialization/types/ViewLocation.js +2 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +7 -2
- package/serialization/types/Call.d.ts +1 -0
- package/serialization/types/Call.js +1 -0
- package/serialization/types/Event.d.ts +1 -0
- package/serialization/types/Event.js +1 -0
- package/serialization/types/Postback.d.ts +1 -0
- package/serialization/types/Postback.js +1 -0
- package/serialization/types/SendRequest.d.ts +2 -2
- package/serialization/types/SendRequest.js +2 -2
- package/serialization/types/ShareLocation.d.ts +1 -0
- package/serialization/types/ShareLocation.js +1 -0
- package/serialization/types/Url.d.ts +1 -0
- package/serialization/types/Url.js +1 -0
- package/serialization/types/ViewLocation.d.ts +2 -1
- package/serialization/types/ViewLocation.js +2 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/Client.d.ts
CHANGED
|
@@ -77,9 +77,12 @@ export declare class PinnacleClient {
|
|
|
77
77
|
*
|
|
78
78
|
* @example
|
|
79
79
|
* await client.send({
|
|
80
|
-
* messageType: "
|
|
80
|
+
* messageType: "card",
|
|
81
81
|
* message: {
|
|
82
|
-
*
|
|
82
|
+
* cards: [{
|
|
83
|
+
* title: "title",
|
|
84
|
+
* imageUrl: "image_url"
|
|
85
|
+
* }]
|
|
83
86
|
* }
|
|
84
87
|
* })
|
|
85
88
|
*/
|
package/Client.js
CHANGED
|
@@ -73,7 +73,7 @@ class PinnacleClient {
|
|
|
73
73
|
const _response = yield core.fetcher({
|
|
74
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "check_rcs"),
|
|
75
75
|
method: "GET",
|
|
76
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
76
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.3", "User-Agent": "rcs-js/1.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
queryParameters: _queryParams,
|
|
79
79
|
requestType: "json",
|
|
@@ -155,7 +155,7 @@ class PinnacleClient {
|
|
|
155
155
|
const _response = yield core.fetcher({
|
|
156
156
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "update_settings"),
|
|
157
157
|
method: "POST",
|
|
158
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
158
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.3", "User-Agent": "rcs-js/1.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
159
159
|
contentType: "application/json",
|
|
160
160
|
requestType: "json",
|
|
161
161
|
body: serializers.UpdateSettingsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -233,7 +233,7 @@ class PinnacleClient {
|
|
|
233
233
|
const _response = yield core.fetcher({
|
|
234
234
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "get_account_number"),
|
|
235
235
|
method: "GET",
|
|
236
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
236
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.3", "User-Agent": "rcs-js/1.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
237
237
|
contentType: "application/json",
|
|
238
238
|
requestType: "json",
|
|
239
239
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -298,9 +298,12 @@ class PinnacleClient {
|
|
|
298
298
|
*
|
|
299
299
|
* @example
|
|
300
300
|
* await client.send({
|
|
301
|
-
* messageType: "
|
|
301
|
+
* messageType: "card",
|
|
302
302
|
* message: {
|
|
303
|
-
*
|
|
303
|
+
* cards: [{
|
|
304
|
+
* title: "title",
|
|
305
|
+
* imageUrl: "image_url"
|
|
306
|
+
* }]
|
|
304
307
|
* }
|
|
305
308
|
* })
|
|
306
309
|
*/
|
|
@@ -310,7 +313,7 @@ class PinnacleClient {
|
|
|
310
313
|
const _response = yield core.fetcher({
|
|
311
314
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "send"),
|
|
312
315
|
method: "POST",
|
|
313
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
316
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.3", "User-Agent": "rcs-js/1.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
314
317
|
contentType: "application/json",
|
|
315
318
|
requestType: "json",
|
|
316
319
|
body: serializers.SendRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
package/api/types/Call.d.ts
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
export interface Call {
|
|
5
5
|
/** The type of action being sent */
|
|
6
6
|
actionType: "call";
|
|
7
|
+
/** The title for the call action. Maximum length is 25 characters. */
|
|
8
|
+
title: string;
|
|
7
9
|
/** The number to call in E. 164 format. Maximum length is 1000 characters. */
|
|
8
10
|
payload: string;
|
|
9
11
|
}
|
package/api/types/Event.d.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface Event {
|
|
5
|
+
/** The title for the event action. Maximum length is 25 characters. */
|
|
6
|
+
title: string;
|
|
5
7
|
/** The type of message being sent */
|
|
6
8
|
actionType: "calendar";
|
|
7
9
|
/** The start time for the event. */
|
package/api/types/Postback.d.ts
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
export interface Postback {
|
|
5
5
|
/** The type of action being sent */
|
|
6
6
|
actionType: "postback";
|
|
7
|
+
/** The title for the postback acti9on. Maximum length is 25 characters. */
|
|
8
|
+
title: string;
|
|
7
9
|
/** The postback payload. Maximum length is 1000 characters. */
|
|
8
10
|
payload: string;
|
|
9
|
-
/** The action to execute. Optional additional data sent when the
|
|
11
|
+
/** The action to execute. Optional additional data sent when the action is tapped. */
|
|
10
12
|
execute?: string;
|
|
11
13
|
}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Pinnacle from "../index";
|
|
5
|
-
export declare type SendRequest = Pinnacle.
|
|
5
|
+
export declare type SendRequest = Pinnacle.CardRcs | Pinnacle.Sms | Pinnacle.BasicRcs | Pinnacle.MediaRcs | Pinnacle.CarouselRcs;
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface ShareLocation {
|
|
5
|
+
/** The title for the share location action. Maximum length is 25 characters. */
|
|
6
|
+
title: string;
|
|
5
7
|
/** The type of action being sent */
|
|
6
8
|
actionType: "share_location";
|
|
7
9
|
}
|
package/api/types/Url.d.ts
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Pinnacle from "../index";
|
|
5
5
|
export interface ViewLocation {
|
|
6
|
+
/** The title for the view location action. Maximum length is 25 characters. */
|
|
7
|
+
title?: string;
|
|
6
8
|
/** The type of action being sent */
|
|
7
9
|
actionType: "view_location";
|
|
8
10
|
latLng: Pinnacle.LatLng;
|
|
9
11
|
/** The name of the location */
|
|
10
|
-
label
|
|
12
|
+
label: string;
|
|
11
13
|
}
|
package/dist/Client.d.ts
CHANGED
|
@@ -77,9 +77,12 @@ export declare class PinnacleClient {
|
|
|
77
77
|
*
|
|
78
78
|
* @example
|
|
79
79
|
* await client.send({
|
|
80
|
-
* messageType: "
|
|
80
|
+
* messageType: "card",
|
|
81
81
|
* message: {
|
|
82
|
-
*
|
|
82
|
+
* cards: [{
|
|
83
|
+
* title: "title",
|
|
84
|
+
* imageUrl: "image_url"
|
|
85
|
+
* }]
|
|
83
86
|
* }
|
|
84
87
|
* })
|
|
85
88
|
*/
|
package/dist/Client.js
CHANGED
|
@@ -73,7 +73,7 @@ class PinnacleClient {
|
|
|
73
73
|
const _response = yield core.fetcher({
|
|
74
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "check_rcs"),
|
|
75
75
|
method: "GET",
|
|
76
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
76
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.3", "User-Agent": "rcs-js/1.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
queryParameters: _queryParams,
|
|
79
79
|
requestType: "json",
|
|
@@ -155,7 +155,7 @@ class PinnacleClient {
|
|
|
155
155
|
const _response = yield core.fetcher({
|
|
156
156
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "update_settings"),
|
|
157
157
|
method: "POST",
|
|
158
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
158
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.3", "User-Agent": "rcs-js/1.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
159
159
|
contentType: "application/json",
|
|
160
160
|
requestType: "json",
|
|
161
161
|
body: serializers.UpdateSettingsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -233,7 +233,7 @@ class PinnacleClient {
|
|
|
233
233
|
const _response = yield core.fetcher({
|
|
234
234
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "get_account_number"),
|
|
235
235
|
method: "GET",
|
|
236
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
236
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.3", "User-Agent": "rcs-js/1.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
237
237
|
contentType: "application/json",
|
|
238
238
|
requestType: "json",
|
|
239
239
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -298,9 +298,12 @@ class PinnacleClient {
|
|
|
298
298
|
*
|
|
299
299
|
* @example
|
|
300
300
|
* await client.send({
|
|
301
|
-
* messageType: "
|
|
301
|
+
* messageType: "card",
|
|
302
302
|
* message: {
|
|
303
|
-
*
|
|
303
|
+
* cards: [{
|
|
304
|
+
* title: "title",
|
|
305
|
+
* imageUrl: "image_url"
|
|
306
|
+
* }]
|
|
304
307
|
* }
|
|
305
308
|
* })
|
|
306
309
|
*/
|
|
@@ -310,7 +313,7 @@ class PinnacleClient {
|
|
|
310
313
|
const _response = yield core.fetcher({
|
|
311
314
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "send"),
|
|
312
315
|
method: "POST",
|
|
313
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
316
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.3", "User-Agent": "rcs-js/1.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
314
317
|
contentType: "application/json",
|
|
315
318
|
requestType: "json",
|
|
316
319
|
body: serializers.SendRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
package/dist/api/types/Call.d.ts
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
export interface Call {
|
|
5
5
|
/** The type of action being sent */
|
|
6
6
|
actionType: "call";
|
|
7
|
+
/** The title for the call action. Maximum length is 25 characters. */
|
|
8
|
+
title: string;
|
|
7
9
|
/** The number to call in E. 164 format. Maximum length is 1000 characters. */
|
|
8
10
|
payload: string;
|
|
9
11
|
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface Event {
|
|
5
|
+
/** The title for the event action. Maximum length is 25 characters. */
|
|
6
|
+
title: string;
|
|
5
7
|
/** The type of message being sent */
|
|
6
8
|
actionType: "calendar";
|
|
7
9
|
/** The start time for the event. */
|
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
export interface Postback {
|
|
5
5
|
/** The type of action being sent */
|
|
6
6
|
actionType: "postback";
|
|
7
|
+
/** The title for the postback acti9on. Maximum length is 25 characters. */
|
|
8
|
+
title: string;
|
|
7
9
|
/** The postback payload. Maximum length is 1000 characters. */
|
|
8
10
|
payload: string;
|
|
9
|
-
/** The action to execute. Optional additional data sent when the
|
|
11
|
+
/** The action to execute. Optional additional data sent when the action is tapped. */
|
|
10
12
|
execute?: string;
|
|
11
13
|
}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Pinnacle from "../index";
|
|
5
|
-
export declare type SendRequest = Pinnacle.
|
|
5
|
+
export declare type SendRequest = Pinnacle.CardRcs | Pinnacle.Sms | Pinnacle.BasicRcs | Pinnacle.MediaRcs | Pinnacle.CarouselRcs;
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface ShareLocation {
|
|
5
|
+
/** The title for the share location action. Maximum length is 25 characters. */
|
|
6
|
+
title: string;
|
|
5
7
|
/** The type of action being sent */
|
|
6
8
|
actionType: "share_location";
|
|
7
9
|
}
|
package/dist/api/types/Url.d.ts
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Pinnacle from "../index";
|
|
5
5
|
export interface ViewLocation {
|
|
6
|
+
/** The title for the view location action. Maximum length is 25 characters. */
|
|
7
|
+
title?: string;
|
|
6
8
|
/** The type of action being sent */
|
|
7
9
|
actionType: "view_location";
|
|
8
10
|
latLng: Pinnacle.LatLng;
|
|
9
11
|
/** The name of the location */
|
|
10
|
-
label
|
|
12
|
+
label: string;
|
|
11
13
|
}
|
|
@@ -30,5 +30,6 @@ exports.Call = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.Call = core.serialization.object({
|
|
32
32
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("call")),
|
|
33
|
+
title: core.serialization.string(),
|
|
33
34
|
payload: core.serialization.string(),
|
|
34
35
|
});
|
|
@@ -7,6 +7,7 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const Event: core.serialization.ObjectSchema<serializers.Event.Raw, Pinnacle.Event>;
|
|
8
8
|
export declare namespace Event {
|
|
9
9
|
interface Raw {
|
|
10
|
+
title: string;
|
|
10
11
|
action_type: "calendar";
|
|
11
12
|
start_time: string;
|
|
12
13
|
end_time: string;
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Event = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.Event = core.serialization.object({
|
|
32
|
+
title: core.serialization.string(),
|
|
32
33
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("calendar")),
|
|
33
34
|
startTime: core.serialization.property("start_time", core.serialization.date()),
|
|
34
35
|
endTime: core.serialization.property("end_time", core.serialization.date()),
|
|
@@ -30,6 +30,7 @@ exports.Postback = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.Postback = core.serialization.object({
|
|
32
32
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("postback")),
|
|
33
|
+
title: core.serialization.string(),
|
|
33
34
|
payload: core.serialization.string(),
|
|
34
35
|
execute: core.serialization.string().optional(),
|
|
35
36
|
});
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Pinnacle from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { CardRcs } from "./CardRcs";
|
|
7
8
|
import { Sms } from "./Sms";
|
|
8
9
|
import { BasicRcs } from "./BasicRcs";
|
|
9
10
|
import { MediaRcs } from "./MediaRcs";
|
|
10
|
-
import { CardRcs } from "./CardRcs";
|
|
11
11
|
import { CarouselRcs } from "./CarouselRcs";
|
|
12
12
|
export declare const SendRequest: core.serialization.Schema<serializers.SendRequest.Raw, Pinnacle.SendRequest>;
|
|
13
13
|
export declare namespace SendRequest {
|
|
14
|
-
type Raw =
|
|
14
|
+
type Raw = CardRcs.Raw | Sms.Raw | BasicRcs.Raw | MediaRcs.Raw | CarouselRcs.Raw;
|
|
15
15
|
}
|
|
@@ -28,9 +28,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.SendRequest = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
+
const CardRcs_1 = require("./CardRcs");
|
|
31
32
|
const Sms_1 = require("./Sms");
|
|
32
33
|
const BasicRcs_1 = require("./BasicRcs");
|
|
33
34
|
const MediaRcs_1 = require("./MediaRcs");
|
|
34
|
-
const CardRcs_1 = require("./CardRcs");
|
|
35
35
|
const CarouselRcs_1 = require("./CarouselRcs");
|
|
36
|
-
exports.SendRequest = core.serialization.undiscriminatedUnion([Sms_1.Sms, BasicRcs_1.BasicRcs, MediaRcs_1.MediaRcs,
|
|
36
|
+
exports.SendRequest = core.serialization.undiscriminatedUnion([CardRcs_1.CardRcs, Sms_1.Sms, BasicRcs_1.BasicRcs, MediaRcs_1.MediaRcs, CarouselRcs_1.CarouselRcs]);
|
|
@@ -7,6 +7,7 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const ShareLocation: core.serialization.ObjectSchema<serializers.ShareLocation.Raw, Pinnacle.ShareLocation>;
|
|
8
8
|
export declare namespace ShareLocation {
|
|
9
9
|
interface Raw {
|
|
10
|
+
title: string;
|
|
10
11
|
action_type: "share_location";
|
|
11
12
|
}
|
|
12
13
|
}
|
|
@@ -29,5 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.ShareLocation = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.ShareLocation = core.serialization.object({
|
|
32
|
+
title: core.serialization.string(),
|
|
32
33
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("share_location")),
|
|
33
34
|
});
|
|
@@ -30,5 +30,6 @@ exports.Url = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.Url = core.serialization.object({
|
|
32
32
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("weburl")),
|
|
33
|
+
title: core.serialization.string(),
|
|
33
34
|
payload: core.serialization.string(),
|
|
34
35
|
});
|
|
@@ -8,8 +8,9 @@ import { LatLng } from "./LatLng";
|
|
|
8
8
|
export declare const ViewLocation: core.serialization.ObjectSchema<serializers.ViewLocation.Raw, Pinnacle.ViewLocation>;
|
|
9
9
|
export declare namespace ViewLocation {
|
|
10
10
|
interface Raw {
|
|
11
|
+
title?: string | null;
|
|
11
12
|
action_type: "view_location";
|
|
12
13
|
lat_lng: LatLng.Raw;
|
|
13
|
-
label
|
|
14
|
+
label: string;
|
|
14
15
|
}
|
|
15
16
|
}
|
|
@@ -30,7 +30,8 @@ exports.ViewLocation = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const LatLng_1 = require("./LatLng");
|
|
32
32
|
exports.ViewLocation = core.serialization.object({
|
|
33
|
+
title: core.serialization.string().optional(),
|
|
33
34
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("view_location")),
|
|
34
35
|
latLng: core.serialization.property("lat_lng", LatLng_1.LatLng),
|
|
35
|
-
label: core.serialization.string()
|
|
36
|
+
label: core.serialization.string(),
|
|
36
37
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.3";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -29,9 +29,14 @@ Send a SMS or RCS message to a phone number
|
|
|
29
29
|
|
|
30
30
|
```typescript
|
|
31
31
|
await client.send({
|
|
32
|
-
messageType: "
|
|
32
|
+
messageType: "card",
|
|
33
33
|
message: {
|
|
34
|
-
|
|
34
|
+
cards: [
|
|
35
|
+
{
|
|
36
|
+
title: "title",
|
|
37
|
+
imageUrl: "image_url",
|
|
38
|
+
},
|
|
39
|
+
],
|
|
35
40
|
},
|
|
36
41
|
});
|
|
37
42
|
```
|
|
@@ -30,5 +30,6 @@ exports.Call = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.Call = core.serialization.object({
|
|
32
32
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("call")),
|
|
33
|
+
title: core.serialization.string(),
|
|
33
34
|
payload: core.serialization.string(),
|
|
34
35
|
});
|
|
@@ -7,6 +7,7 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const Event: core.serialization.ObjectSchema<serializers.Event.Raw, Pinnacle.Event>;
|
|
8
8
|
export declare namespace Event {
|
|
9
9
|
interface Raw {
|
|
10
|
+
title: string;
|
|
10
11
|
action_type: "calendar";
|
|
11
12
|
start_time: string;
|
|
12
13
|
end_time: string;
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Event = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.Event = core.serialization.object({
|
|
32
|
+
title: core.serialization.string(),
|
|
32
33
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("calendar")),
|
|
33
34
|
startTime: core.serialization.property("start_time", core.serialization.date()),
|
|
34
35
|
endTime: core.serialization.property("end_time", core.serialization.date()),
|
|
@@ -30,6 +30,7 @@ exports.Postback = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.Postback = core.serialization.object({
|
|
32
32
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("postback")),
|
|
33
|
+
title: core.serialization.string(),
|
|
33
34
|
payload: core.serialization.string(),
|
|
34
35
|
execute: core.serialization.string().optional(),
|
|
35
36
|
});
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Pinnacle from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { CardRcs } from "./CardRcs";
|
|
7
8
|
import { Sms } from "./Sms";
|
|
8
9
|
import { BasicRcs } from "./BasicRcs";
|
|
9
10
|
import { MediaRcs } from "./MediaRcs";
|
|
10
|
-
import { CardRcs } from "./CardRcs";
|
|
11
11
|
import { CarouselRcs } from "./CarouselRcs";
|
|
12
12
|
export declare const SendRequest: core.serialization.Schema<serializers.SendRequest.Raw, Pinnacle.SendRequest>;
|
|
13
13
|
export declare namespace SendRequest {
|
|
14
|
-
type Raw =
|
|
14
|
+
type Raw = CardRcs.Raw | Sms.Raw | BasicRcs.Raw | MediaRcs.Raw | CarouselRcs.Raw;
|
|
15
15
|
}
|
|
@@ -28,9 +28,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.SendRequest = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
+
const CardRcs_1 = require("./CardRcs");
|
|
31
32
|
const Sms_1 = require("./Sms");
|
|
32
33
|
const BasicRcs_1 = require("./BasicRcs");
|
|
33
34
|
const MediaRcs_1 = require("./MediaRcs");
|
|
34
|
-
const CardRcs_1 = require("./CardRcs");
|
|
35
35
|
const CarouselRcs_1 = require("./CarouselRcs");
|
|
36
|
-
exports.SendRequest = core.serialization.undiscriminatedUnion([Sms_1.Sms, BasicRcs_1.BasicRcs, MediaRcs_1.MediaRcs,
|
|
36
|
+
exports.SendRequest = core.serialization.undiscriminatedUnion([CardRcs_1.CardRcs, Sms_1.Sms, BasicRcs_1.BasicRcs, MediaRcs_1.MediaRcs, CarouselRcs_1.CarouselRcs]);
|
|
@@ -7,6 +7,7 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const ShareLocation: core.serialization.ObjectSchema<serializers.ShareLocation.Raw, Pinnacle.ShareLocation>;
|
|
8
8
|
export declare namespace ShareLocation {
|
|
9
9
|
interface Raw {
|
|
10
|
+
title: string;
|
|
10
11
|
action_type: "share_location";
|
|
11
12
|
}
|
|
12
13
|
}
|
|
@@ -29,5 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.ShareLocation = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.ShareLocation = core.serialization.object({
|
|
32
|
+
title: core.serialization.string(),
|
|
32
33
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("share_location")),
|
|
33
34
|
});
|
|
@@ -30,5 +30,6 @@ exports.Url = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.Url = core.serialization.object({
|
|
32
32
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("weburl")),
|
|
33
|
+
title: core.serialization.string(),
|
|
33
34
|
payload: core.serialization.string(),
|
|
34
35
|
});
|
|
@@ -8,8 +8,9 @@ import { LatLng } from "./LatLng";
|
|
|
8
8
|
export declare const ViewLocation: core.serialization.ObjectSchema<serializers.ViewLocation.Raw, Pinnacle.ViewLocation>;
|
|
9
9
|
export declare namespace ViewLocation {
|
|
10
10
|
interface Raw {
|
|
11
|
+
title?: string | null;
|
|
11
12
|
action_type: "view_location";
|
|
12
13
|
lat_lng: LatLng.Raw;
|
|
13
|
-
label
|
|
14
|
+
label: string;
|
|
14
15
|
}
|
|
15
16
|
}
|
|
@@ -30,7 +30,8 @@ exports.ViewLocation = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const LatLng_1 = require("./LatLng");
|
|
32
32
|
exports.ViewLocation = core.serialization.object({
|
|
33
|
+
title: core.serialization.string().optional(),
|
|
33
34
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("view_location")),
|
|
34
35
|
latLng: core.serialization.property("lat_lng", LatLng_1.LatLng),
|
|
35
|
-
label: core.serialization.string()
|
|
36
|
+
label: core.serialization.string(),
|
|
36
37
|
});
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.3";
|
package/version.js
CHANGED