@agility/management-sdk 0.1.18 → 0.1.19

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 (74) hide show
  1. package/README.md +695 -695
  2. package/dist/apiMethods/assetMethods.js +16 -16
  3. package/dist/apiMethods/batchMethods.js +2 -2
  4. package/dist/apiMethods/clientInstance.js +2 -2
  5. package/dist/apiMethods/containerMethods.js +2 -2
  6. package/dist/apiMethods/contentMethods.js +31 -31
  7. package/dist/apiMethods/instanceMethods.d.ts +9 -0
  8. package/dist/{src/apiMethods/instanceUserMethods.js → apiMethods/instanceMethods.js} +69 -111
  9. package/dist/apiMethods/instanceUserMethods.js +6 -6
  10. package/dist/apiMethods/modelMethods.js +5 -5
  11. package/dist/apiMethods/pageMethods.js +35 -35
  12. package/dist/apiMethods/serverUserMethods.js +2 -2
  13. package/dist/apiMethods/webhookMethods.js +6 -6
  14. package/dist/enums/assetGroupingType.js +1 -1
  15. package/dist/enums/batchOperationType.js +1 -1
  16. package/dist/enums/batchState..js +1 -1
  17. package/dist/enums/pageItemTemplateType.js +1 -1
  18. package/dist/models/locales.d.ts +3 -0
  19. package/dist/{src/models/exception.js → models/locales.js} +30 -28
  20. package/license.txt +20 -20
  21. package/package.json +41 -40
  22. package/tsconfig.json +14 -14
  23. package/dist/apiMethods/apiClient.d.ts +0 -19
  24. package/dist/apiMethods/apiClient.js +0 -24
  25. package/dist/src/apiMethods/assetMethods.d.ts +0 -14
  26. package/dist/src/apiMethods/assetMethods.js +0 -172
  27. package/dist/src/apiMethods/batchMethods.d.ts +0 -11
  28. package/dist/src/apiMethods/batchMethods.js +0 -117
  29. package/dist/src/apiMethods/clientInstance.d.ts +0 -8
  30. package/dist/src/apiMethods/clientInstance.js +0 -156
  31. package/dist/src/apiMethods/containerMethods.d.ts +0 -16
  32. package/dist/src/apiMethods/containerMethods.js +0 -189
  33. package/dist/src/apiMethods/contentMethods.d.ts +0 -20
  34. package/dist/src/apiMethods/contentMethods.js +0 -359
  35. package/dist/src/apiMethods/instanceUserMethods.d.ts +0 -13
  36. package/dist/src/apiMethods/modelMethods.d.ts +0 -13
  37. package/dist/src/apiMethods/modelMethods.js +0 -150
  38. package/dist/src/apiMethods/pageMethods.d.ts +0 -20
  39. package/dist/src/apiMethods/pageMethods.js +0 -323
  40. package/dist/src/enums/batchOperationType.d.ts +0 -19
  41. package/dist/src/enums/batchOperationType.js +0 -23
  42. package/dist/src/enums/batchState..d.ts +0 -7
  43. package/dist/src/enums/batchState..js +0 -11
  44. package/dist/src/index.d.ts +0 -14
  45. package/dist/src/index.js +0 -30
  46. package/dist/src/models/batch.d.ts +0 -29
  47. package/dist/src/models/batch.js +0 -9
  48. package/dist/src/models/batchItem.d.ts +0 -13
  49. package/dist/src/models/batchItem.js +0 -9
  50. package/dist/src/models/container.d.ts +0 -47
  51. package/dist/src/models/container.js +0 -9
  52. package/dist/src/models/contentItem.d.ts +0 -37
  53. package/dist/src/models/contentItem.js +0 -33
  54. package/dist/src/models/contentViewColumn.d.ts +0 -8
  55. package/dist/src/models/contentViewColumn.js +0 -9
  56. package/dist/src/models/exception.d.ts +0 -4
  57. package/dist/src/models/instanceRole.d.ts +0 -7
  58. package/dist/src/models/instanceRole.js +0 -9
  59. package/dist/src/models/instanceUser.d.ts +0 -14
  60. package/dist/src/models/instanceUser.js +0 -9
  61. package/dist/src/models/media.d.ts +0 -30
  62. package/dist/src/models/media.js +0 -15
  63. package/dist/src/models/model.d.ts +0 -30
  64. package/dist/src/models/model.js +0 -15
  65. package/dist/src/models/notification.d.ts +0 -13
  66. package/dist/src/models/notification.js +0 -9
  67. package/dist/src/models/options.d.ts +0 -7
  68. package/dist/src/models/options.js +0 -9
  69. package/dist/src/models/pageItem.d.ts +0 -56
  70. package/dist/src/models/pageItem.js +0 -39
  71. package/dist/src/models/sitemap.d.ts +0 -20
  72. package/dist/src/models/sitemap.js +0 -15
  73. package/dist/src/models/websiteUser.d.ts +0 -22
  74. package/dist/src/models/websiteUser.js +0 -15
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
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;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
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.");
@@ -66,10 +66,10 @@ var PageMethods = /** @class */ (function () {
66
66
  });
