rcs-js 2.0.10 → 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/BaseClient.d.ts +1 -1
- package/dist/cjs/Client.d.ts +1 -1
- package/dist/cjs/Client.js +3 -3
- 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 +5 -1
- package/dist/cjs/api/resources/audiences/client/Client.js +13 -1
- package/dist/cjs/api/resources/audiences/resources/contacts/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/audiences/resources/contacts/client/Client.js +7 -1
- package/dist/cjs/api/resources/brands/client/Client.d.ts +14 -2
- package/dist/cjs/api/resources/brands/client/Client.js +26 -2
- package/dist/cjs/api/resources/campaigns/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/client/Client.js +1 -1
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.d.ts +28 -15
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.js +38 -15
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.ts +25 -24
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.d.ts +14 -3
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.js +24 -3
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.ts +11 -31
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.d.ts +25 -12
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.js +35 -12
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.ts +18 -18
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +4 -1
- package/dist/cjs/api/resources/contacts/client/Client.js +10 -1
- package/dist/cjs/api/resources/conversations/client/Client.d.ts +5 -1
- package/dist/cjs/api/resources/conversations/client/Client.js +13 -1
- package/dist/cjs/api/resources/messages/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/messages/client/Client.js +7 -1
- package/dist/cjs/api/resources/messages/resources/blast/client/Client.d.ts +4 -1
- package/dist/cjs/api/resources/messages/resources/blast/client/Client.js +10 -1
- package/dist/cjs/api/resources/messages/resources/mms/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/messages/resources/mms/client/Client.js +7 -1
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.d.ts +4 -1
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.js +10 -1
- package/dist/cjs/api/resources/messages/resources/schedule/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/messages/resources/schedule/client/Client.js +7 -1
- package/dist/cjs/api/resources/messages/resources/sms/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/messages/resources/sms/client/Client.js +7 -1
- package/dist/cjs/api/resources/phoneNumbers/client/Client.d.ts +4 -1
- package/dist/cjs/api/resources/phoneNumbers/client/Client.js +10 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.js +7 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.js +7 -1
- package/dist/cjs/api/resources/rcs/client/Client.d.ts +4 -1
- package/dist/cjs/api/resources/rcs/client/Client.js +10 -1
- package/dist/cjs/api/resources/status/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/status/client/Client.js +1 -1
- package/dist/cjs/api/resources/status/resources/get/client/Client.d.ts +6 -1
- package/dist/cjs/api/resources/status/resources/get/client/Client.js +16 -1
- package/dist/cjs/api/resources/tools/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tools/client/Client.js +1 -1
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.js +7 -1
- package/dist/cjs/api/resources/tools/resources/file/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/tools/resources/file/client/Client.js +7 -1
- package/dist/cjs/api/resources/tools/resources/url/client/Client.d.ts +4 -1
- package/dist/cjs/api/resources/tools/resources/url/client/Client.js +10 -1
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/webhooks/client/Client.js +4 -1
- package/dist/cjs/api/types/AttachWebhookParams.d.ts +1 -1
- package/dist/cjs/api/types/AutofillDlcCampaignResponse.d.ts +5 -5
- package/dist/cjs/api/types/DlcCampaignWithExtendedBrandAndStatus.d.ts +6 -6
- package/dist/cjs/api/types/ExtendedRcsCampaign.d.ts +11 -16
- package/dist/cjs/api/types/OptInMethodEnum.d.ts +8 -1
- package/dist/cjs/api/types/OptInMethodEnum.js +8 -1
- package/dist/cjs/api/types/RcsCampaign.d.ts +11 -16
- package/dist/cjs/api/types/RcsCampaignUseCaseEnum.d.ts +30 -11
- package/dist/cjs/api/types/RcsCampaignUseCaseEnum.js +30 -11
- package/dist/cjs/api/types/TollFreeCampaign.d.ts +9 -9
- package/dist/cjs/api/types/TollFreeCampaignWithExtendedBrandAndStatus.d.ts +81 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +1 -1
- package/dist/esm/Client.d.mts +1 -1
- package/dist/esm/Client.mjs +3 -3
- 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 +5 -1
- package/dist/esm/api/resources/audiences/client/Client.mjs +13 -1
- package/dist/esm/api/resources/audiences/resources/contacts/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/audiences/resources/contacts/client/Client.mjs +7 -1
- package/dist/esm/api/resources/brands/client/Client.d.mts +14 -2
- package/dist/esm/api/resources/brands/client/Client.mjs +26 -2
- package/dist/esm/api/resources/campaigns/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/client/Client.mjs +1 -1
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.d.mts +28 -15
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.mjs +38 -15
- package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.mts +25 -24
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.d.mts +14 -3
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.mjs +24 -3
- package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.mts +11 -31
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.d.mts +25 -12
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.mjs +35 -12
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.mts +18 -18
- package/dist/esm/api/resources/contacts/client/Client.d.mts +4 -1
- package/dist/esm/api/resources/contacts/client/Client.mjs +10 -1
- package/dist/esm/api/resources/conversations/client/Client.d.mts +5 -1
- package/dist/esm/api/resources/conversations/client/Client.mjs +13 -1
- package/dist/esm/api/resources/messages/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/messages/client/Client.mjs +7 -1
- package/dist/esm/api/resources/messages/resources/blast/client/Client.d.mts +4 -1
- package/dist/esm/api/resources/messages/resources/blast/client/Client.mjs +10 -1
- package/dist/esm/api/resources/messages/resources/mms/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/messages/resources/mms/client/Client.mjs +7 -1
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.d.mts +4 -1
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.mjs +10 -1
- package/dist/esm/api/resources/messages/resources/schedule/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/messages/resources/schedule/client/Client.mjs +7 -1
- package/dist/esm/api/resources/messages/resources/sms/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/messages/resources/sms/client/Client.mjs +7 -1
- package/dist/esm/api/resources/phoneNumbers/client/Client.d.mts +4 -1
- package/dist/esm/api/resources/phoneNumbers/client/Client.mjs +10 -1
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.mjs +7 -1
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.mjs +7 -1
- package/dist/esm/api/resources/rcs/client/Client.d.mts +4 -1
- package/dist/esm/api/resources/rcs/client/Client.mjs +10 -1
- package/dist/esm/api/resources/status/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/status/client/Client.mjs +1 -1
- package/dist/esm/api/resources/status/resources/get/client/Client.d.mts +6 -1
- package/dist/esm/api/resources/status/resources/get/client/Client.mjs +16 -1
- package/dist/esm/api/resources/tools/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tools/client/Client.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.mjs +7 -1
- package/dist/esm/api/resources/tools/resources/file/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/tools/resources/file/client/Client.mjs +7 -1
- package/dist/esm/api/resources/tools/resources/url/client/Client.d.mts +4 -1
- package/dist/esm/api/resources/tools/resources/url/client/Client.mjs +10 -1
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/webhooks/client/Client.mjs +4 -1
- package/dist/esm/api/types/AttachWebhookParams.d.mts +1 -1
- package/dist/esm/api/types/AutofillDlcCampaignResponse.d.mts +5 -5
- package/dist/esm/api/types/DlcCampaignWithExtendedBrandAndStatus.d.mts +6 -6
- package/dist/esm/api/types/ExtendedRcsCampaign.d.mts +11 -16
- package/dist/esm/api/types/OptInMethodEnum.d.mts +8 -1
- package/dist/esm/api/types/OptInMethodEnum.mjs +8 -1
- package/dist/esm/api/types/RcsCampaign.d.mts +11 -16
- package/dist/esm/api/types/RcsCampaignUseCaseEnum.d.mts +30 -11
- package/dist/esm/api/types/RcsCampaignUseCaseEnum.mjs +30 -11
- package/dist/esm/api/types/TollFreeCampaign.d.mts +9 -9
- package/dist/esm/api/types/TollFreeCampaignWithExtendedBrandAndStatus.d.mts +81 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +56 -28
package/dist/cjs/BaseClient.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface BaseClientOptions {
|
|
|
4
4
|
environment?: core.Supplier<environments.PinnacleEnvironment | string>;
|
|
5
5
|
/** Specify a custom URL to connect the client to. */
|
|
6
6
|
baseUrl?: core.Supplier<string>;
|
|
7
|
-
apiKey
|
|
7
|
+
apiKey: core.Supplier<string>;
|
|
8
8
|
/** Additional headers to include in requests. */
|
|
9
9
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
10
10
|
/** The default maximum time to wait for a response in seconds. */
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare class PinnacleClient {
|
|
|
29
29
|
protected _campaigns: Campaigns | undefined;
|
|
30
30
|
protected _status: Status | undefined;
|
|
31
31
|
protected _tools: Tools | undefined;
|
|
32
|
-
constructor(_options
|
|
32
|
+
constructor(_options: PinnacleClient.Options);
|
|
33
33
|
get brands(): Brands;
|
|
34
34
|
get audiences(): Audiences;
|
|
35
35
|
get contacts(): Contacts;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -49,12 +49,12 @@ const Client_js_11 = require("./api/resources/webhooks/client/Client.js");
|
|
|
49
49
|
const headers_js_1 = require("./core/headers.js");
|
|
50
50
|
const core = __importStar(require("./core/index.js"));
|
|
51
51
|
class PinnacleClient {
|
|
52
|
-
constructor(_options
|
|
52
|
+
constructor(_options) {
|
|
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);
|
|
@@ -11,7 +11,7 @@ export declare namespace Audiences {
|
|
|
11
11
|
export declare class Audiences {
|
|
12
12
|
protected readonly _options: Audiences.Options;
|
|
13
13
|
protected _contacts: Contacts | undefined;
|
|
14
|
-
constructor(_options
|
|
14
|
+
constructor(_options: Audiences.Options);
|
|
15
15
|
get contacts(): Contacts;
|
|
16
16
|
/**
|
|
17
17
|
* Retrieve an audience by ID with optional pagination.
|
|
@@ -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
|
*
|
|
@@ -51,7 +51,7 @@ const errors = __importStar(require("../../../../errors/index.js"));
|
|
|
51
51
|
const Pinnacle = __importStar(require("../../../index.js"));
|
|
52
52
|
const Client_js_1 = require("../resources/contacts/client/Client.js");
|
|
53
53
|
class Audiences {
|
|
54
|
-
constructor(_options
|
|
54
|
+
constructor(_options) {
|
|
55
55
|
this._options = _options;
|
|
56
56
|
}
|
|
57
57
|
get contacts() {
|
|
@@ -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:
|
|
@@ -9,7 +9,7 @@ export declare namespace Contacts {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Contacts {
|
|
11
11
|
protected readonly _options: Contacts.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options: Contacts.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Remove contacts from an existing audience. This operation is idempotent.
|
|
15
15
|
*
|
|
@@ -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
|
*
|
|
@@ -50,7 +50,7 @@ const environments = __importStar(require("../../../../../../environments.js"));
|
|
|
50
50
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
51
51
|
const Pinnacle = __importStar(require("../../../../../index.js"));
|
|
52
52
|
class Contacts {
|
|
53
|
-
constructor(_options
|
|
53
|
+
constructor(_options) {
|
|
54
54
|
this._options = _options;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
@@ -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:
|
|
@@ -9,7 +9,7 @@ export declare namespace Brands {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Brands {
|
|
11
11
|
protected readonly _options: Brands.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options: Brands.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Automatically populate brand information based on partial input data you provide.
|
|
15
15
|
*
|
|
@@ -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
|
|
@@ -33,13 +34,20 @@ export declare class Brands {
|
|
|
33
34
|
autofill(request?: Pinnacle.AutofillBrandParams, requestOptions?: Brands.RequestOptions): core.HttpResponsePromise<Pinnacle.OptionalBrandInfo>;
|
|
34
35
|
private __autofill;
|
|
35
36
|
/**
|
|
36
|
-
* Create a new brand or update an existing
|
|
37
|
+
* Create a new brand or update an existing one.
|
|
38
|
+
*
|
|
39
|
+
* <Note>
|
|
40
|
+
* **To create a new brand:** Omit `id` — one will be generated automatically.
|
|
41
|
+
*
|
|
42
|
+
* All fields are **required** except `description` and `dba`, and will be validated when [submitted](/api-reference/brands/submit).
|
|
43
|
+
* </Note>
|
|
37
44
|
*
|
|
38
45
|
* @param {Pinnacle.UpsertBrandParams} request
|
|
39
46
|
* @param {Brands.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
47
|
*
|
|
41
48
|
* @throws {@link Pinnacle.BadRequestError}
|
|
42
49
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
50
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
43
51
|
* @throws {@link Pinnacle.InternalServerError}
|
|
44
52
|
*
|
|
45
53
|
* @example
|
|
@@ -75,6 +83,7 @@ export declare class Brands {
|
|
|
75
83
|
*
|
|
76
84
|
* @throws {@link Pinnacle.BadRequestError}
|
|
77
85
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
86
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
78
87
|
* @throws {@link Pinnacle.NotFoundError}
|
|
79
88
|
* @throws {@link Pinnacle.InternalServerError}
|
|
80
89
|
*
|
|
@@ -93,6 +102,7 @@ export declare class Brands {
|
|
|
93
102
|
* @throws {@link Pinnacle.BadRequestError}
|
|
94
103
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
95
104
|
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
105
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
96
106
|
* @throws {@link Pinnacle.NotFoundError}
|
|
97
107
|
* @throws {@link Pinnacle.InternalServerError}
|
|
98
108
|
* @throws {@link Pinnacle.NotImplementedError}
|
|
@@ -110,6 +120,7 @@ export declare class Brands {
|
|
|
110
120
|
*
|
|
111
121
|
* @throws {@link Pinnacle.BadRequestError}
|
|
112
122
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
123
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
113
124
|
* @throws {@link Pinnacle.InternalServerError}
|
|
114
125
|
*
|
|
115
126
|
* @example
|
|
@@ -129,6 +140,7 @@ export declare class Brands {
|
|
|
129
140
|
* @throws {@link Pinnacle.BadRequestError}
|
|
130
141
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
131
142
|
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
143
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
132
144
|
* @throws {@link Pinnacle.NotFoundError}
|
|
133
145
|
* @throws {@link Pinnacle.InternalServerError}
|
|
134
146
|
* @throws {@link Pinnacle.NotImplementedError}
|
|
@@ -50,7 +50,7 @@ const environments = __importStar(require("../../../../environments.js"));
|
|
|
50
50
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
51
51
|
const Pinnacle = __importStar(require("../../../index.js"));
|
|
52
52
|
class Brands {
|
|
53
|
-
constructor(_options
|
|
53
|
+
constructor(_options) {
|
|
54
54
|
this._options = _options;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
@@ -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:
|
|
@@ -131,13 +134,20 @@ class Brands {
|
|
|
131
134
|
});
|
|
132
135
|
}
|
|
133
136
|
/**
|
|
134
|
-
* Create a new brand or update an existing
|
|
137
|
+
* Create a new brand or update an existing one.
|
|
138
|
+
*
|
|
139
|
+
* <Note>
|
|
140
|
+
* **To create a new brand:** Omit `id` — one will be generated automatically.
|
|
141
|
+
*
|
|
142
|
+
* All fields are **required** except `description` and `dba`, and will be validated when [submitted](/api-reference/brands/submit).
|
|
143
|
+
* </Note>
|
|
135
144
|
*
|
|
136
145
|
* @param {Pinnacle.UpsertBrandParams} request
|
|
137
146
|
* @param {Brands.RequestOptions} requestOptions - Request-specific configuration.
|
|
138
147
|
*
|
|
139
148
|
* @throws {@link Pinnacle.BadRequestError}
|
|
140
149
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
150
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
141
151
|
* @throws {@link Pinnacle.InternalServerError}
|
|
142
152
|
*
|
|
143
153
|
* @example
|
|
@@ -191,6 +201,8 @@ class Brands {
|
|
|
191
201
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
192
202
|
case 401:
|
|
193
203
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
204
|
+
case 403:
|
|
205
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
194
206
|
case 500:
|
|
195
207
|
throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
|
|
196
208
|
default:
|
|
@@ -228,6 +240,7 @@ class Brands {
|
|
|
228
240
|
*
|
|
229
241
|
* @throws {@link Pinnacle.BadRequestError}
|
|
230
242
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
243
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
231
244
|
* @throws {@link Pinnacle.NotFoundError}
|
|
232
245
|
* @throws {@link Pinnacle.InternalServerError}
|
|
233
246
|
*
|
|
@@ -266,6 +279,8 @@ class Brands {
|
|
|
266
279
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
267
280
|
case 401:
|
|
268
281
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
282
|
+
case 403:
|
|
283
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
269
284
|
case 404:
|
|
270
285
|
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
271
286
|
case 500:
|
|
@@ -305,6 +320,7 @@ class Brands {
|
|
|
305
320
|
* @throws {@link Pinnacle.BadRequestError}
|
|
306
321
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
307
322
|
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
323
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
308
324
|
* @throws {@link Pinnacle.NotFoundError}
|
|
309
325
|
* @throws {@link Pinnacle.InternalServerError}
|
|
310
326
|
* @throws {@link Pinnacle.NotImplementedError}
|
|
@@ -341,6 +357,8 @@ class Brands {
|
|
|
341
357
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
342
358
|
case 402:
|
|
343
359
|
throw new Pinnacle.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
360
|
+
case 403:
|
|
361
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
344
362
|
case 404:
|
|
345
363
|
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
346
364
|
case 500:
|
|
@@ -380,6 +398,7 @@ class Brands {
|
|
|
380
398
|
*
|
|
381
399
|
* @throws {@link Pinnacle.BadRequestError}
|
|
382
400
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
401
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
383
402
|
* @throws {@link Pinnacle.InternalServerError}
|
|
384
403
|
*
|
|
385
404
|
* @example
|
|
@@ -415,6 +434,8 @@ class Brands {
|
|
|
415
434
|
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
416
435
|
case 401:
|
|
417
436
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
437
|
+
case 403:
|
|
438
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
418
439
|
case 500:
|
|
419
440
|
throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
|
|
420
441
|
default:
|
|
@@ -454,6 +475,7 @@ class Brands {
|
|
|
454
475
|
* @throws {@link Pinnacle.BadRequestError}
|
|
455
476
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
456
477
|
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
478
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
457
479
|
* @throws {@link Pinnacle.NotFoundError}
|
|
458
480
|
* @throws {@link Pinnacle.InternalServerError}
|
|
459
481
|
* @throws {@link Pinnacle.NotImplementedError}
|
|
@@ -493,6 +515,8 @@ class Brands {
|
|
|
493
515
|
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
494
516
|
case 402:
|
|
495
517
|
throw new Pinnacle.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
518
|
+
case 403:
|
|
519
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
496
520
|
case 404:
|
|
497
521
|
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
498
522
|
case 500:
|
|
@@ -11,7 +11,7 @@ export declare class Campaigns {
|
|
|
11
11
|
protected _dlc: Dlc | undefined;
|
|
12
12
|
protected _tollFree: TollFree | undefined;
|
|
13
13
|
protected _rcs: Rcs | undefined;
|
|
14
|
-
constructor(_options
|
|
14
|
+
constructor(_options: Campaigns.Options);
|
|
15
15
|
get dlc(): Dlc;
|
|
16
16
|
get tollFree(): TollFree;
|
|
17
17
|
get rcs(): Rcs;
|
|
@@ -6,7 +6,7 @@ const Client_js_1 = require("../resources/dlc/client/Client.js");
|
|
|
6
6
|
const Client_js_2 = require("../resources/rcs/client/Client.js");
|
|
7
7
|
const Client_js_3 = require("../resources/tollFree/client/Client.js");
|
|
8
8
|
class Campaigns {
|
|
9
|
-
constructor(_options
|
|
9
|
+
constructor(_options) {
|
|
10
10
|
this._options = _options;
|
|
11
11
|
}
|
|
12
12
|
get dlc() {
|
|
@@ -9,7 +9,7 @@ export declare namespace Dlc {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Dlc {
|
|
11
11
|
protected readonly _options: Dlc.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options: Dlc.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Generate campaign details based off existing campaign and the brand it's connected to.
|
|
15
15
|
*
|
|
@@ -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
|
*
|
|
@@ -62,15 +65,24 @@ export declare class Dlc {
|
|
|
62
65
|
submit(campaignId: string, requestOptions?: Dlc.RequestOptions): core.HttpResponsePromise<Pinnacle.CampaignSubmissionResult>;
|
|
63
66
|
private __submit;
|
|
64
67
|
/**
|
|
65
|
-
* Create a new 10DLC campaign or
|
|
68
|
+
* Create a new 10DLC campaign or update an existing one.
|
|
66
69
|
*
|
|
67
|
-
*
|
|
70
|
+
* <Note>
|
|
71
|
+
* **To create a new campaign:** Omit `campaignId` — one will be generated automatically.
|
|
72
|
+
*
|
|
73
|
+
* **Before you start:** Create a [brand](/api-reference/brands/upsert) first — you'll need its `id` for the [`brand`](#request.body.brand) field.
|
|
74
|
+
*
|
|
75
|
+
* All fields are **required** unless specified otherwise, and will be validated when [submitted](/api-reference/campaigns/10-dlc/submit).
|
|
76
|
+
*
|
|
77
|
+
* **See the response for example values for each field.**
|
|
78
|
+
* </Note>
|
|
68
79
|
*
|
|
69
80
|
* @param {Pinnacle.campaigns.UpsertDlcCampaignParams} request
|
|
70
81
|
* @param {Dlc.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
82
|
*
|
|
72
83
|
* @throws {@link Pinnacle.BadRequestError}
|
|
73
84
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
85
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
74
86
|
* @throws {@link Pinnacle.NotFoundError}
|
|
75
87
|
* @throws {@link Pinnacle.InternalServerError}
|
|
76
88
|
*
|
|
@@ -78,27 +90,27 @@ export declare class Dlc {
|
|
|
78
90
|
* await client.campaigns.dlc.upsert({
|
|
79
91
|
* autoRenew: true,
|
|
80
92
|
* brand: "b_1234567890",
|
|
81
|
-
*
|
|
93
|
+
* description: "This campaign sends transactional SMS messages to customers who have opted in, including account notifications, security alerts, and customer care responses. Messages are sent when triggered by account activity such as login attempts, password changes, order updates, or support inquiries. All messages include required STOP/HELP disclosures and comply with TCPA guidelines.",
|
|
82
94
|
* keywords: {
|
|
83
95
|
* HELP: {
|
|
84
|
-
* message: "
|
|
85
|
-
* values: ["HELP", "
|
|
96
|
+
* message: "Pinnacle Software Development Inc.: For assistance, visit https://pinnacle.sh/support or email founders@trypinnacle.app. Msg&data rates may apply. Reply STOP to cancel.",
|
|
97
|
+
* values: ["HELP", "SUPPORT", "INFO"]
|
|
86
98
|
* },
|
|
87
99
|
* OPT_IN: {
|
|
88
|
-
* message: "
|
|
89
|
-
* values: ["
|
|
100
|
+
* message: "Pinnacle Software Development Inc.: You're enrolled in account & security alerts. Msg&data rates may apply. Message frequency varies. Reply HELP for help, STOP to cancel. Terms: https://pinnacle.sh/terms Privacy: https://pinnacle.sh/privacy",
|
|
101
|
+
* values: ["START", "YES", "SUBSCRIBE"]
|
|
90
102
|
* },
|
|
91
103
|
* OPT_OUT: {
|
|
92
|
-
* message: "You
|
|
93
|
-
* values: ["STOP", "
|
|
104
|
+
* message: "Pinnacle Software Development Inc.: You're unsubscribed and will receive no further texts. For assistance, visit https://pinnacle.sh or call 877-389-0460. Reply START to resubscribe.",
|
|
105
|
+
* values: ["STOP", "CANCEL", "UNSUBSCRIBE"]
|
|
94
106
|
* }
|
|
95
107
|
* },
|
|
96
108
|
* links: {
|
|
97
109
|
* privacyPolicy: "https://www.pinnacle.sh/privacy",
|
|
98
110
|
* termsOfService: "https://www.pinnacle.sh/terms"
|
|
99
111
|
* },
|
|
100
|
-
* messageFlow: "Customer
|
|
101
|
-
* name: "Account Notifications",
|
|
112
|
+
* messageFlow: "The user fills out a paper form during onboarding at [Address] which they learn about at our website (https://pinnacle.sh) in which they provide their phone number and sign their consent. The form includes a disclaimer: \"By signing this form and providing your phone number, you agree to receive SMS Mixed - Account Notification, Customer Care, Security Alert, Delivery Notification from Pinnacle Software Development Inc. Message frequency may vary. Standard Message and Data Rates may apply. Reply STOP to opt out. Reply HELP for help. Consent is not a condition of purchase. Your mobile information will not be sold or shared with third parties for promotional or marketing purposes.\" Once the information is entered into the system, the user receives a confirmation SMS: \"Thank you for signing up for SMS updates from Pinnacle Software Development Inc. Msg freq may vary. Std msg & data rates apply. Reply STOP to opt out, HELP for help.\" Link to paper form: https://www.pinnacle.sh/opt-in",
|
|
113
|
+
* name: "Pinnacle's Account Notifications",
|
|
102
114
|
* options: {
|
|
103
115
|
* affiliateMarketing: false,
|
|
104
116
|
* ageGated: false,
|
|
@@ -107,10 +119,10 @@ export declare class Dlc {
|
|
|
107
119
|
* embeddedPhone: false,
|
|
108
120
|
* numberPooling: false
|
|
109
121
|
* },
|
|
110
|
-
* sampleMessages: ["
|
|
122
|
+
* sampleMessages: ["Pinnacle Software Development Inc.: We're here to help. Visit https://pinnacle.sh or call 877-389-0460. Msg&data rates may apply. Reply STOP to cancel.", "Pinnacle Software Development Inc.: You're enrolled in account & security alerts. Msg&data rates may apply. Message frequency varies. Reply HELP for help, STOP to cancel. Terms: https://pinnacle.sh/terms/ Privacy: https://pinnacle.sh/privacy/", "Pinnacle Software Development Inc.: An update has been made to your account. Read it in the portal.", "Pinnacle Software Development Inc.: We received your message. A team member will reply shortly. For immediate help call 877-389-0460. Msg&data rates may apply. Reply STOP to cancel."],
|
|
111
123
|
* useCase: {
|
|
112
|
-
* sub: ["
|
|
113
|
-
* value: "
|
|
124
|
+
* sub: ["ACCOUNT_NOTIFICATION", "CUSTOMER_CARE", "SECURITY_ALERT"],
|
|
125
|
+
* value: "MIXED"
|
|
114
126
|
* }
|
|
115
127
|
* })
|
|
116
128
|
*/
|
|
@@ -124,6 +136,7 @@ export declare class Dlc {
|
|
|
124
136
|
*
|
|
125
137
|
* @throws {@link Pinnacle.BadRequestError}
|
|
126
138
|
* @throws {@link Pinnacle.UnauthorizedError}
|
|
139
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
127
140
|
* @throws {@link Pinnacle.InternalServerError}
|
|
128
141
|
*
|
|
129
142
|
* @example
|