@agility/management-sdk 0.1.9 → 0.1.11

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 (122) hide show
  1. package/README.md +522 -465
  2. package/dist/apiClient.d.ts +19 -19
  3. package/dist/apiClient.js +24 -24
  4. package/dist/apiMethods/assetMethods.d.ts +24 -15
  5. package/dist/apiMethods/assetMethods.js +315 -192
  6. package/dist/apiMethods/batchMethods.d.ts +11 -11
  7. package/dist/apiMethods/batchMethods.js +117 -117
  8. package/dist/apiMethods/clientInstance.d.ts +18 -8
  9. package/dist/apiMethods/clientInstance.js +168 -156
  10. package/dist/apiMethods/containerMethods.d.ts +16 -16
  11. package/dist/apiMethods/containerMethods.js +189 -189
  12. package/dist/apiMethods/contentMethods.d.ts +20 -20
  13. package/dist/apiMethods/contentMethods.js +359 -359
  14. package/dist/apiMethods/instanceUserMethods.d.ts +13 -13
  15. package/dist/apiMethods/instanceUserMethods.js +111 -111
  16. package/dist/apiMethods/modelMethods.d.ts +14 -14
  17. package/dist/apiMethods/modelMethods.js +170 -170
  18. package/dist/apiMethods/pageMethods.d.ts +20 -20
  19. package/dist/apiMethods/pageMethods.js +323 -323
  20. package/dist/enums/assetGroupingType.d.ts +3 -0
  21. package/dist/enums/assetGroupingType.js +7 -0
  22. package/dist/enums/batchOperationType.d.ts +19 -19
  23. package/dist/enums/batchOperationType.js +23 -23
  24. package/dist/enums/batchState..d.ts +7 -7
  25. package/dist/enums/batchState..js +11 -11
  26. package/dist/index.d.ts +19 -14
  27. package/dist/index.js +31 -30
  28. package/dist/models/assetContainer.d.ts +7 -0
  29. package/dist/models/assetContainer.js +9 -0
  30. package/dist/models/assetGalleries.d.ts +5 -0
  31. package/dist/models/assetGalleries.js +9 -0
  32. package/dist/models/assetMediaGrouping.d.ts +17 -0
  33. package/dist/models/assetMediaGrouping.js +9 -0
  34. package/dist/models/assetMediaGroupingMetaData.d.ts +4 -0
  35. package/dist/models/assetMediaGroupingMetaData.js +9 -0
  36. package/dist/models/batch.d.ts +29 -29
  37. package/dist/models/batch.js +9 -9
  38. package/dist/models/batchItem.d.ts +13 -13
  39. package/dist/models/batchItem.js +9 -9
  40. package/dist/models/container.d.ts +47 -47
  41. package/dist/models/container.js +9 -9
  42. package/dist/models/contentItem.d.ts +37 -37
  43. package/dist/models/contentItem.js +33 -33
  44. package/dist/models/contentViewColumn.d.ts +8 -8
  45. package/dist/models/contentViewColumn.js +9 -9
  46. package/dist/models/exception.d.ts +4 -4
  47. package/dist/models/exception.js +26 -28
  48. package/dist/models/instanceRole.d.ts +7 -7
  49. package/dist/models/instanceRole.js +9 -9
  50. package/dist/models/instanceUser.d.ts +14 -14
  51. package/dist/models/instanceUser.js +9 -9
  52. package/dist/models/media.d.ts +30 -30
  53. package/dist/models/media.js +15 -15
  54. package/dist/models/model.d.ts +30 -30
  55. package/dist/models/model.js +15 -15
  56. package/dist/models/notification.d.ts +13 -13
  57. package/dist/models/notification.js +9 -9
  58. package/dist/models/options.d.ts +7 -7
  59. package/dist/models/options.js +9 -9
  60. package/dist/models/pageItem.d.ts +56 -56
  61. package/dist/models/pageItem.js +39 -39
  62. package/dist/models/sitemap.d.ts +20 -20
  63. package/dist/models/sitemap.js +15 -15
  64. package/dist/models/websiteUser.d.ts +22 -22
  65. package/dist/models/websiteUser.js +15 -15
  66. package/license.txt +20 -20
  67. package/package.json +39 -39
  68. package/tsconfig.json +14 -14
  69. package/dist/apiMethods/apiClient.d.ts +0 -19
  70. package/dist/apiMethods/apiClient.js +0 -24
  71. package/dist/src/apiMethods/assetMethods.d.ts +0 -14
  72. package/dist/src/apiMethods/assetMethods.js +0 -172
  73. package/dist/src/apiMethods/batchMethods.d.ts +0 -11
  74. package/dist/src/apiMethods/batchMethods.js +0 -117
  75. package/dist/src/apiMethods/clientInstance.d.ts +0 -8
  76. package/dist/src/apiMethods/clientInstance.js +0 -156
  77. package/dist/src/apiMethods/containerMethods.d.ts +0 -16
  78. package/dist/src/apiMethods/containerMethods.js +0 -189
  79. package/dist/src/apiMethods/contentMethods.d.ts +0 -20
  80. package/dist/src/apiMethods/contentMethods.js +0 -359
  81. package/dist/src/apiMethods/instanceUserMethods.d.ts +0 -13
  82. package/dist/src/apiMethods/instanceUserMethods.js +0 -111
  83. package/dist/src/apiMethods/modelMethods.d.ts +0 -13
  84. package/dist/src/apiMethods/modelMethods.js +0 -150
  85. package/dist/src/apiMethods/pageMethods.d.ts +0 -20
  86. package/dist/src/apiMethods/pageMethods.js +0 -323
  87. package/dist/src/enums/batchOperationType.d.ts +0 -19
  88. package/dist/src/enums/batchOperationType.js +0 -23
  89. package/dist/src/enums/batchState..d.ts +0 -7
  90. package/dist/src/enums/batchState..js +0 -11
  91. package/dist/src/index.d.ts +0 -14
  92. package/dist/src/index.js +0 -30
  93. package/dist/src/models/batch.d.ts +0 -29
  94. package/dist/src/models/batch.js +0 -9
  95. package/dist/src/models/batchItem.d.ts +0 -13
  96. package/dist/src/models/batchItem.js +0 -9
  97. package/dist/src/models/container.d.ts +0 -47
  98. package/dist/src/models/container.js +0 -9
  99. package/dist/src/models/contentItem.d.ts +0 -37
  100. package/dist/src/models/contentItem.js +0 -33
  101. package/dist/src/models/contentViewColumn.d.ts +0 -8
  102. package/dist/src/models/contentViewColumn.js +0 -9
  103. package/dist/src/models/exception.d.ts +0 -4
  104. package/dist/src/models/exception.js +0 -28
  105. package/dist/src/models/instanceRole.d.ts +0 -7
  106. package/dist/src/models/instanceRole.js +0 -9
  107. package/dist/src/models/instanceUser.d.ts +0 -14
  108. package/dist/src/models/instanceUser.js +0 -9
  109. package/dist/src/models/media.d.ts +0 -30
  110. package/dist/src/models/media.js +0 -15
  111. package/dist/src/models/model.d.ts +0 -30
  112. package/dist/src/models/model.js +0 -15
  113. package/dist/src/models/notification.d.ts +0 -13
  114. package/dist/src/models/notification.js +0 -9
  115. package/dist/src/models/options.d.ts +0 -7
  116. package/dist/src/models/options.js +0 -9
  117. package/dist/src/models/pageItem.d.ts +0 -56
  118. package/dist/src/models/pageItem.js +0 -39
  119. package/dist/src/models/sitemap.d.ts +0 -20
  120. package/dist/src/models/sitemap.js +0 -15
  121. package/dist/src/models/websiteUser.d.ts +0 -22
  122. package/dist/src/models/websiteUser.js +0 -15
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContentViewColumn = void 0;
4
- var ContentViewColumn = /** @class */ (function () {
5
- function ContentViewColumn() {
6
- }
7
- return ContentViewColumn;
8
- }());
9
- exports.ContentViewColumn = ContentViewColumn;
@@ -1,4 +0,0 @@
1
- export declare class Exception extends Error {
2
- constructor(message: string, inner?: Error);
3
- innerError?: Error;
4
- }
@@ -1,28 +0,0 @@
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,7 +0,0 @@
1
- export declare class InstanceRole {
2
- roleID: number;
3
- isGlobalRole: boolean;
4
- sort: number;
5
- role: string | null;
6
- name: string | null;
7
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InstanceRole = void 0;
4
- var InstanceRole = /** @class */ (function () {
5
- function InstanceRole() {
6
- }
7
- return InstanceRole;
8
- }());
9
- exports.InstanceRole = InstanceRole;
@@ -1,14 +0,0 @@
1
- import { InstanceRole } from "./instanceRole";
2
- import { InstancePermission } from "./websiteUser";
3
- export declare class InstanceUser {
4
- userID: number;
5
- emailAddress: string | null;
6
- firstName: string | null;
7
- lastName: string | null;
8
- isDeleted: boolean;
9
- isTeamUser: boolean;
10
- defaultUILanguage: string | null;
11
- userName: string;
12
- instanceRoles: InstanceRole[];
13
- instancePermissions: InstancePermission[];
14
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InstanceUser = void 0;
4
- var InstanceUser = /** @class */ (function () {
5
- function InstanceUser() {
6
- }
7
- return InstanceUser;
8
- }());
9
- exports.InstanceUser = InstanceUser;
@@ -1,30 +0,0 @@
1
- export declare class Media {
2
- hasChildren: boolean;
3
- mediaID: number;
4
- fileName: string;
5
- containerID: number;
6
- containerOriginUrl: string;
7
- containerEdgeUrl: string;
8
- originKey: string;
9
- modifiedBy: number | null;
10
- modifiedByName: string | null;
11
- dateModified: string | null;
12
- size: number;
13
- isFolder: boolean;
14
- isDeleted: boolean;
15
- mediaGroupingID: number;
16
- mediaGroupingName: string | null;
17
- mediaGroupingSortOrder: number;
18
- contentType: string;
19
- gridThumbnailID: number | null;
20
- gridThumbnailSuffix: string | null;
21
- rowNumber: number | null;
22
- originUrl: string;
23
- edgeUrl: string;
24
- isImage: boolean | null;
25
- isSvg: boolean | null;
26
- }
27
- export declare class AssetMediaList {
28
- assetMedias: (Media | null)[];
29
- totalCount: number | null;
30
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AssetMediaList = exports.Media = void 0;
4
- var Media = /** @class */ (function () {
5
- function Media() {
6
- }
7
- return Media;
8
- }());
9
- exports.Media = Media;
10
- var AssetMediaList = /** @class */ (function () {
11
- function AssetMediaList() {
12
- }
13
- return AssetMediaList;
14
- }());
15
- exports.AssetMediaList = AssetMediaList;
@@ -1,30 +0,0 @@
1
- export declare class Model {
2
- id: number | null;
3
- lastModifiedDate: string | null;
4
- displayName: string | null;
5
- referenceName: string | null;
6
- lastModifiedBy: string | null;
7
- fields: ModelField[];
8
- lastModifiedAuthorID: number | null;
9
- description: string | null;
10
- allowTagging: boolean | null;
11
- contentDefinitionTypeName: string | null;
12
- isPublished: boolean | null;
13
- wasUnpublished: boolean | null;
14
- }
15
- export declare class ModelField {
16
- name: string | null;
17
- label: string | null;
18
- type: string | null;
19
- settings: {
20
- [key: string]: string;
21
- };
22
- labelHelpDescription: string | null;
23
- itemOrder: number | null;
24
- designerOnly: boolean | null;
25
- isDataField: boolean | null;
26
- editable: boolean | null;
27
- hiddenField: boolean | null;
28
- fieldID: string | null;
29
- description: string | null;
30
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ModelField = exports.Model = void 0;
4
- var Model = /** @class */ (function () {
5
- function Model() {
6
- }
7
- return Model;
8
- }());
9
- exports.Model = Model;
10
- var ModelField = /** @class */ (function () {
11
- function ModelField() {
12
- }
13
- return ModelField;
14
- }());
15
- exports.ModelField = ModelField;
@@ -1,13 +0,0 @@
1
- export declare class Notification {
2
- notificationID: number | null;
3
- userID: number | null;
4
- contentViewID: number | null;
5
- pageItemContainerID: number | null;
6
- createdAuthorID: number | null;
7
- createdDate: string | null;
8
- userName: string | null;
9
- firstName: string | null;
10
- lastName: string | null;
11
- emailAddress: string | null;
12
- notificationTypeName: string | null;
13
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Notification = void 0;
4
- var Notification = /** @class */ (function () {
5
- function Notification() {
6
- }
7
- return Notification;
8
- }());
9
- exports.Notification = Notification;
@@ -1,7 +0,0 @@
1
- export declare class Options {
2
- token: string;
3
- baseUrl: string | null;
4
- refresh_token: string;
5
- duration: number | 3000;
6
- retryCount: number | 500;
7
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Options = void 0;
4
- var Options = /** @class */ (function () {
5
- function Options() {
6
- }
7
- return Options;
8
- }());
9
- exports.Options = Options;
@@ -1,56 +0,0 @@
1
- import { SeoProperties } from "./contentItem";
2
- export declare class PageItem {
3
- pageID: number | null;
4
- name: string | null;
5
- path: string | null;
6
- title: string | null;
7
- menuText: string | null;
8
- pageType: string | null;
9
- templateName: string | null;
10
- redirectUrl: string | null;
11
- securePage: boolean | null;
12
- excludeFromOutputCache: boolean | null;
13
- visible: PageVisible | null;
14
- seo: SeoProperties | null;
15
- scripts: PageScripts | null;
16
- dynamic: PageDynamic | null;
17
- properties: PageItemProperties | null;
18
- zones: {
19
- [key: string]: PageModule[];
20
- } | null;
21
- parentPageID: number | null;
22
- placeBeforePageItemID: number | null;
23
- channelID: number | null;
24
- releaseDate: string | null;
25
- pullDate: string | null;
26
- }
27
- export declare class PageVisible {
28
- menu: boolean | null;
29
- sitemap: boolean | null;
30
- }
31
- export declare class PageScripts {
32
- excludedFromGlobal: boolean;
33
- top: string | null;
34
- bottom: string | null;
35
- }
36
- export declare class PageDynamic {
37
- referenceName: string | null;
38
- fieldName: string | null;
39
- titleFormula: string | null;
40
- menuTextFormula: string | null;
41
- pageNameFormula: string | null;
42
- visibleOnMenu: boolean | null;
43
- visibleOnSitemap: boolean | null;
44
- }
45
- export declare class PageItemProperties {
46
- state: number | null;
47
- modified: string | null;
48
- versionID: number | null;
49
- }
50
- export declare class PageModule {
51
- module: string | null;
52
- item: any | null;
53
- }
54
- export interface Dictionary<T> {
55
- [Key: string]: T;
56
- }
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PageModule = exports.PageItemProperties = exports.PageDynamic = exports.PageScripts = exports.PageVisible = exports.PageItem = void 0;
4
- var PageItem = /** @class */ (function () {
5
- function PageItem() {
6
- }
7
- return PageItem;
8
- }());
9
- exports.PageItem = PageItem;
10
- var PageVisible = /** @class */ (function () {
11
- function PageVisible() {
12
- }
13
- return PageVisible;
14
- }());
15
- exports.PageVisible = PageVisible;
16
- var PageScripts = /** @class */ (function () {
17
- function PageScripts() {
18
- }
19
- return PageScripts;
20
- }());
21
- exports.PageScripts = PageScripts;
22
- var PageDynamic = /** @class */ (function () {
23
- function PageDynamic() {
24
- }
25
- return PageDynamic;
26
- }());
27
- exports.PageDynamic = PageDynamic;
28
- var PageItemProperties = /** @class */ (function () {
29
- function PageItemProperties() {
30
- }
31
- return PageItemProperties;
32
- }());
33
- exports.PageItemProperties = PageItemProperties;
34
- var PageModule = /** @class */ (function () {
35
- function PageModule() {
36
- }
37
- return PageModule;
38
- }());
39
- exports.PageModule = PageModule;
@@ -1,20 +0,0 @@
1
- export declare class Sitemap {
2
- digitalChannelID: number | null;
3
- name: string | null;
4
- digitalChannelTypeName: string | null;
5
- isDefaultChannel: boolean;
6
- pages: (SitemapItem | null)[];
7
- }
8
- export declare class SitemapItem {
9
- pageID: number | null;
10
- parentPageID: number | null;
11
- pageName: string | null;
12
- title: string | null;
13
- pageType: string | null;
14
- languageCode: string | null;
15
- pageMode: number | null;
16
- dynamicPageContentReferenceName: string | null;
17
- dynamicPageContentViewFieldName: string | null;
18
- uRL: string | null;
19
- childPages: (SitemapItem | null)[];
20
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SitemapItem = exports.Sitemap = void 0;
4
- var Sitemap = /** @class */ (function () {
5
- function Sitemap() {
6
- }
7
- return Sitemap;
8
- }());
9
- exports.Sitemap = Sitemap;
10
- var SitemapItem = /** @class */ (function () {
11
- function SitemapItem() {
12
- }
13
- return SitemapItem;
14
- }());
15
- exports.SitemapItem = SitemapItem;
@@ -1,22 +0,0 @@
1
- import { InstanceRole } from "./instanceRole";
2
- export declare class WebsiteUser {
3
- userID: number | null;
4
- userName: string | null;
5
- firstName: string | null;
6
- lastName: string | null;
7
- emailAddress: string | null;
8
- isDeleted: boolean;
9
- fullName: string | null;
10
- isTeamUser: boolean;
11
- isSuspended: boolean;
12
- teamID: number | null;
13
- userRoles: InstanceRole[];
14
- userPermissions: InstancePermission[];
15
- loginDate: string | null;
16
- isOrgAdmin: boolean;
17
- }
18
- export declare class InstancePermission {
19
- permissionType: string | null;
20
- permissionID: number;
21
- name: string | null;
22
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InstancePermission = exports.WebsiteUser = void 0;
4
- var WebsiteUser = /** @class */ (function () {
5
- function WebsiteUser() {
6
- }
7
- return WebsiteUser;
8
- }());
9
- exports.WebsiteUser = WebsiteUser;
10
- var InstancePermission = /** @class */ (function () {
11
- function InstancePermission() {
12
- }
13
- return InstancePermission;
14
- }());
15
- exports.InstancePermission = InstancePermission;