67
67
  });
68
68
  };
69
- PageMethods.prototype.getPageTemplates = function (guid, locale, includeModuleZones, searchFilter) {
70
- if (searchFilter === void 0) { searchFilter = null; }
71
- return __awaiter(this, void 0, void 0, function () {
69
+ PageMethods.prototype.getPageTemplates = function (guid_1, locale_1, includeModuleZones_1) {
70
+ return __awaiter(this, arguments, void 0, function (guid, locale, includeModuleZones, searchFilter) {
72
71
  var apiPath, resp, err_2;
72
+ if (searchFilter === void 0) { searchFilter = null; }
73
73
  return __generator(this, function (_a) {
74
74
  switch (_a.label) {
75
75
  case 0:
@@ -209,11 +209,11 @@ var PageMethods = /** @class */ (function () {
209
209
  });
210
210
  });
211
211
  };
212
- PageMethods.prototype.publishPage = function (pageID, guid, locale, comments) {
213
- if (comments === void 0) { comments = null; }
214
- return __awaiter(this, void 0, void 0, function () {
212
+ PageMethods.prototype.publishPage = function (pageID_1, guid_1, locale_1) {
213
+ return __awaiter(this, arguments, void 0, function (pageID, guid, locale, comments) {
215
214
  var apiPath, resp, batchID_1, batch, pageIDs_1, err_9;
216
215
  var _this = this;
216
+ if (comments === void 0) { comments = null; }
217
217
  return __generator(this, function (_a) {
218
218
  switch (_a.label) {
219
219
  case 0:
@@ -242,11 +242,11 @@ var PageMethods = /** @class */ (function () {
242
242
  });
243
243
  });
244
244
  };
245
- PageMethods.prototype.unPublishPage = function (pageID, guid, locale, comments) {
246
- if (comments === void 0) { comments = null; }
247
- return __awaiter(this, void 0, void 0, function () {
245
+ PageMethods.prototype.unPublishPage = function (pageID_1, guid_1, locale_1) {
246
+ return __awaiter(this, arguments, void 0, function (pageID, guid, locale, comments) {
248
247
  var apiPath, resp, batchID_2, batch, pageIDs_2, err_10;
249
248
  var _this = this;
249
+ if (comments === void 0) { comments = null; }
250
250
  return __generator(this, function (_a) {
251
251
  switch (_a.label) {
252
252
  case 0:
@@ -275,11 +275,11 @@ var PageMethods = /** @class */ (function () {
275
275
  });
276
276
  });
277
277
  };
278
- PageMethods.prototype.pageRequestApproval = function (pageID, guid, locale, comments) {
279
- if (comments === void 0) { comments = null; }
280
- return __awaiter(this, void 0, void 0, function () {
278
+ PageMethods.prototype.pageRequestApproval = function (pageID_1, guid_1, locale_1) {
279
+ return __awaiter(this, arguments, void 0, function (pageID, guid, locale, comments) {
281
280
  var apiPath, resp, batchID_3, batch, pageIDs_3, err_11;
282
281
  var _this = this;
282
+ if (comments === void 0) { comments = null; }
283
283
  return __generator(this, function (_a) {
284
284
  switch (_a.label) {
285
285
  case 0:
@@ -308,11 +308,11 @@ var PageMethods = /** @class */ (function () {
308
308
  });
309
309
  });
310
310
  };
311
- PageMethods.prototype.approvePage = function (pageID, guid, locale, comments) {
312
- if (comments === void 0) { comments = null; }
313
- return __awaiter(this, void 0, void 0, function () {
311
+ PageMethods.prototype.approvePage = function (pageID_1, guid_1, locale_1) {
312
+ return __awaiter(this, arguments, void 0, function (pageID, guid, locale, comments) {
314
313
  var apiPath, resp, batchID_4, batch, pageIDs_4, err_12;
315
314
  var _this = this;
315
+ if (comments === void 0) { comments = null; }
316
316
  return __generator(this, function (_a) {
317
317
  switch (_a.label) {
318
318
  case 0:
@@ -341,11 +341,11 @@ var PageMethods = /** @class */ (function () {
341
341
  });
342
342
  });
343
343
  };
344
- PageMethods.prototype.declinePage = function (pageID, guid, locale, comments) {
345
- if (comments === void 0) { comments = null; }
346
- return __awaiter(this, void 0, void 0, function () {
344
+ PageMethods.prototype.declinePage = function (pageID_1, guid_1, locale_1) {
345
+ return __awaiter(this, arguments, void 0, function (pageID, guid, locale, comments) {
347
346
  var apiPath, resp, batchID_5, batch, pageIDs_5, err_13;
348
347
  var _this = this;
348
+ if (comments === void 0) { comments = null; }
349
349
  return __generator(this, function (_a) {
350
350
  switch (_a.label) {
351
351
  case 0:
@@ -374,11 +374,11 @@ var PageMethods = /** @class */ (function () {
374
374
  });
375
375
  });
376
376
  };
377
- PageMethods.prototype.deletePage = function (pageID, guid, locale, comments) {
378
- if (comments === void 0) { comments = null; }
379
- return __awaiter(this, void 0, void 0, function () {
377
+ PageMethods.prototype.deletePage = function (pageID_1, guid_1, locale_1) {
378
+ return __awaiter(this, arguments, void 0, function (pageID, guid, locale, comments) {
380
379
  var apiPath, resp, batchID_6, batch, pageIDs_6, err_14;
381
380
  var _this = this;
381
+ if (comments === void 0) { comments = null; }
382
382
  return __generator(this, function (_a) {
383
383
  switch (_a.label) {
384
384
  case 0:
@@ -407,12 +407,12 @@ var PageMethods = /** @class */ (function () {
407
407
  });
408
408
  });
409
409
  };
410
- PageMethods.prototype.savePage = function (pageItem, guid, locale, parentPageID, placeBeforePageItemID) {
411
- if (parentPageID === void 0) { parentPageID = -1; }
412
- if (placeBeforePageItemID === void 0) { placeBeforePageItemID = -1; }
413
- return __awaiter(this, void 0, void 0, function () {
410
+ PageMethods.prototype.savePage = function (pageItem_1, guid_1, locale_1) {
411
+ return __awaiter(this, arguments, void 0, function (pageItem, guid, locale, parentPageID, placeBeforePageItemID) {
414
412
  var apiPath, resp, batchID_7, batch, pageIDs_7, err_15;
415
413
  var _this = this;
414
+ if (parentPageID === void 0) { parentPageID = -1; }
415
+ if (placeBeforePageItemID === void 0) { placeBeforePageItemID = -1; }
416
416
  return __generator(this, function (_a) {
417
417
  switch (_a.label) {
418
418
  case 0:
@@ -441,11 +441,11 @@ var PageMethods = /** @class */ (function () {
441
441
  });
442
442
  });
443
443
  };
444
- PageMethods.prototype.getPageHistory = function (locale, guid, pageID, take, skip) {
445
- if (take === void 0) { take = 50; }
446
- if (skip === void 0) { skip = 0; }
447
- return __awaiter(this, void 0, void 0, function () {
444
+ PageMethods.prototype.getPageHistory = function (locale_1, guid_1, pageID_1) {
445
+ return __awaiter(this, arguments, void 0, function (locale, guid, pageID, take, skip) {
448
446
  var apiPath, resp, err_16;
447
+ if (take === void 0) { take = 50; }
448
+ if (skip === void 0) { skip = 0; }
449
449
  return __generator(this, function (_a) {
450
450
  switch (_a.label) {
451
451
  case 0:
@@ -463,11 +463,11 @@ var PageMethods = /** @class */ (function () {
463
463
  });
464
464
  });
465
465
  };
466
- PageMethods.prototype.getPageComments = function (locale, guid, pageID, take, skip) {
467
- if (take === void 0) { take = 50; }
468
- if (skip === void 0) { skip = 0; }
469
- return __awaiter(this, void 0, void 0, function () {
466
+ PageMethods.prototype.getPageComments = function (locale_1, guid_1, pageID_1) {
467
+ return __awaiter(this, arguments, void 0, function (locale, guid, pageID, take, skip) {
470
468
  var apiPath, resp, err_17;
469
+ if (take === void 0) { take = 50; }
470
+ if (skip === void 0) { skip = 0; }
471
471
  return __generator(this, function (_a) {
472
472
  switch (_a.label) {
473
473
  case 0:
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
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;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
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.");
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
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;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
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.");
@@ -44,11 +44,11 @@ var WebhookMethods = /** @class */ (function () {
44
44
  this._options = options;
45
45
  this._cleintInstance = new clientInstance_1.ClientInstance(this._options);
46
46
  }
47
- WebhookMethods.prototype.webhookList = function (guid, take, token) {
48
- if (take === void 0) { take = 20; }
49
- if (token === void 0) { token = null; }
50
- return __awaiter(this, void 0, void 0, function () {
47
+ WebhookMethods.prototype.webhookList = function (guid_1) {
48
+ return __awaiter(this, arguments, void 0, function (guid, take, token) {
51
49
  var apiPath, resp, err_1;
50
+ if (take === void 0) { take = 20; }
51
+ if (token === void 0) { token = null; }
52
52
  return __generator(this, function (_a) {
53
53
  switch (_a.label) {
54
54
  case 0:
@@ -4,4 +4,4 @@ exports.AssetGroupingType = void 0;
4
4
  var AssetGroupingType;
5
5
  (function (AssetGroupingType) {
6
6
  AssetGroupingType[AssetGroupingType["Gallery"] = 1] = "Gallery";
7
- })(AssetGroupingType = exports.AssetGroupingType || (exports.AssetGroupingType = {}));
7
+ })(AssetGroupingType || (exports.AssetGroupingType = AssetGroupingType = {}));
@@ -20,4 +20,4 @@ var BatchOperationType;
20
20
  BatchOperationType[BatchOperationType["DeleteContent"] = 15] = "DeleteContent";
21
21
  BatchOperationType[BatchOperationType["SavePage"] = 16] = "SavePage";
22
22
  BatchOperationType[BatchOperationType["DeletePage"] = 17] = "DeletePage";
23
- })(BatchOperationType = exports.BatchOperationType || (exports.BatchOperationType = {}));
23
+ })(BatchOperationType || (exports.BatchOperationType = BatchOperationType = {}));
@@ -8,4 +8,4 @@ var BatchState;
8
8
  BatchState[BatchState["InProcess"] = 2] = "InProcess";
9
9
  BatchState[BatchState["Processed"] = 3] = "Processed";
10
10
  BatchState[BatchState["Deleted"] = 4] = "Deleted";
11
- })(BatchState = exports.BatchState || (exports.BatchState = {}));
11
+ })(BatchState || (exports.BatchState = BatchState = {}));
@@ -5,4 +5,4 @@ var PageItemTemplateType;
5
5
  (function (PageItemTemplateType) {
6
6
  PageItemTemplateType[PageItemTemplateType["Variable"] = 0] = "Variable";
7
7
  PageItemTemplateType[PageItemTemplateType["FixedModule"] = 1] = "FixedModule";
8
- })(PageItemTemplateType = exports.PageItemTemplateType || (exports.PageItemTemplateType = {}));
8
+ })(PageItemTemplateType || (exports.PageItemTemplateType = PageItemTemplateType = {}));
@@ -0,0 +1,3 @@
1
+ export declare class Locales extends Array<string> {
2
+ constructor(...items: string[]);
3
+ }
@@ -1,28 +1,30 @@
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
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.Exception = void 0;
19
- var Exception = /** @class */ (function (_super) {
20
- __extends(Exception, _super);
21
- function Exception(message, inner) {
22
- var _this = _super.call(this, message) || this;
23
- _this.innerError = inner;
24
- return _this;
25
- }
26
- return Exception;
27
- }(Error));
28
- exports.Exception = Exception;
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
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.Locales = void 0;
19
+ var Locales = /** @class */ (function (_super) {
20
+ __extends(Locales, _super);
21
+ function Locales() {
22
+ var items = [];
23
+ for (var _i = 0; _i < arguments.length; _i++) {
24
+ items[_i] = arguments[_i];
25
+ }
26
+ return _super.apply(this, items) || this;
27
+ }
28
+ return Locales;
29
+ }(Array));
30
+ exports.Locales = Locales;
package/license.txt CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) [year] [fullname]
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) [year] [fullname]
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/package.json CHANGED
@@ -1,40 +1,41 @@
1
- {
2
- "name": "@agility/management-sdk",
3
- "version": "0.1.18",
4
- "description": "Agility CMS Tyescript SDK for Management API.",
5
- "repository": {
6
- "type": "git",
7
- "url": "https://github.com/agility/agility-cms-management-sdk-typescript.git"
8
- },
9
- "bugs": {
10
- "url": "https://github.com/agility/agility-cms-management-sdk-typescript/issues"
11
- },
12
- "homepage": "https://github.com/agility/agility-cms-management-sdk-typescript#readme",
13
- "main": "dist/index.js",
14
- "scripts": {
15
- "clean": "git clean -Xf && rm -rf ./dist",
16
- "build": "tsc",
17
- "prepare": "yarn build",
18
- "test": "echo \"Error: no test specified\" && exit 1"
19
- },
20
- "keywords": [
21
- "typescript",
22
- "agility",
23
- "cms",
24
- "headlesscms",
25
- "management-api"
26
- ],
27
- "author": "Agility CMS",
28
- "contributors": [
29
- "Joel Varty",
30
- "Mohit Vashishtha",
31
- "Kevin Tran"
32
- ],
33
- "license": "MIT",
34
- "dependencies": {
35
- "axios": "^0.27.2"
36
- },
37
- "devDependencies": {
38
- "@types/node": "^18.11.9"
39
- }
40
- }
1
+ {
2
+ "name": "@agility/management-sdk",
3
+ "version": "0.1.19",
4
+ "description": "Agility CMS Tyescript SDK for Management API.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/agility/agility-cms-management-sdk-typescript.git"
8
+ },
9
+ "bugs": {
10
+ "url": "https://github.com/agility/agility-cms-management-sdk-typescript/issues"
11
+ },
12
+ "homepage": "https://github.com/agility/agility-cms-management-sdk-typescript#readme",
13
+ "main": "dist/index.js",
14
+ "scripts": {
15
+ "clean": "git clean -Xf && rm -rf ./dist",
16
+ "build": "tsc",
17
+ "prepare": "yarn build",
18
+ "test": "echo \"Error: no test specified\" && exit 1"
19
+ },
20
+ "keywords": [
21
+ "typescript",
22
+ "agility",
23
+ "cms",
24
+ "headlesscms",
25
+ "management-api"
26
+ ],
27
+ "author": "Agility CMS",
28
+ "contributors": [
29
+ "Joel Varty",
30
+ "Mohit Vashishtha",
31
+ "Kevin Tran",
32
+ "Aaron Taylor"
33
+ ],
34
+ "license": "MIT",
35
+ "dependencies": {
36
+ "axios": "^0.27.2"
37
+ },
38
+ "devDependencies": {
39
+ "@types/node": "^18.11.9"
40
+ }
41
+ }
package/tsconfig.json CHANGED
@@ -1,15 +1,15 @@
1
- {
2
- "compilerOptions": {
3
- "module" : "commonjs",
4
- "allowJs": true,
5
- "declaration": true,
6
- "jsx": "react",
7
- "target": "es5",
8
- "outDir": "./dist/",
9
- "lib": ["es2016", "dom"],
10
- "esModuleInterop": true,
11
- "skipLibCheck": true,
12
- "allowSyntheticDefaultImports": true
13
- },
14
- "include": ["src", "src/apiClient.ts"]
1
+ {
2
+ "compilerOptions": {
3
+ "module" : "commonjs",
4
+ "allowJs": true,
5
+ "declaration": true,
6
+ "jsx": "react",
7
+ "target": "es5",
8
+ "outDir": "./dist/",
9
+ "lib": ["es2016", "dom"],
10
+ "esModuleInterop": true,
11
+ "skipLibCheck": true,
12
+ "allowSyntheticDefaultImports": true
13
+ },
14
+ "include": ["src", "src/apiClient.ts"]
15
15
  }
@@ -1,19 +0,0 @@
1
- import { ContentMethods } from "./contentMethods";
2
- import { AssetMethods } from "./assetMethods";
3
- import { BatchMethods } from "./batchMethods";
4
- import { ContainerMethods } from "./containerMethods";
5
- import { InstanceUserMethods } from "./instanceUserMethods";
6
- import { ModelMethods } from "./modelMethods";
7
- import { PageMethods } from "./pageMethods";
8
- import { Options } from "../models/options";
9
- export declare class ApiClient {
10
- _options: Options;
11
- contentMethods: ContentMethods;
12
- assetMethods: AssetMethods;
13
- batchMethods: BatchMethods;
14
- containerMethods: ContainerMethods;
15
- instanceUserMethods: InstanceUserMethods;
16
- modelMethods: ModelMethods;
17
- pageMethods: PageMethods;
18
- constructor(options: Options);
19
- }
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApiClient = void 0;
4
- var contentMethods_1 = require("./contentMethods");
5
- var assetMethods_1 = require("./assetMethods");
6
- var batchMethods_1 = require("./batchMethods");
7
- var containerMethods_1 = require("./containerMethods");
8
- var instanceUserMethods_1 = require("./instanceUserMethods");
9
- var modelMethods_1 = require("./modelMethods");
10
- var pageMethods_1 = require("./pageMethods");
11
- var ApiClient = /** @class */ (function () {
12
- function ApiClient(options) {
13
- this._options = options;
14
- this.contentMethods = new contentMethods_1.ContentMethods(this._options);
15
- this.assetMethods = new assetMethods_1.AssetMethods(this._options);
16
- this.batchMethods = new batchMethods_1.BatchMethods(this._options);
17
- this.containerMethods = new containerMethods_1.ContainerMethods(this._options);
18
- this.instanceUserMethods = new instanceUserMethods_1.InstanceUserMethods(this._options);
19
- this.modelMethods = new modelMethods_1.ModelMethods(this._options);
20
- this.pageMethods = new pageMethods_1.PageMethods(this._options);
21
- }
22
- return ApiClient;
23
- }());
24
- exports.ApiClient = ApiClient;
@@ -1,14 +0,0 @@
1
- import { Options } from "../models/options";
2
- import { ClientInstance } from "./clientInstance";
3
- import { AssetMediaList, Media } from "../models/media";
4
- export declare class AssetMethods {
5
- _options: Options;
6
- _clientInstance: ClientInstance;
7
- constructor(options: Options);
8
- deleteFile(mediaID: number, guid: string): Promise<string>;
9
- moveFile(mediaID: number, newFolder: string, guid: string): Promise<Media>;
10
- getMediaList(pageSize: number, recordOffset: number, guid: string): Promise<AssetMediaList>;
11
- getAssetByID(mediaID: number, guid: string): Promise<Media>;
12
- getAssetByUrl(url: string, guid: string): Promise<Media>;
13
- upload(formData: FormData, agilityFolderPath: string, guid: string, groupingID?: number): Promise<Media[]>;
14
- }