rcs-js 1.0.12 → 1.0.14
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 +1 -1
- package/api/errors/PaymentRequiredError.d.ts +7 -0
- package/api/errors/PaymentRequiredError.js +41 -0
- package/api/errors/index.d.ts +1 -0
- package/api/errors/index.js +1 -0
- package/api/resources/company/client/Client.d.ts +1 -0
- package/api/resources/company/client/Client.js +6 -3
- package/api/resources/send/client/Client.d.ts +3 -0
- package/api/resources/send/client/Client.js +12 -3
- package/api/types/Action.d.ts +1 -1
- package/api/types/ActionType.d.ts +3 -3
- package/api/types/ActionType.js +1 -1
- package/api/types/PaymentRequiredErrorBody.d.ts +6 -0
- package/api/types/PaymentRequiredErrorBody.js +5 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/Client.js +1 -1
- package/dist/api/errors/PaymentRequiredError.d.ts +7 -0
- package/dist/api/errors/PaymentRequiredError.js +41 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.js +1 -0
- package/dist/api/resources/company/client/Client.d.ts +1 -0
- package/dist/api/resources/company/client/Client.js +6 -3
- package/dist/api/resources/send/client/Client.d.ts +3 -0
- package/dist/api/resources/send/client/Client.js +12 -3
- package/dist/api/types/Action.d.ts +1 -1
- package/dist/api/types/ActionType.d.ts +3 -3
- package/dist/api/types/ActionType.js +1 -1
- package/dist/api/types/PaymentRequiredErrorBody.d.ts +6 -0
- package/dist/api/types/PaymentRequiredErrorBody.js +5 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/types/ActionType.d.ts +1 -1
- package/dist/serialization/types/ActionType.js +1 -1
- package/dist/serialization/types/PaymentRequiredErrorBody.d.ts +12 -0
- package/dist/serialization/types/PaymentRequiredErrorBody.js +33 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/types/ActionType.d.ts +1 -1
- package/serialization/types/ActionType.js +1 -1
- package/serialization/types/PaymentRequiredErrorBody.d.ts +12 -0
- package/serialization/types/PaymentRequiredErrorBody.js +33 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/Client.js
CHANGED
|
@@ -75,7 +75,7 @@ class PinnacleClient {
|
|
|
75
75
|
const _response = yield core.fetcher({
|
|
76
76
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "rcs_functionality"),
|
|
77
77
|
method: "GET",
|
|
78
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.14", "User-Agent": "rcs-js/1.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
queryParameters: _queryParams,
|
|
81
81
|
requestType: "json",
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PaymentRequiredError = void 0;
|
|
30
|
+
const errors = __importStar(require("../../errors/index"));
|
|
31
|
+
class PaymentRequiredError extends errors.PinnacleError {
|
|
32
|
+
constructor(body) {
|
|
33
|
+
super({
|
|
34
|
+
message: "PaymentRequiredError",
|
|
35
|
+
statusCode: 402,
|
|
36
|
+
body: body,
|
|
37
|
+
});
|
|
38
|
+
Object.setPrototypeOf(this, PaymentRequiredError.prototype);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.PaymentRequiredError = PaymentRequiredError;
|
package/api/errors/index.d.ts
CHANGED
package/api/errors/index.js
CHANGED
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./BadRequestError"), exports);
|
|
18
18
|
__exportStar(require("./UnauthorizedError"), exports);
|
|
19
19
|
__exportStar(require("./InternalServerError"), exports);
|
|
20
|
+
__exportStar(require("./PaymentRequiredError"), exports);
|
|
20
21
|
__exportStar(require("./ForbiddenError"), exports);
|
|
@@ -76,7 +76,7 @@ class Company {
|
|
|
76
76
|
const _response = yield core.fetcher({
|
|
77
77
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "company"),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
79
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.14", "User-Agent": "rcs-js/1.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
queryParameters: _queryParams,
|
|
82
82
|
requestType: "json",
|
|
@@ -130,6 +130,7 @@ class Company {
|
|
|
130
130
|
*
|
|
131
131
|
* @throws {@link Pinnacle.BadRequestError}
|
|
132
132
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
133
|
+
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
133
134
|
* @throws {@link Pinnacle.InternalServerError}
|
|
134
135
|
*
|
|
135
136
|
* @example
|
|
@@ -166,7 +167,7 @@ class Company {
|
|
|
166
167
|
const _response = yield core.fetcher({
|
|
167
168
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "company/register"),
|
|
168
169
|
method: "POST",
|
|
169
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
170
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.14", "User-Agent": "rcs-js/1.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
170
171
|
contentType: "application/json",
|
|
171
172
|
requestType: "json",
|
|
172
173
|
body: serializers.CompanyRegisterRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -188,6 +189,8 @@ class Company {
|
|
|
188
189
|
throw new Pinnacle.BadRequestError(_response.error.body);
|
|
189
190
|
case 401:
|
|
190
191
|
throw new Pinnacle.UnauthorizedError(_response.error.body);
|
|
192
|
+
case 402:
|
|
193
|
+
throw new Pinnacle.PaymentRequiredError(_response.error.body);
|
|
191
194
|
case 500:
|
|
192
195
|
throw new Pinnacle.InternalServerError(_response.error.body);
|
|
193
196
|
default:
|
|
@@ -233,7 +236,7 @@ class Company {
|
|
|
233
236
|
const _response = yield core.fetcher({
|
|
234
237
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "company/update"),
|
|
235
238
|
method: "POST",
|
|
236
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
239
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.14", "User-Agent": "rcs-js/1.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
237
240
|
contentType: "application/json",
|
|
238
241
|
requestType: "json",
|
|
239
242
|
body: serializers.CompanyUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -31,6 +31,7 @@ export declare class Send {
|
|
|
31
31
|
*
|
|
32
32
|
* @throws {@link Pinnacle.BadRequestError}
|
|
33
33
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
34
|
+
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
34
35
|
* @throws {@link Pinnacle.ForbiddenError}
|
|
35
36
|
* @throws {@link Pinnacle.InternalServerError}
|
|
36
37
|
*
|
|
@@ -49,6 +50,7 @@ export declare class Send {
|
|
|
49
50
|
*
|
|
50
51
|
* @throws {@link Pinnacle.BadRequestError}
|
|
51
52
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
53
|
+
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
52
54
|
* @throws {@link Pinnacle.ForbiddenError}
|
|
53
55
|
* @throws {@link Pinnacle.InternalServerError}
|
|
54
56
|
*
|
|
@@ -68,6 +70,7 @@ export declare class Send {
|
|
|
68
70
|
*
|
|
69
71
|
* @throws {@link Pinnacle.BadRequestError}
|
|
70
72
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
73
|
+
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
71
74
|
* @throws {@link Pinnacle.ForbiddenError}
|
|
72
75
|
* @throws {@link Pinnacle.InternalServerError}
|
|
73
76
|
*
|
|
@@ -59,6 +59,7 @@ class Send {
|
|
|
59
59
|
*
|
|
60
60
|
* @throws {@link Pinnacle.BadRequestError}
|
|
61
61
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
62
|
+
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
62
63
|
* @throws {@link Pinnacle.ForbiddenError}
|
|
63
64
|
* @throws {@link Pinnacle.InternalServerError}
|
|
64
65
|
*
|
|
@@ -74,7 +75,7 @@ class Send {
|
|
|
74
75
|
const _response = yield core.fetcher({
|
|
75
76
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "send/rcs"),
|
|
76
77
|
method: "POST",
|
|
77
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.14", "User-Agent": "rcs-js/1.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
78
79
|
contentType: "application/json",
|
|
79
80
|
requestType: "json",
|
|
80
81
|
body: serializers.Rcs.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -96,6 +97,8 @@ class Send {
|
|
|
96
97
|
throw new Pinnacle.BadRequestError(_response.error.body);
|
|
97
98
|
case 401:
|
|
98
99
|
throw new Pinnacle.UnauthorizedError(_response.error.body);
|
|
100
|
+
case 402:
|
|
101
|
+
throw new Pinnacle.PaymentRequiredError(_response.error.body);
|
|
99
102
|
case 403:
|
|
100
103
|
throw new Pinnacle.ForbiddenError(_response.error.body);
|
|
101
104
|
case 500:
|
|
@@ -130,6 +133,7 @@ class Send {
|
|
|
130
133
|
*
|
|
131
134
|
* @throws {@link Pinnacle.BadRequestError}
|
|
132
135
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
136
|
+
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
133
137
|
* @throws {@link Pinnacle.ForbiddenError}
|
|
134
138
|
* @throws {@link Pinnacle.InternalServerError}
|
|
135
139
|
*
|
|
@@ -146,7 +150,7 @@ class Send {
|
|
|
146
150
|
const _response = yield core.fetcher({
|
|
147
151
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "send/sms"),
|
|
148
152
|
method: "POST",
|
|
149
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
153
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.14", "User-Agent": "rcs-js/1.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
150
154
|
contentType: "application/json",
|
|
151
155
|
requestType: "json",
|
|
152
156
|
body: serializers.SendSmsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -168,6 +172,8 @@ class Send {
|
|
|
168
172
|
throw new Pinnacle.BadRequestError(_response.error.body);
|
|
169
173
|
case 401:
|
|
170
174
|
throw new Pinnacle.UnauthorizedError(_response.error.body);
|
|
175
|
+
case 402:
|
|
176
|
+
throw new Pinnacle.PaymentRequiredError(_response.error.body);
|
|
171
177
|
case 403:
|
|
172
178
|
throw new Pinnacle.ForbiddenError(_response.error.body);
|
|
173
179
|
case 500:
|
|
@@ -202,6 +208,7 @@ class Send {
|
|
|
202
208
|
*
|
|
203
209
|
* @throws {@link Pinnacle.BadRequestError}
|
|
204
210
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
211
|
+
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
205
212
|
* @throws {@link Pinnacle.ForbiddenError}
|
|
206
213
|
* @throws {@link Pinnacle.InternalServerError}
|
|
207
214
|
*
|
|
@@ -218,7 +225,7 @@ class Send {
|
|
|
218
225
|
const _response = yield core.fetcher({
|
|
219
226
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "send/mms"),
|
|
220
227
|
method: "POST",
|
|
221
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
228
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.14", "User-Agent": "rcs-js/1.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
222
229
|
contentType: "application/json",
|
|
223
230
|
requestType: "json",
|
|
224
231
|
body: serializers.SendMmsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -240,6 +247,8 @@ class Send {
|
|
|
240
247
|
throw new Pinnacle.BadRequestError(_response.error.body);
|
|
241
248
|
case 401:
|
|
242
249
|
throw new Pinnacle.UnauthorizedError(_response.error.body);
|
|
250
|
+
case 402:
|
|
251
|
+
throw new Pinnacle.PaymentRequiredError(_response.error.body);
|
|
243
252
|
case 403:
|
|
244
253
|
throw new Pinnacle.ForbiddenError(_response.error.body);
|
|
245
254
|
case 500:
|
package/api/types/Action.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as Pinnacle from "../index";
|
|
|
5
5
|
export interface Action {
|
|
6
6
|
/** Title of the action (must be less than 25 characters). */
|
|
7
7
|
title?: string;
|
|
8
|
-
/** Type of action for the button. 'openUrl' opens a URL, 'call' dials a phone number, 'trigger' sends the predefined payload to the webhook when pressed, '
|
|
8
|
+
/** Type of action for the button. 'openUrl' opens a URL, 'call' dials a phone number, 'trigger' sends the predefined payload to the webhook when pressed, 'requestUserLocation' requests the user's location, 'scheduleEvent' creates a calendar event, 'sendLocation' sends a location. */
|
|
9
9
|
type?: Pinnacle.ActionType;
|
|
10
10
|
/** Optional payload associated with the action. This payload encodes the respective fields for the action type and is required. For 'openUrl', the payload is the URL to open. For 'call', the payload is the phone number to dial. For 'trigger', the payload is the predefined payload to send to the webhook. */
|
|
11
11
|
payload?: string;
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* Type of action for the button. 'openUrl' opens a URL, 'call' dials a phone number, 'trigger' sends the predefined payload to the webhook when pressed, '
|
|
5
|
+
* Type of action for the button. 'openUrl' opens a URL, 'call' dials a phone number, 'trigger' sends the predefined payload to the webhook when pressed, 'requestUserLocation' requests the user's location, 'scheduleEvent' creates a calendar event, 'sendLocation' sends a location.
|
|
6
6
|
*/
|
|
7
|
-
export declare type ActionType = "openUrl" | "call" | "trigger" | "
|
|
7
|
+
export declare type ActionType = "openUrl" | "call" | "trigger" | "requestUserLocation" | "scheduleEvent" | "sendLocation";
|
|
8
8
|
export declare const ActionType: {
|
|
9
9
|
readonly OpenUrl: "openUrl";
|
|
10
10
|
readonly Call: "call";
|
|
11
11
|
readonly Trigger: "trigger";
|
|
12
|
-
readonly
|
|
12
|
+
readonly RequestUserLocation: "requestUserLocation";
|
|
13
13
|
readonly ScheduleEvent: "scheduleEvent";
|
|
14
14
|
readonly SendLocation: "sendLocation";
|
|
15
15
|
};
|
package/api/types/ActionType.js
CHANGED
package/api/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./BadRequestErrorBody";
|
|
2
2
|
export * from "./UnauthorizedErrorBody";
|
|
3
3
|
export * from "./InternalServerErrorBody";
|
|
4
|
+
export * from "./PaymentRequiredErrorBody";
|
|
4
5
|
export * from "./ForbiddenErrorBody";
|
|
5
6
|
export * from "./RcsFunctionalities";
|
|
6
7
|
export * from "./CompanyAdditionalWebsitesItem";
|
package/api/types/index.js
CHANGED
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./BadRequestErrorBody"), exports);
|
|
18
18
|
__exportStar(require("./UnauthorizedErrorBody"), exports);
|
|
19
19
|
__exportStar(require("./InternalServerErrorBody"), exports);
|
|
20
|
+
__exportStar(require("./PaymentRequiredErrorBody"), exports);
|
|
20
21
|
__exportStar(require("./ForbiddenErrorBody"), exports);
|
|
21
22
|
__exportStar(require("./RcsFunctionalities"), exports);
|
|
22
23
|
__exportStar(require("./CompanyAdditionalWebsitesItem"), exports);
|
package/dist/Client.js
CHANGED
|
@@ -75,7 +75,7 @@ class PinnacleClient {
|
|
|
75
75
|
const _response = yield core.fetcher({
|
|
76
76
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "rcs_functionality"),
|
|
77
77
|
method: "GET",
|
|
78
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.14", "User-Agent": "rcs-js/1.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
queryParameters: _queryParams,
|
|
81
81
|
requestType: "json",
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PaymentRequiredError = void 0;
|
|
30
|
+
const errors = __importStar(require("../../errors/index"));
|
|
31
|
+
class PaymentRequiredError extends errors.PinnacleError {
|
|
32
|
+
constructor(body) {
|
|
33
|
+
super({
|
|
34
|
+
message: "PaymentRequiredError",
|
|
35
|
+
statusCode: 402,
|
|
36
|
+
body: body,
|
|
37
|
+
});
|
|
38
|
+
Object.setPrototypeOf(this, PaymentRequiredError.prototype);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.PaymentRequiredError = PaymentRequiredError;
|
package/dist/api/errors/index.js
CHANGED
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./BadRequestError"), exports);
|
|
18
18
|
__exportStar(require("./UnauthorizedError"), exports);
|
|
19
19
|
__exportStar(require("./InternalServerError"), exports);
|
|
20
|
+
__exportStar(require("./PaymentRequiredError"), exports);
|
|
20
21
|
__exportStar(require("./ForbiddenError"), exports);
|
|
@@ -76,7 +76,7 @@ class Company {
|
|
|
76
76
|
const _response = yield core.fetcher({
|
|
77
77
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "company"),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
79
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.14", "User-Agent": "rcs-js/1.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
queryParameters: _queryParams,
|
|
82
82
|
requestType: "json",
|
|
@@ -130,6 +130,7 @@ class Company {
|
|
|
130
130
|
*
|
|
131
131
|
* @throws {@link Pinnacle.BadRequestError}
|
|
132
132
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
133
|
+
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
133
134
|
* @throws {@link Pinnacle.InternalServerError}
|
|
134
135
|
*
|
|
135
136
|
* @example
|
|
@@ -166,7 +167,7 @@ class Company {
|
|
|
166
167
|
const _response = yield core.fetcher({
|
|
167
168
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "company/register"),
|
|
168
169
|
method: "POST",
|
|
169
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
170
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.14", "User-Agent": "rcs-js/1.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
170
171
|
contentType: "application/json",
|
|
171
172
|
requestType: "json",
|
|
172
173
|
body: serializers.CompanyRegisterRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -188,6 +189,8 @@ class Company {
|
|
|
188
189
|
throw new Pinnacle.BadRequestError(_response.error.body);
|
|
189
190
|
case 401:
|
|
190
191
|
throw new Pinnacle.UnauthorizedError(_response.error.body);
|
|
192
|
+
case 402:
|
|
193
|
+
throw new Pinnacle.PaymentRequiredError(_response.error.body);
|
|
191
194
|
case 500:
|
|
192
195
|
throw new Pinnacle.InternalServerError(_response.error.body);
|
|
193
196
|
default:
|
|
@@ -233,7 +236,7 @@ class Company {
|
|
|
233
236
|
const _response = yield core.fetcher({
|
|
234
237
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "company/update"),
|
|
235
238
|
method: "POST",
|
|
236
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
239
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.14", "User-Agent": "rcs-js/1.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
237
240
|
contentType: "application/json",
|
|
238
241
|
requestType: "json",
|
|
239
242
|
body: serializers.CompanyUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -31,6 +31,7 @@ export declare class Send {
|
|
|
31
31
|
*
|
|
32
32
|
* @throws {@link Pinnacle.BadRequestError}
|
|
33
33
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
34
|
+
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
34
35
|
* @throws {@link Pinnacle.ForbiddenError}
|
|
35
36
|
* @throws {@link Pinnacle.InternalServerError}
|
|
36
37
|
*
|
|
@@ -49,6 +50,7 @@ export declare class Send {
|
|
|
49
50
|
*
|
|
50
51
|
* @throws {@link Pinnacle.BadRequestError}
|
|
51
52
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
53
|
+
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
52
54
|
* @throws {@link Pinnacle.ForbiddenError}
|
|
53
55
|
* @throws {@link Pinnacle.InternalServerError}
|
|
54
56
|
*
|
|
@@ -68,6 +70,7 @@ export declare class Send {
|
|
|
68
70
|
*
|
|
69
71
|
* @throws {@link Pinnacle.BadRequestError}
|
|
70
72
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
73
|
+
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
71
74
|
* @throws {@link Pinnacle.ForbiddenError}
|
|
72
75
|
* @throws {@link Pinnacle.InternalServerError}
|
|
73
76
|
*
|
|
@@ -59,6 +59,7 @@ class Send {
|
|
|
59
59
|
*
|
|
60
60
|
* @throws {@link Pinnacle.BadRequestError}
|
|
61
61
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
62
|
+
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
62
63
|
* @throws {@link Pinnacle.ForbiddenError}
|
|
63
64
|
* @throws {@link Pinnacle.InternalServerError}
|
|
64
65
|
*
|
|
@@ -74,7 +75,7 @@ class Send {
|
|
|
74
75
|
const _response = yield core.fetcher({
|
|
75
76
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "send/rcs"),
|
|
76
77
|
method: "POST",
|
|
77
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.14", "User-Agent": "rcs-js/1.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
78
79
|
contentType: "application/json",
|
|
79
80
|
requestType: "json",
|
|
80
81
|
body: serializers.Rcs.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -96,6 +97,8 @@ class Send {
|
|
|
96
97
|
throw new Pinnacle.BadRequestError(_response.error.body);
|
|
97
98
|
case 401:
|
|
98
99
|
throw new Pinnacle.UnauthorizedError(_response.error.body);
|
|
100
|
+
case 402:
|
|
101
|
+
throw new Pinnacle.PaymentRequiredError(_response.error.body);
|
|
99
102
|
case 403:
|
|
100
103
|
throw new Pinnacle.ForbiddenError(_response.error.body);
|
|
101
104
|
case 500:
|
|
@@ -130,6 +133,7 @@ class Send {
|
|
|
130
133
|
*
|
|
131
134
|
* @throws {@link Pinnacle.BadRequestError}
|
|
132
135
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
136
|
+
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
133
137
|
* @throws {@link Pinnacle.ForbiddenError}
|
|
134
138
|
* @throws {@link Pinnacle.InternalServerError}
|
|
135
139
|
*
|
|
@@ -146,7 +150,7 @@ class Send {
|
|
|
146
150
|
const _response = yield core.fetcher({
|
|
147
151
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "send/sms"),
|
|
148
152
|
method: "POST",
|
|
149
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
153
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.14", "User-Agent": "rcs-js/1.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
150
154
|
contentType: "application/json",
|
|
151
155
|
requestType: "json",
|
|
152
156
|
body: serializers.SendSmsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -168,6 +172,8 @@ class Send {
|
|
|
168
172
|
throw new Pinnacle.BadRequestError(_response.error.body);
|
|
169
173
|
case 401:
|
|
170
174
|
throw new Pinnacle.UnauthorizedError(_response.error.body);
|
|
175
|
+
case 402:
|
|
176
|
+
throw new Pinnacle.PaymentRequiredError(_response.error.body);
|
|
171
177
|
case 403:
|
|
172
178
|
throw new Pinnacle.ForbiddenError(_response.error.body);
|
|
173
179
|
case 500:
|
|
@@ -202,6 +208,7 @@ class Send {
|
|
|
202
208
|
*
|
|
203
209
|
* @throws {@link Pinnacle.BadRequestError}
|
|
204
210
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
211
|
+
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
205
212
|
* @throws {@link Pinnacle.ForbiddenError}
|
|
206
213
|
* @throws {@link Pinnacle.InternalServerError}
|
|
207
214
|
*
|
|
@@ -218,7 +225,7 @@ class Send {
|
|
|
218
225
|
const _response = yield core.fetcher({
|
|
219
226
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "send/mms"),
|
|
220
227
|
method: "POST",
|
|
221
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
228
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.14", "User-Agent": "rcs-js/1.0.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
222
229
|
contentType: "application/json",
|
|
223
230
|
requestType: "json",
|
|
224
231
|
body: serializers.SendMmsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -240,6 +247,8 @@ class Send {
|
|
|
240
247
|
throw new Pinnacle.BadRequestError(_response.error.body);
|
|
241
248
|
case 401:
|
|
242
249
|
throw new Pinnacle.UnauthorizedError(_response.error.body);
|
|
250
|
+
case 402:
|
|
251
|
+
throw new Pinnacle.PaymentRequiredError(_response.error.body);
|
|
243
252
|
case 403:
|
|
244
253
|
throw new Pinnacle.ForbiddenError(_response.error.body);
|
|
245
254
|
case 500:
|
|
@@ -5,7 +5,7 @@ import * as Pinnacle from "../index";
|
|
|
5
5
|
export interface Action {
|
|
6
6
|
/** Title of the action (must be less than 25 characters). */
|
|
7
7
|
title?: string;
|
|
8
|
-
/** Type of action for the button. 'openUrl' opens a URL, 'call' dials a phone number, 'trigger' sends the predefined payload to the webhook when pressed, '
|
|
8
|
+
/** Type of action for the button. 'openUrl' opens a URL, 'call' dials a phone number, 'trigger' sends the predefined payload to the webhook when pressed, 'requestUserLocation' requests the user's location, 'scheduleEvent' creates a calendar event, 'sendLocation' sends a location. */
|
|
9
9
|
type?: Pinnacle.ActionType;
|
|
10
10
|
/** Optional payload associated with the action. This payload encodes the respective fields for the action type and is required. For 'openUrl', the payload is the URL to open. For 'call', the payload is the phone number to dial. For 'trigger', the payload is the predefined payload to send to the webhook. */
|
|
11
11
|
payload?: string;
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* Type of action for the button. 'openUrl' opens a URL, 'call' dials a phone number, 'trigger' sends the predefined payload to the webhook when pressed, '
|
|
5
|
+
* Type of action for the button. 'openUrl' opens a URL, 'call' dials a phone number, 'trigger' sends the predefined payload to the webhook when pressed, 'requestUserLocation' requests the user's location, 'scheduleEvent' creates a calendar event, 'sendLocation' sends a location.
|
|
6
6
|
*/
|
|
7
|
-
export declare type ActionType = "openUrl" | "call" | "trigger" | "
|
|
7
|
+
export declare type ActionType = "openUrl" | "call" | "trigger" | "requestUserLocation" | "scheduleEvent" | "sendLocation";
|
|
8
8
|
export declare const ActionType: {
|
|
9
9
|
readonly OpenUrl: "openUrl";
|
|
10
10
|
readonly Call: "call";
|
|
11
11
|
readonly Trigger: "trigger";
|
|
12
|
-
readonly
|
|
12
|
+
readonly RequestUserLocation: "requestUserLocation";
|
|
13
13
|
readonly ScheduleEvent: "scheduleEvent";
|
|
14
14
|
readonly SendLocation: "sendLocation";
|
|
15
15
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./BadRequestErrorBody";
|
|
2
2
|
export * from "./UnauthorizedErrorBody";
|
|
3
3
|
export * from "./InternalServerErrorBody";
|
|
4
|
+
export * from "./PaymentRequiredErrorBody";
|
|
4
5
|
export * from "./ForbiddenErrorBody";
|
|
5
6
|
export * from "./RcsFunctionalities";
|
|
6
7
|
export * from "./CompanyAdditionalWebsitesItem";
|
package/dist/api/types/index.js
CHANGED
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./BadRequestErrorBody"), exports);
|
|
18
18
|
__exportStar(require("./UnauthorizedErrorBody"), exports);
|
|
19
19
|
__exportStar(require("./InternalServerErrorBody"), exports);
|
|
20
|
+
__exportStar(require("./PaymentRequiredErrorBody"), exports);
|
|
20
21
|
__exportStar(require("./ForbiddenErrorBody"), exports);
|
|
21
22
|
__exportStar(require("./RcsFunctionalities"), exports);
|
|
22
23
|
__exportStar(require("./CompanyAdditionalWebsitesItem"), exports);
|
|
@@ -6,5 +6,5 @@ import * as Pinnacle from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ActionType: core.serialization.Schema<serializers.ActionType.Raw, Pinnacle.ActionType>;
|
|
8
8
|
export declare namespace ActionType {
|
|
9
|
-
type Raw = "openUrl" | "call" | "trigger" | "
|
|
9
|
+
type Raw = "openUrl" | "call" | "trigger" | "requestUserLocation" | "scheduleEvent" | "sendLocation";
|
|
10
10
|
}
|
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ActionType = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.ActionType = core.serialization.enum_(["openUrl", "call", "trigger", "
|
|
31
|
+
exports.ActionType = core.serialization.enum_(["openUrl", "call", "trigger", "requestUserLocation", "scheduleEvent", "sendLocation"]);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Pinnacle from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const PaymentRequiredErrorBody: core.serialization.ObjectSchema<serializers.PaymentRequiredErrorBody.Raw, Pinnacle.PaymentRequiredErrorBody>;
|
|
8
|
+
export declare namespace PaymentRequiredErrorBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
errors?: string[] | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PaymentRequiredErrorBody = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.PaymentRequiredErrorBody = core.serialization.object({
|
|
32
|
+
errors: core.serialization.list(core.serialization.string()).optional(),
|
|
33
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./BadRequestErrorBody";
|
|
2
2
|
export * from "./UnauthorizedErrorBody";
|
|
3
3
|
export * from "./InternalServerErrorBody";
|
|
4
|
+
export * from "./PaymentRequiredErrorBody";
|
|
4
5
|
export * from "./ForbiddenErrorBody";
|
|
5
6
|
export * from "./RcsFunctionalities";
|
|
6
7
|
export * from "./CompanyAdditionalWebsitesItem";
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./BadRequestErrorBody"), exports);
|
|
18
18
|
__exportStar(require("./UnauthorizedErrorBody"), exports);
|
|
19
19
|
__exportStar(require("./InternalServerErrorBody"), exports);
|
|
20
|
+
__exportStar(require("./PaymentRequiredErrorBody"), exports);
|
|
20
21
|
__exportStar(require("./ForbiddenErrorBody"), exports);
|
|
21
22
|
__exportStar(require("./RcsFunctionalities"), exports);
|
|
22
23
|
__exportStar(require("./CompanyAdditionalWebsitesItem"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.14";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -6,5 +6,5 @@ import * as Pinnacle from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ActionType: core.serialization.Schema<serializers.ActionType.Raw, Pinnacle.ActionType>;
|
|
8
8
|
export declare namespace ActionType {
|
|
9
|
-
type Raw = "openUrl" | "call" | "trigger" | "
|
|
9
|
+
type Raw = "openUrl" | "call" | "trigger" | "requestUserLocation" | "scheduleEvent" | "sendLocation";
|
|
10
10
|
}
|
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ActionType = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.ActionType = core.serialization.enum_(["openUrl", "call", "trigger", "
|
|
31
|
+
exports.ActionType = core.serialization.enum_(["openUrl", "call", "trigger", "requestUserLocation", "scheduleEvent", "sendLocation"]);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Pinnacle from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const PaymentRequiredErrorBody: core.serialization.ObjectSchema<serializers.PaymentRequiredErrorBody.Raw, Pinnacle.PaymentRequiredErrorBody>;
|
|
8
|
+
export declare namespace PaymentRequiredErrorBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
errors?: string[] | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PaymentRequiredErrorBody = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.PaymentRequiredErrorBody = core.serialization.object({
|
|
32
|
+
errors: core.serialization.list(core.serialization.string()).optional(),
|
|
33
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./BadRequestErrorBody";
|
|
2
2
|
export * from "./UnauthorizedErrorBody";
|
|
3
3
|
export * from "./InternalServerErrorBody";
|
|
4
|
+
export * from "./PaymentRequiredErrorBody";
|
|
4
5
|
export * from "./ForbiddenErrorBody";
|
|
5
6
|
export * from "./RcsFunctionalities";
|
|
6
7
|
export * from "./CompanyAdditionalWebsitesItem";
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./BadRequestErrorBody"), exports);
|
|
18
18
|
__exportStar(require("./UnauthorizedErrorBody"), exports);
|
|
19
19
|
__exportStar(require("./InternalServerErrorBody"), exports);
|
|
20
|
+
__exportStar(require("./PaymentRequiredErrorBody"), exports);
|
|
20
21
|
__exportStar(require("./ForbiddenErrorBody"), exports);
|
|
21
22
|
__exportStar(require("./RcsFunctionalities"), exports);
|
|
22
23
|
__exportStar(require("./CompanyAdditionalWebsitesItem"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.14";
|
package/version.js
CHANGED