@gobodo/gobodo-api-promise 0.1.51 → 0.1.60

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.
Files changed (217) hide show
  1. package/README.md +88 -12
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/ActionTypesApi.js +2 -2
  4. package/dist/api/AdCampaignsApi.js +2 -2
  5. package/dist/api/AdManagementApi.js +2 -2
  6. package/dist/api/AdminDataManagementApi.js +2 -2
  7. package/dist/api/AdsApi.js +2 -2
  8. package/dist/api/AttachmentsApi.js +2 -2
  9. package/dist/api/AuthenticationApi.js +44 -2
  10. package/dist/api/CategoriesApi.js +2 -2
  11. package/dist/api/CommentsApi.js +2 -2
  12. package/dist/api/ContentManagementApi.js +2 -2
  13. package/dist/api/ConversationsApi.js +2 -2
  14. package/dist/api/DataSheetImportsApi.js +2 -2
  15. package/dist/api/DefaultApi.js +4 -432
  16. package/dist/api/DocumentsApi.js +2 -2
  17. package/dist/api/EmailsApi.js +346 -0
  18. package/dist/api/EntryPartsApi.js +2 -2
  19. package/dist/api/FacebookApi.js +2 -2
  20. package/dist/api/FieldsApi.js +2 -2
  21. package/dist/api/FilesApi.js +2 -2
  22. package/dist/api/FormsApi.js +2 -2
  23. package/dist/api/FunctionsApi.js +1373 -25
  24. package/dist/api/GeocodeApi.js +2 -2
  25. package/dist/api/GoogleApi.js +2 -2
  26. package/dist/api/GraphActionTypesApi.js +632 -0
  27. package/dist/api/GraphActionsApi.js +2 -2
  28. package/dist/api/GraphObjectTypesApi.js +163 -5
  29. package/dist/api/GraphObjectsApi.js +2 -2
  30. package/dist/api/GraphRelationshipTypesApi.js +160 -2
  31. package/dist/api/GraphRelationshipsApi.js +2 -2
  32. package/dist/api/GraphSchemasApi.js +2 -2
  33. package/dist/api/GraphTraversalApi.js +2 -2
  34. package/dist/api/GraphsApi.js +2 -2
  35. package/dist/api/GroupsApi.js +2 -2
  36. package/dist/api/IAMApi.js +2 -2
  37. package/dist/api/ImagesApi.js +2 -2
  38. package/dist/api/InvitesApi.js +2 -2
  39. package/dist/api/LikesApi.js +2 -2
  40. package/dist/api/LinkedINApi.js +2 -2
  41. package/dist/api/LiveMeetingsApi.js +2 -2
  42. package/dist/api/MeetingEventsApi.js +2 -2
  43. package/dist/api/NotificationsApi.js +1076 -0
  44. package/dist/api/PagesApi.js +2 -2
  45. package/dist/api/PhoneNumbersApi.js +403 -0
  46. package/dist/api/PostsApi.js +2 -2
  47. package/dist/api/PrivateMessagesApi.js +2 -2
  48. package/dist/api/PublicationsApi.js +2 -2
  49. package/dist/api/ScreensApi.js +2 -2
  50. package/dist/api/SocialIntegrationApi.js +2 -2
  51. package/dist/api/StripeAccountsApi.js +13 -13
  52. package/dist/api/TagsApi.js +2 -2
  53. package/dist/api/TemplatesApi.js +2 -2
  54. package/dist/api/ThemeMappingsApi.js +2 -2
  55. package/dist/api/TopicsApi.js +569 -0
  56. package/dist/api/TransactionsApi.js +2 -2
  57. package/dist/api/TwitterApi.js +2 -2
  58. package/dist/api/UserTagsApi.js +2 -2
  59. package/dist/api/UsersApi.js +7 -7
  60. package/dist/api/UtilsApi.js +2 -2
  61. package/dist/api/VideosApi.js +2 -2
  62. package/dist/index.js +196 -7
  63. package/dist/model/APIClient.js +23 -23
  64. package/dist/model/AccountSessionInput.js +2 -2
  65. package/dist/model/AccountSessionResponse.js +2 -2
  66. package/dist/model/ApplicationPaymentAccountResponse.js +2 -2
  67. package/dist/model/ApplicationPaymentAccountResponseFailureException.js +2 -49
  68. package/dist/model/ApplicationPaymentAccountResponseFailureExceptionStackTraceInner.js +2 -2
  69. package/dist/model/ApplicationPaymentAccountResponseFailureExceptionSuppressedInner.js +2 -2
  70. package/dist/model/Article.js +80 -80
  71. package/dist/model/AuthResponse.js +2 -2
  72. package/dist/model/AwsSettings.js +193 -0
  73. package/dist/model/Balance.js +49 -49
  74. package/dist/model/BalanceDetails.js +2 -2
  75. package/dist/model/BalanceResponse.js +2 -2
  76. package/dist/model/BankAccountInfo.js +2 -2
  77. package/dist/model/CardInfo.js +2 -2
  78. package/dist/model/Comment.js +27 -27
  79. package/dist/model/Coordinates.js +2 -2
  80. package/dist/model/CreateAccountResponse.js +2 -2
  81. package/dist/model/CreateFunctionInput.js +238 -0
  82. package/dist/model/CreateStripeAccountInput.js +2 -2
  83. package/dist/model/CreateStripeCustomerInput.js +2 -2
  84. package/dist/model/CreateTopicInput.js +191 -0
  85. package/dist/model/CreateTopicListenerInput.js +160 -0
  86. package/dist/model/CustomerResponse.js +2 -2
  87. package/dist/model/DataObject.js +2 -2
  88. package/dist/model/DataSheetImport.js +62 -62
  89. package/dist/model/DataSheetImportPrivacySettings.js +2 -2
  90. package/dist/model/DataSheetImportSummary.js +2 -2
  91. package/dist/model/DeviceRegistrationRequest.js +252 -0
  92. package/dist/model/Document.js +80 -80
  93. package/dist/model/DocumentPart.js +52 -52
  94. package/dist/model/DocumentPartType.js +27 -27
  95. package/dist/model/DocumentType.js +70 -70
  96. package/dist/model/EmailAddress.js +245 -0
  97. package/dist/model/FieldMapping.js +2 -2
  98. package/dist/model/Fields.js +61 -61
  99. package/dist/model/File.js +43 -43
  100. package/dist/model/FileAttachmentUploadObject.js +43 -43
  101. package/dist/model/Filter.js +2 -2
  102. package/dist/model/FilterManager.js +2 -2
  103. package/dist/model/Form.js +29 -29
  104. package/dist/model/FormSection.js +2 -2
  105. package/dist/model/FormSubmission.js +30 -30
  106. package/dist/model/FunctionConfigInput.js +563 -0
  107. package/dist/model/FunctionEnvironmentConfig.js +221 -0
  108. package/dist/model/FunctionInput.js +260 -0
  109. package/dist/model/FunctionOutput.js +235 -0
  110. package/dist/model/Geocode.js +2 -2
  111. package/dist/model/GeocodePayload.js +2 -2
  112. package/dist/model/GeolocationInput.js +2 -2
  113. package/dist/model/GetFunctionConfig.js +536 -0
  114. package/dist/model/GetFunctionEnvironmentConfig.js +223 -0
  115. package/dist/model/GetFunctionResponse.js +302 -0
  116. package/dist/model/GoogleCloudSettings.js +162 -0
  117. package/dist/model/Graph.js +124 -124
  118. package/dist/model/GraphAction.js +29 -29
  119. package/dist/model/GraphDatabaseService.js +2 -2
  120. package/dist/model/GraphGeocode.js +2 -2
  121. package/dist/model/GraphIteratorEntryPart.js +2 -2
  122. package/dist/model/GraphObject.js +81 -81
  123. package/dist/model/GraphObjectPayload.js +2 -2
  124. package/dist/model/GraphObjectSchema.js +109 -109
  125. package/dist/model/GraphObjectType.js +77 -77
  126. package/dist/model/GraphObjectTypeSchema.js +77 -77
  127. package/dist/model/GraphOwner.js +2 -2
  128. package/dist/model/GraphRelationship.js +30 -30
  129. package/dist/model/GraphRelationshipPayload.js +2 -2
  130. package/dist/model/GraphRelationshipType.js +2 -2
  131. package/dist/model/GraphSchema.js +52 -52
  132. package/dist/model/GraphTraversalInput.js +2 -2
  133. package/dist/model/Image.js +82 -82
  134. package/dist/model/ImageUploadObject.js +82 -82
  135. package/dist/model/InputPart.js +29 -29
  136. package/dist/model/InputPartHeaders.js +106 -0
  137. package/dist/model/InputPartMediaType.js +2 -2
  138. package/dist/model/KafkaSettings.js +220 -0
  139. package/dist/model/Link.js +69 -69
  140. package/dist/model/LiveStreamInfo.js +2 -2
  141. package/dist/model/MeetingEvent.js +25 -25
  142. package/dist/model/MeetingEventTimezone.js +2 -2
  143. package/dist/model/MeetingInfo.js +31 -31
  144. package/dist/model/Member.js +53 -53
  145. package/dist/model/MemberGroupCategory.js +2 -2
  146. package/dist/model/MemberList.js +2 -2
  147. package/dist/model/MessageGroup.js +25 -25
  148. package/dist/model/MultipartBody.js +2 -2
  149. package/dist/model/Notification.js +381 -0
  150. package/dist/model/NotificationInput.js +273 -0
  151. package/dist/model/NotificationResponse.js +332 -0
  152. package/dist/model/Objecttype.js +64 -64
  153. package/dist/model/OutParameter.js +162 -0
  154. package/dist/model/Page.js +2 -2
  155. package/dist/model/PageSchema.js +65 -65
  156. package/dist/model/Pageable.js +2 -2
  157. package/dist/model/Parameter.js +162 -0
  158. package/dist/model/Path.js +2 -2
  159. package/dist/model/PaymentAccountObject.js +2 -2
  160. package/dist/model/PaymentIntentInput.js +2 -2
  161. package/dist/model/PaymentIntentResponse.js +2 -2
  162. package/dist/model/PaymentMethod.js +23 -23
  163. package/dist/model/PaymentMethodInput.js +2 -2
  164. package/dist/model/PaymentMethodResponse.js +2 -2
  165. package/dist/model/PaymentMethodsResponse.js +2 -2
  166. package/dist/model/Payout.js +32 -32
  167. package/dist/model/PayoutInput.js +2 -2
  168. package/dist/model/PayoutResponse.js +2 -2
  169. package/dist/model/PhoneNumber.js +332 -0
  170. package/dist/model/Post.js +2 -2
  171. package/dist/model/PrivateMessage.js +25 -25
  172. package/dist/model/PrivateMessageConversation.js +94 -94
  173. package/dist/model/PrivateMessageConversationSchema.js +2 -2
  174. package/dist/model/Profile.js +2 -2
  175. package/dist/model/Profiletype.js +2 -2
  176. package/dist/model/PropertyContainer.js +25 -25
  177. package/dist/model/PurgeDataDefaultResponse.js +179 -0
  178. package/dist/model/PurgeDataDefaultResponseValue.js +2 -2
  179. package/dist/model/RelationshipMapping.js +2 -2
  180. package/dist/model/ScreenSchema.js +81 -81
  181. package/dist/model/SimulcastInfo.js +2 -2
  182. package/dist/model/SkinField.js +61 -61
  183. package/dist/model/SocialGroup.js +2 -2
  184. package/dist/model/SocialGroupType.js +25 -25
  185. package/dist/model/Sort.js +2 -2
  186. package/dist/model/SourceTypes.js +2 -2
  187. package/dist/model/StatusUpdate.js +2 -2
  188. package/dist/model/StreetAddress.js +2 -2
  189. package/dist/model/StripeAccount.js +2 -2
  190. package/dist/model/StripeCustomerAccount.js +2 -2
  191. package/dist/model/Template.js +58 -58
  192. package/dist/model/TemplateSchema.js +58 -58
  193. package/dist/model/ThemeMapping.js +27 -27
  194. package/dist/model/ThemeMappingPayload.js +25 -25
  195. package/dist/model/TopicInfoResponse.js +269 -0
  196. package/dist/model/TopicMessageInput.js +158 -0
  197. package/dist/model/TopicSubscriptionResponse.js +220 -0
  198. package/dist/model/Transaction.js +2 -2
  199. package/dist/model/Transfer.js +55 -55
  200. package/dist/model/TransferInput.js +2 -2
  201. package/dist/model/TransferResponse.js +2 -2
  202. package/dist/model/TransferResponsePaymentMethodDetails.js +55 -55
  203. package/dist/model/TraversalRelationResponse.js +2 -2
  204. package/dist/model/User.js +53 -53
  205. package/dist/model/UserDataPayload.js +53 -53
  206. package/dist/model/UserDomain.js +2 -2
  207. package/dist/model/UserInvite.js +29 -29
  208. package/dist/model/UserInviteInput.js +2 -2
  209. package/dist/model/UserSchema.js +53 -53
  210. package/dist/model/UserTag.js +2 -2
  211. package/dist/model/Userid.js +2 -2
  212. package/dist/model/Video.js +97 -97
  213. package/dist/model/VideoLiveUrl.js +2 -2
  214. package/dist/model/VideoSchema.js +124 -124
  215. package/dist/model/VideoUploadObject.js +97 -97
  216. package/dist/model/ZeusPortalCategory.js +2 -2
  217. package/package.json +1 -1
