@agility/management-sdk 0.1.2 → 0.1.3
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/apiMethods/assetMethods.js +150 -73
- package/dist/apiMethods/batchMethods.js +93 -41
- package/dist/apiMethods/clientInstance.js +116 -56
- package/dist/apiMethods/containerMethods.js +166 -82
- package/dist/apiMethods/contentMethods.js +332 -148
- package/dist/apiMethods/instanceUserMethods.js +92 -38
- package/dist/apiMethods/modelMethods.js +129 -60
- package/dist/apiMethods/pageMethods.js +297 -133
- package/dist/models/batch.js +5 -2
- package/dist/models/batchItem.js +5 -2
- package/dist/models/container.js +5 -2
- package/dist/models/contentItem.js +25 -10
- package/dist/models/contentViewColumn.js +5 -2
- package/dist/models/exception.js +21 -5
- package/dist/models/instanceRole.js +5 -2
- package/dist/models/instanceUser.js +5 -2
- package/dist/models/media.js +10 -4
- package/dist/models/model.js +10 -4
- package/dist/models/notification.js +5 -2
- package/dist/models/options.js +7 -4
- package/dist/models/pageItem.js +30 -12
- package/dist/models/sitemap.js +10 -4
- package/dist/models/websiteUser.js +10 -4
- package/package.json +1 -1
- package/tsconfig.json +1 -1
|
@@ -8,152 +8,316 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
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
|
+
};
|
|
11
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
39
|
exports.PageMethods = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
40
|
+
var clientInstance_1 = require("./clientInstance");
|
|
41
|
+
var batchMethods_1 = require("./batchMethods");
|
|
42
|
+
var exception_1 = require("../models/exception");
|
|
43
|
+
var PageMethods = /** @class */ (function () {
|
|
44
|
+
function PageMethods(options) {
|
|
18
45
|
this._options = options;
|
|
19
46
|
this._clientInstance = new clientInstance_1.ClientInstance();
|
|
20
47
|
this._batchMethods = new batchMethods_1.BatchMethods(this._options);
|
|
21
48
|
}
|
|
22
|
-
getSitemap() {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
49
|
+
PageMethods.prototype.getSitemap = function () {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
51
|
+
var apiPath, resp, err_1;
|
|
52
|
+
return __generator(this, function (_a) {
|
|
53
|
+
switch (_a.label) {
|
|
54
|
+
case 0:
|
|
55
|
+
_a.trys.push([0, 2, , 3]);
|
|
56
|
+
apiPath = this._options.locale + "/sitemap";
|
|
57
|
+
return [4 /*yield*/, this._clientInstance.executeGet(apiPath, this._options)];
|
|
58
|
+
case 1:
|
|
59
|
+
resp = _a.sent();
|
|
60
|
+
return [2 /*return*/, resp.data];
|
|
61
|
+
case 2:
|
|
62
|
+
err_1 = _a.sent();
|
|
63
|
+
throw new exception_1.Exception("Unable to retreive sitemap.", err_1);
|
|
64
|
+
case 3: return [2 /*return*/];
|
|
65
|
+
}
|
|
66
|
+
});
|
|
32
67
|
});
|
|
33
|
-
}
|
|
34
|
-
getPage(pageID) {
|
|
35
|
-
return __awaiter(this, void 0, void 0, function
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
68
|
+
};
|
|
69
|
+
PageMethods.prototype.getPage = function (pageID) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
71
|
+
var apiPath, resp, err_2;
|
|
72
|
+
return __generator(this, function (_a) {
|
|
73
|
+
switch (_a.label) {
|
|
74
|
+
case 0:
|
|
75
|
+
_a.trys.push([0, 2, , 3]);
|
|
76
|
+
apiPath = this._options.locale + "/page/" + pageID;
|
|
77
|
+
return [4 /*yield*/, this._clientInstance.executeGet(apiPath, this._options)];
|
|
78
|
+
case 1:
|
|
79
|
+
resp = _a.sent();
|
|
80
|
+
return [2 /*return*/, resp.data];
|
|
81
|
+
case 2:
|
|
82
|
+
err_2 = _a.sent();
|
|
83
|
+
throw new exception_1.Exception("Unable to retreive page for id " + pageID + ".", err_2);
|
|
84
|
+
case 3: return [2 /*return*/];
|
|
85
|
+
}
|
|
86
|
+
});
|
|
44
87
|
});
|
|
45
|
-
}
|
|
46
|
-
publishPage(pageID, comments
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
88
|
+
};
|
|
89
|
+
PageMethods.prototype.publishPage = function (pageID, comments) {
|
|
90
|
+
if (comments === void 0) { comments = null; }
|
|
91
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
92
|
+
var apiPath, resp, batchID_1, batch, pageIDs_1, err_3;
|
|
93
|
+
var _this = this;
|
|
94
|
+
return __generator(this, function (_a) {
|
|
95
|
+
switch (_a.label) {
|
|
96
|
+
case 0:
|
|
97
|
+
_a.trys.push([0, 3, , 4]);
|
|
98
|
+
apiPath = this._options.locale + "/page/" + pageID + "/publish?comments=" + comments;
|
|
99
|
+
return [4 /*yield*/, this._clientInstance.executeGet(apiPath, this._options)];
|
|
100
|
+
case 1:
|
|
101
|
+
resp = _a.sent();
|
|
102
|
+
batchID_1 = resp.data;
|
|
103
|
+
return [4 /*yield*/, this._batchMethods.Retry(function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
104
|
+
switch (_a.label) {
|
|
105
|
+
case 0: return [4 /*yield*/, this._batchMethods.getBatch(batchID_1)];
|
|
106
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
107
|
+
}
|
|
108
|
+
}); }); })];
|
|
109
|
+
case 2:
|
|
110
|
+
batch = _a.sent();
|
|
111
|
+
pageIDs_1 = [];
|
|
112
|
+
batch.items.forEach(function (element) { return pageIDs_1.push(element.itemID); });
|
|
113
|
+
return [2 /*return*/, pageIDs_1];
|
|
114
|
+
case 3:
|
|
115
|
+
err_3 = _a.sent();
|
|
116
|
+
throw new exception_1.Exception("Unable to publish the page for id: " + pageID, err_3);
|
|
117
|
+
case 4: return [2 /*return*/];
|
|
118
|
+
}
|
|
119
|
+
});
|
|
60
120
|
});
|
|
61
|
-
}
|
|
62
|
-
unPublishPage(pageID, comments
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
121
|
+
};
|
|
122
|
+
PageMethods.prototype.unPublishPage = function (pageID, comments) {
|
|
123
|
+
if (comments === void 0) { comments = null; }
|
|
124
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
125
|
+
var apiPath, resp, batchID_2, batch, pageIDs_2, err_4;
|
|
126
|
+
var _this = this;
|
|
127
|
+
return __generator(this, function (_a) {
|
|
128
|
+
switch (_a.label) {
|
|
129
|
+
case 0:
|
|
130
|
+
_a.trys.push([0, 3, , 4]);
|
|
131
|
+
apiPath = this._options.locale + "/page/" + pageID + "/unpublish?comments=" + comments;
|
|
132
|
+
return [4 /*yield*/, this._clientInstance.executeGet(apiPath, this._options)];
|
|
133
|
+
case 1:
|
|
134
|
+
resp = _a.sent();
|
|
135
|
+
batchID_2 = resp.data;
|
|
136
|
+
return [4 /*yield*/, this._batchMethods.Retry(function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
137
|
+
switch (_a.label) {
|
|
138
|
+
case 0: return [4 /*yield*/, this._batchMethods.getBatch(batchID_2)];
|
|
139
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
140
|
+
}
|
|
141
|
+
}); }); })];
|
|
142
|
+
case 2:
|
|
143
|
+
batch = _a.sent();
|
|
144
|
+
pageIDs_2 = [];
|
|
145
|
+
batch.items.forEach(function (element) { return pageIDs_2.push(element.itemID); });
|
|
146
|
+
return [2 /*return*/, pageIDs_2];
|
|
147
|
+
case 3:
|
|
148
|
+
err_4 = _a.sent();
|
|
149
|
+
throw new exception_1.Exception("Unable to un-publish the page for id: " + pageID, err_4);
|
|
150
|
+
case 4: return [2 /*return*/];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
76
153
|
});
|
|
77
|
-
}
|
|
78
|
-
pageRequestApproval(pageID, comments
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
154
|
+
};
|
|
155
|
+
PageMethods.prototype.pageRequestApproval = function (pageID, comments) {
|
|
156
|
+
if (comments === void 0) { comments = null; }
|
|
157
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
158
|
+
var apiPath, resp, batchID_3, batch, pageIDs_3, err_5;
|
|
159
|
+
var _this = this;
|
|
160
|
+
return __generator(this, function (_a) {
|
|
161
|
+
switch (_a.label) {
|
|
162
|
+
case 0:
|
|
163
|
+
_a.trys.push([0, 3, , 4]);
|
|
164
|
+
apiPath = this._options.locale + "/page/" + pageID + "/request-approval?comments=" + comments;
|
|
165
|
+
return [4 /*yield*/, this._clientInstance.executeGet(apiPath, this._options)];
|
|
166
|
+
case 1:
|
|
167
|
+
resp = _a.sent();
|
|
168
|
+
batchID_3 = resp.data;
|
|
169
|
+
return [4 /*yield*/, this._batchMethods.Retry(function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
170
|
+
switch (_a.label) {
|
|
171
|
+
case 0: return [4 /*yield*/, this._batchMethods.getBatch(batchID_3)];
|
|
172
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
173
|
+
}
|
|
174
|
+
}); }); })];
|
|
175
|
+
case 2:
|
|
176
|
+
batch = _a.sent();
|
|
177
|
+
pageIDs_3 = [];
|
|
178
|
+
batch.items.forEach(function (element) { return pageIDs_3.push(element.itemID); });
|
|
179
|
+
return [2 /*return*/, pageIDs_3];
|
|
180
|
+
case 3:
|
|
181
|
+
err_5 = _a.sent();
|
|
182
|
+
throw new exception_1.Exception("Unable to request approval the page for id: " + pageID, err_5);
|
|
183
|
+
case 4: return [2 /*return*/];
|
|
184
|
+
}
|
|
185
|
+
});
|
|
92
186
|
});
|
|
93
|
-
}
|
|
94
|
-
approvePage(pageID, comments
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
187
|
+
};
|
|
188
|
+
PageMethods.prototype.approvePage = function (pageID, comments) {
|
|
189
|
+
if (comments === void 0) { comments = null; }
|
|
190
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
191
|
+
var apiPath, resp, batchID_4, batch, pageIDs_4, err_6;
|
|
192
|
+
var _this = this;
|
|
193
|
+
return __generator(this, function (_a) {
|
|
194
|
+
switch (_a.label) {
|
|
195
|
+
case 0:
|
|
196
|
+
_a.trys.push([0, 3, , 4]);
|
|
197
|
+
apiPath = this._options.locale + "/page/" + pageID + "/approve?comments=" + comments;
|
|
198
|
+
return [4 /*yield*/, this._clientInstance.executeGet(apiPath, this._options)];
|
|
199
|
+
case 1:
|
|
200
|
+
resp = _a.sent();
|
|
201
|
+
batchID_4 = resp.data;
|
|
202
|
+
return [4 /*yield*/, this._batchMethods.Retry(function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
203
|
+
switch (_a.label) {
|
|
204
|
+
case 0: return [4 /*yield*/, this._batchMethods.getBatch(batchID_4)];
|
|
205
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
206
|
+
}
|
|
207
|
+
}); }); })];
|
|
208
|
+
case 2:
|
|
209
|
+
batch = _a.sent();
|
|
210
|
+
pageIDs_4 = [];
|
|
211
|
+
batch.items.forEach(function (element) { return pageIDs_4.push(element.itemID); });
|
|
212
|
+
return [2 /*return*/, pageIDs_4];
|
|
213
|
+
case 3:
|
|
214
|
+
err_6 = _a.sent();
|
|
215
|
+
throw new exception_1.Exception("Unable to approve the page for id: " + pageID, err_6);
|
|
216
|
+
case 4: return [2 /*return*/];
|
|
217
|
+
}
|
|
218
|
+
});
|
|
108
219
|
});
|
|
109
|
-
}
|
|
110
|
-
declinePage(pageID, comments
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
220
|
+
};
|
|
221
|
+
PageMethods.prototype.declinePage = function (pageID, comments) {
|
|
222
|
+
if (comments === void 0) { comments = null; }
|
|
223
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
224
|
+
var apiPath, resp, batchID_5, batch, pageIDs_5, err_7;
|
|
225
|
+
var _this = this;
|
|
226
|
+
return __generator(this, function (_a) {
|
|
227
|
+
switch (_a.label) {
|
|
228
|
+
case 0:
|
|
229
|
+
_a.trys.push([0, 3, , 4]);
|
|
230
|
+
apiPath = this._options.locale + "/page/" + pageID + "/decline?comments=" + comments;
|
|
231
|
+
return [4 /*yield*/, this._clientInstance.executeGet(apiPath, this._options)];
|
|
232
|
+
case 1:
|
|
233
|
+
resp = _a.sent();
|
|
234
|
+
batchID_5 = resp.data;
|
|
235
|
+
return [4 /*yield*/, this._batchMethods.Retry(function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
236
|
+
switch (_a.label) {
|
|
237
|
+
case 0: return [4 /*yield*/, this._batchMethods.getBatch(batchID_5)];
|
|
238
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
239
|
+
}
|
|
240
|
+
}); }); })];
|
|
241
|
+
case 2:
|
|
242
|
+
batch = _a.sent();
|
|
243
|
+
pageIDs_5 = [];
|
|
244
|
+
batch.items.forEach(function (element) { return pageIDs_5.push(element.itemID); });
|
|
245
|
+
return [2 /*return*/, pageIDs_5];
|
|
246
|
+
case 3:
|
|
247
|
+
err_7 = _a.sent();
|
|
248
|
+
throw new exception_1.Exception("Unable to decline the page for id: " + pageID, err_7);
|
|
249
|
+
case 4: return [2 /*return*/];
|
|
250
|
+
}
|
|
251
|
+
});
|
|
124
252
|
});
|
|
125
|
-
}
|
|
126
|
-
deletePage(pageID, comments
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
253
|
+
};
|
|
254
|
+
PageMethods.prototype.deletePage = function (pageID, comments) {
|
|
255
|
+
if (comments === void 0) { comments = null; }
|
|
256
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
257
|
+
var apiPath, resp, batchID_6, batch, pageIDs_6, err_8;
|
|
258
|
+
var _this = this;
|
|
259
|
+
return __generator(this, function (_a) {
|
|
260
|
+
switch (_a.label) {
|
|
261
|
+
case 0:
|
|
262
|
+
_a.trys.push([0, 3, , 4]);
|
|
263
|
+
apiPath = this._options.locale + "/page/" + pageID + "?comments=" + comments;
|
|
264
|
+
return [4 /*yield*/, this._clientInstance.executeDelete(apiPath, this._options)];
|
|
265
|
+
case 1:
|
|
266
|
+
resp = _a.sent();
|
|
267
|
+
batchID_6 = resp.data;
|
|
268
|
+
return [4 /*yield*/, this._batchMethods.Retry(function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
269
|
+
switch (_a.label) {
|
|
270
|
+
case 0: return [4 /*yield*/, this._batchMethods.getBatch(batchID_6)];
|
|
271
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
272
|
+
}
|
|
273
|
+
}); }); })];
|
|
274
|
+
case 2:
|
|
275
|
+
batch = _a.sent();
|
|
276
|
+
pageIDs_6 = [];
|
|
277
|
+
batch.items.forEach(function (element) { return pageIDs_6.push(element.itemID); });
|
|
278
|
+
return [2 /*return*/, pageIDs_6];
|
|
279
|
+
case 3:
|
|
280
|
+
err_8 = _a.sent();
|
|
281
|
+
throw new exception_1.Exception("Unable to delete the page for id: " + pageID, err_8);
|
|
282
|
+
case 4: return [2 /*return*/];
|
|
283
|
+
}
|
|
284
|
+
});
|
|
140
285
|
});
|
|
141
|
-
}
|
|
142
|
-
savePage(pageItem, parentPageID
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
286
|
+
};
|
|
287
|
+
PageMethods.prototype.savePage = function (pageItem, parentPageID, placeBeforePageItemID) {
|
|
288
|
+
if (parentPageID === void 0) { parentPageID = -1; }
|
|
289
|
+
if (placeBeforePageItemID === void 0) { placeBeforePageItemID = -1; }
|
|
290
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
291
|
+
var apiPath, resp, batchID_7, batch, pageIDs_7, err_9;
|
|
292
|
+
var _this = this;
|
|
293
|
+
return __generator(this, function (_a) {
|
|
294
|
+
switch (_a.label) {
|
|
295
|
+
case 0:
|
|
296
|
+
_a.trys.push([0, 3, , 4]);
|
|
297
|
+
apiPath = this._options.locale + "/page?parentPageID=" + parentPageID + "&placeBeforePageItemID=" + placeBeforePageItemID;
|
|
298
|
+
return [4 /*yield*/, this._clientInstance.executePost(apiPath, this._options, pageItem)];
|
|
299
|
+
case 1:
|
|
300
|
+
resp = _a.sent();
|
|
301
|
+
batchID_7 = resp.data;
|
|
302
|
+
return [4 /*yield*/, this._batchMethods.Retry(function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
303
|
+
switch (_a.label) {
|
|
304
|
+
case 0: return [4 /*yield*/, this._batchMethods.getBatch(batchID_7)];
|
|
305
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
306
|
+
}
|
|
307
|
+
}); }); })];
|
|
308
|
+
case 2:
|
|
309
|
+
batch = _a.sent();
|
|
310
|
+
pageIDs_7 = [];
|
|
311
|
+
batch.items.forEach(function (element) { return pageIDs_7.push(element.itemID); });
|
|
312
|
+
return [2 /*return*/, pageIDs_7];
|
|
313
|
+
case 3:
|
|
314
|
+
err_9 = _a.sent();
|
|
315
|
+
throw new exception_1.Exception("Unable to create page. " + err_9, err_9);
|
|
316
|
+
case 4: return [2 /*return*/];
|
|
317
|
+
}
|
|
318
|
+
});
|
|
156
319
|
});
|
|
157
|
-
}
|
|
158
|
-
|
|
320
|
+
};
|
|
321
|
+
return PageMethods;
|
|
322
|
+
}());
|
|
159
323
|
exports.PageMethods = PageMethods;
|
package/dist/models/batch.js
CHANGED
package/dist/models/batchItem.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BatchItem = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
var BatchItem = /** @class */ (function () {
|
|
5
|
+
function BatchItem() {
|
|
6
|
+
}
|
|
7
|
+
return BatchItem;
|
|
8
|
+
}());
|
|
6
9
|
exports.BatchItem = BatchItem;
|
package/dist/models/container.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Container = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
var Container = /** @class */ (function () {
|
|
5
|
+
function Container() {
|
|
6
|
+
}
|
|
7
|
+
return Container;
|
|
8
|
+
}());
|
|
6
9
|
exports.Container = Container;
|
|
@@ -1,18 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ContentList = exports.ContentScripts = exports.SeoProperties = exports.ContentItemProperties = exports.ContentItem = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
var ContentItem = /** @class */ (function () {
|
|
5
|
+
function ContentItem() {
|
|
6
|
+
}
|
|
7
|
+
return ContentItem;
|
|
8
|
+
}());
|
|
6
9
|
exports.ContentItem = ContentItem;
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
var ContentItemProperties = /** @class */ (function () {
|
|
11
|
+
function ContentItemProperties() {
|
|
12
|
+
}
|
|
13
|
+
return ContentItemProperties;
|
|
14
|
+
}());
|
|
9
15
|
exports.ContentItemProperties = ContentItemProperties;
|
|
10
|
-
|
|
11
|
-
|
|
16
|
+
var SeoProperties = /** @class */ (function () {
|
|
17
|
+
function SeoProperties() {
|
|
18
|
+
}
|
|
19
|
+
return SeoProperties;
|
|
20
|
+
}());
|
|
12
21
|
exports.SeoProperties = SeoProperties;
|
|
13
|
-
|
|
14
|
-
|
|
22
|
+
var ContentScripts = /** @class */ (function () {
|
|
23
|
+
function ContentScripts() {
|
|
24
|
+
}
|
|
25
|
+
return ContentScripts;
|
|
26
|
+
}());
|
|
15
27
|
exports.ContentScripts = ContentScripts;
|
|
16
|
-
|
|
17
|
-
|
|
28
|
+
var ContentList = /** @class */ (function () {
|
|
29
|
+
function ContentList() {
|
|
30
|
+
}
|
|
31
|
+
return ContentList;
|
|
32
|
+
}());
|
|
18
33
|
exports.ContentList = ContentList;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ContentViewColumn = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
var ContentViewColumn = /** @class */ (function () {
|
|
5
|
+
function ContentViewColumn() {
|
|
6
|
+
}
|
|
7
|
+
return ContentViewColumn;
|
|
8
|
+
}());
|
|
6
9
|
exports.ContentViewColumn = ContentViewColumn;
|
package/dist/models/exception.js
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
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 (Object.prototype.hasOwnProperty.call(b, 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
|
+
})();
|
|
2
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
16
|
exports.Exception = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
17
|
+
var Exception = /** @class */ (function (_super) {
|
|
18
|
+
__extends(Exception, _super);
|
|
19
|
+
function Exception(message, inner) {
|
|
20
|
+
var _this = _super.call(this, message) || this;
|
|
21
|
+
_this.innerError = inner;
|
|
22
|
+
return _this;
|
|
8
23
|
}
|
|
9
|
-
|
|
24
|
+
return Exception;
|
|
25
|
+
}(Error));
|
|
10
26
|
exports.Exception = Exception;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InstanceRole = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
var InstanceRole = /** @class */ (function () {
|
|
5
|
+
function InstanceRole() {
|
|
6
|
+
}
|
|
7
|
+
return InstanceRole;
|
|
8
|
+
}());
|
|
6
9
|
exports.InstanceRole = InstanceRole;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InstanceUser = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
var InstanceUser = /** @class */ (function () {
|
|
5
|
+
function InstanceUser() {
|
|
6
|
+
}
|
|
7
|
+
return InstanceUser;
|
|
8
|
+
}());
|
|
6
9
|
exports.InstanceUser = InstanceUser;
|
package/dist/models/media.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AssetMediaList = exports.Media = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
var Media = /** @class */ (function () {
|
|
5
|
+
function Media() {
|
|
6
|
+
}
|
|
7
|
+
return Media;
|
|
8
|
+
}());
|
|
6
9
|
exports.Media = Media;
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
var AssetMediaList = /** @class */ (function () {
|
|
11
|
+
function AssetMediaList() {
|
|
12
|
+
}
|
|
13
|
+
return AssetMediaList;
|
|
14
|
+
}());
|
|
9
15
|
exports.AssetMediaList = AssetMediaList;
|