@agility/management-sdk 0.1.15 → 0.1.17

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 (93) hide show
  1. package/README.md +680 -522
  2. package/dist/apiClient.d.ts +4 -0
  3. package/dist/apiClient.js +4 -0
  4. package/dist/apiMethods/apiClient.d.ts +19 -0
  5. package/dist/apiMethods/apiClient.js +24 -0
  6. package/dist/apiMethods/assetMethods.js +20 -20
  7. package/dist/apiMethods/batchMethods.js +3 -3
  8. package/dist/apiMethods/clientInstance.d.ts +2 -0
  9. package/dist/apiMethods/clientInstance.js +49 -11
  10. package/dist/apiMethods/containerMethods.js +13 -13
  11. package/dist/apiMethods/contentMethods.d.ts +8 -1
  12. package/dist/apiMethods/contentMethods.js +85 -26
  13. package/dist/apiMethods/instanceUserMethods.js +4 -4
  14. package/dist/apiMethods/modelMethods.js +8 -8
  15. package/dist/apiMethods/pageMethods.d.ts +4 -0
  16. package/dist/apiMethods/pageMethods.js +68 -24
  17. package/dist/apiMethods/serverUserMethods.d.ts +10 -0
  18. package/dist/apiMethods/serverUserMethods.js +89 -0
  19. package/dist/apiMethods/webhookMethods.d.ts +12 -0
  20. package/dist/apiMethods/webhookMethods.js +131 -0
  21. package/dist/index.js +5 -1
  22. package/dist/models/contentItemHistory.d.ts +20 -0
  23. package/dist/models/contentItemHistory.js +15 -0
  24. package/dist/models/contentListFilterModel.d.ts +26 -0
  25. package/dist/models/contentListFilterModel.js +33 -0
  26. package/dist/models/exception.js +2 -0
  27. package/dist/models/itemComments.d.ts +14 -0
  28. package/dist/models/itemComments.js +15 -0
  29. package/dist/models/listParams.d.ts +9 -0
  30. package/dist/models/listParams.js +16 -0
  31. package/dist/models/pageHistory.d.ts +21 -0
  32. package/dist/models/pageHistory.js +15 -0
  33. package/dist/models/serverUser.d.ts +21 -0
  34. package/dist/models/serverUser.js +9 -0
  35. package/dist/models/webhook.d.ts +9 -0
  36. package/dist/models/webhook.js +9 -0
  37. package/dist/models/websiteListing.d.ts +16 -0
  38. package/dist/models/websiteListing.js +9 -0
  39. package/dist/src/apiMethods/assetMethods.d.ts +14 -0
  40. package/dist/src/apiMethods/assetMethods.js +172 -0
  41. package/dist/src/apiMethods/batchMethods.d.ts +11 -0
  42. package/dist/src/apiMethods/batchMethods.js +117 -0
  43. package/dist/src/apiMethods/clientInstance.d.ts +8 -0
  44. package/dist/src/apiMethods/clientInstance.js +156 -0
  45. package/dist/src/apiMethods/containerMethods.d.ts +16 -0
  46. package/dist/src/apiMethods/containerMethods.js +189 -0
  47. package/dist/src/apiMethods/contentMethods.d.ts +20 -0
  48. package/dist/src/apiMethods/contentMethods.js +359 -0
  49. package/dist/src/apiMethods/instanceUserMethods.d.ts +13 -0
  50. package/dist/src/apiMethods/instanceUserMethods.js +111 -0
  51. package/dist/src/apiMethods/modelMethods.d.ts +13 -0
  52. package/dist/src/apiMethods/modelMethods.js +150 -0
  53. package/dist/src/apiMethods/pageMethods.d.ts +20 -0
  54. package/dist/src/apiMethods/pageMethods.js +323 -0
  55. package/dist/src/enums/batchOperationType.d.ts +19 -0
  56. package/dist/src/enums/batchOperationType.js +23 -0
  57. package/dist/src/enums/batchState..d.ts +7 -0
  58. package/dist/src/enums/batchState..js +11 -0
  59. package/dist/src/index.d.ts +14 -0
  60. package/dist/src/index.js +30 -0
  61. package/dist/src/models/batch.d.ts +29 -0
  62. package/dist/src/models/batch.js +9 -0
  63. package/dist/src/models/batchItem.d.ts +13 -0
  64. package/dist/src/models/batchItem.js +9 -0
  65. package/dist/src/models/container.d.ts +47 -0
  66. package/dist/src/models/container.js +9 -0
  67. package/dist/src/models/contentItem.d.ts +37 -0
  68. package/dist/src/models/contentItem.js +33 -0
  69. package/dist/src/models/contentViewColumn.d.ts +8 -0
  70. package/dist/src/models/contentViewColumn.js +9 -0
  71. package/dist/src/models/exception.d.ts +4 -0
  72. package/dist/src/models/exception.js +28 -0
  73. package/dist/src/models/instanceRole.d.ts +7 -0
  74. package/dist/src/models/instanceRole.js +9 -0
  75. package/dist/src/models/instanceUser.d.ts +14 -0
  76. package/dist/src/models/instanceUser.js +9 -0
  77. package/dist/src/models/media.d.ts +30 -0
  78. package/dist/src/models/media.js +15 -0
  79. package/dist/src/models/model.d.ts +30 -0
  80. package/dist/src/models/model.js +15 -0
  81. package/dist/src/models/notification.d.ts +13 -0
  82. package/dist/src/models/notification.js +9 -0
  83. package/dist/src/models/options.d.ts +7 -0
  84. package/dist/src/models/options.js +9 -0
  85. package/dist/src/models/pageItem.d.ts +56 -0
  86. package/dist/src/models/pageItem.js +39 -0
  87. package/dist/src/models/sitemap.d.ts +20 -0
  88. package/dist/src/models/sitemap.js +15 -0
  89. package/dist/src/models/websiteUser.d.ts +22 -0
  90. package/dist/src/models/websiteUser.js +15 -0
  91. package/license.txt +20 -20
  92. package/package.json +40 -39
  93. package/tsconfig.json +14 -14
