@agility/management-sdk 0.1.14 → 0.1.15

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 (69) hide show
  1. package/README.md +522 -522
  2. package/dist/apiMethods/assetMethods.d.ts +11 -1
  3. package/dist/apiMethods/assetMethods.js +30 -20
  4. package/dist/apiMethods/batchMethods.js +3 -3
  5. package/dist/apiMethods/clientInstance.js +5 -5
  6. package/dist/apiMethods/containerMethods.js +13 -13
  7. package/dist/apiMethods/contentMethods.js +19 -19
  8. package/dist/apiMethods/instanceUserMethods.js +4 -4
  9. package/dist/apiMethods/modelMethods.js +8 -8
  10. package/dist/apiMethods/pageMethods.js +24 -24
  11. package/dist/index.js +1 -5
  12. package/dist/models/exception.js +0 -2
  13. package/license.txt +20 -20
  14. package/package.json +39 -39
  15. package/tsconfig.json +14 -14
  16. package/dist/apiMethods/apiClient.d.ts +0 -19
  17. package/dist/apiMethods/apiClient.js +0 -24
  18. package/dist/src/apiMethods/assetMethods.d.ts +0 -14
  19. package/dist/src/apiMethods/assetMethods.js +0 -172
  20. package/dist/src/apiMethods/batchMethods.d.ts +0 -11
  21. package/dist/src/apiMethods/batchMethods.js +0 -117
  22. package/dist/src/apiMethods/clientInstance.d.ts +0 -8
  23. package/dist/src/apiMethods/clientInstance.js +0 -156
  24. package/dist/src/apiMethods/containerMethods.d.ts +0 -16
  25. package/dist/src/apiMethods/containerMethods.js +0 -189
  26. package/dist/src/apiMethods/contentMethods.d.ts +0 -20
  27. package/dist/src/apiMethods/contentMethods.js +0 -359
  28. package/dist/src/apiMethods/instanceUserMethods.d.ts +0 -13
  29. package/dist/src/apiMethods/instanceUserMethods.js +0 -111
  30. package/dist/src/apiMethods/modelMethods.d.ts +0 -13
  31. package/dist/src/apiMethods/modelMethods.js +0 -150
  32. package/dist/src/apiMethods/pageMethods.d.ts +0 -20
  33. package/dist/src/apiMethods/pageMethods.js +0 -323
  34. package/dist/src/enums/batchOperationType.d.ts +0 -19
  35. package/dist/src/enums/batchOperationType.js +0 -23
  36. package/dist/src/enums/batchState..d.ts +0 -7
  37. package/dist/src/enums/batchState..js +0 -11
  38. package/dist/src/index.d.ts +0 -14
  39. package/dist/src/index.js +0 -30
  40. package/dist/src/models/batch.d.ts +0 -29
  41. package/dist/src/models/batch.js +0 -9
  42. package/dist/src/models/batchItem.d.ts +0 -13
  43. package/dist/src/models/batchItem.js +0 -9
  44. package/dist/src/models/container.d.ts +0 -47
  45. package/dist/src/models/container.js +0 -9
  46. package/dist/src/models/contentItem.d.ts +0 -37
  47. package/dist/src/models/contentItem.js +0 -33
  48. package/dist/src/models/contentViewColumn.d.ts +0 -8
  49. package/dist/src/models/contentViewColumn.js +0 -9
  50. package/dist/src/models/exception.d.ts +0 -4
  51. package/dist/src/models/exception.js +0 -28
  52. package/dist/src/models/instanceRole.d.ts +0 -7
  53. package/dist/src/models/instanceRole.js +0 -9
  54. package/dist/src/models/instanceUser.d.ts +0 -14
  55. package/dist/src/models/instanceUser.js +0 -9
  56. package/dist/src/models/media.d.ts +0 -30
  57. package/dist/src/models/media.js +0 -15
  58. package/dist/src/models/model.d.ts +0 -30
  59. package/dist/src/models/model.js +0 -15
  60. package/dist/src/models/notification.d.ts +0 -13
  61. package/dist/src/models/notification.js +0 -9
  62. package/dist/src/models/options.d.ts +0 -7
  63. package/dist/src/models/options.js +0 -9
  64. package/dist/src/models/pageItem.d.ts +0 -56
  65. package/dist/src/models/pageItem.js +0 -39
  66. package/dist/src/models/sitemap.d.ts +0 -20
  67. package/dist/src/models/sitemap.js +0 -15
  68. package/dist/src/models/websiteUser.d.ts +0 -22
  69. package/dist/src/models/websiteUser.js +0 -15
