rcs-js 1.0.2 → 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.js +4 -4
- 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/ShareLocation.d.ts +2 -0
- package/api/types/Url.d.ts +2 -0
- package/api/types/ViewLocation.d.ts +3 -1
- package/dist/Client.js +4 -4
- 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/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/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/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/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.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,
|
|
@@ -313,7 +313,7 @@ class PinnacleClient {
|
|
|
313
313
|
const _response = yield core.fetcher({
|
|
314
314
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "send"),
|
|
315
315
|
method: "POST",
|
|
316
|
-
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())),
|
|
317
317
|
contentType: "application/json",
|
|
318
318
|
requestType: "json",
|
|
319
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,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.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,
|
|
@@ -313,7 +313,7 @@ class PinnacleClient {
|
|
|
313
313
|
const _response = yield core.fetcher({
|
|
314
314
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "send"),
|
|
315
315
|
method: "POST",
|
|
316
|
-
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())),
|
|
317
317
|
contentType: "application/json",
|
|
318
318
|
requestType: "json",
|
|
319
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,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
|
});
|
|
@@ -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
|
@@ -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
|
});
|
|
@@ -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