Skip to content

Commit 14c33c8

Browse files
James RobertsonJames Robertson
authored andcommitted
v0.0.14
1 parent 4178953 commit 14c33c8

File tree

612 files changed

+5178
-12273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

612 files changed

+5178
-12273
lines changed

dist/ApiClient.js

Lines changed: 56 additions & 140 deletions
Large diffs are not rendered by default.

dist/api/AnnouncementApi.js

Lines changed: 26 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,20 @@ Object.defineProperty(exports, "__esModule", {
44
value: true
55
});
66
exports["default"] = void 0;
7-
87
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
9-
108
var _GetDetailedOpenRateOfAnnouncementByIdResponse = _interopRequireDefault(require("../model/GetDetailedOpenRateOfAnnouncementByIdResponse"));
11-
129
var _GetDetailedOpenRateOfAnnouncementGroupResponse = _interopRequireDefault(require("../model/GetDetailedOpenRateOfAnnouncementGroupResponse"));
13-
1410
var _GetDetailedOpenStatusOfAnnouncementByIdResponse = _interopRequireDefault(require("../model/GetDetailedOpenStatusOfAnnouncementByIdResponse"));
15-
1611
var _ViewAnnouncementByIdResponse = _interopRequireDefault(require("../model/ViewAnnouncementByIdResponse"));
17-
1812
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19-
2013
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21-
2214
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
23-
2415
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25-
2616
/**
2717
* Announcement service.
2818
* @module api/AnnouncementApi
29-
* @version 0.0.13
30-
*/
31-
var AnnouncementApi = /*#__PURE__*/function () {
19+
* @version 0.0.14
20+
*/var AnnouncementApi = /*#__PURE__*/function () {
3221
/**
3322
* Constructs a new AnnouncementApi.
3423
* @alias module:api/AnnouncementApi
@@ -38,32 +27,28 @@ var AnnouncementApi = /*#__PURE__*/function () {
3827
*/
3928
function AnnouncementApi(apiClient) {
4029
_classCallCheck(this, AnnouncementApi);
41-
4230
this.apiClient = apiClient || _ApiClient["default"].instance;
4331
}
32+
4433
/**
4534
* Get detailed open rate of an announcement
4635
* ## Get detailed open rate of an announcement Retrieves the detailed open rate information of an announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement ---------------------------- `unique_id` Type: string Description: Specifies the unique ID of the announcement to get its open rate.
4736
* @param {String} apiToken
4837
* @param {String} uniqueId
4938
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDetailedOpenRateOfAnnouncementByIdResponse} and HTTP response
5039
*/
51-
52-
5340
_createClass(AnnouncementApi, [{
5441
key: "getDetailedOpenRateOfAnnouncementByIdWithHttpInfo",
5542
value: function getDetailedOpenRateOfAnnouncementByIdWithHttpInfo(apiToken, uniqueId) {
56-
var postBody = null; // verify the required parameter 'apiToken' is set
57-
43+
var postBody = null;
44+
// verify the required parameter 'apiToken' is set
5845
if (apiToken === undefined || apiToken === null) {
5946
throw new Error("Missing the required parameter 'apiToken' when calling getDetailedOpenRateOfAnnouncementById");
60-
} // verify the required parameter 'uniqueId' is set
61-
62-
47+
}
48+
// verify the required parameter 'uniqueId' is set
6349
if (uniqueId === undefined || uniqueId === null) {
6450
throw new Error("Missing the required parameter 'uniqueId' when calling getDetailedOpenRateOfAnnouncementById");
6551
}
66-
6752
var pathParams = {
6853
'unique_id': uniqueId
6954
};
@@ -78,43 +63,41 @@ var AnnouncementApi = /*#__PURE__*/function () {
7863
var returnType = _GetDetailedOpenRateOfAnnouncementByIdResponse["default"];
7964
return this.apiClient.callApi('/v3/announcement_open_rate/{unique_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
8065
}
66+
8167
/**
8268
* Get detailed open rate of an announcement
8369
* ## Get detailed open rate of an announcement Retrieves the detailed open rate information of an announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement ---------------------------- `unique_id` Type: string Description: Specifies the unique ID of the announcement to get its open rate.
8470
* @param {String} apiToken
8571
* @param {String} uniqueId
8672
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDetailedOpenRateOfAnnouncementByIdResponse}
8773
*/
88-
8974
}, {
9075
key: "getDetailedOpenRateOfAnnouncementById",
9176
value: function getDetailedOpenRateOfAnnouncementById(apiToken, uniqueId) {
9277
return this.getDetailedOpenRateOfAnnouncementByIdWithHttpInfo(apiToken, uniqueId).then(function (response_and_data) {
9378
return response_and_data.data;
9479
});
9580
}
81+
9682
/**
9783
* Get detailed open rate of an announcement group
9884
* ## Get detailed open rate of an announcement group Retrieves the detailed open rate information of an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement-group ----------------------------
9985
* @param {String} apiToken
10086
* @param {String} announcementGroup
10187
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDetailedOpenRateOfAnnouncementGroupResponse} and HTTP response
10288
*/
103-
10489
}, {
10590
key: "getDetailedOpenRateOfAnnouncementGroupWithHttpInfo",
10691
value: function getDetailedOpenRateOfAnnouncementGroupWithHttpInfo(apiToken, announcementGroup) {
107-
var postBody = null; // verify the required parameter 'apiToken' is set
108-
92+
var postBody = null;
93+
// verify the required parameter 'apiToken' is set
10994
if (apiToken === undefined || apiToken === null) {
11095
throw new Error("Missing the required parameter 'apiToken' when calling getDetailedOpenRateOfAnnouncementGroup");
111-
} // verify the required parameter 'announcementGroup' is set
112-
113-
96+
}
97+
// verify the required parameter 'announcementGroup' is set
11498
if (announcementGroup === undefined || announcementGroup === null) {
11599
throw new Error("Missing the required parameter 'announcementGroup' when calling getDetailedOpenRateOfAnnouncementGroup");
116100
}
117-
118101
var pathParams = {
119102
'announcement_group': announcementGroup
120103
};
@@ -129,21 +112,22 @@ var AnnouncementApi = /*#__PURE__*/function () {
129112
var returnType = _GetDetailedOpenRateOfAnnouncementGroupResponse["default"];
130113
return this.apiClient.callApi('/v3/announcement_open_rate_by_group/{announcement_group}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
131114
}
115+
132116
/**
133117
* Get detailed open rate of an announcement group
134118
* ## Get detailed open rate of an announcement group Retrieves the detailed open rate information of an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement-group ----------------------------
135119
* @param {String} apiToken
136120
* @param {String} announcementGroup
137121
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDetailedOpenRateOfAnnouncementGroupResponse}
138122
*/
139-
140123
}, {
141124
key: "getDetailedOpenRateOfAnnouncementGroup",
142125
value: function getDetailedOpenRateOfAnnouncementGroup(apiToken, announcementGroup) {
143126
return this.getDetailedOpenRateOfAnnouncementGroupWithHttpInfo(apiToken, announcementGroup).then(function (response_and_data) {
144127
return response_and_data.data;
145128
});
146129
}
130+
147131
/**
148132
* Get detailed open status of an announcement
149133
* ## Get detailed open status of an announcement Retrieves the detailed open status information of a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-status-of-an-announcement ----------------------------
@@ -157,22 +141,19 @@ var AnnouncementApi = /*#__PURE__*/function () {
157141
* @param {Boolean} opts.hasOpened
158142
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDetailedOpenStatusOfAnnouncementByIdResponse} and HTTP response
159143
*/
160-
161144
}, {
162145
key: "getDetailedOpenStatusOfAnnouncementByIdWithHttpInfo",
163146
value: function getDetailedOpenStatusOfAnnouncementByIdWithHttpInfo(apiToken, uniqueId, opts) {
164147
opts = opts || {};
165-
var postBody = null; // verify the required parameter 'apiToken' is set
166-
148+
var postBody = null;
149+
// verify the required parameter 'apiToken' is set
167150
if (apiToken === undefined || apiToken === null) {
168151
throw new Error("Missing the required parameter 'apiToken' when calling getDetailedOpenStatusOfAnnouncementById");
169-
} // verify the required parameter 'uniqueId' is set
170-
171-
152+
}
153+
// verify the required parameter 'uniqueId' is set
172154
if (uniqueId === undefined || uniqueId === null) {
173155
throw new Error("Missing the required parameter 'uniqueId' when calling getDetailedOpenStatusOfAnnouncementById");
174156
}
175-
176157
var pathParams = {
177158
'unique_id': uniqueId
178159
};
@@ -193,6 +174,7 @@ var AnnouncementApi = /*#__PURE__*/function () {
193174
var returnType = _GetDetailedOpenStatusOfAnnouncementByIdResponse["default"];
194175
return this.apiClient.callApi('/v3/announcement_open_status/{unique_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
195176
}
177+
196178
/**
197179
* Get detailed open status of an announcement
198180
* ## Get detailed open status of an announcement Retrieves the detailed open status information of a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-status-of-an-announcement ----------------------------
@@ -206,36 +188,33 @@ var AnnouncementApi = /*#__PURE__*/function () {
206188
* @param {Boolean} opts.hasOpened
207189
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDetailedOpenStatusOfAnnouncementByIdResponse}
208190
*/
209-
210191
}, {
211192
key: "getDetailedOpenStatusOfAnnouncementById",
212193
value: function getDetailedOpenStatusOfAnnouncementById(apiToken, uniqueId, opts) {
213194
return this.getDetailedOpenStatusOfAnnouncementByIdWithHttpInfo(apiToken, uniqueId, opts).then(function (response_and_data) {
214195
return response_and_data.data;
215196
});
216197
}
198+
217199
/**
218200
* View an announcement
219201
* ## View an announcement Retrieves information on a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-view-an-announcement ----------------------------
220202
* @param {String} apiToken
221203
* @param {String} uniqueId
222204
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewAnnouncementByIdResponse} and HTTP response
223205
*/
224-
225206
}, {
226207
key: "viewAnnouncementByIdWithHttpInfo",
227208
value: function viewAnnouncementByIdWithHttpInfo(apiToken, uniqueId) {
228-
var postBody = null; // verify the required parameter 'apiToken' is set
229-
209+
var postBody = null;
210+
// verify the required parameter 'apiToken' is set
230211
if (apiToken === undefined || apiToken === null) {
231212
throw new Error("Missing the required parameter 'apiToken' when calling viewAnnouncementById");
232-
} // verify the required parameter 'uniqueId' is set
233-
234-
213+
}
214+
// verify the required parameter 'uniqueId' is set
235215
if (uniqueId === undefined || uniqueId === null) {
236216
throw new Error("Missing the required parameter 'uniqueId' when calling viewAnnouncementById");
237217
}
238-
239218
var pathParams = {
240219
'unique_id': uniqueId
241220
};
@@ -250,14 +229,14 @@ var AnnouncementApi = /*#__PURE__*/function () {
250229
var returnType = _ViewAnnouncementByIdResponse["default"];
251230
return this.apiClient.callApi('/v3/announcements/{unique_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
252231
}
232+
253233
/**
254234
* View an announcement
255235
* ## View an announcement Retrieves information on a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-view-an-announcement ----------------------------
256236
* @param {String} apiToken
257237
* @param {String} uniqueId
258238
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewAnnouncementByIdResponse}
259239
*/
260-
261240
}, {
262241
key: "viewAnnouncementById",
263242
value: function viewAnnouncementById(apiToken, uniqueId) {
@@ -266,8 +245,6 @@ var AnnouncementApi = /*#__PURE__*/function () {
266245
});
267246
}
268247
}]);
269-
270248
return AnnouncementApi;
271249
}();
272-
273250
exports["default"] = AnnouncementApi;

0 commit comments

Comments
 (0)