@agility/management-sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +398 -0
- package/dist/apiMethods/assetMethods.d.ts +14 -0
- package/dist/apiMethods/assetMethods.js +95 -0
- package/dist/apiMethods/batchMethods.d.ts +11 -0
- package/dist/apiMethods/batchMethods.js +65 -0
- package/dist/apiMethods/clientInstance.d.ts +8 -0
- package/dist/apiMethods/clientInstance.js +77 -0
- package/dist/apiMethods/containerMethods.d.ts +16 -0
- package/dist/apiMethods/containerMethods.js +105 -0
- package/dist/apiMethods/contentMethods.d.ts +20 -0
- package/dist/apiMethods/contentMethods.js +175 -0
- package/dist/apiMethods/instanceUserMethods.d.ts +13 -0
- package/dist/apiMethods/instanceUserMethods.js +57 -0
- package/dist/apiMethods/modelMethods.d.ts +13 -0
- package/dist/apiMethods/modelMethods.js +81 -0
- package/dist/apiMethods/pageMethods.d.ts +20 -0
- package/dist/apiMethods/pageMethods.js +159 -0
- package/dist/enums/batchOperationType.d.ts +19 -0
- package/dist/enums/batchOperationType.js +23 -0
- package/dist/enums/batchState..d.ts +7 -0
- package/dist/enums/batchState..js +11 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +33 -0
- package/dist/models/batch.d.ts +29 -0
- package/dist/models/batch.js +6 -0
- package/dist/models/batchItem.d.ts +13 -0
- package/dist/models/batchItem.js +6 -0
- package/dist/models/container.d.ts +47 -0
- package/dist/models/container.js +6 -0
- package/dist/models/contentItem.d.ts +37 -0
- package/dist/models/contentItem.js +18 -0
- package/dist/models/contentViewColumn.d.ts +8 -0
- package/dist/models/contentViewColumn.js +6 -0
- package/dist/models/exception.d.ts +4 -0
- package/dist/models/exception.js +10 -0
- package/dist/models/instanceRole.d.ts +7 -0
- package/dist/models/instanceRole.js +6 -0
- package/dist/models/instanceUser.d.ts +14 -0
- package/dist/models/instanceUser.js +6 -0
- package/dist/models/media.d.ts +30 -0
- package/dist/models/media.js +9 -0
- package/dist/models/model.d.ts +30 -0
- package/dist/models/model.js +9 -0
- package/dist/models/notification.d.ts +13 -0
- package/dist/models/notification.js +6 -0
- package/dist/models/options.d.ts +10 -0
- package/dist/models/options.js +25 -0
- package/dist/models/pageItem.d.ts +56 -0
- package/dist/models/pageItem.js +21 -0
- package/dist/models/sitemap.d.ts +20 -0
- package/dist/models/sitemap.js +9 -0
- package/dist/models/websiteUser.d.ts +22 -0
- package/dist/models/websiteUser.js +9 -0
- package/license.txt +21 -0
- package/package.json +39 -0
- package/tsconfig.json +15 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum BatchOperationType {
|
|
2
|
+
Publish = 1,
|
|
3
|
+
Unpublish = 2,
|
|
4
|
+
Approve = 3,
|
|
5
|
+
Decline = 4,
|
|
6
|
+
RequestApproval = 5,
|
|
7
|
+
Copy = 6,
|
|
8
|
+
ClonePageTemplate = 7,
|
|
9
|
+
Sync = 8,
|
|
10
|
+
TagExport = 9,
|
|
11
|
+
TagImport = 10,
|
|
12
|
+
ContentExport = 11,
|
|
13
|
+
ContentImport = 12,
|
|
14
|
+
InstanctTemplateImport = 13,
|
|
15
|
+
InsertContent = 14,
|
|
16
|
+
DeleteContent = 15,
|
|
17
|
+
SavePage = 16,
|
|
18
|
+
DeletePage = 17
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchOperationType = void 0;
|
|
4
|
+
var BatchOperationType;
|
|
5
|
+
(function (BatchOperationType) {
|
|
6
|
+
BatchOperationType[BatchOperationType["Publish"] = 1] = "Publish";
|
|
7
|
+
BatchOperationType[BatchOperationType["Unpublish"] = 2] = "Unpublish";
|
|
8
|
+
BatchOperationType[BatchOperationType["Approve"] = 3] = "Approve";
|
|
9
|
+
BatchOperationType[BatchOperationType["Decline"] = 4] = "Decline";
|
|
10
|
+
BatchOperationType[BatchOperationType["RequestApproval"] = 5] = "RequestApproval";
|
|
11
|
+
BatchOperationType[BatchOperationType["Copy"] = 6] = "Copy";
|
|
12
|
+
BatchOperationType[BatchOperationType["ClonePageTemplate"] = 7] = "ClonePageTemplate";
|
|
13
|
+
BatchOperationType[BatchOperationType["Sync"] = 8] = "Sync";
|
|
14
|
+
BatchOperationType[BatchOperationType["TagExport"] = 9] = "TagExport";
|
|
15
|
+
BatchOperationType[BatchOperationType["TagImport"] = 10] = "TagImport";
|
|
16
|
+
BatchOperationType[BatchOperationType["ContentExport"] = 11] = "ContentExport";
|
|
17
|
+
BatchOperationType[BatchOperationType["ContentImport"] = 12] = "ContentImport";
|
|
18
|
+
BatchOperationType[BatchOperationType["InstanctTemplateImport"] = 13] = "InstanctTemplateImport";
|
|
19
|
+
BatchOperationType[BatchOperationType["InsertContent"] = 14] = "InsertContent";
|
|
20
|
+
BatchOperationType[BatchOperationType["DeleteContent"] = 15] = "DeleteContent";
|
|
21
|
+
BatchOperationType[BatchOperationType["SavePage"] = 16] = "SavePage";
|
|
22
|
+
BatchOperationType[BatchOperationType["DeletePage"] = 17] = "DeletePage";
|
|
23
|
+
})(BatchOperationType = exports.BatchOperationType || (exports.BatchOperationType = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchState = void 0;
|
|
4
|
+
var BatchState;
|
|
5
|
+
(function (BatchState) {
|
|
6
|
+
BatchState[BatchState["None"] = 0] = "None";
|
|
7
|
+
BatchState[BatchState["Pending"] = 1] = "Pending";
|
|
8
|
+
BatchState[BatchState["InProcess"] = 2] = "InProcess";
|
|
9
|
+
BatchState[BatchState["Processed"] = 3] = "Processed";
|
|
10
|
+
BatchState[BatchState["Deleted"] = 4] = "Deleted";
|
|
11
|
+
})(BatchState = exports.BatchState || (exports.BatchState = {}));
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from "./models/options";
|
|
2
|
+
export * from "./models/batch";
|
|
3
|
+
export * from "./models/batchItem";
|
|
4
|
+
export * from "./models/container";
|
|
5
|
+
export * from "./models/contentItem";
|
|
6
|
+
export * from "./models/contentViewColumn";
|
|
7
|
+
export * from "./models/instanceRole";
|
|
8
|
+
export * from "./models/instanceUser";
|
|
9
|
+
export * from "./models/media";
|
|
10
|
+
export * from "./models/model";
|
|
11
|
+
export * from "./models/notification";
|
|
12
|
+
export * from "./models/pageItem";
|
|
13
|
+
export * from "./models/sitemap";
|
|
14
|
+
export * from "./models/sitemap";
|
|
15
|
+
export * from "./apiMethods/assetMethods";
|
|
16
|
+
export * from "./apiMethods/batchMethods";
|
|
17
|
+
export * from "./apiMethods/containerMethods";
|
|
18
|
+
export * from "./apiMethods/contentMethods";
|
|
19
|
+
export * from "./apiMethods/instanceUserMethods";
|
|
20
|
+
export * from "./apiMethods/modelMethods";
|
|
21
|
+
export * from "./apiMethods/pageMethods";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./models/options"), exports);
|
|
14
|
+
__exportStar(require("./models/batch"), exports);
|
|
15
|
+
__exportStar(require("./models/batchItem"), exports);
|
|
16
|
+
__exportStar(require("./models/container"), exports);
|
|
17
|
+
__exportStar(require("./models/contentItem"), exports);
|
|
18
|
+
__exportStar(require("./models/contentViewColumn"), exports);
|
|
19
|
+
__exportStar(require("./models/instanceRole"), exports);
|
|
20
|
+
__exportStar(require("./models/instanceUser"), exports);
|
|
21
|
+
__exportStar(require("./models/media"), exports);
|
|
22
|
+
__exportStar(require("./models/model"), exports);
|
|
23
|
+
__exportStar(require("./models/notification"), exports);
|
|
24
|
+
__exportStar(require("./models/pageItem"), exports);
|
|
25
|
+
__exportStar(require("./models/sitemap"), exports);
|
|
26
|
+
__exportStar(require("./models/sitemap"), exports);
|
|
27
|
+
__exportStar(require("./apiMethods/assetMethods"), exports);
|
|
28
|
+
__exportStar(require("./apiMethods/batchMethods"), exports);
|
|
29
|
+
__exportStar(require("./apiMethods/containerMethods"), exports);
|
|
30
|
+
__exportStar(require("./apiMethods/contentMethods"), exports);
|
|
31
|
+
__exportStar(require("./apiMethods/instanceUserMethods"), exports);
|
|
32
|
+
__exportStar(require("./apiMethods/modelMethods"), exports);
|
|
33
|
+
__exportStar(require("./apiMethods/pageMethods"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BatchState } from "../enums/batchState.";
|
|
2
|
+
import { BatchOperationType } from "../enums/batchOperationType";
|
|
3
|
+
import { BatchItem } from "./batchItem";
|
|
4
|
+
export declare class Batch {
|
|
5
|
+
batchID: number | null;
|
|
6
|
+
batchItemID: number | null;
|
|
7
|
+
batchName: string;
|
|
8
|
+
batchState: BatchState;
|
|
9
|
+
operationType: BatchOperationType;
|
|
10
|
+
ownerUserID: number | null;
|
|
11
|
+
createdDate: string;
|
|
12
|
+
modifiedDate: string;
|
|
13
|
+
processDate: string | null;
|
|
14
|
+
queueDate: string | null;
|
|
15
|
+
isPrivate: boolean;
|
|
16
|
+
modifiedByUserID: number;
|
|
17
|
+
queuedByUserID: number | null;
|
|
18
|
+
ownerName: string;
|
|
19
|
+
modifiedByName: string;
|
|
20
|
+
queuedByName: string;
|
|
21
|
+
additionalData: string;
|
|
22
|
+
errorData: string;
|
|
23
|
+
percentComplete: number | null;
|
|
24
|
+
numItemsProcessed: number | null;
|
|
25
|
+
abortYN: boolean | null;
|
|
26
|
+
statusMessage: string;
|
|
27
|
+
batchItemCount: number;
|
|
28
|
+
items: BatchItem[];
|
|
29
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class BatchItem {
|
|
2
|
+
batchItemID: number | null;
|
|
3
|
+
batchID: number | null;
|
|
4
|
+
itemTypeName: string;
|
|
5
|
+
itemID: number;
|
|
6
|
+
languageCode: string;
|
|
7
|
+
processedItemVersionID: number | null;
|
|
8
|
+
itemTitle: string;
|
|
9
|
+
itemNull: boolean;
|
|
10
|
+
createdOn: string;
|
|
11
|
+
createdBy: number;
|
|
12
|
+
createdByName: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ContentViewColumn } from "./contentViewColumn";
|
|
2
|
+
export declare class Container {
|
|
3
|
+
columns: ContentViewColumn[];
|
|
4
|
+
contentViewID: number | null;
|
|
5
|
+
contentDefinitionID: number | null;
|
|
6
|
+
contentDefinitionName: string | null;
|
|
7
|
+
referenceName: string | null;
|
|
8
|
+
contentViewName: string | null;
|
|
9
|
+
contentDefinitionType: number;
|
|
10
|
+
requiresApproval: boolean | null;
|
|
11
|
+
lastModifiedDate: string | null;
|
|
12
|
+
lastModifiedOn: string | null;
|
|
13
|
+
lastModifiedBy: string | null;
|
|
14
|
+
isShared: boolean | null;
|
|
15
|
+
isDynamicPageList: boolean | null;
|
|
16
|
+
disablePublishFromList: boolean | null;
|
|
17
|
+
contentViewCategoryID: number | null;
|
|
18
|
+
contentViewCategoryReferenceName: string | null;
|
|
19
|
+
contentViewCategoryName: string | null;
|
|
20
|
+
title: string | null;
|
|
21
|
+
defaultPage: string | null;
|
|
22
|
+
isPublished: boolean | null;
|
|
23
|
+
schemaTitle: string | null;
|
|
24
|
+
allowClientSideSave: boolean | null;
|
|
25
|
+
defaultSortColumn: string | null;
|
|
26
|
+
defaultSortDirection: string | null;
|
|
27
|
+
usageCount: number | null;
|
|
28
|
+
isDeleted: boolean | null;
|
|
29
|
+
enableRSSOutput: boolean | null;
|
|
30
|
+
enableAPIOutput: boolean | null;
|
|
31
|
+
commentsRecordTypeName: string | null;
|
|
32
|
+
numRowsInListing: number | null;
|
|
33
|
+
contentDefinitionTypeID: number | null;
|
|
34
|
+
fullSyncModDate: string | null;
|
|
35
|
+
confirmSharingOnPublish: boolean | null;
|
|
36
|
+
contentTemplateName: string | null;
|
|
37
|
+
currentUserCanDelete: boolean | null;
|
|
38
|
+
currentUserCanEdit: boolean | null;
|
|
39
|
+
currentUserCanDesign: boolean | null;
|
|
40
|
+
currentUserCanManage: boolean | null;
|
|
41
|
+
currentUserCanContribute: boolean | null;
|
|
42
|
+
currentUserCanPublish: boolean | null;
|
|
43
|
+
defaultListingPage: string | null;
|
|
44
|
+
defaultDetailsPage: string | null;
|
|
45
|
+
defaultDetailsPageQueryString: string;
|
|
46
|
+
isListItem: boolean | null;
|
|
47
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare class ContentItem {
|
|
2
|
+
contentID: number;
|
|
3
|
+
properties: ContentItemProperties;
|
|
4
|
+
fields: {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
seo: SeoProperties | null;
|
|
8
|
+
scripts: ContentScripts | null;
|
|
9
|
+
}
|
|
10
|
+
export declare class ContentItemProperties {
|
|
11
|
+
state: number | null;
|
|
12
|
+
modifiedBy: number | null;
|
|
13
|
+
modified: string | null;
|
|
14
|
+
pullDate: string | null;
|
|
15
|
+
releaseDate: string | null;
|
|
16
|
+
versionID: number | null;
|
|
17
|
+
referenceName: string | null;
|
|
18
|
+
definitionName: string | null;
|
|
19
|
+
itemOrder: number | null;
|
|
20
|
+
}
|
|
21
|
+
export declare class SeoProperties {
|
|
22
|
+
metaDescription: string | null;
|
|
23
|
+
metaKeywords: string | null;
|
|
24
|
+
metaHTML: string | null;
|
|
25
|
+
menuVisible: boolean | null;
|
|
26
|
+
sitemapVisible: boolean | null;
|
|
27
|
+
}
|
|
28
|
+
export declare class ContentScripts {
|
|
29
|
+
top: string | null;
|
|
30
|
+
bottom: string | null;
|
|
31
|
+
}
|
|
32
|
+
export declare class ContentList {
|
|
33
|
+
recordOffset: number | null;
|
|
34
|
+
totalCount: number | null;
|
|
35
|
+
pageSize: number | null;
|
|
36
|
+
items: any[] | null;
|
|
37
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentList = exports.ContentScripts = exports.SeoProperties = exports.ContentItemProperties = exports.ContentItem = void 0;
|
|
4
|
+
class ContentItem {
|
|
5
|
+
}
|
|
6
|
+
exports.ContentItem = ContentItem;
|
|
7
|
+
class ContentItemProperties {
|
|
8
|
+
}
|
|
9
|
+
exports.ContentItemProperties = ContentItemProperties;
|
|
10
|
+
class SeoProperties {
|
|
11
|
+
}
|
|
12
|
+
exports.SeoProperties = SeoProperties;
|
|
13
|
+
class ContentScripts {
|
|
14
|
+
}
|
|
15
|
+
exports.ContentScripts = ContentScripts;
|
|
16
|
+
class ContentList {
|
|
17
|
+
}
|
|
18
|
+
exports.ContentList = ContentList;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Exception = void 0;
|
|
4
|
+
class Exception extends Error {
|
|
5
|
+
constructor(message, inner) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.innerError = inner;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.Exception = Exception;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Options = void 0;
|
|
4
|
+
class Options {
|
|
5
|
+
determineBaseUrl(guid) {
|
|
6
|
+
var seperator = guid.split('-');
|
|
7
|
+
if (seperator[1] === 'd') {
|
|
8
|
+
return "https://mgmt-dev.aglty.io";
|
|
9
|
+
}
|
|
10
|
+
else if (seperator[1] === 'u') {
|
|
11
|
+
return "https://mgmt.aglty.io";
|
|
12
|
+
}
|
|
13
|
+
else if (seperator[1] === 'ca') {
|
|
14
|
+
return "https://mgmt-ca.aglty.io";
|
|
15
|
+
}
|
|
16
|
+
else if (seperator[1] === 'eu') {
|
|
17
|
+
return "https://mgmt-aus.aglty.io";
|
|
18
|
+
}
|
|
19
|
+
else if (seperator[1] === 'aus') {
|
|
20
|
+
return "https://mgmt-aus.aglty.io";
|
|
21
|
+
}
|
|
22
|
+
return "https://mgmt.aglty.io";
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.Options = Options;
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
class PageItem {
|
|
5
|
+
}
|
|
6
|
+
exports.PageItem = PageItem;
|
|
7
|
+
class PageVisible {
|
|
8
|
+
}
|
|
9
|
+
exports.PageVisible = PageVisible;
|
|
10
|
+
class PageScripts {
|
|
11
|
+
}
|
|
12
|
+
exports.PageScripts = PageScripts;
|
|
13
|
+
class PageDynamic {
|
|
14
|
+
}
|
|
15
|
+
exports.PageDynamic = PageDynamic;
|
|
16
|
+
class PageItemProperties {
|
|
17
|
+
}
|
|
18
|
+
exports.PageItemProperties = PageItemProperties;
|
|
19
|
+
class PageModule {
|
|
20
|
+
}
|
|
21
|
+
exports.PageModule = PageModule;
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InstancePermission = exports.WebsiteUser = void 0;
|
|
4
|
+
class WebsiteUser {
|
|
5
|
+
}
|
|
6
|
+
exports.WebsiteUser = WebsiteUser;
|
|
7
|
+
class InstancePermission {
|
|
8
|
+
}
|
|
9
|
+
exports.InstancePermission = InstancePermission;
|