@agility/management-sdk 0.1.3 → 0.1.4-beta.1
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/.cursor/api-documentation-manifest.md +275 -0
- package/.cursor/api-functions-analysis.md +111 -0
- package/.cursor/docs-final-check.md +269 -0
- package/.cursor/manifest.md +153 -0
- package/.env +92 -0
- package/README.md +219 -352
- package/dist/apiClient.d.ts +86 -0
- package/dist/apiClient.js +229 -0
- package/dist/apiClient.js.map +1 -0
- package/dist/apiMethods/assetMethods.d.ts +28 -6
- package/dist/apiMethods/assetMethods.js +224 -29
- package/dist/apiMethods/assetMethods.js.map +1 -0
- package/dist/apiMethods/authMethods.d.ts +239 -0
- package/dist/apiMethods/authMethods.js +604 -0
- package/dist/apiMethods/batchMethods.d.ts +32 -1
- package/dist/apiMethods/batchMethods.js +241 -11
- package/dist/apiMethods/batchMethods.js.map +1 -0
- package/dist/apiMethods/clientInstance.d.ts +58 -4
- package/dist/apiMethods/clientInstance.js +311 -44
- package/dist/apiMethods/clientInstance.js.map +1 -0
- package/dist/apiMethods/containerMethods.d.ts +15 -7
- package/dist/apiMethods/containerMethods.js +70 -38
- package/dist/apiMethods/containerMethods.js.map +1 -0
- package/dist/apiMethods/contentMethods.d.ts +17 -10
- package/dist/apiMethods/contentMethods.js +169 -70
- package/dist/apiMethods/contentMethods.js.map +1 -0
- package/dist/apiMethods/instanceMethods.d.ts +9 -0
- package/dist/apiMethods/instanceMethods.js +69 -0
- package/dist/apiMethods/instanceMethods.js.map +1 -0
- package/dist/apiMethods/instanceUserMethods.d.ts +3 -3
- package/dist/apiMethods/instanceUserMethods.js +18 -18
- package/dist/apiMethods/instanceUserMethods.js.map +1 -0
- package/dist/apiMethods/modelMethods.d.ts +6 -5
- package/dist/apiMethods/modelMethods.js +46 -26
- package/dist/apiMethods/modelMethods.js.map +1 -0
- package/dist/apiMethods/pageMethods.d.ts +21 -9
- package/dist/apiMethods/pageMethods.js +278 -76
- package/dist/apiMethods/pageMethods.js.map +1 -0
- package/dist/apiMethods/serverUserMethods.d.ts +10 -0
- package/dist/apiMethods/serverUserMethods.js +89 -0
- package/dist/apiMethods/serverUserMethods.js.map +1 -0
- package/dist/apiMethods/webhookMethods.d.ts +12 -0
- package/dist/apiMethods/webhookMethods.js +131 -0
- package/dist/apiMethods/webhookMethods.js.map +1 -0
- package/dist/enums/assetGroupingType.d.ts +3 -0
- package/dist/enums/assetGroupingType.js +7 -0
- package/dist/enums/assetGroupingType.js.map +1 -0
- package/dist/enums/batchItemType.d.ts +7 -0
- package/dist/enums/batchItemType.js +11 -0
- package/dist/enums/batchOperationType.js +1 -1
- package/dist/enums/batchOperationType.js.map +1 -0
- package/dist/enums/batchState..js +1 -1
- package/dist/enums/batchState.d.ts +7 -0
- package/dist/enums/batchState.js +12 -0
- package/dist/enums/batchState.js.map +1 -0
- package/dist/enums/pageItemTemplateType.d.ts +4 -0
- package/dist/enums/pageItemTemplateType.js +8 -0
- package/dist/enums/pageItemTemplateType.js.map +1 -0
- package/dist/enums/workflowOperationType.d.ts +26 -0
- package/dist/enums/workflowOperationType.js +30 -0
- package/dist/errors/exception.d.ts +4 -0
- package/dist/errors/exception.js +11 -0
- package/dist/errors/exception.js.map +1 -0
- package/dist/index.d.ts +41 -9
- package/dist/index.js +48 -10
- package/dist/index.js.map +1 -0
- package/dist/models/assetContainer.d.ts +7 -0
- package/dist/models/assetContainer.js +9 -0
- package/dist/models/assetGalleries.d.ts +5 -0
- package/dist/models/assetGalleries.js +9 -0
- package/dist/models/assetMediaGrouping.d.ts +17 -0
- package/dist/models/assetMediaGrouping.js +9 -0
- package/dist/models/assetMediaGroupingMetaData.d.ts +4 -0
- package/dist/models/assetMediaGroupingMetaData.js +9 -0
- package/dist/models/authTokens.d.ts +73 -0
- package/dist/models/authTokens.js +2 -0
- package/dist/models/batchItem.d.ts +1 -0
- package/dist/models/batchRequests.d.ts +67 -0
- package/dist/models/batchRequests.js +2 -0
- package/dist/models/batchTypes.d.ts +34 -0
- package/dist/models/batchTypes.js +2 -0
- package/dist/models/container.d.ts +2 -1
- package/dist/models/contentDefinitionTypeID.d.ts +17 -0
- package/dist/models/contentDefinitionTypeID.js +21 -0
- package/dist/models/contentItemHistory.d.ts +20 -0
- package/dist/models/contentItemHistory.js +15 -0
- package/dist/models/contentListFilterModel.d.ts +26 -0
- package/dist/models/contentListFilterModel.js +33 -0
- package/dist/models/contentSectionDefaultModule.d.ts +7 -0
- package/dist/models/contentSectionDefaultModule.js +9 -0
- package/dist/models/contentSectionDefinition.d.ts +35 -0
- package/dist/models/contentSectionDefinition.js +9 -0
- package/dist/models/exception.js +2 -0
- package/dist/models/itemComments.d.ts +14 -0
- package/dist/models/itemComments.js +15 -0
- package/dist/models/listParams.d.ts +9 -0
- package/dist/models/listParams.js +16 -0
- package/dist/models/locales.d.ts +3 -0
- package/dist/models/locales.js +30 -0
- package/dist/models/options.d.ts +2 -5
- package/dist/models/options.js +0 -19
- package/dist/models/pageHistory.d.ts +21 -0
- package/dist/models/pageHistory.js +15 -0
- package/dist/models/pageModel.d.ts +14 -0
- package/dist/models/pageModel.js +9 -0
- package/dist/models/serverUser.d.ts +21 -0
- package/dist/models/serverUser.js +9 -0
- package/dist/models/sharedModule.d.ts +7 -0
- package/dist/models/sharedModule.js +9 -0
- package/dist/models/webhook.d.ts +9 -0
- package/dist/models/webhook.js +9 -0
- package/dist/models/websiteListing.d.ts +16 -0
- package/dist/models/websiteListing.js +9 -0
- package/dist/tests/authHelper.d.ts +2 -0
- package/dist/tests/authHelper.js +14 -0
- package/dist/tests/authHelper.js.map +1 -0
- package/dist/tests/config/apiClient.config.d.ts +16 -0
- package/dist/tests/config/apiClient.config.js +84 -0
- package/dist/tests/config/apiClient.config.js.map +1 -0
- package/dist/tests/config/test.config.d.ts +24 -0
- package/dist/tests/config/test.config.js +47 -0
- package/dist/tests/config/test.config.js.map +1 -0
- package/dist/tokenStorage.d.ts +72 -0
- package/dist/tokenStorage.js +366 -0
- package/dist/types/apiResponse.d.ts +13 -0
- package/dist/types/apiResponse.js +3 -0
- package/dist/types/apiResponse.js.map +1 -0
- package/dist/types/assetContainer.d.ts +7 -0
- package/dist/types/assetContainer.js +3 -0
- package/dist/types/assetContainer.js.map +1 -0
- package/dist/types/assetGalleries.d.ts +5 -0
- package/dist/types/assetGalleries.js +3 -0
- package/dist/types/assetGalleries.js.map +1 -0
- package/dist/types/assetMediaGrouping.d.ts +17 -0
- package/dist/types/assetMediaGrouping.js +3 -0
- package/dist/types/assetMediaGrouping.js.map +1 -0
- package/dist/types/assetMediaGroupingMetaData.d.ts +4 -0
- package/dist/types/assetMediaGroupingMetaData.js +3 -0
- package/dist/types/assetMediaGroupingMetaData.js.map +1 -0
- package/dist/types/batch.d.ts +29 -0
- package/dist/types/batch.js +3 -0
- package/dist/types/batch.js.map +1 -0
- package/dist/types/batchItem.d.ts +13 -0
- package/dist/types/batchItem.js +3 -0
- package/dist/types/batchItem.js.map +1 -0
- package/dist/types/container.d.ts +47 -0
- package/dist/types/container.js +3 -0
- package/dist/types/container.js.map +1 -0
- package/dist/types/contentItem.d.ts +37 -0
- package/dist/types/contentItem.js +3 -0
- package/dist/types/contentItem.js.map +1 -0
- package/dist/types/contentItemHistory.d.ts +20 -0
- package/dist/types/contentItemHistory.js +3 -0
- package/dist/types/contentItemHistory.js.map +1 -0
- package/dist/types/contentListFilterModel.d.ts +26 -0
- package/dist/types/contentListFilterModel.js +3 -0
- package/dist/types/contentListFilterModel.js.map +1 -0
- package/dist/types/contentSectionDefaultModule.d.ts +7 -0
- package/dist/types/contentSectionDefaultModule.js +3 -0
- package/dist/types/contentSectionDefaultModule.js.map +1 -0
- package/dist/types/contentSectionDefinition.d.ts +35 -0
- package/dist/types/contentSectionDefinition.js +3 -0
- package/dist/types/contentSectionDefinition.js.map +1 -0
- package/dist/types/contentViewColumn.d.ts +8 -0
- package/dist/types/contentViewColumn.js +3 -0
- package/dist/types/contentViewColumn.js.map +1 -0
- package/dist/types/instanceRole.d.ts +7 -0
- package/dist/types/instanceRole.js +3 -0
- package/dist/types/instanceRole.js.map +1 -0
- package/dist/types/instanceUser.d.ts +14 -0
- package/dist/types/instanceUser.js +3 -0
- package/dist/types/instanceUser.js.map +1 -0
- package/dist/types/itemComments.d.ts +14 -0
- package/dist/types/itemComments.js +3 -0
- package/dist/types/itemComments.js.map +1 -0
- package/dist/types/listParams.d.ts +9 -0
- package/dist/types/listParams.js +3 -0
- package/dist/types/listParams.js.map +1 -0
- package/dist/types/locales.d.ts +1 -0
- package/dist/types/locales.js +3 -0
- package/dist/types/locales.js.map +1 -0
- package/dist/types/media.d.ts +30 -0
- package/dist/types/media.js +3 -0
- package/dist/types/media.js.map +1 -0
- package/dist/types/model.d.ts +30 -0
- package/dist/types/model.js +3 -0
- package/dist/types/model.js.map +1 -0
- package/dist/types/notification.d.ts +13 -0
- package/dist/types/notification.js +3 -0
- package/dist/types/notification.js.map +1 -0
- package/dist/types/options.d.ts +7 -0
- package/dist/types/options.js +3 -0
- package/dist/types/options.js.map +1 -0
- package/dist/types/pageHistory.d.ts +21 -0
- package/dist/types/pageHistory.js +3 -0
- package/dist/types/pageHistory.js.map +1 -0
- package/dist/types/pageItem.d.ts +56 -0
- package/dist/types/pageItem.js +3 -0
- package/dist/types/pageItem.js.map +1 -0
- package/dist/types/pageModel.d.ts +14 -0
- package/dist/types/pageModel.js +3 -0
- package/dist/types/pageModel.js.map +1 -0
- package/dist/types/serverUser.d.ts +21 -0
- package/dist/types/serverUser.js +3 -0
- package/dist/types/serverUser.js.map +1 -0
- package/dist/types/sharedModule.d.ts +7 -0
- package/dist/types/sharedModule.js +3 -0
- package/dist/types/sharedModule.js.map +1 -0
- package/dist/types/sitemap.d.ts +20 -0
- package/dist/types/sitemap.js +3 -0
- package/dist/types/sitemap.js.map +1 -0
- package/dist/types/tokenResponseData.d.ts +10 -0
- package/dist/types/tokenResponseData.js +3 -0
- package/dist/types/tokenResponseData.js.map +1 -0
- package/dist/types/webhook.d.ts +9 -0
- package/dist/types/webhook.js +3 -0
- package/dist/types/webhook.js.map +1 -0
- package/dist/types/websiteListing.d.ts +16 -0
- package/dist/types/websiteListing.js +3 -0
- package/dist/types/websiteListing.js.map +1 -0
- package/dist/types/websiteUser.d.ts +22 -0
- package/dist/types/websiteUser.js +3 -0
- package/dist/types/websiteUser.js.map +1 -0
- package/docs/asset-methods.md +382 -0
- package/docs/auth.md +594 -0
- package/docs/batch-methods.md +244 -0
- package/docs/cicd.md +607 -0
- package/docs/container-methods.md +268 -0
- package/docs/content-methods.md +423 -0
- package/docs/instance-methods.md +105 -0
- package/docs/instance-user-methods.md +231 -0
- package/docs/model-methods.md +434 -0
- package/docs/multi-instance-operations.md +192 -0
- package/docs/page-methods.md +671 -0
- package/docs/server-user-methods.md +280 -0
- package/docs/webhook-methods.md +452 -0
- package/package.json +14 -10
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assetMediaGrouping = void 0;
|
|
4
|
+
var assetMediaGrouping = /** @class */ (function () {
|
|
5
|
+
function assetMediaGrouping() {
|
|
6
|
+
}
|
|
7
|
+
return assetMediaGrouping;
|
|
8
|
+
}());
|
|
9
|
+
exports.assetMediaGrouping = assetMediaGrouping;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assetMediaGroupingMetaData = void 0;
|
|
4
|
+
var assetMediaGroupingMetaData = /** @class */ (function () {
|
|
5
|
+
function assetMediaGroupingMetaData() {
|
|
6
|
+
}
|
|
7
|
+
return assetMediaGroupingMetaData;
|
|
8
|
+
}());
|
|
9
|
+
exports.assetMediaGroupingMetaData = assetMediaGroupingMetaData;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OAuth token response from token exchange
|
|
3
|
+
*/
|
|
4
|
+
export interface OAuthTokenResponse {
|
|
5
|
+
access_token: string;
|
|
6
|
+
refresh_token?: string;
|
|
7
|
+
expires_in: number;
|
|
8
|
+
token_type: string;
|
|
9
|
+
scope?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* OAuth authorization URL generation options
|
|
13
|
+
*/
|
|
14
|
+
export interface AuthUrlOptions {
|
|
15
|
+
redirectUri: string;
|
|
16
|
+
scope?: string;
|
|
17
|
+
state?: string;
|
|
18
|
+
responseType?: string;
|
|
19
|
+
region?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* OAuth token exchange request parameters
|
|
23
|
+
*/
|
|
24
|
+
export interface TokenExchangeRequest {
|
|
25
|
+
code: string;
|
|
26
|
+
redirectUri: string;
|
|
27
|
+
grantType?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* OAuth token refresh request parameters
|
|
31
|
+
*/
|
|
32
|
+
export interface TokenRefreshRequest {
|
|
33
|
+
refreshToken: string;
|
|
34
|
+
grantType?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* OAuth token validation response
|
|
38
|
+
*/
|
|
39
|
+
export interface TokenValidationResponse {
|
|
40
|
+
active: boolean;
|
|
41
|
+
exp?: number;
|
|
42
|
+
iat?: number;
|
|
43
|
+
scope?: string;
|
|
44
|
+
sub?: string;
|
|
45
|
+
aud?: string[];
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* OAuth error response
|
|
49
|
+
*/
|
|
50
|
+
export interface OAuthErrorResponse {
|
|
51
|
+
error: string;
|
|
52
|
+
error_description?: string;
|
|
53
|
+
error_uri?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Token manager configuration
|
|
57
|
+
*/
|
|
58
|
+
export interface TokenManagerConfig {
|
|
59
|
+
accessToken: string;
|
|
60
|
+
refreshToken?: string;
|
|
61
|
+
expiresAt?: number;
|
|
62
|
+
region?: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Authentication state information
|
|
66
|
+
*/
|
|
67
|
+
export interface AuthState {
|
|
68
|
+
isAuthenticated: boolean;
|
|
69
|
+
token?: string;
|
|
70
|
+
expiresAt?: number;
|
|
71
|
+
scope?: string;
|
|
72
|
+
refreshToken?: string;
|
|
73
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { BatchOperationType } from "../enums/batchOperationType";
|
|
2
|
+
import { BatchItemType } from "../enums/batchItemType";
|
|
3
|
+
/**
|
|
4
|
+
* Request model for creating a new batch.
|
|
5
|
+
*/
|
|
6
|
+
export interface CreateBatchRequest {
|
|
7
|
+
/**
|
|
8
|
+
* Custom name for the batch. If not provided, defaults to "Custom Batch".
|
|
9
|
+
*/
|
|
10
|
+
batchName?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Default operation type for the batch.
|
|
13
|
+
* If not provided, defaults to Publish (1).
|
|
14
|
+
*/
|
|
15
|
+
operationType?: BatchOperationType;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the batch should be private (visible only to the creator).
|
|
18
|
+
* If not provided, defaults to true.
|
|
19
|
+
*/
|
|
20
|
+
isPrivate?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Optional comments or notes about the batch.
|
|
23
|
+
*/
|
|
24
|
+
comments?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Request model for adding a reference to an existing item to a batch.
|
|
28
|
+
*/
|
|
29
|
+
export interface AddBatchItemRequest {
|
|
30
|
+
/**
|
|
31
|
+
* The type of item to add to the batch.
|
|
32
|
+
*/
|
|
33
|
+
itemType: BatchItemType;
|
|
34
|
+
/**
|
|
35
|
+
* The ID of the existing item to add to the batch.
|
|
36
|
+
* For Content Items: use the ContentID of an existing content item
|
|
37
|
+
* For Page Items: use the PageID of an existing page
|
|
38
|
+
*/
|
|
39
|
+
itemID: number;
|
|
40
|
+
/**
|
|
41
|
+
* The language code for the item (e.g., "en-us", "fr-ca", "es-mx").
|
|
42
|
+
*/
|
|
43
|
+
languageCode: string;
|
|
44
|
+
/**
|
|
45
|
+
* Optional display title for the item in the batch for identification purposes.
|
|
46
|
+
*/
|
|
47
|
+
itemTitle?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Request model for adding multiple items to a batch at once.
|
|
51
|
+
*/
|
|
52
|
+
export interface AddBatchItemsRequest {
|
|
53
|
+
/**
|
|
54
|
+
* Array of items to add to the batch.
|
|
55
|
+
* Each item must reference an existing content item or page in your CMS.
|
|
56
|
+
*/
|
|
57
|
+
items: AddBatchItemRequest[];
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Request model for processing a batch with optional comments.
|
|
61
|
+
*/
|
|
62
|
+
export interface ProcessBatchRequest {
|
|
63
|
+
/**
|
|
64
|
+
* Optional comments for the batch operation (for audit trail).
|
|
65
|
+
*/
|
|
66
|
+
comments?: string;
|
|
67
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response model containing all batch-related enum types for developer discovery.
|
|
3
|
+
*/
|
|
4
|
+
export interface BatchTypesResponse {
|
|
5
|
+
/**
|
|
6
|
+
* Available item types that can be added to batches.
|
|
7
|
+
*/
|
|
8
|
+
itemTypes: EnumInfo[];
|
|
9
|
+
/**
|
|
10
|
+
* All available batch operation types (includes workflow and other operations).
|
|
11
|
+
*/
|
|
12
|
+
operationTypes: EnumInfo[];
|
|
13
|
+
/**
|
|
14
|
+
* Workflow-specific operation types (subset of operationTypes).
|
|
15
|
+
*/
|
|
16
|
+
workflowOperations: EnumInfo[];
|
|
17
|
+
/**
|
|
18
|
+
* Available batch states during lifecycle.
|
|
19
|
+
*/
|
|
20
|
+
states: EnumInfo[];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Information about an enum value including value and name.
|
|
24
|
+
*/
|
|
25
|
+
export interface EnumInfo {
|
|
26
|
+
/**
|
|
27
|
+
* The numeric value of the enum.
|
|
28
|
+
*/
|
|
29
|
+
value: number;
|
|
30
|
+
/**
|
|
31
|
+
* The string name of the enum value (e.g., "ContentItem", "Publish").
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ContentViewColumn } from "./contentViewColumn";
|
|
2
|
+
import { ContentDefinitionTypeID } from "./contentDefinitionTypeID";
|
|
2
3
|
export declare class Container {
|
|
3
4
|
columns: ContentViewColumn[];
|
|
4
5
|
contentViewID: number | null;
|
|
@@ -30,7 +31,7 @@ export declare class Container {
|
|
|
30
31
|
enableAPIOutput: boolean | null;
|
|
31
32
|
commentsRecordTypeName: string | null;
|
|
32
33
|
numRowsInListing: number | null;
|
|
33
|
-
contentDefinitionTypeID:
|
|
34
|
+
contentDefinitionTypeID: ContentDefinitionTypeID | null;
|
|
34
35
|
fullSyncModDate: string | null;
|
|
35
36
|
confirmSharingOnPublish: boolean | null;
|
|
36
37
|
contentTemplateName: string | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum representing the content definition type ID values in Agility CMS
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ContentDefinitionTypeID {
|
|
5
|
+
/**
|
|
6
|
+
* List type content definition (0)
|
|
7
|
+
*/
|
|
8
|
+
List = 0,
|
|
9
|
+
/**
|
|
10
|
+
* Single item type content definition (1)
|
|
11
|
+
*/
|
|
12
|
+
SingleItem = 1,
|
|
13
|
+
/**
|
|
14
|
+
* Component type content definition (2)
|
|
15
|
+
*/
|
|
16
|
+
Component = 2
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentDefinitionTypeID = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Enum representing the content definition type ID values in Agility CMS
|
|
6
|
+
*/
|
|
7
|
+
var ContentDefinitionTypeID;
|
|
8
|
+
(function (ContentDefinitionTypeID) {
|
|
9
|
+
/**
|
|
10
|
+
* List type content definition (0)
|
|
11
|
+
*/
|
|
12
|
+
ContentDefinitionTypeID[ContentDefinitionTypeID["List"] = 0] = "List";
|
|
13
|
+
/**
|
|
14
|
+
* Single item type content definition (1)
|
|
15
|
+
*/
|
|
16
|
+
ContentDefinitionTypeID[ContentDefinitionTypeID["SingleItem"] = 1] = "SingleItem";
|
|
17
|
+
/**
|
|
18
|
+
* Component type content definition (2)
|
|
19
|
+
*/
|
|
20
|
+
ContentDefinitionTypeID[ContentDefinitionTypeID["Component"] = 2] = "Component";
|
|
21
|
+
})(ContentDefinitionTypeID || (exports.ContentDefinitionTypeID = ContentDefinitionTypeID = {}));
|
|
@@ -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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentSectionDefaultModule = void 0;
|
|
4
|
+
var ContentSectionDefaultModule = /** @class */ (function () {
|
|
5
|
+
function ContentSectionDefaultModule() {
|
|
6
|
+
}
|
|
7
|
+
return ContentSectionDefaultModule;
|
|
8
|
+
}());
|
|
9
|
+
exports.ContentSectionDefaultModule = ContentSectionDefaultModule;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PageItemTemplateType } from "../enums/pageItemTemplateType";
|
|
2
|
+
import { ContentSectionDefaultModule } from "./contentSectionDefaultModule";
|
|
3
|
+
import { SharedModule } from "./sharedModule";
|
|
4
|
+
export declare class ContentSectionDefinition {
|
|
5
|
+
defaultModules: ContentSectionDefaultModule[];
|
|
6
|
+
sharedModules: SharedModule[];
|
|
7
|
+
pageItemTemplateID: number | null;
|
|
8
|
+
pageTemplateID: number | null;
|
|
9
|
+
pageItemTemplateName: string | null;
|
|
10
|
+
pageItemTemplateReferenceName: string | null;
|
|
11
|
+
pageItemTemplateType: PageItemTemplateType;
|
|
12
|
+
pageItemTemplateTypeName: string | null;
|
|
13
|
+
itemOrder: number | null;
|
|
14
|
+
moduleOrder: number | null;
|
|
15
|
+
contentViewID: number | null;
|
|
16
|
+
contentReferenceName: string | null;
|
|
17
|
+
contentDefinitionID: number | null;
|
|
18
|
+
contentViewName: string | null;
|
|
19
|
+
itemContainerID: number | null;
|
|
20
|
+
publishContentItemID: number | null;
|
|
21
|
+
releaseDate: string;
|
|
22
|
+
pullDate: string;
|
|
23
|
+
isShared: boolean;
|
|
24
|
+
isSharedTemplate: boolean;
|
|
25
|
+
enablePersonalization: boolean;
|
|
26
|
+
doesPageTemplateHavePages: boolean;
|
|
27
|
+
moduleID: number | null;
|
|
28
|
+
contentDefinitionTitle: string | null;
|
|
29
|
+
userControlPath: string | null;
|
|
30
|
+
templateMarkup: string | null;
|
|
31
|
+
sortExpression: string | null;
|
|
32
|
+
filterExpression: string | null;
|
|
33
|
+
contentTemplateID: number | null;
|
|
34
|
+
contentTemplateName: string | null;
|
|
35
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentSectionDefinition = void 0;
|
|
4
|
+
var ContentSectionDefinition = /** @class */ (function () {
|
|
5
|
+
function ContentSectionDefinition() {
|
|
6
|
+
}
|
|
7
|
+
return ContentSectionDefinition;
|
|
8
|
+
}());
|
|
9
|
+
exports.ContentSectionDefinition = ContentSectionDefinition;
|
package/dist/models/exception.js
CHANGED
|
@@ -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,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,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.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/dist/models/options.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
export declare class Options {
|
|
2
|
-
|
|
3
|
-
token: string | null;
|
|
2
|
+
token: string;
|
|
4
3
|
baseUrl: string | null;
|
|
5
|
-
|
|
6
|
-
refresh_token: string | null;
|
|
4
|
+
refresh_token: string;
|
|
7
5
|
duration: number | 3000;
|
|
8
6
|
retryCount: number | 500;
|
|
9
|
-
determineBaseUrl(guid: string): string;
|
|
10
7
|
}
|
package/dist/models/options.js
CHANGED
|
@@ -4,25 +4,6 @@ exports.Options = void 0;
|
|
|
4
4
|
var Options = /** @class */ (function () {
|
|
5
5
|
function Options() {
|
|
6
6
|
}
|
|
7
|
-
Options.prototype.determineBaseUrl = function (guid) {
|
|
8
|
-
var seperator = guid.split('-');
|
|
9
|
-
if (seperator[1] === 'd') {
|
|
10
|
-
return "https://mgmt-dev.aglty.io";
|
|
11
|
-
}
|
|
12
|
-
else if (seperator[1] === 'u') {
|
|
13
|
-
return "https://mgmt.aglty.io";
|
|
14
|
-
}
|
|
15
|
-
else if (seperator[1] === 'ca') {
|
|
16
|
-
return "https://mgmt-ca.aglty.io";
|
|
17
|
-
}
|
|
18
|
-
else if (seperator[1] === 'eu') {
|
|
19
|
-
return "https://mgmt-aus.aglty.io";
|
|
20
|
-
}
|
|
21
|
-
else if (seperator[1] === 'aus') {
|
|
22
|
-
return "https://mgmt-aus.aglty.io";
|
|
23
|
-
}
|
|
24
|
-
return "https://mgmt.aglty.io";
|
|
25
|
-
};
|
|
26
7
|
return Options;
|
|
27
8
|
}());
|
|
28
9
|
exports.Options = Options;
|
|
@@ -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,14 @@
|
|
|
1
|
+
import { ContentSectionDefinition } from "./contentSectionDefinition";
|
|
2
|
+
export declare class PageModel {
|
|
3
|
+
doesPageTemplateHavePages: boolean;
|
|
4
|
+
pageTemplateID: number | null;
|
|
5
|
+
digitalChannelTypeID: number | null;
|
|
6
|
+
digitalChannelTypeName: string | null;
|
|
7
|
+
agilityCode: boolean;
|
|
8
|
+
pageTemplateName: string | null;
|
|
9
|
+
relativeURL: string | null;
|
|
10
|
+
pageNames: string | null;
|
|
11
|
+
isDeleted: boolean;
|
|
12
|
+
previewUrl: string | null;
|
|
13
|
+
contentSectionDefinitions: (ContentSectionDefinition | null)[] | null;
|
|
14
|
+
}
|