rcs-js 2.0.11 → 2.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/errors/ForbiddenError.d.ts +6 -0
- package/dist/cjs/api/errors/ForbiddenError.js +50 -0
- package/dist/cjs/api/errors/index.d.ts +1 -0
- package/dist/cjs/api/errors/index.js +1 -0
- package/dist/cjs/api/resources/audiences/client/Client.d.ts +4 -0
- package/dist/cjs/api/resources/audiences/client/Client.js +12 -0
- package/dist/cjs/api/resources/audiences/resources/contacts/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/audiences/resources/contacts/client/Client.js +6 -0
- package/dist/cjs/api/resources/brands/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/brands/client/Client.js +18 -0
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.d.ts +5 -0
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.js +15 -0
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.d.ts +5 -0
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.js +15 -0
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.d.ts +5 -0
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.js +15 -0
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/contacts/client/Client.js +9 -0
- package/dist/cjs/api/resources/conversations/client/Client.d.ts +4 -0
- package/dist/cjs/api/resources/conversations/client/Client.js +12 -0
- package/dist/cjs/api/resources/messages/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/messages/client/Client.js +6 -0
- package/dist/cjs/api/resources/messages/resources/blast/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/messages/resources/blast/client/Client.js +9 -0
- package/dist/cjs/api/resources/messages/resources/mms/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/messages/resources/mms/client/Client.js +6 -0
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.js +9 -0
- package/dist/cjs/api/resources/messages/resources/schedule/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/messages/resources/schedule/client/Client.js +6 -0
- package/dist/cjs/api/resources/messages/resources/sms/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/messages/resources/sms/client/Client.js +6 -0
- package/dist/cjs/api/resources/phoneNumbers/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/phoneNumbers/client/Client.js +9 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.js +6 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.js +6 -0
- package/dist/cjs/api/resources/rcs/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/rcs/client/Client.js +9 -0
- package/dist/cjs/api/resources/status/resources/get/client/Client.d.ts +5 -0
- package/dist/cjs/api/resources/status/resources/get/client/Client.js +15 -0
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.js +6 -0
- package/dist/cjs/api/resources/tools/resources/file/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/file/client/Client.js +6 -0
- package/dist/cjs/api/resources/tools/resources/url/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/tools/resources/url/client/Client.js +9 -0
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/webhooks/client/Client.js +3 -0
- package/dist/cjs/api/types/RcsCampaignUseCaseEnum.d.ts +30 -11
- package/dist/cjs/api/types/RcsCampaignUseCaseEnum.js +30 -11
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/errors/ForbiddenError.d.mts +6 -0
- package/dist/esm/api/errors/ForbiddenError.mjs +13 -0
- package/dist/esm/api/errors/index.d.mts +1 -0
- package/dist/esm/api/errors/index.mjs +1 -0
- package/dist/esm/api/resources/audiences/client/Client.d.mts +4 -0
- package/dist/esm/api/resources/audiences/client/Client.mjs +12 -0
- package/dist/esm/api/resources/audiences/resources/contacts/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/audiences/resources/contacts/client/Client.mjs +6 -0
- package/dist/esm/api/resources/brands/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/brands/client/Client.mjs +18 -0
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.d.mts +5 -0
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.mjs +15 -0
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.d.mts +5 -0
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.mjs +15 -0
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.d.mts +5 -0
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.mjs +15 -0
- package/dist/esm/api/resources/contacts/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/contacts/client/Client.mjs +9 -0
- package/dist/esm/api/resources/conversations/client/Client.d.mts +4 -0
- package/dist/esm/api/resources/conversations/client/Client.mjs +12 -0
- package/dist/esm/api/resources/messages/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/messages/client/Client.mjs +6 -0
- package/dist/esm/api/resources/messages/resources/blast/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/messages/resources/blast/client/Client.mjs +9 -0
- package/dist/esm/api/resources/messages/resources/mms/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/messages/resources/mms/client/Client.mjs +6 -0
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.mjs +9 -0
- package/dist/esm/api/resources/messages/resources/schedule/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/messages/resources/schedule/client/Client.mjs +6 -0
- package/dist/esm/api/resources/messages/resources/sms/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/messages/resources/sms/client/Client.mjs +6 -0
- package/dist/esm/api/resources/phoneNumbers/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/phoneNumbers/client/Client.mjs +9 -0
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.mjs +6 -0
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.mjs +6 -0
- package/dist/esm/api/resources/rcs/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/rcs/client/Client.mjs +9 -0
- package/dist/esm/api/resources/status/resources/get/client/Client.d.mts +5 -0
- package/dist/esm/api/resources/status/resources/get/client/Client.mjs +15 -0
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.mjs +6 -0
- package/dist/esm/api/resources/tools/resources/file/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/file/client/Client.mjs +6 -0
- package/dist/esm/api/resources/tools/resources/url/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/tools/resources/url/client/Client.mjs +9 -0
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/webhooks/client/Client.mjs +3 -0
- package/dist/esm/api/types/RcsCampaignUseCaseEnum.d.mts +30 -11
- package/dist/esm/api/types/RcsCampaignUseCaseEnum.mjs +30 -11
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/Client.js
CHANGED
|
@@ -53,8 +53,8 @@ class PinnacleClient {
|
|
|
53
53
|
this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: (0, headers_js_1.mergeHeaders)({
|
|
54
54
|
"X-Fern-Language": "JavaScript",
|
|
55
55
|
"X-Fern-SDK-Name": "rcs-js",
|
|
56
|
-
"X-Fern-SDK-Version": "2.0.
|
|
57
|
-
"User-Agent": "rcs-js/2.0.
|
|
56
|
+
"X-Fern-SDK-Version": "2.0.12",
|
|
57
|
+
"User-Agent": "rcs-js/2.0.12",
|
|
58
58
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
59
59
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
60
60
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../core/index.js";
|
|
2
|
+
import * as errors from "../../errors/index.js";
|
|
3
|
+
import type * as Pinnacle from "../index.js";
|
|
4
|
+
export declare class ForbiddenError extends errors.PinnacleError {
|
|
5
|
+
constructor(body: Pinnacle.Error_, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.ForbiddenError = void 0;
|
|
38
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
39
|
+
class ForbiddenError extends errors.PinnacleError {
|
|
40
|
+
constructor(body, rawResponse) {
|
|
41
|
+
super({
|
|
42
|
+
message: "ForbiddenError",
|
|
43
|
+
statusCode: 403,
|
|
44
|
+
body: body,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, ForbiddenError.prototype);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.ForbiddenError = ForbiddenError;
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./BadRequestError.js"), exports);
|
|
18
|
+
__exportStar(require("./ForbiddenError.js"), exports);
|
|
18
19
|
__exportStar(require("./InternalServerError.js"), exports);
|
|
19
20
|
__exportStar(require("./NotFoundError.js"), exports);
|
|
20
21
|
__exportStar(require("./NotImplementedError.js"), exports);
|
|
@@ -21,6 +21,7 @@ export declare class Audiences {
|
|
|
21
21
|
*
|
|
22
22
|
* @throws {@link Pinnacle.BadRequestError}
|
|
23
23
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
24
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
24
25
|
* @throws {@link Pinnacle.NotFoundError}
|
|
25
26
|
* @throws {@link Pinnacle.InternalServerError}
|
|
26
27
|
*
|
|
@@ -39,6 +40,7 @@ export declare class Audiences {
|
|
|
39
40
|
*
|
|
40
41
|
* @throws {@link Pinnacle.BadRequestError}
|
|
41
42
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
43
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
42
44
|
* @throws {@link Pinnacle.InternalServerError}
|
|
43
45
|
*
|
|
44
46
|
* @example
|
|
@@ -72,6 +74,7 @@ export declare class Audiences {
|
|
|
72
74
|
*
|
|
73
75
|
* @throws {@link Pinnacle.BadRequestError}
|
|
74
76
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
77
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
75
78
|
* @throws {@link Pinnacle.NotFoundError}
|
|
76
79
|
* @throws {@link Pinnacle.InternalServerError}
|
|
77
80
|
*
|
|
@@ -92,6 +95,7 @@ export declare class Audiences {
|
|
|
92
95
|
*
|
|
93
96
|
* @throws {@link Pinnacle.BadRequestError}
|
|
94
97
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
98
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
95
99
|
* @throws {@link Pinnacle.NotFoundError}
|
|
96
100
|
* @throws {@link Pinnacle.InternalServerError}
|
|
97
101
|
*
|
|
@@ -66,6 +66,7 @@ class Audiences {
|
|
|
66
66
|
*
|
|
67
67
|
* @throws {@link Pinnacle.BadRequestError}
|
|
68
68
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
69
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
69
70
|
* @throws {@link Pinnacle.NotFoundError}
|
|
70
71
|
* @throws {@link Pinnacle.InternalServerError}
|
|
71
72
|
*
|
|
@@ -110,6 +111,8 @@ class Audiences {
|
|
|
110
111
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
111
112
|
case 401:
|
|
112
113
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
114
|
+
case 403:
|
|
115
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
113
116
|
case 404:
|
|
114
117
|
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
115
118
|
case 500:
|
|
@@ -147,6 +150,7 @@ class Audiences {
|
|
|
147
150
|
*
|
|
148
151
|
* @throws {@link Pinnacle.BadRequestError}
|
|
149
152
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
153
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
150
154
|
* @throws {@link Pinnacle.InternalServerError}
|
|
151
155
|
*
|
|
152
156
|
* @example
|
|
@@ -198,6 +202,8 @@ class Audiences {
|
|
|
198
202
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
199
203
|
case 401:
|
|
200
204
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
205
|
+
case 403:
|
|
206
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
201
207
|
case 500:
|
|
202
208
|
throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
|
|
203
209
|
default:
|
|
@@ -235,6 +241,7 @@ class Audiences {
|
|
|
235
241
|
*
|
|
236
242
|
* @throws {@link Pinnacle.BadRequestError}
|
|
237
243
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
244
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
238
245
|
* @throws {@link Pinnacle.NotFoundError}
|
|
239
246
|
* @throws {@link Pinnacle.InternalServerError}
|
|
240
247
|
*
|
|
@@ -273,6 +280,8 @@ class Audiences {
|
|
|
273
280
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
274
281
|
case 401:
|
|
275
282
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
283
|
+
case 403:
|
|
284
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
276
285
|
case 404:
|
|
277
286
|
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
278
287
|
case 500:
|
|
@@ -312,6 +321,7 @@ class Audiences {
|
|
|
312
321
|
*
|
|
313
322
|
* @throws {@link Pinnacle.BadRequestError}
|
|
314
323
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
324
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
315
325
|
* @throws {@link Pinnacle.NotFoundError}
|
|
316
326
|
* @throws {@link Pinnacle.InternalServerError}
|
|
317
327
|
*
|
|
@@ -352,6 +362,8 @@ class Audiences {
|
|
|
352
362
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
353
363
|
case 401:
|
|
354
364
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
365
|
+
case 403:
|
|
366
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
355
367
|
case 404:
|
|
356
368
|
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
357
369
|
case 500:
|
|
@@ -21,6 +21,7 @@ export declare class Contacts {
|
|
|
21
21
|
*
|
|
22
22
|
* @throws {@link Pinnacle.BadRequestError}
|
|
23
23
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
24
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
24
25
|
* @throws {@link Pinnacle.NotFoundError}
|
|
25
26
|
* @throws {@link Pinnacle.InternalServerError}
|
|
26
27
|
*
|
|
@@ -44,6 +45,7 @@ export declare class Contacts {
|
|
|
44
45
|
*
|
|
45
46
|
* @throws {@link Pinnacle.BadRequestError}
|
|
46
47
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
48
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
47
49
|
* @throws {@link Pinnacle.NotFoundError}
|
|
48
50
|
* @throws {@link Pinnacle.InternalServerError}
|
|
49
51
|
*
|
|
@@ -64,6 +64,7 @@ class Contacts {
|
|
|
64
64
|
*
|
|
65
65
|
* @throws {@link Pinnacle.BadRequestError}
|
|
66
66
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
67
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
67
68
|
* @throws {@link Pinnacle.NotFoundError}
|
|
68
69
|
* @throws {@link Pinnacle.InternalServerError}
|
|
69
70
|
*
|
|
@@ -103,6 +104,8 @@ class Contacts {
|
|
|
103
104
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
104
105
|
case 401:
|
|
105
106
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
107
|
+
case 403:
|
|
108
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
106
109
|
case 404:
|
|
107
110
|
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
108
111
|
case 500:
|
|
@@ -144,6 +147,7 @@ class Contacts {
|
|
|
144
147
|
*
|
|
145
148
|
* @throws {@link Pinnacle.BadRequestError}
|
|
146
149
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
150
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
147
151
|
* @throws {@link Pinnacle.NotFoundError}
|
|
148
152
|
* @throws {@link Pinnacle.InternalServerError}
|
|
149
153
|
*
|
|
@@ -183,6 +187,8 @@ class Contacts {
|
|
|
183
187
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
184
188
|
case 401:
|
|
185
189
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
190
|
+
case 403:
|
|
191
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
186
192
|
case 404:
|
|
187
193
|
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
188
194
|
case 500:
|
|
@@ -18,6 +18,7 @@ export declare class Brands {
|
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link Pinnacle.BadRequestError}
|
|
20
20
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
21
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
21
22
|
* @throws {@link Pinnacle.InternalServerError}
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
@@ -46,6 +47,7 @@ export declare class Brands {
|
|
|
46
47
|
*
|
|
47
48
|
* @throws {@link Pinnacle.BadRequestError}
|
|
48
49
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
50
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
49
51
|
* @throws {@link Pinnacle.InternalServerError}
|
|
50
52
|
*
|
|
51
53
|
* @example
|
|
@@ -81,6 +83,7 @@ export declare class Brands {
|
|
|
81
83
|
*
|
|
82
84
|
* @throws {@link Pinnacle.BadRequestError}
|
|
83
85
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
86
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
84
87
|
* @throws {@link Pinnacle.NotFoundError}
|
|
85
88
|
* @throws {@link Pinnacle.InternalServerError}
|
|
86
89
|
*
|
|
@@ -99,6 +102,7 @@ export declare class Brands {
|
|
|
99
102
|
* @throws {@link Pinnacle.BadRequestError}
|
|
100
103
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
101
104
|
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
105
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
102
106
|
* @throws {@link Pinnacle.NotFoundError}
|
|
103
107
|
* @throws {@link Pinnacle.InternalServerError}
|
|
104
108
|
* @throws {@link Pinnacle.NotImplementedError}
|
|
@@ -116,6 +120,7 @@ export declare class Brands {
|
|
|
116
120
|
*
|
|
117
121
|
* @throws {@link Pinnacle.BadRequestError}
|
|
118
122
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
123
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
119
124
|
* @throws {@link Pinnacle.InternalServerError}
|
|
120
125
|
*
|
|
121
126
|
* @example
|
|
@@ -135,6 +140,7 @@ export declare class Brands {
|
|
|
135
140
|
* @throws {@link Pinnacle.BadRequestError}
|
|
136
141
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
137
142
|
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
143
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
138
144
|
* @throws {@link Pinnacle.NotFoundError}
|
|
139
145
|
* @throws {@link Pinnacle.InternalServerError}
|
|
140
146
|
* @throws {@link Pinnacle.NotImplementedError}
|
|
@@ -61,6 +61,7 @@ class Brands {
|
|
|
61
61
|
*
|
|
62
62
|
* @throws {@link Pinnacle.BadRequestError}
|
|
63
63
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
64
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
64
65
|
* @throws {@link Pinnacle.InternalServerError}
|
|
65
66
|
*
|
|
66
67
|
* @example
|
|
@@ -103,6 +104,8 @@ class Brands {
|
|
|
103
104
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
104
105
|
case 401:
|
|
105
106
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
107
|
+
case 403:
|
|
108
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
106
109
|
case 500:
|
|
107
110
|
throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
|
|
108
111
|
default:
|
|
@@ -144,6 +147,7 @@ class Brands {
|
|
|
144
147
|
*
|
|
145
148
|
* @throws {@link Pinnacle.BadRequestError}
|
|
146
149
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
150
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
147
151
|
* @throws {@link Pinnacle.InternalServerError}
|
|
148
152
|
*
|
|
149
153
|
* @example
|
|
@@ -197,6 +201,8 @@ class Brands {
|
|
|
197
201
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
198
202
|
case 401:
|
|
199
203
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
204
|
+
case 403:
|
|
205
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
200
206
|
case 500:
|
|
201
207
|
throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
|
|
202
208
|
default:
|
|
@@ -234,6 +240,7 @@ class Brands {
|
|
|
234
240
|
*
|
|
235
241
|
* @throws {@link Pinnacle.BadRequestError}
|
|
236
242
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
243
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
237
244
|
* @throws {@link Pinnacle.NotFoundError}
|
|
238
245
|
* @throws {@link Pinnacle.InternalServerError}
|
|
239
246
|
*
|
|
@@ -272,6 +279,8 @@ class Brands {
|
|
|
272
279
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
273
280
|
case 401:
|
|
274
281
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
282
|
+
case 403:
|
|
283
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
275
284
|
case 404:
|
|
276
285
|
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
277
286
|
case 500:
|
|
@@ -311,6 +320,7 @@ class Brands {
|
|
|
311
320
|
* @throws {@link Pinnacle.BadRequestError}
|
|
312
321
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
313
322
|
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
323
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
314
324
|
* @throws {@link Pinnacle.NotFoundError}
|
|
315
325
|
* @throws {@link Pinnacle.InternalServerError}
|
|
316
326
|
* @throws {@link Pinnacle.NotImplementedError}
|
|
@@ -347,6 +357,8 @@ class Brands {
|
|
|
347
357
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
348
358
|
case 402:
|
|
349
359
|
throw new Pinnacle.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
360
|
+
case 403:
|
|
361
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
350
362
|
case 404:
|
|
351
363
|
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
352
364
|
case 500:
|
|
@@ -386,6 +398,7 @@ class Brands {
|
|
|
386
398
|
*
|
|
387
399
|
* @throws {@link Pinnacle.BadRequestError}
|
|
388
400
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
401
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
389
402
|
* @throws {@link Pinnacle.InternalServerError}
|
|
390
403
|
*
|
|
391
404
|
* @example
|
|
@@ -421,6 +434,8 @@ class Brands {
|
|
|
421
434
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
422
435
|
case 401:
|
|
423
436
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
437
|
+
case 403:
|
|
438
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
424
439
|
case 500:
|
|
425
440
|
throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
|
|
426
441
|
default:
|
|
@@ -460,6 +475,7 @@ class Brands {
|
|
|
460
475
|
* @throws {@link Pinnacle.BadRequestError}
|
|
461
476
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
462
477
|
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
478
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
463
479
|
* @throws {@link Pinnacle.NotFoundError}
|
|
464
480
|
* @throws {@link Pinnacle.InternalServerError}
|
|
465
481
|
* @throws {@link Pinnacle.NotImplementedError}
|
|
@@ -499,6 +515,8 @@ class Brands {
|
|
|
499
515
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
500
516
|
case 402:
|
|
501
517
|
throw new Pinnacle.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
518
|
+
case 403:
|
|
519
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
502
520
|
case 404:
|
|
503
521
|
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
504
522
|
case 500:
|
|
@@ -18,6 +18,7 @@ export declare class Dlc {
|
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link Pinnacle.BadRequestError}
|
|
20
20
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
21
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
21
22
|
* @throws {@link Pinnacle.InternalServerError}
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
@@ -36,6 +37,7 @@ export declare class Dlc {
|
|
|
36
37
|
*
|
|
37
38
|
* @throws {@link Pinnacle.BadRequestError}
|
|
38
39
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
40
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
39
41
|
* @throws {@link Pinnacle.NotFoundError}
|
|
40
42
|
* @throws {@link Pinnacle.InternalServerError}
|
|
41
43
|
*
|
|
@@ -53,6 +55,7 @@ export declare class Dlc {
|
|
|
53
55
|
*
|
|
54
56
|
* @throws {@link Pinnacle.BadRequestError}
|
|
55
57
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
58
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
56
59
|
* @throws {@link Pinnacle.NotFoundError}
|
|
57
60
|
* @throws {@link Pinnacle.InternalServerError}
|
|
58
61
|
*
|
|
@@ -79,6 +82,7 @@ export declare class Dlc {
|
|
|
79
82
|
*
|
|
80
83
|
* @throws {@link Pinnacle.BadRequestError}
|
|
81
84
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
85
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
82
86
|
* @throws {@link Pinnacle.NotFoundError}
|
|
83
87
|
* @throws {@link Pinnacle.InternalServerError}
|
|
84
88
|
*
|
|
@@ -132,6 +136,7 @@ export declare class Dlc {
|
|
|
132
136
|
*
|
|
133
137
|
* @throws {@link Pinnacle.BadRequestError}
|
|
134
138
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
139
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
135
140
|
* @throws {@link Pinnacle.InternalServerError}
|
|
136
141
|
*
|
|
137
142
|
* @example
|
|
@@ -61,6 +61,7 @@ class Dlc {
|
|
|
61
61
|
*
|
|
62
62
|
* @throws {@link Pinnacle.BadRequestError}
|
|
63
63
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
64
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
64
65
|
* @throws {@link Pinnacle.InternalServerError}
|
|
65
66
|
*
|
|
66
67
|
* @example
|
|
@@ -99,6 +100,8 @@ class Dlc {
|
|
|
99
100
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
100
101
|
case 401:
|
|
101
102
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
103
|
+
case 403:
|
|
104
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
102
105
|
case 500:
|
|
103
106
|
throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
|
|
104
107
|
default:
|
|
@@ -134,6 +137,7 @@ class Dlc {
|
|
|
134
137
|
*
|
|
135
138
|
* @throws {@link Pinnacle.BadRequestError}
|
|
136
139
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
140
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
137
141
|
* @throws {@link Pinnacle.NotFoundError}
|
|
138
142
|
* @throws {@link Pinnacle.InternalServerError}
|
|
139
143
|
*
|
|
@@ -170,6 +174,8 @@ class Dlc {
|
|
|
170
174
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
171
175
|
case 401:
|
|
172
176
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
177
|
+
case 403:
|
|
178
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
173
179
|
case 404:
|
|
174
180
|
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
175
181
|
case 500:
|
|
@@ -208,6 +214,7 @@ class Dlc {
|
|
|
208
214
|
*
|
|
209
215
|
* @throws {@link Pinnacle.BadRequestError}
|
|
210
216
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
217
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
211
218
|
* @throws {@link Pinnacle.NotFoundError}
|
|
212
219
|
* @throws {@link Pinnacle.InternalServerError}
|
|
213
220
|
*
|
|
@@ -241,6 +248,8 @@ class Dlc {
|
|
|
241
248
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
242
249
|
case 401:
|
|
243
250
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
251
|
+
case 403:
|
|
252
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
244
253
|
case 404:
|
|
245
254
|
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
246
255
|
case 500:
|
|
@@ -288,6 +297,7 @@ class Dlc {
|
|
|
288
297
|
*
|
|
289
298
|
* @throws {@link Pinnacle.BadRequestError}
|
|
290
299
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
300
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
291
301
|
* @throws {@link Pinnacle.NotFoundError}
|
|
292
302
|
* @throws {@link Pinnacle.InternalServerError}
|
|
293
303
|
*
|
|
@@ -364,6 +374,8 @@ class Dlc {
|
|
|
364
374
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
365
375
|
case 401:
|
|
366
376
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
377
|
+
case 403:
|
|
378
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
367
379
|
case 404:
|
|
368
380
|
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
369
381
|
case 500:
|
|
@@ -401,6 +413,7 @@ class Dlc {
|
|
|
401
413
|
*
|
|
402
414
|
* @throws {@link Pinnacle.BadRequestError}
|
|
403
415
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
416
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
404
417
|
* @throws {@link Pinnacle.InternalServerError}
|
|
405
418
|
*
|
|
406
419
|
* @example
|
|
@@ -439,6 +452,8 @@ class Dlc {
|
|
|
439
452
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
440
453
|
case 401:
|
|
441
454
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
455
|
+
case 403:
|
|
456
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
442
457
|
case 500:
|
|
443
458
|
throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
|
|
444
459
|
default:
|
|
@@ -18,6 +18,7 @@ export declare class Rcs {
|
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link Pinnacle.BadRequestError}
|
|
20
20
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
21
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
21
22
|
* @throws {@link Pinnacle.InternalServerError}
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
@@ -36,6 +37,7 @@ export declare class Rcs {
|
|
|
36
37
|
*
|
|
37
38
|
* @throws {@link Pinnacle.BadRequestError}
|
|
38
39
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
40
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
39
41
|
* @throws {@link Pinnacle.NotFoundError}
|
|
40
42
|
* @throws {@link Pinnacle.InternalServerError}
|
|
41
43
|
*
|
|
@@ -53,6 +55,7 @@ export declare class Rcs {
|
|
|
53
55
|
* @throws {@link Pinnacle.BadRequestError}
|
|
54
56
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
55
57
|
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
58
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
56
59
|
* @throws {@link Pinnacle.NotFoundError}
|
|
57
60
|
* @throws {@link Pinnacle.InternalServerError}
|
|
58
61
|
*
|
|
@@ -77,6 +80,7 @@ export declare class Rcs {
|
|
|
77
80
|
*
|
|
78
81
|
* @throws {@link Pinnacle.BadRequestError}
|
|
79
82
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
83
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
80
84
|
* @throws {@link Pinnacle.NotFoundError}
|
|
81
85
|
* @throws {@link Pinnacle.InternalServerError}
|
|
82
86
|
*
|
|
@@ -150,6 +154,7 @@ export declare class Rcs {
|
|
|
150
154
|
*
|
|
151
155
|
* @throws {@link Pinnacle.BadRequestError}
|
|
152
156
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
157
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
153
158
|
* @throws {@link Pinnacle.InternalServerError}
|
|
154
159
|
*
|
|
155
160
|
* @example
|
|
@@ -61,6 +61,7 @@ class Rcs {
|
|
|
61
61
|
*
|
|
62
62
|
* @throws {@link Pinnacle.BadRequestError}
|
|
63
63
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
64
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
64
65
|
* @throws {@link Pinnacle.InternalServerError}
|
|
65
66
|
*
|
|
66
67
|
* @example
|
|
@@ -102,6 +103,8 @@ class Rcs {
|
|
|
102
103
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
103
104
|
case 401:
|
|
104
105
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
106
|
+
case 403:
|
|
107
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
105
108
|
case 500:
|
|
106
109
|
throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
|
|
107
110
|
default:
|
|
@@ -137,6 +140,7 @@ class Rcs {
|
|
|
137
140
|
*
|
|
138
141
|
* @throws {@link Pinnacle.BadRequestError}
|
|
139
142
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
143
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
140
144
|
* @throws {@link Pinnacle.NotFoundError}
|
|
141
145
|
* @throws {@link Pinnacle.InternalServerError}
|
|
142
146
|
*
|
|
@@ -170,6 +174,8 @@ class Rcs {
|
|
|
170
174
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
171
175
|
case 401:
|
|
172
176
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
177
|
+
case 403:
|
|
178
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
173
179
|
case 404:
|
|
174
180
|
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
175
181
|
case 500:
|
|
@@ -208,6 +214,7 @@ class Rcs {
|
|
|
208
214
|
* @throws {@link Pinnacle.BadRequestError}
|
|
209
215
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
210
216
|
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
217
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
211
218
|
* @throws {@link Pinnacle.NotFoundError}
|
|
212
219
|
* @throws {@link Pinnacle.InternalServerError}
|
|
213
220
|
*
|
|
@@ -243,6 +250,8 @@ class Rcs {
|
|
|
243
250
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
244
251
|
case 402:
|
|
245
252
|
throw new Pinnacle.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
253
|
+
case 403:
|
|
254
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
246
255
|
case 404:
|
|
247
256
|
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
248
257
|
case 500:
|
|
@@ -288,6 +297,7 @@ class Rcs {
|
|
|
288
297
|
*
|
|
289
298
|
* @throws {@link Pinnacle.BadRequestError}
|
|
290
299
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
300
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
291
301
|
* @throws {@link Pinnacle.NotFoundError}
|
|
292
302
|
* @throws {@link Pinnacle.InternalServerError}
|
|
293
303
|
*
|
|
@@ -381,6 +391,8 @@ class Rcs {
|
|
|
381
391
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
382
392
|
case 401:
|
|
383
393
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
394
|
+
case 403:
|
|
395
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
384
396
|
case 404:
|
|
385
397
|
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
386
398
|
case 500:
|
|
@@ -418,6 +430,7 @@ class Rcs {
|
|
|
418
430
|
*
|
|
419
431
|
* @throws {@link Pinnacle.BadRequestError}
|
|
420
432
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
433
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
421
434
|
* @throws {@link Pinnacle.InternalServerError}
|
|
422
435
|
*
|
|
423
436
|
* @example
|
|
@@ -456,6 +469,8 @@ class Rcs {
|
|
|
456
469
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
457
470
|
case 401:
|
|
458
471
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
472
|
+
case 403:
|
|
473
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
459
474
|
case 500:
|
|
460
475
|
throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
|
|
461
476
|
default:
|
|
@@ -18,6 +18,7 @@ export declare class TollFree {
|
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link Pinnacle.BadRequestError}
|
|
20
20
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
21
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
21
22
|
* @throws {@link Pinnacle.InternalServerError}
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
@@ -36,6 +37,7 @@ export declare class TollFree {
|
|
|
36
37
|
*
|
|
37
38
|
* @throws {@link Pinnacle.BadRequestError}
|
|
38
39
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
40
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
39
41
|
* @throws {@link Pinnacle.NotFoundError}
|
|
40
42
|
* @throws {@link Pinnacle.InternalServerError}
|
|
41
43
|
*
|
|
@@ -52,6 +54,7 @@ export declare class TollFree {
|
|
|
52
54
|
*
|
|
53
55
|
* @throws {@link Pinnacle.BadRequestError}
|
|
54
56
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
57
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
55
58
|
* @throws {@link Pinnacle.NotFoundError}
|
|
56
59
|
* @throws {@link Pinnacle.InternalServerError}
|
|
57
60
|
*
|
|
@@ -78,6 +81,7 @@ export declare class TollFree {
|
|
|
78
81
|
*
|
|
79
82
|
* @throws {@link Pinnacle.BadRequestError}
|
|
80
83
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
84
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
81
85
|
* @throws {@link Pinnacle.NotFoundError}
|
|
82
86
|
* @throws {@link Pinnacle.InternalServerError}
|
|
83
87
|
*
|
|
@@ -125,6 +129,7 @@ export declare class TollFree {
|
|
|
125
129
|
*
|
|
126
130
|
* @throws {@link Pinnacle.BadRequestError}
|
|
127
131
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
132
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
128
133
|
* @throws {@link Pinnacle.InternalServerError}
|
|
129
134
|
*
|
|
130
135
|
* @example
|