@@ -19,6 +19,16 @@ export declare class AssetMethods {
19
19
  deleteGallery(guid: string, id: number): Promise<string>;
20
20
  getAssetByID(mediaID: number, guid: string): Promise<Media>;
21
21
  getAssetByUrl(url: string, guid: string): Promise<Media>;
22
- upload(formData: FormData, agilityFolderPath: string, guid: string, groupingID?: number): Promise<Media[]>;
22
+ /**
23
+ * Uploads a file to the specified folder path.
24
+ *
25
+ * @param {*} formData - FormData object that axios is expecting for the Upload.
26
+ * @param {string} agilityFolderPath
27
+ * @param {string} guid
28
+ * @param {number} [groupingID=-1]
29
+ * @returns
30
+ * @memberof AssetMethods
31
+ */
32
+ upload(formData: any, agilityFolderPath: string, guid: string, groupingID?: number): Promise<Media[]>;
23
33
  createFolder(originKey: string, guid: string): Promise<Media>;
24
34
  }
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ while (_) try {
18
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
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -51,7 +51,7 @@ var AssetMethods = /** @class */ (function () {
51
51
  switch (_a.label) {
52
52
  case 0:
53
53
  _a.trys.push([0, 2, , 3]);
54
- apiPath = "asset/delete/".concat(mediaID);
54
+ apiPath = "asset/delete/" + mediaID;
55
55
  return [4 /*yield*/, this._clientInstance.executeDelete(apiPath, guid, this._options.token)];
56
56
  case 1:
57
57
  resp = _a.sent();
@@ -59,7 +59,7 @@ var AssetMethods = /** @class */ (function () {
59
59
  return [2 /*return*/, resp.data];
60
60
  case 2:
61
61
  err_1 = _a.sent();
62
- throw new exception_1.Exception("Unable to delete the media for mediaID: ".concat(mediaID), err_1);
62
+ throw new exception_1.Exception("Unable to delete the media for mediaID: " + mediaID, err_1);
63
63
  case 3: return [2 /*return*/];
64
64
  }
65
65
  });
@@ -73,14 +73,14 @@ var AssetMethods = /** @class */ (function () {
73
73
  case 0:
74
74
  _a.trys.push([0, 2, , 3]);
75
75
  folder = encodeURIComponent(newFolder);
76
- apiPath = "asset/move/".concat(mediaID, "?newFolder=").concat(folder);
76
+ apiPath = "asset/move/" + mediaID + "?newFolder=" + folder;
77
77
  return [4 /*yield*/, this._clientInstance.executePost(apiPath, guid, this._options.token, null)];
78
78
  case 1:
79
79
  resp = _a.sent();
80
80
  return [2 /*return*/, resp.data];
81
81
  case 2:
82
82
  err_2 = _a.sent();
83
- throw new exception_1.Exception("Unable to move the media for mediaID: ".concat(mediaID), err_2);
83
+ throw new exception_1.Exception("Unable to move the media for mediaID: " + mediaID, err_2);
84
84
  case 3: return [2 /*return*/];
85
85
  }
86
86
  });
@@ -93,7 +93,7 @@ var AssetMethods = /** @class */ (function () {
93
93
  switch (_a.label) {
94
94
  case 0:
95
95
  _a.trys.push([0, 2, , 3]);
96
- apiPath = "asset/list?pageSize=".concat(pageSize, "&recordOffset=").concat(recordOffset);
96
+ apiPath = "asset/list?pageSize=" + pageSize + "&recordOffset=" + recordOffset;
97
97
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
98
98
  case 1:
99
99
  resp = _a.sent();
@@ -116,7 +116,7 @@ var AssetMethods = /** @class */ (function () {
116
116
  switch (_a.label) {
117
117
  case 0:
118
118
  _a.trys.push([0, 2, , 3]);
119
- apiPath = "asset/galleries?search=".concat(search, "&pageSize=").concat(pageSize, "&rowIndex=").concat(rowIndex);
119
+ apiPath = "asset/galleries?search=" + search + "&pageSize=" + pageSize + "&rowIndex=" + rowIndex;
120
120
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
121
121
  case 1:
122
122
  resp = _a.sent();
@@ -136,14 +136,14 @@ var AssetMethods = /** @class */ (function () {
136
136
  switch (_a.label) {
137
137
  case 0:
138
138
  _a.trys.push([0, 2, , 3]);
139
- apiPath = "/asset/gallery/".concat(id);
139
+ apiPath = "/asset/gallery/" + id;
140
140
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
141
141
  case 1:
142
142
  resp = _a.sent();
143
143
  return [2 /*return*/, resp.data];
144
144
  case 2:
145
145
  err_5 = _a.sent();
146
- throw new exception_1.Exception("Unable to retrieve gallery for id ".concat(id), err_5);
146
+ throw new exception_1.Exception("Unable to retrieve gallery for id " + id, err_5);
147
147
  case 3: return [2 /*return*/];
148
148
  }
149
149
  });
@@ -156,14 +156,14 @@ var AssetMethods = /** @class */ (function () {
156
156
  switch (_a.label) {
157
157
  case 0:
158
158
  _a.trys.push([0, 2, , 3]);
159
- apiPath = "/asset/gallery?galleryName=".concat(galleryName);
159
+ apiPath = "/asset/gallery?galleryName=" + galleryName;
160
160
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
161
161
  case 1:
162
162
  resp = _a.sent();
163
163
  return [2 /*return*/, resp.data];
164
164
  case 2:
165
165
  err_6 = _a.sent();
166
- throw new exception_1.Exception("Unable to retrieve gallery for name ".concat(galleryName), err_6);
166
+ throw new exception_1.Exception("Unable to retrieve gallery for name " + galleryName, err_6);
167
167
  case 3: return [2 /*return*/];
168
168
  }
169
169
  });
@@ -183,7 +183,7 @@ var AssetMethods = /** @class */ (function () {
183
183
  return [2 /*return*/, resp.data];
184
184
  case 2:
185
185
  err_7 = _a.sent();
186
- throw new exception_1.Exception("Unable to retrieve container for guid ".concat(guid), err_7);
186
+ throw new exception_1.Exception("Unable to retrieve container for guid " + guid, err_7);
187
187
  case 3: return [2 /*return*/];
188
188
  }
189
189
  });
@@ -216,14 +216,14 @@ var AssetMethods = /** @class */ (function () {
216
216
  switch (_a.label) {
217
217
  case 0:
218
218
  _a.trys.push([0, 2, , 3]);
219
- apiPath = "/asset/gallery/".concat(id);
219
+ apiPath = "/asset/gallery/" + id;
220
220
  return [4 /*yield*/, this._clientInstance.executeDelete(apiPath, guid, this._options.token)];
221
221
  case 1:
222
222
  resp = _a.sent();
223
223
  return [2 /*return*/, resp.data];
224
224
  case 2:
225
225
  err_9 = _a.sent();
226
- throw new exception_1.Exception("Unable to delete gallery for id ".concat(id), err_9);
226
+ throw new exception_1.Exception("Unable to delete gallery for id " + id, err_9);
227
227
  case 3: return [2 /*return*/];
228
228
  }
229
229
  });
@@ -236,14 +236,14 @@ var AssetMethods = /** @class */ (function () {
236
236
  switch (_a.label) {
237
237
  case 0:
238
238
  _a.trys.push([0, 2, , 3]);
239
- apiPath = "asset/".concat(mediaID);
239
+ apiPath = "asset/" + mediaID;
240
240
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
241
241
  case 1:
242
242
  resp = _a.sent();
243
243
  return [2 /*return*/, resp.data];
244
244
  case 2:
245
245
  err_10 = _a.sent();
246
- throw new exception_1.Exception("Unable to retrieve asset for mediaID ".concat(mediaID), err_10);
246
+ throw new exception_1.Exception("Unable to retrieve asset for mediaID " + mediaID, err_10);
247
247
  case 3: return [2 /*return*/];
248
248
  }
249
249
  });
@@ -256,19 +256,29 @@ var AssetMethods = /** @class */ (function () {
256
256
  switch (_a.label) {
257
257
  case 0:
258
258
  _a.trys.push([0, 2, , 3]);
259
- apiPath = "asset?url=".concat(url);
259
+ apiPath = "asset?url=" + url;
260
260
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
261
261
  case 1:
262
262
  resp = _a.sent();
263
263
  return [2 /*return*/, resp.data];
264
264
  case 2:
265
265
  err_11 = _a.sent();
266
- throw new exception_1.Exception("Unable to retrieve asset for url ".concat(url), err_11);
266
+ throw new exception_1.Exception("Unable to retrieve asset for url " + url, err_11);
267
267
  case 3: return [2 /*return*/];
268
268
  }
269
269
  });
270
270
  });
271
271
  };
272
+ /**
273
+ * Uploads a file to the specified folder path.
274
+ *
275
+ * @param {*} formData - FormData object that axios is expecting for the Upload.
276
+ * @param {string} agilityFolderPath
277
+ * @param {string} guid
278
+ * @param {number} [groupingID=-1]
279
+ * @returns
280
+ * @memberof AssetMethods
281
+ */
272
282
  AssetMethods.prototype.upload = function (formData, agilityFolderPath, guid, groupingID) {
273
283
  if (groupingID === void 0) { groupingID = -1; }
274
284
  return __awaiter(this, void 0, void 0, function () {
@@ -277,7 +287,7 @@ var AssetMethods = /** @class */ (function () {
277
287
  switch (_a.label) {
278
288
  case 0:
279
289
  _a.trys.push([0, 2, , 3]);
280
- apiPath = "asset/upload?folderPath=".concat(agilityFolderPath, "&groupingID=").concat(groupingID);
290
+ apiPath = "asset/upload?folderPath=" + agilityFolderPath + "&groupingID=" + groupingID;
281
291
  return [4 /*yield*/, this._clientInstance.executePost(apiPath, guid, this._options.token, formData)];
282
292
  case 1:
283
293
  resp = _a.sent();
@@ -297,7 +307,7 @@ var AssetMethods = /** @class */ (function () {
297
307
  switch (_a.label) {
298
308
  case 0:
299
309
  _a.trys.push([0, 2, , 3]);
300
- apiPath = "asset/folder?originKey=".concat(originKey);
310
+ apiPath = "asset/folder?originKey=" + originKey;
301
311
  return [4 /*yield*/, this._clientInstance.executePost(apiPath, guid, this._options.token, null)];
302
312
  case 1:
303
313
  resp = _a.sent();
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ while (_) try {
18
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
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -52,14 +52,14 @@ var BatchMethods = /** @class */ (function () {
52
52
  switch (_a.label) {
53
53
  case 0:
54
54
  _a.trys.push([0, 2, , 3]);
55
- apiPath = "batch/".concat(batchID);
55
+ apiPath = "batch/" + batchID;
56
56
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
57
57
  case 1:
58
58
  resp = _a.sent();
59
59
  return [2 /*return*/, resp.data];
60
60
  case 2:
61
61
  err_1 = _a.sent();
62
- throw new exception_1.Exception("Unable to retreive the batch for id: ".concat(batchID), err_1);
62
+ throw new exception_1.Exception("Unable to retreive the batch for id: " + batchID, err_1);
63
63
  case 3: return [2 /*return*/];
64
64
  }
65
65
  });
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ while (_) try {
18
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
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -78,7 +78,7 @@ var ClientInstance = /** @class */ (function () {
78
78
  ClientInstance.prototype.getInstance = function (guid) {
79
79
  var baseUrl = this.determineBaseUrl(guid);
80
80
  var instance = axios_1.default.create({
81
- baseURL: "".concat(baseUrl, "/api/v1/instance/").concat(guid)
81
+ baseURL: baseUrl + "/api/v1/instance/" + guid
82
82
  });
83
83
  return instance;
84
84
  };
@@ -94,7 +94,7 @@ var ClientInstance = /** @class */ (function () {
94
94
  _a.trys.push([1, 3, , 4]);
95
95
  return [4 /*yield*/, instance.get(apiPath, {
96
96
  headers: {
97
- 'Authorization': "Bearer ".concat(token),
97
+ 'Authorization': "Bearer " + token,
98
98
  'Cache-Control': 'no-cache'
99
99
  }
100
100
  })];
@@ -121,7 +121,7 @@ var ClientInstance = /** @class */ (function () {
121
121
  _a.trys.push([1, 3, , 4]);
122
122
  return [4 /*yield*/, instance.delete(apiPath, {
123
123
  headers: {
124
- 'Authorization': "Bearer ".concat(token),
124
+ 'Authorization': "Bearer " + token,
125
125
  'Cache-Control': 'no-cache'
126
126
  }
127
127
  })];
@@ -148,7 +148,7 @@ var ClientInstance = /** @class */ (function () {
148
148
  _a.trys.push([1, 3, , 4]);
149
149
  return [4 /*yield*/, instance.post(apiPath, data, {
150
150
  headers: {
151
- 'Authorization': "Bearer ".concat(token),
151
+ 'Authorization': "Bearer " + token,
152
152
  'Cache-Control': 'no-cache'
153
153
  }
154
154
  })];
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ while (_) try {
18
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
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -51,14 +51,14 @@ var ContainerMethods = /** @class */ (function () {
51
51
  switch (_a.label) {
52
52
  case 0:
53
53
  _a.trys.push([0, 2, , 3]);
54
- apiPath = "container/".concat(id);
54
+ apiPath = "container/" + id;
55
55
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
56
56
  case 1:
57
57
  resp = _a.sent();
58
58
  return [2 /*return*/, resp.data];
59
59
  case 2:
60
60
  err_1 = _a.sent();
61
- throw new exception_1.Exception("Unable to retreive the contianer for id: ".concat(id), err_1);
61
+ throw new exception_1.Exception("Unable to retreive the contianer for id: " + id, err_1);
62
62
  case 3: return [2 /*return*/];
63
63
  }
64
64
  });
@@ -71,14 +71,14 @@ var ContainerMethods = /** @class */ (function () {
71
71
  switch (_a.label) {
72
72
  case 0:
73
73
  _a.trys.push([0, 2, , 3]);
74
- apiPath = "container/model/".concat(modelId);
74
+ apiPath = "container/model/" + modelId;
75
75
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
76
76
  case 1:
77
77
  resp = _a.sent();
78
78
  return [2 /*return*/, resp.data];
79
79
  case 2:
80
80
  err_2 = _a.sent();
81
- throw new exception_1.Exception("Unable to retreive the containers for id: ".concat(modelId), err_2);
81
+ throw new exception_1.Exception("Unable to retreive the containers for id: " + modelId, err_2);
82
82
  case 3: return [2 /*return*/];
83
83
  }
84
84
  });
@@ -91,14 +91,14 @@ var ContainerMethods = /** @class */ (function () {
91
91
  switch (_a.label) {
92
92
  case 0:
93
93
  _a.trys.push([0, 2, , 3]);
94
- apiPath = "container/".concat(referenceName);
94
+ apiPath = "container/" + referenceName;
95
95
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
96
96
  case 1:
97
97
  resp = _a.sent();
98
98
  return [2 /*return*/, resp.data];
99
99
  case 2:
100
100
  err_3 = _a.sent();
101
- throw new exception_1.Exception("Unable to retreive the contianer for referenceName: ".concat(referenceName), err_3);
101
+ throw new exception_1.Exception("Unable to retreive the contianer for referenceName: " + referenceName, err_3);
102
102
  case 3: return [2 /*return*/];
103
103
  }
104
104
  });
@@ -111,14 +111,14 @@ var ContainerMethods = /** @class */ (function () {
111
111
  switch (_a.label) {
112
112
  case 0:
113
113
  _a.trys.push([0, 2, , 3]);
114
- apiPath = "container/".concat(id, "/security");
114
+ apiPath = "container/" + id + "/security";
115
115
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
116
116
  case 1:
117
117
  resp = _a.sent();
118
118
  return [2 /*return*/, resp.data];
119
119
  case 2:
120
120
  err_4 = _a.sent();
121
- throw new exception_1.Exception("Unable to retreive the contianer for id: ".concat(id), err_4);
121
+ throw new exception_1.Exception("Unable to retreive the contianer for id: " + id, err_4);
122
122
  case 3: return [2 /*return*/];
123
123
  }
124
124
  });
@@ -151,14 +151,14 @@ var ContainerMethods = /** @class */ (function () {
151
151
  switch (_a.label) {
152
152
  case 0:
153
153
  _a.trys.push([0, 2, , 3]);
154
- apiPath = "container/".concat(id, "/notifications");
154
+ apiPath = "container/" + id + "/notifications";
155
155
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
156
156
  case 1:
157
157
  resp = _a.sent();
158
158
  return [2 /*return*/, resp.data];
159
159
  case 2:
160
160
  err_6 = _a.sent();
161
- throw new exception_1.Exception("Unable to retreive the notifications for contianer id: ".concat(id), err_6);
161
+ throw new exception_1.Exception("Unable to retreive the notifications for contianer id: " + id, err_6);
162
162
  case 3: return [2 /*return*/];
163
163
  }
164
164
  });
@@ -191,14 +191,14 @@ var ContainerMethods = /** @class */ (function () {
191
191
  switch (_a.label) {
192
192
  case 0:
193
193
  _a.trys.push([0, 2, , 3]);
194
- apiPath = "container/".concat(id);
194
+ apiPath = "container/" + id;
195
195
  return [4 /*yield*/, this._clientInstance.executeDelete(apiPath, guid, this._options.token)];
196
196
  case 1:
197
197
  resp = _a.sent();
198
198
  return [2 /*return*/, resp.data];
199
199
  case 2:
200
200
  err_8 = _a.sent();
201
- throw new exception_1.Exception("Unable to delete the contianer for id: ".concat(id), err_8);
201
+ throw new exception_1.Exception("Unable to delete the contianer for id: " + id, err_8);
202
202
  case 3: return [2 /*return*/];
203
203
  }
204
204
  });
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ while (_) try {
18
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
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -53,14 +53,14 @@ var ContentMethods = /** @class */ (function () {
53
53
  switch (_a.label) {
54
54
  case 0:
55
55
  _a.trys.push([0, 2, , 3]);
56
- apiPath = "".concat(locale, "/item/").concat(contentID);
56
+ apiPath = locale + "/item/" + contentID;
57
57
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
58
58
  case 1:
59
59
  resp = _a.sent();
60
60
  return [2 /*return*/, resp.data];
61
61
  case 2:
62
62
  err_1 = _a.sent();
63
- throw new exception_1.Exception("Unable to retreive the content for id: ".concat(contentID), err_1);
63
+ throw new exception_1.Exception("Unable to retreive the content for id: " + contentID, err_1);
64
64
  case 3: return [2 /*return*/];
65
65
  }
66
66
  });
@@ -75,7 +75,7 @@ var ContentMethods = /** @class */ (function () {
75
75
  switch (_a.label) {
76
76
  case 0:
77
77
  _a.trys.push([0, 3, , 4]);
78
- apiPath = "".concat(locale, "/item/").concat(contentID, "/publish?comments=").concat(comments);
78
+ apiPath = locale + "/item/" + contentID + "/publish?comments=" + comments;
79
79
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
80
80
  case 1:
81
81
  resp = _a.sent();
@@ -93,7 +93,7 @@ var ContentMethods = /** @class */ (function () {
93
93
  return [2 /*return*/, contentIDs_1];
94
94
  case 3:
95
95
  err_2 = _a.sent();
96
- throw new exception_1.Exception("Unable to publish the content for id: ".concat(contentID), err_2);
96
+ throw new exception_1.Exception("Unable to publish the content for id: " + contentID, err_2);
97
97
  case 4: return [2 /*return*/];
98
98
  }
99
99
  });
@@ -108,7 +108,7 @@ var ContentMethods = /** @class */ (function () {
108
108
  switch (_a.label) {
109
109
  case 0:
110
110
  _a.trys.push([0, 3, , 4]);
111
- apiPath = "".concat(locale, "/item/").concat(contentID, "/unpublish?comments=").concat(comments);
111
+ apiPath = locale + "/item/" + contentID + "/unpublish?comments=" + comments;
112
112
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
113
113
  case 1:
114
114
  resp = _a.sent();
@@ -126,7 +126,7 @@ var ContentMethods = /** @class */ (function () {
126
126
  return [2 /*return*/, contentIDs_2];
127
127
  case 3:
128
128
  err_3 = _a.sent();
129
- throw new exception_1.Exception("Unable to un-publish the content for id: ".concat(contentID), err_3);
129
+ throw new exception_1.Exception("Unable to un-publish the content for id: " + contentID, err_3);
130
130
  case 4: return [2 /*return*/];
131
131
  }
132
132
  });
@@ -141,7 +141,7 @@ var ContentMethods = /** @class */ (function () {
141
141
  switch (_a.label) {
142
142
  case 0:
143
143
  _a.trys.push([0, 3, , 4]);
144
- apiPath = "".concat(locale, "/item/").concat(contentID, "/request-approval?comments=").concat(comments);
144
+ apiPath = locale + "/item/" + contentID + "/request-approval?comments=" + comments;
145
145
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
146
146
  case 1:
147
147
  resp = _a.sent();
@@ -159,7 +159,7 @@ var ContentMethods = /** @class */ (function () {
159
159
  return [2 /*return*/, contentIDs_3];
160
160
  case 3:
161
161
  err_4 = _a.sent();
162
- throw new exception_1.Exception("Unable to request approval the content for id: ".concat(contentID), err_4);
162
+ throw new exception_1.Exception("Unable to request approval the content for id: " + contentID, err_4);
163
163
  case 4: return [2 /*return*/];
164
164
  }
165
165
  });
@@ -174,7 +174,7 @@ var ContentMethods = /** @class */ (function () {
174
174
  switch (_a.label) {
175
175
  case 0:
176
176
  _a.trys.push([0, 3, , 4]);
177
- apiPath = "".concat(locale, "/item/").concat(contentID, "/approve?comments=").concat(comments);
177
+ apiPath = locale + "/item/" + contentID + "/approve?comments=" + comments;
178
178
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
179
179
  case 1:
180
180
  resp = _a.sent();
@@ -192,7 +192,7 @@ var ContentMethods = /** @class */ (function () {
192
192
  return [2 /*return*/, contentIDs_4];
193
193
  case 3:
194
194
  err_5 = _a.sent();
195
- throw new exception_1.Exception("Unable to approve the content for id: ".concat(contentID), err_5);
195
+ throw new exception_1.Exception("Unable to approve the content for id: " + contentID, err_5);
196
196
  case 4: return [2 /*return*/];
197
197
  }
198
198
  });
@@ -207,7 +207,7 @@ var ContentMethods = /** @class */ (function () {
207
207
  switch (_a.label) {
208
208
  case 0:
209
209
  _a.trys.push([0, 3, , 4]);
210
- apiPath = "".concat(locale, "/item/").concat(contentID, "/decline?comments=").concat(comments);
210
+ apiPath = locale + "/item/" + contentID + "/decline?comments=" + comments;
211
211
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
212
212
  case 1:
213
213
  resp = _a.sent();
@@ -225,7 +225,7 @@ var ContentMethods = /** @class */ (function () {
225
225
  return [2 /*return*/, contentIDs_5];
226
226
  case 3:
227
227
  err_6 = _a.sent();
228
- throw new exception_1.Exception("Unable to decline the content for id: ".concat(contentID), err_6);
228
+ throw new exception_1.Exception("Unable to decline the content for id: " + contentID, err_6);
229
229
  case 4: return [2 /*return*/];
230
230
  }
231
231
  });
@@ -240,7 +240,7 @@ var ContentMethods = /** @class */ (function () {
240
240
  switch (_a.label) {
241
241
  case 0:
242
242
  _a.trys.push([0, 3, , 4]);
243
- apiPath = "".concat(locale, "/item/").concat(contentID, "?comments=").concat(comments);
243
+ apiPath = locale + "/item/" + contentID + "?comments=" + comments;
244
244
  return [4 /*yield*/, this._clientInstance.executeDelete(apiPath, guid, this._options.token)];
245
245
  case 1:
246
246
  resp = _a.sent();
@@ -258,7 +258,7 @@ var ContentMethods = /** @class */ (function () {
258
258
  return [2 /*return*/, contentIDs_6];
259
259
  case 3:
260
260
  err_7 = _a.sent();
261
- throw new exception_1.Exception("Unable to delete the content for id: ".concat(contentID), err_7);
261
+ throw new exception_1.Exception("Unable to delete the content for id: " + contentID, err_7);
262
262
  case 4: return [2 /*return*/];
263
263
  }
264
264
  });
@@ -272,7 +272,7 @@ var ContentMethods = /** @class */ (function () {
272
272
  switch (_a.label) {
273
273
  case 0:
274
274
  _a.trys.push([0, 3, , 4]);
275
- apiPath = "".concat(locale, "/item");
275
+ apiPath = locale + "/item";
276
276
  return [4 /*yield*/, this._clientInstance.executePost(apiPath, guid, this._options.token, contentItem)];
277
277
  case 1:
278
278
  resp = _a.sent();
@@ -304,7 +304,7 @@ var ContentMethods = /** @class */ (function () {
304
304
  switch (_a.label) {
305
305
  case 0:
306
306
  _a.trys.push([0, 3, , 4]);
307
- apiPath = "".concat(locale, "/item/multi");
307
+ apiPath = locale + "/item/multi";
308
308
  return [4 /*yield*/, this._clientInstance.executePost(apiPath, guid, this._options.token, contentItems)];
309
309
  case 1:
310
310
  resp = _a.sent();
@@ -341,14 +341,14 @@ var ContentMethods = /** @class */ (function () {
341
341
  switch (_a.label) {
342
342
  case 0:
343
343
  _a.trys.push([0, 2, , 3]);
344
- apiPath = "".concat(locale, "/list/").concat(referenceName, "?filter=").concat(filter, "&fields=").concat(fields, "&sortDirection=").concat(sortDirection, "&sortField=").concat(sortField, "&take=").concat(take, "&skip=").concat(skip);
344
+ apiPath = locale + "/list/" + referenceName + "?filter=" + filter + "&fields=" + fields + "&sortDirection=" + sortDirection + "&sortField=" + sortField + "&take=" + take + "&skip=" + skip;
345
345
  return [4 /*yield*/, this._clientInstance.executeGet(apiPath, guid, this._options.token)];
346
346
  case 1:
347
347
  resp = _a.sent();
348
348
  return [2 /*return*/, resp.data];
349
349
  case 2:
350
350
  err_10 = _a.sent();
351
- throw new exception_1.Exception("Unable retreive the content details for reference name: ".concat(referenceName), err_10);
351
+ throw new exception_1.Exception("Unable retreive the content details for reference name: " + referenceName, err_10);
352
352
  case 3: return [2 /*return*/];
353
353
  }
354
354
  });
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ while (_) try {
18
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
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -73,7 +73,7 @@ var InstanceUserMethods = /** @class */ (function () {
73
73
  switch (_a.label) {
74
74
  case 0:
75
75
  _a.trys.push([0, 2, , 3]);
76
- apiPath = "user/save?emailAddress=".concat(emailAddress, "&firstName=").concat(firstName, "&lastName=").concat(lastName);
76
+ apiPath = "user/save?emailAddress=" + emailAddress + "&firstName=" + firstName + "&lastName=" + lastName;
77
77
  return [4 /*yield*/, this._clientInstance.executePost(apiPath, guid, this._options.token, roles)];
78
78
  case 1:
79
79
  resp = _a.sent();
@@ -93,14 +93,14 @@ var InstanceUserMethods = /** @class */ (function () {
93
93
  switch (_a.label) {
94
94
  case 0:
95
95
  _a.trys.push([0, 2, , 3]);
96
- apiPath = "user/delete/".concat(userId);
96
+ apiPath = "user/delete/" + userId;
97
97
  return [4 /*yield*/, this._clientInstance.executeDelete(apiPath, guid, this._options.token)];
98
98
  case 1:
99
99
  resp = _a.sent();
100
100
  return [2 /*return*/, resp.data];
101
101
  case 2:
102
102
  err_3 = _a.sent();
103
- throw new exception_1.Exception("Unable to delete the user for id: ".concat(userId), err_3);
103
+ throw new exception_1.Exception("Unable to delete the user for id: " + userId, err_3);
104
104
  case 3: return [2 /*return*/];
105
105
  }
106
106
  });