@@ -0,0 +1,89 @@
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 (g && (g = 0, op[0] && (_ = 0)), _) 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
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ServerUserMethods = void 0;
40
+ var exception_1 = require("../models/exception");
41
+ var clientInstance_1 = require("./clientInstance");
42
+ var ServerUserMethods = /** @class */ (function () {
43
+ function ServerUserMethods(options) {
44
+ this._options = options;
45
+ this._clientInstance = new clientInstance_1.ClientInstance(this._options);
46
+ }
47
+ ServerUserMethods.prototype.me = function (guid) {
48
+ return __awaiter(this, void 0, void 0, function () {
49
+ var apiPath, resp, err_1;
50
+ return __generator(this, function (_a) {
51
+ switch (_a.label) {
52
+ case 0:
53
+ _a.trys.push([0, 2, , 3]);
54
+ apiPath = "users/me";
55
+ return [4 /*yield*/, this._clientInstance.executeServerGet(apiPath, guid, this._options.token)];
56
+ case 1:
57
+ resp = _a.sent();
58
+ return [2 /*return*/, resp.data];
59
+ case 2:
60
+ err_1 = _a.sent();
61
+ throw new exception_1.Exception('Unable to retrieve user information.');
62
+ case 3: return [2 /*return*/];
63
+ }
64
+ });
65
+ });
66
+ };
67
+ ServerUserMethods.prototype.you = function (guid, serverUserID) {
68
+ return __awaiter(this, void 0, void 0, function () {
69
+ var apiPath, resp, err_2;
70
+ return __generator(this, function (_a) {
71
+ switch (_a.label) {
72
+ case 0:
73
+ _a.trys.push([0, 2, , 3]);
74
+ apiPath = "users/you?srvUserID=".concat(serverUserID);
75
+ return [4 /*yield*/, this._clientInstance.executeServerGet(apiPath, guid, this._options.token)];
76
+ case 1:
77
+ resp = _a.sent();
78
+ return [2 /*return*/, resp.data];
79
+ case 2:
80
+ err_2 = _a.sent();
81
+ throw new exception_1.Exception('Unable to retrieve user information.');
82
+ case 3: return [2 /*return*/];
83
+ }
84
+ });
85
+ });
86
+ };
87
+ return ServerUserMethods;
88
+ }());
89
+ exports.ServerUserMethods = ServerUserMethods;
@@ -0,0 +1,12 @@
1
+ import { Options } from "../models/options";
2
+ import { Webhook } from "../models/webhook";
3
+ import { ClientInstance } from "./clientInstance";
4
+ export declare class WebhookMethods {
5
+ _options: Options;
6
+ _cleintInstance: ClientInstance;
7
+ constructor(options: Options);
8
+ webhookList(guid: string, take?: number, token?: string): Promise<any>;
9
+ saveWebhook(guid: string, webhook: Webhook): Promise<any>;
10
+ getWebhook(guid: string, webhookID: string): Promise<any>;
11
+ deleteWebhook(guid: string, webhookID: string): Promise<void>;
12
+ }
@@ -0,0 +1,131 @@
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 (g && (g = 0, op[0] && (_ = 0)), _) 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
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.WebhookMethods = void 0;
40
+ var exception_1 = require("../models/exception");
41
+ var clientInstance_1 = require("./clientInstance");
42
+ var WebhookMethods = /** @class */ (function () {
43
+ function WebhookMethods(options) {
44
+ this._options = options;
45
+ this._cleintInstance = new clientInstance_1.ClientInstance(this._options);
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 () {
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 = "webhook/list";
57
+ return [4 /*yield*/, this._cleintInstance.executeGet(apiPath, guid, this._options.token)];
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 get the webhook list", err_1);
64
+ case 3: return [2 /*return*/];
65
+ }
66
+ });
67
+ });
68
+ };
69
+ WebhookMethods.prototype.saveWebhook = function (guid, webhook) {
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 = "webhook";
77
+ return [4 /*yield*/, this._cleintInstance.executePost(apiPath, guid, this._options.token, webhook)];
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 save webhook.', err_2);
84
+ case 3: return [2 /*return*/];
85
+ }
86
+ });
87
+ });
88
+ };
89
+ WebhookMethods.prototype.getWebhook = function (guid, webhookID) {
90
+ return __awaiter(this, void 0, void 0, function () {
91
+ var apiPath, resp, err_3;
92
+ return __generator(this, function (_a) {
93
+ switch (_a.label) {
94
+ case 0:
95
+ _a.trys.push([0, 2, , 3]);
96
+ apiPath = "webhook/".concat(webhookID);
97
+ return [4 /*yield*/, this._cleintInstance.executeGet(apiPath, guid, this._options.token)];
98
+ case 1:
99
+ resp = _a.sent();
100
+ return [2 /*return*/, resp.data];
101
+ case 2:
102
+ err_3 = _a.sent();
103
+ throw new exception_1.Exception("Unable to retrieve webhook for webhookID: ".concat(webhookID, ","), err_3);
104
+ case 3: return [2 /*return*/];
105
+ }
106
+ });
107
+ });
108
+ };
109
+ WebhookMethods.prototype.deleteWebhook = function (guid, webhookID) {
110
+ return __awaiter(this, void 0, void 0, function () {
111
+ var apiPath, err_4;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ _a.trys.push([0, 2, , 3]);
116
+ apiPath = "webhook/".concat(webhookID);
117
+ return [4 /*yield*/, this._cleintInstance.executeDelete(apiPath, guid, this._options.token)];
118
+ case 1:
119
+ _a.sent();
120
+ return [3 /*break*/, 3];
121
+ case 2:
122
+ err_4 = _a.sent();
123
+ throw new exception_1.Exception("Unable to delete webhook for webhookID: ".concat(webhookID, "."), err_4);
124
+ case 3: return [2 /*return*/];
125
+ }
126
+ });
127
+ });
128
+ };
129
+ return WebhookMethods;
130
+ }());
131
+ exports.WebhookMethods = WebhookMethods;
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -0,0 +1,20 @@
1
+ export declare class ContentItemHistoryResponse {
2
+ items: ContentItemHistory[];
3
+ totalCount: number;
4
+ }
5
+ export declare class ContentItemHistory {
6
+ contentItemID: number;
7
+ stateID: number;
8
+ state: string | null;
9
+ createdDate: string;
10
+ createdBy: string | null;
11
+ createdByUserID: number;
12
+ createdByServerUserID: number;
13
+ createdByUserEmail: string | null;
14
+ releaseDate: string;
15
+ pullDate: string;
16
+ commentID: number;
17
+ comment: string | null;
18
+ pinned: boolean;
19
+ versionNumber: number;
20
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContentItemHistory = exports.ContentItemHistoryResponse = void 0;
4
+ var ContentItemHistoryResponse = /** @class */ (function () {
5
+ function ContentItemHistoryResponse() {
6
+ }
7
+ return ContentItemHistoryResponse;
8
+ }());
9
+ exports.ContentItemHistoryResponse = ContentItemHistoryResponse;
10
+ var ContentItemHistory = /** @class */ (function () {
11
+ function ContentItemHistory() {
12
+ }
13
+ return ContentItemHistory;
14
+ }());
15
+ exports.ContentItemHistory = ContentItemHistory;
@@ -0,0 +1,26 @@
1
+ export declare class ContentListFilterModel {
2
+ sortIDs: number[];
3
+ modifiedByIds: number[];
4
+ dateRange: DateRangeFilter | null;
5
+ stateIds: number[];
6
+ fieldFilters: FieldFilter[];
7
+ genericSearch: string;
8
+ }
9
+ export declare class DateRangeFilter {
10
+ startDate: string | null;
11
+ endDate: string | null;
12
+ }
13
+ export declare class NumRangeFilter {
14
+ fromNum: number;
15
+ toNum: number;
16
+ }
17
+ export declare class FieldFilterValue {
18
+ stringValue: string | null;
19
+ dateRangeValue: DateRangeFilter | null;
20
+ numRangeValue: NumRangeFilter | null;
21
+ boolValue: boolean | null;
22
+ }
23
+ export declare class FieldFilter {
24
+ field: string | null;
25
+ value: FieldFilterValue | null;
26
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldFilter = exports.FieldFilterValue = exports.NumRangeFilter = exports.DateRangeFilter = exports.ContentListFilterModel = void 0;
4
+ var ContentListFilterModel = /** @class */ (function () {
5
+ function ContentListFilterModel() {
6
+ }
7
+ return ContentListFilterModel;
8
+ }());
9
+ exports.ContentListFilterModel = ContentListFilterModel;
10
+ var DateRangeFilter = /** @class */ (function () {
11
+ function DateRangeFilter() {
12
+ }
13
+ return DateRangeFilter;
14
+ }());
15
+ exports.DateRangeFilter = DateRangeFilter;
16
+ var NumRangeFilter = /** @class */ (function () {
17
+ function NumRangeFilter() {
18
+ }
19
+ return NumRangeFilter;
20
+ }());
21
+ exports.NumRangeFilter = NumRangeFilter;
22
+ var FieldFilterValue = /** @class */ (function () {
23
+ function FieldFilterValue() {
24
+ }
25
+ return FieldFilterValue;
26
+ }());
27
+ exports.FieldFilterValue = FieldFilterValue;
28
+ var FieldFilter = /** @class */ (function () {
29
+ function FieldFilter() {
30
+ }
31
+ return FieldFilter;
32
+ }());
33
+ exports.FieldFilter = FieldFilter;
@@ -7,6 +7,8 @@ var __extends = (this && this.__extends) || (function () {
7
7
  return extendStatics(d, b);
8
8
  };
9
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");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -0,0 +1,14 @@
1
+ export declare class ItemComment {
2
+ createdOn: string;
3
+ createdBy: string;
4
+ createdByUserID: number;
5
+ createdByServerUserID: number;
6
+ commentID: number;
7
+ commentText: string;
8
+ pinned: boolean;
9
+ emailAddress: string;
10
+ }
11
+ export declare class ItemComments {
12
+ items: ItemComment[];
13
+ totalCount: number;
14
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ItemComments = exports.ItemComment = void 0;
4
+ var ItemComment = /** @class */ (function () {
5
+ function ItemComment() {
6
+ }
7
+ return ItemComment;
8
+ }());
9
+ exports.ItemComment = ItemComment;
10
+ var ItemComments = /** @class */ (function () {
11
+ function ItemComments() {
12
+ }
13
+ return ItemComments;
14
+ }());
15
+ exports.ItemComments = ItemComments;
@@ -0,0 +1,9 @@
1
+ export declare class ListParams {
2
+ filter: string;
3
+ fields: string;
4
+ sortDirection: string;
5
+ sortField: string;
6
+ showDeleted: boolean;
7
+ take: number;
8
+ skip: number;
9
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListParams = void 0;
4
+ var ListParams = /** @class */ (function () {
5
+ function ListParams() {
6
+ this.filter = '';
7
+ this.fields = '';
8
+ this.sortDirection = '';
9
+ this.sortField = '';
10
+ this.showDeleted = false;
11
+ this.take = 50;
12
+ this.skip = 0;
13
+ }
14
+ return ListParams;
15
+ }());
16
+ exports.ListParams = ListParams;
@@ -0,0 +1,21 @@
1
+ export declare class PageHistory {
2
+ PageItemID: number;
3
+ ContentItemID: number;
4
+ StateID: number;
5
+ State: string;
6
+ CreatedDate: string;
7
+ CreatedBy: string;
8
+ CreatedByUserID: number;
9
+ CreatedByUserEmail: string;
10
+ CreatedByServerUserID: number;
11
+ ReleaseDate: string;
12
+ PullDate: string;
13
+ CommentID: number;
14
+ Comment: string;
15
+ Pinned: boolean;
16
+ VersionNumber: number;
17
+ }
18
+ export declare class PageHistoryResponse {
19
+ items: PageHistory[];
20
+ totalCount: number;
21
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PageHistoryResponse = exports.PageHistory = void 0;
4
+ var PageHistory = /** @class */ (function () {
5
+ function PageHistory() {
6
+ }
7
+ return PageHistory;
8
+ }());
9
+ exports.PageHistory = PageHistory;
10
+ var PageHistoryResponse = /** @class */ (function () {
11
+ function PageHistoryResponse() {
12
+ }
13
+ return PageHistoryResponse;
14
+ }());
15
+ exports.PageHistoryResponse = PageHistoryResponse;
@@ -0,0 +1,21 @@
1
+ import { WebsiteListing } from "./websiteListing";
2
+ export declare class ServerUser {
3
+ userID: number;
4
+ userName: string | null;
5
+ emailAddress: string | null;
6
+ firstName: string | null;
7
+ lastName: string | null;
8
+ isInternalUser: boolean;
9
+ isSuspended: boolean;
10
+ isProfileComplete: boolean;
11
+ adminAccess: boolean;
12
+ currentWebsite: string | null;
13
+ userTypeID: number;
14
+ timeZoneRegion: string | null;
15
+ password: string | null;
16
+ passwordQuestion: string | null;
17
+ passwordAnswer: string | null;
18
+ websiteAccess: WebsiteListing[];
19
+ jobRole: string | null;
20
+ createdDate: string | null;
21
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServerUser = void 0;
4
+ var ServerUser = /** @class */ (function () {
5
+ function ServerUser() {
6
+ }
7
+ return ServerUser;
8
+ }());
9
+ exports.ServerUser = ServerUser;
@@ -0,0 +1,9 @@
1
+ export declare class Webhook {
2
+ name: string | null;
3
+ url: string | null;
4
+ instanceGuid: string | null;
5
+ enabled: boolean;
6
+ contentWorkflowEvents: boolean;
7
+ contentPublishEvents: boolean;
8
+ contentSaveEvents: boolean;
9
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Webhook = void 0;
4
+ var Webhook = /** @class */ (function () {
5
+ function Webhook() {
6
+ }
7
+ return Webhook;
8
+ }());
9
+ exports.Webhook = Webhook;
@@ -0,0 +1,16 @@
1
+ export declare class WebsiteListing {
2
+ orgCode: string | null;
3
+ orgName: string | null;
4
+ websiteName: string | null;
5
+ websiteNameStripped: string | null;
6
+ displayName: string | null;
7
+ guid: string | null;
8
+ websiteID: number;
9
+ isCurrent: boolean;
10
+ managerUrl: string | null;
11
+ version: string | null;
12
+ isOwner: boolean;
13
+ isDormant: boolean;
14
+ isRestoring: boolean;
15
+ teamID: number | null;
16
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebsiteListing = void 0;
4
+ var WebsiteListing = /** @class */ (function () {
5
+ function WebsiteListing() {
6
+ }
7
+ return WebsiteListing;
8
+ }());
9
+ exports.WebsiteListing = WebsiteListing;
@@ -0,0 +1,14 @@
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
+ }