@@ -0,0 +1,381 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _DataObject = _interopRequireDefault(require("./DataObject"));
9
+ var _Member = _interopRequireDefault(require("./Member"));
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
+ 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, _toPropertyKey(descriptor.key), descriptor); } }
14
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
15
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
16
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
17
+ * gobodo-api
18
+ * REST Interface for Gobodo API
19
+ *
20
+ * The version of the OpenAPI document: 0.1.57
21
+ * Contact: info@gobodo.io
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+ /**
29
+ * The Notification model module.
30
+ * @module model/Notification
31
+ * @version 0.1.57
32
+ */
33
+ var Notification = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>Notification</code>.
36
+ * @alias module:model/Notification
37
+ */
38
+ function Notification() {
39
+ _classCallCheck(this, Notification);
40
+ Notification.initialize(this);
41
+ }
42
+
43
+ /**
44
+ * Initializes the fields of this object.
45
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
46
+ * Only for internal use.
47
+ */
48
+ _createClass(Notification, [{
49
+ key: "getMessage",
50
+ value:
51
+ /**
52
+ * @return {String}
53
+ */
54
+ function getMessage() {
55
+ return this.message;
56
+ }
57
+
58
+ /**
59
+ * @param {String} message
60
+ */
61
+ }, {
62
+ key: "setMessage",
63
+ value: function setMessage(message) {
64
+ this['message'] = message;
65
+ }
66
+ /**
67
+ * @return {Date}
68
+ */
69
+ }, {
70
+ key: "getDate",
71
+ value: function getDate() {
72
+ return this.date;
73
+ }
74
+
75
+ /**
76
+ * @param {Date} date
77
+ */
78
+ }, {
79
+ key: "setDate",
80
+ value: function setDate(date) {
81
+ this['date'] = date;
82
+ }
83
+ /**
84
+ * @return {Boolean}
85
+ */
86
+ }, {
87
+ key: "getRead",
88
+ value: function getRead() {
89
+ return this.read;
90
+ }
91
+
92
+ /**
93
+ * @param {Boolean} read
94
+ */
95
+ }, {
96
+ key: "setRead",
97
+ value: function setRead(read) {
98
+ this['read'] = read;
99
+ }
100
+ /**
101
+ * @return {String}
102
+ */
103
+ }, {
104
+ key: "getSubject",
105
+ value: function getSubject() {
106
+ return this.subject;
107
+ }
108
+
109
+ /**
110
+ * @param {String} subject
111
+ */
112
+ }, {
113
+ key: "setSubject",
114
+ value: function setSubject(subject) {
115
+ this['subject'] = subject;
116
+ }
117
+ /**
118
+ * @return {Array.<module:model/Notification.MessageTypeEnum>}
119
+ */
120
+ }, {
121
+ key: "getMessageType",
122
+ value: function getMessageType() {
123
+ return this.messageType;
124
+ }
125
+
126
+ /**
127
+ * @param {Array.<module:model/Notification.MessageTypeEnum>} messageType
128
+ */
129
+ }, {
130
+ key: "setMessageType",
131
+ value: function setMessageType(messageType) {
132
+ this['messageType'] = messageType;
133
+ }
134
+ /**
135
+ * @return {Date}
136
+ */
137
+ }, {
138
+ key: "getReadDate",
139
+ value: function getReadDate() {
140
+ return this.readDate;
141
+ }
142
+
143
+ /**
144
+ * @param {Date} readDate
145
+ */
146
+ }, {
147
+ key: "setReadDate",
148
+ value: function setReadDate(readDate) {
149
+ this['readDate'] = readDate;
150
+ }
151
+ /**
152
+ * @return {module:model/DataObject}
153
+ */
154
+ }, {
155
+ key: "getAttachedObject",
156
+ value: function getAttachedObject() {
157
+ return this.attachedObject;
158
+ }
159
+
160
+ /**
161
+ * @param {module:model/DataObject} attachedObject
162
+ */
163
+ }, {
164
+ key: "setAttachedObject",
165
+ value: function setAttachedObject(attachedObject) {
166
+ this['attachedObject'] = attachedObject;
167
+ }
168
+ /**
169
+ * @return {module:model/Member}
170
+ */
171
+ }, {
172
+ key: "getRecipient",
173
+ value: function getRecipient() {
174
+ return this.recipient;
175
+ }
176
+
177
+ /**
178
+ * @param {module:model/Member} recipient
179
+ */
180
+ }, {
181
+ key: "setRecipient",
182
+ value: function setRecipient(recipient) {
183
+ this['recipient'] = recipient;
184
+ }
185
+ /**
186
+ * @return {Object}
187
+ */
188
+ }, {
189
+ key: "getData",
190
+ value: function getData() {
191
+ return this.data;
192
+ }
193
+
194
+ /**
195
+ * @param {Object} data
196
+ */
197
+ }, {
198
+ key: "setData",
199
+ value: function setData(data) {
200
+ this['data'] = data;
201
+ }
202
+ /**
203
+ * @return {Number}
204
+ */
205
+ }, {
206
+ key: "getId",
207
+ value: function getId() {
208
+ return this.id;
209
+ }
210
+
211
+ /**
212
+ * @param {Number} id
213
+ */
214
+ }, {
215
+ key: "setId",
216
+ value: function setId(id) {
217
+ this['id'] = id;
218
+ }
219
+ }], [{
220
+ key: "initialize",
221
+ value: function initialize(obj) {}
222
+
223
+ /**
224
+ * Constructs a <code>Notification</code> from a plain JavaScript object, optionally creating a new instance.
225
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
226
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
227
+ * @param {module:model/Notification} obj Optional instance to populate.
228
+ * @return {module:model/Notification} The populated <code>Notification</code> instance.
229
+ */
230
+ }, {
231
+ key: "constructFromObject",
232
+ value: function constructFromObject(data, obj) {
233
+ if (data) {
234
+ obj = obj || new Notification();
235
+ if (data.hasOwnProperty('message')) {
236
+ obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
237
+ }
238
+ if (data.hasOwnProperty('date')) {
239
+ obj['date'] = _ApiClient["default"].convertToType(data['date'], 'Date');
240
+ }
241
+ if (data.hasOwnProperty('read')) {
242
+ obj['read'] = _ApiClient["default"].convertToType(data['read'], 'Boolean');
243
+ }
244
+ if (data.hasOwnProperty('subject')) {
245
+ obj['subject'] = _ApiClient["default"].convertToType(data['subject'], 'String');
246
+ }
247
+ if (data.hasOwnProperty('messageType')) {
248
+ obj['messageType'] = _ApiClient["default"].convertToType(data['messageType'], ['String']);
249
+ }
250
+ if (data.hasOwnProperty('readDate')) {
251
+ obj['readDate'] = _ApiClient["default"].convertToType(data['readDate'], 'Date');
252
+ }
253
+ if (data.hasOwnProperty('attachedObject')) {
254
+ obj['attachedObject'] = _DataObject["default"].constructFromObject(data['attachedObject']);
255
+ }
256
+ if (data.hasOwnProperty('recipient')) {
257
+ obj['recipient'] = _Member["default"].constructFromObject(data['recipient']);
258
+ }
259
+ if (data.hasOwnProperty('data')) {
260
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], Object);
261
+ }
262
+ if (data.hasOwnProperty('id')) {
263
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
264
+ }
265
+ }
266
+ return obj;
267
+ }
268
+
269
+ /**
270
+ * Validates the JSON data with respect to <code>Notification</code>.
271
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
272
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>Notification</code>.
273
+ */
274
+ }, {
275
+ key: "validateJSON",
276
+ value: function validateJSON(data) {
277
+ // ensure the json data is a string
278
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
279
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
280
+ }
281
+ // ensure the json data is a string
282
+ if (data['subject'] && !(typeof data['subject'] === 'string' || data['subject'] instanceof String)) {
283
+ throw new Error("Expected the field `subject` to be a primitive type in the JSON string but got " + data['subject']);
284
+ }
285
+ // ensure the json data is an array
286
+ if (!Array.isArray(data['messageType'])) {
287
+ throw new Error("Expected the field `messageType` to be an array in the JSON data but got " + data['messageType']);
288
+ }
289
+ // validate the optional field `attachedObject`
290
+ if (data['attachedObject']) {
291
+ // data not null
292
+ _DataObject["default"].validateJSON(data['attachedObject']);
293
+ }
294
+ // validate the optional field `recipient`
295
+ if (data['recipient']) {
296
+ // data not null
297
+ _Member["default"].validateJSON(data['recipient']);
298
+ }
299
+ return true;
300
+ }
301
+ }]);
302
+ return Notification;
303
+ }();
304
+ /**
305
+ * @member {String} message
306
+ */
307
+ Notification.prototype['message'] = undefined;
308
+
309
+ /**
310
+ * @member {Date} date
311
+ */
312
+ Notification.prototype['date'] = undefined;
313
+
314
+ /**
315
+ * @member {Boolean} read
316
+ */
317
+ Notification.prototype['read'] = undefined;
318
+
319
+ /**
320
+ * @member {String} subject
321
+ */
322
+ Notification.prototype['subject'] = undefined;
323
+
324
+ /**
325
+ * @member {Array.<module:model/Notification.MessageTypeEnum>} messageType
326
+ */
327
+ Notification.prototype['messageType'] = undefined;
328
+
329
+ /**
330
+ * @member {Date} readDate
331
+ */
332
+ Notification.prototype['readDate'] = undefined;
333
+
334
+ /**
335
+ * @member {module:model/DataObject} attachedObject
336
+ */
337
+ Notification.prototype['attachedObject'] = undefined;
338
+
339
+ /**
340
+ * @member {module:model/Member} recipient
341
+ */
342
+ Notification.prototype['recipient'] = undefined;
343
+
344
+ /**
345
+ * @member {Object} data
346
+ */
347
+ Notification.prototype['data'] = undefined;
348
+
349
+ /**
350
+ * @member {Number} id
351
+ */
352
+ Notification.prototype['id'] = undefined;
353
+
354
+ /**
355
+ * Allowed values for the <code>messageType</code> property.
356
+ * @enum {String}
357
+ * @readonly
358
+ */
359
+ Notification['MessageTypeEnum'] = {
360
+ /**
361
+ * value: "EMAIL_TYPE"
362
+ * @const
363
+ */
364
+ "EMAIL_TYPE": "EMAIL_TYPE",
365
+ /**
366
+ * value: "PUSH_TYPE"
367
+ * @const
368
+ */
369
+ "PUSH_TYPE": "PUSH_TYPE",
370
+ /**
371
+ * value: "TEXT_TYPE"
372
+ * @const
373
+ */
374
+ "TEXT_TYPE": "TEXT_TYPE",
375
+ /**
376
+ * value: "NON_EMAIL_TYPE"
377
+ * @const
378
+ */
379
+ "NON_EMAIL_TYPE": "NON_EMAIL_TYPE"
380
+ };
381
+ var _default = exports["default"] = Notification;
@@ -0,0 +1,273 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
11
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
+ 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, _toPropertyKey(descriptor.key), descriptor); } }
15
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ * gobodo-api
19
+ * REST Interface for Gobodo API
20
+ *
21
+ * The version of the OpenAPI document: 0.1.60
22
+ * Contact: info@gobodo.io
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * The NotificationInput model module.
31
+ * @module model/NotificationInput
32
+ * @version 0.1.60
33
+ */
34
+ var NotificationInput = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>NotificationInput</code>.
37
+ * @alias module:model/NotificationInput
38
+ * @param subject {String}
39
+ * @param message {String}
40
+ * @param messageTypes {Array.<module:model/NotificationInput.MessageTypesEnum>}
41
+ * @param recipient {Number}
42
+ */
43
+ function NotificationInput(subject, message, messageTypes, recipient) {
44
+ _classCallCheck(this, NotificationInput);
45
+ NotificationInput.initialize(this, subject, message, messageTypes, recipient);
46
+ }
47
+
48
+ /**
49
+ * Initializes the fields of this object.
50
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
51
+ * Only for internal use.
52
+ */
53
+ _createClass(NotificationInput, [{
54
+ key: "getSubject",
55
+ value:
56
+ /**
57
+ * @return {String}
58
+ */
59
+ function getSubject() {
60
+ return this.subject;
61
+ }
62
+
63
+ /**
64
+ * @param {String} subject
65
+ */
66
+ }, {
67
+ key: "setSubject",
68
+ value: function setSubject(subject) {
69
+ this['subject'] = subject;
70
+ }
71
+ /**
72
+ * @return {String}
73
+ */
74
+ }, {
75
+ key: "getMessage",
76
+ value: function getMessage() {
77
+ return this.message;
78
+ }
79
+
80
+ /**
81
+ * @param {String} message
82
+ */
83
+ }, {
84
+ key: "setMessage",
85
+ value: function setMessage(message) {
86
+ this['message'] = message;
87
+ }
88
+ /**
89
+ * @return {Object}
90
+ */
91
+ }, {
92
+ key: "getData",
93
+ value: function getData() {
94
+ return this.data;
95
+ }
96
+
97
+ /**
98
+ * @param {Object} data
99
+ */
100
+ }, {
101
+ key: "setData",
102
+ value: function setData(data) {
103
+ this['data'] = data;
104
+ }
105
+ /**
106
+ * @return {Array.<module:model/NotificationInput.MessageTypesEnum>}
107
+ */
108
+ }, {
109
+ key: "getMessageTypes",
110
+ value: function getMessageTypes() {
111
+ return this.messageTypes;
112
+ }
113
+
114
+ /**
115
+ * @param {Array.<module:model/NotificationInput.MessageTypesEnum>} messageTypes
116
+ */
117
+ }, {
118
+ key: "setMessageTypes",
119
+ value: function setMessageTypes(messageTypes) {
120
+ this['messageTypes'] = messageTypes;
121
+ }
122
+ /**
123
+ * @return {Number}
124
+ */
125
+ }, {
126
+ key: "getRecipient",
127
+ value: function getRecipient() {
128
+ return this.recipient;
129
+ }
130
+
131
+ /**
132
+ * @param {Number} recipient
133
+ */
134
+ }, {
135
+ key: "setRecipient",
136
+ value: function setRecipient(recipient) {
137
+ this['recipient'] = recipient;
138
+ }
139
+ }], [{
140
+ key: "initialize",
141
+ value: function initialize(obj, subject, message, messageTypes, recipient) {
142
+ obj['subject'] = subject;
143
+ obj['message'] = message;
144
+ obj['messageTypes'] = messageTypes;
145
+ obj['recipient'] = recipient;
146
+ }
147
+
148
+ /**
149
+ * Constructs a <code>NotificationInput</code> from a plain JavaScript object, optionally creating a new instance.
150
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
151
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
152
+ * @param {module:model/NotificationInput} obj Optional instance to populate.
153
+ * @return {module:model/NotificationInput} The populated <code>NotificationInput</code> instance.
154
+ */
155
+ }, {
156
+ key: "constructFromObject",
157
+ value: function constructFromObject(data, obj) {
158
+ if (data) {
159
+ obj = obj || new NotificationInput();
160
+ if (data.hasOwnProperty('subject')) {
161
+ obj['subject'] = _ApiClient["default"].convertToType(data['subject'], 'String');
162
+ }
163
+ if (data.hasOwnProperty('message')) {
164
+ obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
165
+ }
166
+ if (data.hasOwnProperty('data')) {
167
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], Object);
168
+ }
169
+ if (data.hasOwnProperty('messageTypes')) {
170
+ obj['messageTypes'] = _ApiClient["default"].convertToType(data['messageTypes'], ['String']);
171
+ }
172
+ if (data.hasOwnProperty('recipient')) {
173
+ obj['recipient'] = _ApiClient["default"].convertToType(data['recipient'], 'Number');
174
+ }
175
+ }
176
+ return obj;
177
+ }
178
+
179
+ /**
180
+ * Validates the JSON data with respect to <code>NotificationInput</code>.
181
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
182
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>NotificationInput</code>.
183
+ */
184
+ }, {
185
+ key: "validateJSON",
186
+ value: function validateJSON(data) {
187
+ // check to make sure all required properties are present in the JSON string
188
+ var _iterator = _createForOfIteratorHelper(NotificationInput.RequiredProperties),
189
+ _step;
190
+ try {
191
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
192
+ var property = _step.value;
193
+ if (!data[property]) {
194
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
195
+ }
196
+ }
197
+ // ensure the json data is a string
198
+ } catch (err) {
199
+ _iterator.e(err);
200
+ } finally {
201
+ _iterator.f();
202
+ }
203
+ if (data['subject'] && !(typeof data['subject'] === 'string' || data['subject'] instanceof String)) {
204
+ throw new Error("Expected the field `subject` to be a primitive type in the JSON string but got " + data['subject']);
205
+ }
206
+ // ensure the json data is a string
207
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
208
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
209
+ }
210
+ // ensure the json data is an array
211
+ if (!Array.isArray(data['messageTypes'])) {
212
+ throw new Error("Expected the field `messageTypes` to be an array in the JSON data but got " + data['messageTypes']);
213
+ }
214
+ return true;
215
+ }
216
+ }]);
217
+ return NotificationInput;
218
+ }();
219
+ NotificationInput.RequiredProperties = ["subject", "message", "messageTypes", "recipient"];
220
+
221
+ /**
222
+ * @member {String} subject
223
+ */
224
+ NotificationInput.prototype['subject'] = undefined;
225
+
226
+ /**
227
+ * @member {String} message
228
+ */
229
+ NotificationInput.prototype['message'] = undefined;
230
+
231
+ /**
232
+ * @member {Object} data
233
+ */
234
+ NotificationInput.prototype['data'] = undefined;
235
+
236
+ /**
237
+ * @member {Array.<module:model/NotificationInput.MessageTypesEnum>} messageTypes
238
+ */
239
+ NotificationInput.prototype['messageTypes'] = undefined;
240
+
241
+ /**
242
+ * @member {Number} recipient
243
+ */
244
+ NotificationInput.prototype['recipient'] = undefined;
245
+
246
+ /**
247
+ * Allowed values for the <code>messageTypes</code> property.
248
+ * @enum {String}
249
+ * @readonly
250
+ */
251
+ NotificationInput['MessageTypesEnum'] = {
252
+ /**
253
+ * value: "EMAIL_TYPE"
254
+ * @const
255
+ */
256
+ "EMAIL_TYPE": "EMAIL_TYPE",
257
+ /**
258
+ * value: "PUSH_TYPE"
259
+ * @const
260
+ */
261
+ "PUSH_TYPE": "PUSH_TYPE",
262
+ /**
263
+ * value: "TEXT_TYPE"
264
+ * @const
265
+ */
266
+ "TEXT_TYPE": "TEXT_TYPE",
267
+ /**
268
+ * value: "NON_EMAIL_TYPE"
269
+ * @const
270
+ */
271
+ "NON_EMAIL_TYPE": "NON_EMAIL_TYPE"
272
+ };
273
+ var _default = exports["default"] = NotificationInput;