rcs-js 1.0.1 → 1.0.2
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/SendRequest.d.ts +1 -1
- package/dist/Client.d.ts +5 -2
- package/dist/Client.js +9 -6
- package/dist/api/types/SendRequest.d.ts +1 -1
- package/dist/serialization/types/SendRequest.d.ts +2 -2
- package/dist/serialization/types/SendRequest.js +2 -2
- 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/SendRequest.d.ts +2 -2
- package/serialization/types/SendRequest.js +2 -2
- 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.2", "User-Agent": "rcs-js/1.0.2", "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.2", "User-Agent": "rcs-js/1.0.2", "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.2", "User-Agent": "rcs-js/1.0.2", "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.2", "User-Agent": "rcs-js/1.0.2", "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" }),
|
|
@@ -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;
|
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.2", "User-Agent": "rcs-js/1.0.2", "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.2", "User-Agent": "rcs-js/1.0.2", "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.2", "User-Agent": "rcs-js/1.0.2", "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.2", "User-Agent": "rcs-js/1.0.2", "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" }),
|
|
@@ -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;
|
|
@@ -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]);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.2";
|
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
|
```
|
|
@@ -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]);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.2";
|
package/version.js
CHANGED