nylas 5.8.0
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/LICENSE.txt +22 -0
- package/README.md +65 -0
- package/lib/config.d.ts +4 -0
- package/lib/config.js +13 -0
- package/lib/models/account.d.ts +10 -0
- package/lib/models/account.js +61 -0
- package/lib/models/attributes.d.ts +104 -0
- package/lib/models/attributes.js +266 -0
- package/lib/models/calendar-restful-model-collection.d.ts +76 -0
- package/lib/models/calendar-restful-model-collection.js +128 -0
- package/lib/models/calendar.d.ts +19 -0
- package/lib/models/calendar.js +81 -0
- package/lib/models/connect.d.ts +12 -0
- package/lib/models/connect.js +51 -0
- package/lib/models/contact-restful-model-collection.d.ts +11 -0
- package/lib/models/contact-restful-model-collection.js +54 -0
- package/lib/models/contact.d.ts +75 -0
- package/lib/models/contact.js +245 -0
- package/lib/models/delta-stream.d.ts +30 -0
- package/lib/models/delta-stream.js +225 -0
- package/lib/models/delta.d.ts +11 -0
- package/lib/models/delta.js +91 -0
- package/lib/models/draft.d.ts +24 -0
- package/lib/models/draft.js +145 -0
- package/lib/models/email-participant.d.ts +6 -0
- package/lib/models/email-participant.js +44 -0
- package/lib/models/event-conferencing.d.ts +24 -0
- package/lib/models/event-conferencing.js +84 -0
- package/lib/models/event-participant.d.ts +7 -0
- package/lib/models/event-participant.js +47 -0
- package/lib/models/event.d.ts +45 -0
- package/lib/models/event.js +206 -0
- package/lib/models/file.d.ts +18 -0
- package/lib/models/file.js +151 -0
- package/lib/models/folder.d.ts +14 -0
- package/lib/models/folder.js +70 -0
- package/lib/models/job-status.d.ts +7 -0
- package/lib/models/job-status.js +51 -0
- package/lib/models/management-account.d.ts +14 -0
- package/lib/models/management-account.js +101 -0
- package/lib/models/management-model-collection.d.ts +11 -0
- package/lib/models/management-model-collection.js +35 -0
- package/lib/models/management-model.d.ts +8 -0
- package/lib/models/management-model.js +29 -0
- package/lib/models/message.d.ts +32 -0
- package/lib/models/message.js +154 -0
- package/lib/models/neural-categorizer.d.ts +18 -0
- package/lib/models/neural-categorizer.js +140 -0
- package/lib/models/neural-clean-conversation.d.ts +7 -0
- package/lib/models/neural-clean-conversation.js +110 -0
- package/lib/models/neural-ocr.d.ts +5 -0
- package/lib/models/neural-ocr.js +46 -0
- package/lib/models/neural-sentiment-analysis.d.ts +8 -0
- package/lib/models/neural-sentiment-analysis.js +49 -0
- package/lib/models/neural-signature-contact.d.ts +37 -0
- package/lib/models/neural-signature-contact.js +141 -0
- package/lib/models/neural-signature-extraction.d.ts +7 -0
- package/lib/models/neural-signature-extraction.js +50 -0
- package/lib/models/neural.d.ts +22 -0
- package/lib/models/neural.js +124 -0
- package/lib/models/nylas-api-error.d.ts +28 -0
- package/lib/models/nylas-api-error.js +61 -0
- package/lib/models/resource.d.ts +9 -0
- package/lib/models/resource.js +59 -0
- package/lib/models/restful-model-collection.d.ts +59 -0
- package/lib/models/restful-model-collection.js +325 -0
- package/lib/models/restful-model-instance.d.ts +11 -0
- package/lib/models/restful-model-instance.js +37 -0
- package/lib/models/restful-model.d.ts +48 -0
- package/lib/models/restful-model.js +153 -0
- package/lib/models/thread.d.ts +30 -0
- package/lib/models/thread.js +112 -0
- package/lib/models/webhook.d.ts +15 -0
- package/lib/models/webhook.js +71 -0
- package/lib/nylas-connection.d.ts +67 -0
- package/lib/nylas-connection.js +235 -0
- package/lib/nylas.d.ts +38 -0
- package/lib/nylas.js +178 -0
- package/package.json +76 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import NylasConnection from '../nylas-connection';
|
|
2
|
+
import DeltaStream from './delta-stream';
|
|
3
|
+
export default class Delta {
|
|
4
|
+
connection: NylasConnection;
|
|
5
|
+
static streamingTimeoutMs: number;
|
|
6
|
+
constructor(connection: NylasConnection);
|
|
7
|
+
latestCursor(callback: (error: Error | null, cursor: string | null) => void): Promise<any>;
|
|
8
|
+
startStream(cursor: string, params?: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): Promise<DeltaStream>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
var nylas_connection_1 = __importDefault(require("../nylas-connection"));
|
|
43
|
+
var delta_stream_1 = __importDefault(require("./delta-stream"));
|
|
44
|
+
var Delta = /** @class */ (function () {
|
|
45
|
+
function Delta(connection) {
|
|
46
|
+
this.connection = connection;
|
|
47
|
+
if (!(this.connection instanceof nylas_connection_1.default)) {
|
|
48
|
+
throw new Error('Connection object not provided');
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
Delta.prototype.latestCursor = function (callback) {
|
|
52
|
+
var reqOpts = {
|
|
53
|
+
method: 'POST',
|
|
54
|
+
path: '/delta/latest_cursor',
|
|
55
|
+
};
|
|
56
|
+
return this.connection
|
|
57
|
+
.request(reqOpts)
|
|
58
|
+
.then(function (response) {
|
|
59
|
+
var cursor = response.cursor;
|
|
60
|
+
if (callback) {
|
|
61
|
+
callback(null, cursor);
|
|
62
|
+
}
|
|
63
|
+
return Promise.resolve(cursor);
|
|
64
|
+
})
|
|
65
|
+
.catch(function (err) {
|
|
66
|
+
if (callback) {
|
|
67
|
+
callback(err, null);
|
|
68
|
+
}
|
|
69
|
+
return Promise.reject(err);
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
Delta.prototype.startStream = function (cursor, params) {
|
|
73
|
+
if (params === void 0) { params = {}; }
|
|
74
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
75
|
+
var stream;
|
|
76
|
+
return __generator(this, function (_a) {
|
|
77
|
+
switch (_a.label) {
|
|
78
|
+
case 0:
|
|
79
|
+
stream = new delta_stream_1.default(this.connection, cursor, params);
|
|
80
|
+
return [4 /*yield*/, stream.open()];
|
|
81
|
+
case 1:
|
|
82
|
+
_a.sent();
|
|
83
|
+
return [2 /*return*/, stream];
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
Delta.streamingTimeoutMs = 15000;
|
|
89
|
+
return Delta;
|
|
90
|
+
}());
|
|
91
|
+
exports.default = Delta;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import Message from './message';
|
|
2
|
+
import { SaveCallback } from './restful-model';
|
|
3
|
+
export declare type SendCallback = (err: Error | null, json?: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}) => void;
|
|
6
|
+
export default class Draft extends Message {
|
|
7
|
+
rawMime?: string;
|
|
8
|
+
replyToMessageId?: string;
|
|
9
|
+
version?: number;
|
|
10
|
+
toJSON(enforceReadOnly?: boolean): any;
|
|
11
|
+
save(params?: {} | SaveCallback, callback?: SaveCallback): Promise<this>;
|
|
12
|
+
saveRequestBody(): any;
|
|
13
|
+
deleteRequestBody(params?: {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}): {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
toString(): string;
|
|
19
|
+
send(trackingArg?: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
} | SendCallback | null, callbackArg?: SendCallback | {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
} | null): Promise<Message>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
var __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
var message_1 = __importDefault(require("./message"));
|
|
31
|
+
var attributes_1 = __importDefault(require("./attributes"));
|
|
32
|
+
var Draft = /** @class */ (function (_super) {
|
|
33
|
+
__extends(Draft, _super);
|
|
34
|
+
function Draft() {
|
|
35
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
36
|
+
}
|
|
37
|
+
Draft.prototype.toJSON = function (enforceReadOnly) {
|
|
38
|
+
if (this.rawMime) {
|
|
39
|
+
throw Error('toJSON() cannot be called for raw MIME drafts');
|
|
40
|
+
}
|
|
41
|
+
var json = _super.prototype.toJSON.call(this, enforceReadOnly);
|
|
42
|
+
json.file_ids = _super.prototype.fileIds.call(this);
|
|
43
|
+
return json;
|
|
44
|
+
};
|
|
45
|
+
Draft.prototype.save = function (params, callback) {
|
|
46
|
+
if (params === void 0) { params = {}; }
|
|
47
|
+
if (this.rawMime) {
|
|
48
|
+
var err = new Error('save() cannot be called for raw MIME drafts');
|
|
49
|
+
if (callback) {
|
|
50
|
+
callback(err);
|
|
51
|
+
}
|
|
52
|
+
return Promise.reject(err);
|
|
53
|
+
}
|
|
54
|
+
return this._save(params, callback);
|
|
55
|
+
};
|
|
56
|
+
Draft.prototype.saveRequestBody = function () {
|
|
57
|
+
if (this.rawMime) {
|
|
58
|
+
throw Error('saveRequestBody() cannot be called for raw MIME drafts');
|
|
59
|
+
}
|
|
60
|
+
return _super.prototype.saveRequestBody.call(this);
|
|
61
|
+
};
|
|
62
|
+
Draft.prototype.deleteRequestBody = function (params) {
|
|
63
|
+
if (params === void 0) { params = {}; }
|
|
64
|
+
var body = {};
|
|
65
|
+
body.version = params.hasOwnProperty('version')
|
|
66
|
+
? params.version
|
|
67
|
+
: this.version;
|
|
68
|
+
return body;
|
|
69
|
+
};
|
|
70
|
+
Draft.prototype.toString = function () {
|
|
71
|
+
if (this.rawMime) {
|
|
72
|
+
throw Error('toString() cannot be called for raw MIME drafts');
|
|
73
|
+
}
|
|
74
|
+
return _super.prototype.toString.call(this);
|
|
75
|
+
};
|
|
76
|
+
Draft.prototype.send = function (trackingArg, callbackArg) {
|
|
77
|
+
var _this = this;
|
|
78
|
+
// callback used to be the first argument, and tracking was the second
|
|
79
|
+
var callback;
|
|
80
|
+
if (typeof callbackArg === 'function') {
|
|
81
|
+
callback = callbackArg;
|
|
82
|
+
}
|
|
83
|
+
else if (typeof trackingArg === 'function') {
|
|
84
|
+
callback = trackingArg;
|
|
85
|
+
}
|
|
86
|
+
var tracking;
|
|
87
|
+
if (trackingArg && typeof trackingArg === 'object') {
|
|
88
|
+
tracking = trackingArg;
|
|
89
|
+
}
|
|
90
|
+
else if (callbackArg && typeof callbackArg === 'object') {
|
|
91
|
+
tracking = callbackArg;
|
|
92
|
+
}
|
|
93
|
+
var body = this.rawMime, headers = { 'Content-Type': 'message/rfc822' }, json = false;
|
|
94
|
+
if (!this.rawMime) {
|
|
95
|
+
headers = {};
|
|
96
|
+
json = true;
|
|
97
|
+
if (this.id) {
|
|
98
|
+
body = {
|
|
99
|
+
draft_id: this.id,
|
|
100
|
+
version: this.version,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
body = this.saveRequestBody();
|
|
105
|
+
}
|
|
106
|
+
if (tracking) {
|
|
107
|
+
body['tracking'] = tracking;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return this.connection
|
|
111
|
+
.request({
|
|
112
|
+
method: 'POST',
|
|
113
|
+
path: '/send',
|
|
114
|
+
headers: headers,
|
|
115
|
+
body: body,
|
|
116
|
+
json: json,
|
|
117
|
+
})
|
|
118
|
+
.then(function (json) {
|
|
119
|
+
var message = new message_1.default(_this.connection, json);
|
|
120
|
+
// We may get failures for a partial send
|
|
121
|
+
if (json.failures) {
|
|
122
|
+
message.failures = json.failures;
|
|
123
|
+
}
|
|
124
|
+
if (callback) {
|
|
125
|
+
callback(null, message);
|
|
126
|
+
}
|
|
127
|
+
return Promise.resolve(message);
|
|
128
|
+
})
|
|
129
|
+
.catch(function (err) {
|
|
130
|
+
if (callback) {
|
|
131
|
+
callback(err);
|
|
132
|
+
}
|
|
133
|
+
return Promise.reject(err);
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
return Draft;
|
|
137
|
+
}(message_1.default));
|
|
138
|
+
exports.default = Draft;
|
|
139
|
+
Draft.collectionName = 'drafts';
|
|
140
|
+
Draft.attributes = __assign(__assign({}, message_1.default.attributes), { version: attributes_1.default.Number({
|
|
141
|
+
modelKey: 'version',
|
|
142
|
+
}), replyToMessageId: attributes_1.default.String({
|
|
143
|
+
modelKey: 'replyToMessageId',
|
|
144
|
+
jsonKey: 'reply_to_message_id',
|
|
145
|
+
}) });
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
var restful_model_1 = __importDefault(require("./restful-model"));
|
|
20
|
+
var attributes_1 = __importDefault(require("./attributes"));
|
|
21
|
+
var EmailParticipant = /** @class */ (function (_super) {
|
|
22
|
+
__extends(EmailParticipant, _super);
|
|
23
|
+
function EmailParticipant() {
|
|
24
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
25
|
+
}
|
|
26
|
+
EmailParticipant.prototype.toJSON = function (enforceReadOnly) {
|
|
27
|
+
var json = _super.prototype.toJSON.call(this, enforceReadOnly);
|
|
28
|
+
if (!json['name']) {
|
|
29
|
+
json['name'] = json['email'];
|
|
30
|
+
}
|
|
31
|
+
return json;
|
|
32
|
+
};
|
|
33
|
+
return EmailParticipant;
|
|
34
|
+
}(restful_model_1.default));
|
|
35
|
+
exports.default = EmailParticipant;
|
|
36
|
+
EmailParticipant.collectionName = 'email-participants';
|
|
37
|
+
EmailParticipant.attributes = {
|
|
38
|
+
name: attributes_1.default.String({
|
|
39
|
+
modelKey: 'name',
|
|
40
|
+
}),
|
|
41
|
+
email: attributes_1.default.String({
|
|
42
|
+
modelKey: 'email',
|
|
43
|
+
}),
|
|
44
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import RestfulModel from './restful-model';
|
|
2
|
+
declare class EventConferencingDetails extends RestfulModel {
|
|
3
|
+
meetingCode?: string;
|
|
4
|
+
phone?: string[];
|
|
5
|
+
password?: string;
|
|
6
|
+
pin?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
toJSON(): {
|
|
9
|
+
meeting_code: string | undefined;
|
|
10
|
+
phone: string[] | undefined;
|
|
11
|
+
password: string | undefined;
|
|
12
|
+
pin: string | undefined;
|
|
13
|
+
url: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare class EventConferencing extends RestfulModel {
|
|
17
|
+
details?: EventConferencingDetails;
|
|
18
|
+
provider?: string;
|
|
19
|
+
autocreate?: {
|
|
20
|
+
settings?: object;
|
|
21
|
+
};
|
|
22
|
+
toJSON(): any;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.EventConferencing = void 0;
|
|
20
|
+
var restful_model_1 = __importDefault(require("./restful-model"));
|
|
21
|
+
var attributes_1 = __importDefault(require("./attributes"));
|
|
22
|
+
var EventConferencingDetails = /** @class */ (function (_super) {
|
|
23
|
+
__extends(EventConferencingDetails, _super);
|
|
24
|
+
function EventConferencingDetails() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
EventConferencingDetails.prototype.toJSON = function () {
|
|
28
|
+
return {
|
|
29
|
+
meeting_code: this.meetingCode,
|
|
30
|
+
phone: this.phone,
|
|
31
|
+
password: this.password,
|
|
32
|
+
pin: this.pin,
|
|
33
|
+
url: this.url,
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
return EventConferencingDetails;
|
|
37
|
+
}(restful_model_1.default));
|
|
38
|
+
EventConferencingDetails.collectionName = 'event_conferencing_details';
|
|
39
|
+
EventConferencingDetails.attributes = {
|
|
40
|
+
meetingCode: attributes_1.default.String({
|
|
41
|
+
modelKey: 'meetingCode',
|
|
42
|
+
jsonKey: 'meeting_code',
|
|
43
|
+
}),
|
|
44
|
+
phone: attributes_1.default.StringList({
|
|
45
|
+
modelKey: 'phone',
|
|
46
|
+
}),
|
|
47
|
+
password: attributes_1.default.String({
|
|
48
|
+
modelKey: 'password',
|
|
49
|
+
}),
|
|
50
|
+
pin: attributes_1.default.String({
|
|
51
|
+
modelKey: 'pin',
|
|
52
|
+
}),
|
|
53
|
+
url: attributes_1.default.String({
|
|
54
|
+
modelKey: 'url',
|
|
55
|
+
}),
|
|
56
|
+
};
|
|
57
|
+
var EventConferencing = /** @class */ (function (_super) {
|
|
58
|
+
__extends(EventConferencing, _super);
|
|
59
|
+
function EventConferencing() {
|
|
60
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
61
|
+
}
|
|
62
|
+
EventConferencing.prototype.toJSON = function () {
|
|
63
|
+
return {
|
|
64
|
+
details: this.details,
|
|
65
|
+
provider: this.provider,
|
|
66
|
+
autocreate: this.autocreate,
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
return EventConferencing;
|
|
70
|
+
}(restful_model_1.default));
|
|
71
|
+
exports.EventConferencing = EventConferencing;
|
|
72
|
+
EventConferencing.collectionName = 'event_conferencing';
|
|
73
|
+
EventConferencing.attributes = {
|
|
74
|
+
details: attributes_1.default.Object({
|
|
75
|
+
modelKey: 'details',
|
|
76
|
+
itemClass: EventConferencingDetails,
|
|
77
|
+
}),
|
|
78
|
+
provider: attributes_1.default.String({
|
|
79
|
+
modelKey: 'provider',
|
|
80
|
+
}),
|
|
81
|
+
autocreate: attributes_1.default.Object({
|
|
82
|
+
modelKey: 'autocreate',
|
|
83
|
+
}),
|
|
84
|
+
};
|