@aws-sdk/client-workdocs 3.294.0 → 3.296.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 +8 -0
- package/dist-cjs/WorkDocs.js +15 -0
- package/dist-cjs/commands/AbortDocumentVersionUploadCommand.js +4 -4
- package/dist-cjs/commands/ActivateUserCommand.js +4 -4
- package/dist-cjs/commands/AddResourcePermissionsCommand.js +4 -4
- package/dist-cjs/commands/CreateCommentCommand.js +4 -4
- package/dist-cjs/commands/CreateCustomMetadataCommand.js +4 -4
- package/dist-cjs/commands/CreateFolderCommand.js +4 -4
- package/dist-cjs/commands/CreateLabelsCommand.js +4 -4
- package/dist-cjs/commands/CreateNotificationSubscriptionCommand.js +4 -4
- package/dist-cjs/commands/CreateUserCommand.js +4 -4
- package/dist-cjs/commands/DeactivateUserCommand.js +4 -4
- package/dist-cjs/commands/DeleteCommentCommand.js +4 -4
- package/dist-cjs/commands/DeleteCustomMetadataCommand.js +4 -4
- package/dist-cjs/commands/DeleteDocumentCommand.js +4 -4
- package/dist-cjs/commands/DeleteDocumentVersionCommand.js +4 -4
- package/dist-cjs/commands/DeleteFolderCommand.js +4 -4
- package/dist-cjs/commands/DeleteFolderContentsCommand.js +4 -4
- package/dist-cjs/commands/DeleteLabelsCommand.js +4 -4
- package/dist-cjs/commands/DeleteNotificationSubscriptionCommand.js +4 -4
- package/dist-cjs/commands/DeleteUserCommand.js +4 -4
- package/dist-cjs/commands/DescribeActivitiesCommand.js +4 -4
- package/dist-cjs/commands/DescribeCommentsCommand.js +4 -4
- package/dist-cjs/commands/DescribeDocumentVersionsCommand.js +4 -4
- package/dist-cjs/commands/DescribeFolderContentsCommand.js +4 -4
- package/dist-cjs/commands/DescribeGroupsCommand.js +4 -4
- package/dist-cjs/commands/DescribeNotificationSubscriptionsCommand.js +4 -4
- package/dist-cjs/commands/DescribeResourcePermissionsCommand.js +4 -4
- package/dist-cjs/commands/DescribeRootFoldersCommand.js +4 -4
- package/dist-cjs/commands/DescribeUsersCommand.js +4 -4
- package/dist-cjs/commands/GetCurrentUserCommand.js +4 -4
- package/dist-cjs/commands/GetDocumentCommand.js +4 -4
- package/dist-cjs/commands/GetDocumentPathCommand.js +4 -4
- package/dist-cjs/commands/GetDocumentVersionCommand.js +4 -4
- package/dist-cjs/commands/GetFolderCommand.js +4 -4
- package/dist-cjs/commands/GetFolderPathCommand.js +4 -4
- package/dist-cjs/commands/GetResourcesCommand.js +4 -4
- package/dist-cjs/commands/InitiateDocumentVersionUploadCommand.js +4 -4
- package/dist-cjs/commands/RemoveAllResourcePermissionsCommand.js +4 -4
- package/dist-cjs/commands/RemoveResourcePermissionCommand.js +4 -4
- package/dist-cjs/commands/RestoreDocumentVersionsCommand.js +4 -4
- package/dist-cjs/commands/SearchResourcesCommand.js +46 -0
- package/dist-cjs/commands/UpdateDocumentCommand.js +4 -4
- package/dist-cjs/commands/UpdateDocumentVersionCommand.js +4 -4
- package/dist-cjs/commands/UpdateFolderCommand.js +4 -4
- package/dist-cjs/commands/UpdateUserCommand.js +4 -4
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +168 -3
- package/dist-cjs/pagination/DescribeActivitiesPaginator.js +29 -0
- package/dist-cjs/pagination/DescribeCommentsPaginator.js +29 -0
- package/dist-cjs/pagination/DescribeGroupsPaginator.js +29 -0
- package/dist-cjs/pagination/DescribeNotificationSubscriptionsPaginator.js +29 -0
- package/dist-cjs/pagination/DescribeResourcePermissionsPaginator.js +29 -0
- package/dist-cjs/pagination/DescribeRootFoldersPaginator.js +29 -0
- package/dist-cjs/pagination/SearchResourcesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_restJson1.js +245 -2
- package/dist-es/WorkDocs.js +15 -0
- package/dist-es/commands/AbortDocumentVersionUploadCommand.js +4 -4
- package/dist-es/commands/ActivateUserCommand.js +4 -4
- package/dist-es/commands/AddResourcePermissionsCommand.js +4 -4
- package/dist-es/commands/CreateCommentCommand.js +4 -4
- package/dist-es/commands/CreateCustomMetadataCommand.js +4 -4
- package/dist-es/commands/CreateFolderCommand.js +4 -4
- package/dist-es/commands/CreateLabelsCommand.js +4 -4
- package/dist-es/commands/CreateNotificationSubscriptionCommand.js +4 -4
- package/dist-es/commands/CreateUserCommand.js +4 -4
- package/dist-es/commands/DeactivateUserCommand.js +4 -4
- package/dist-es/commands/DeleteCommentCommand.js +4 -4
- package/dist-es/commands/DeleteCustomMetadataCommand.js +4 -4
- package/dist-es/commands/DeleteDocumentCommand.js +4 -4
- package/dist-es/commands/DeleteDocumentVersionCommand.js +4 -4
- package/dist-es/commands/DeleteFolderCommand.js +4 -4
- package/dist-es/commands/DeleteFolderContentsCommand.js +4 -4
- package/dist-es/commands/DeleteLabelsCommand.js +4 -4
- package/dist-es/commands/DeleteNotificationSubscriptionCommand.js +4 -4
- package/dist-es/commands/DeleteUserCommand.js +4 -4
- package/dist-es/commands/DescribeActivitiesCommand.js +4 -4
- package/dist-es/commands/DescribeCommentsCommand.js +4 -4
- package/dist-es/commands/DescribeDocumentVersionsCommand.js +4 -4
- package/dist-es/commands/DescribeFolderContentsCommand.js +4 -4
- package/dist-es/commands/DescribeGroupsCommand.js +4 -4
- package/dist-es/commands/DescribeNotificationSubscriptionsCommand.js +4 -4
- package/dist-es/commands/DescribeResourcePermissionsCommand.js +4 -4
- package/dist-es/commands/DescribeRootFoldersCommand.js +4 -4
- package/dist-es/commands/DescribeUsersCommand.js +4 -4
- package/dist-es/commands/GetCurrentUserCommand.js +4 -4
- package/dist-es/commands/GetDocumentCommand.js +4 -4
- package/dist-es/commands/GetDocumentPathCommand.js +4 -4
- package/dist-es/commands/GetDocumentVersionCommand.js +4 -4
- package/dist-es/commands/GetFolderCommand.js +4 -4
- package/dist-es/commands/GetFolderPathCommand.js +4 -4
- package/dist-es/commands/GetResourcesCommand.js +4 -4
- package/dist-es/commands/InitiateDocumentVersionUploadCommand.js +4 -4
- package/dist-es/commands/RemoveAllResourcePermissionsCommand.js +4 -4
- package/dist-es/commands/RemoveResourcePermissionCommand.js +4 -4
- package/dist-es/commands/RestoreDocumentVersionsCommand.js +4 -4
- package/dist-es/commands/SearchResourcesCommand.js +42 -0
- package/dist-es/commands/UpdateDocumentCommand.js +4 -4
- package/dist-es/commands/UpdateDocumentVersionCommand.js +4 -4
- package/dist-es/commands/UpdateFolderCommand.js +4 -4
- package/dist-es/commands/UpdateUserCommand.js +4 -4
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +156 -0
- package/dist-es/pagination/DescribeActivitiesPaginator.js +25 -0
- package/dist-es/pagination/DescribeCommentsPaginator.js +25 -0
- package/dist-es/pagination/DescribeGroupsPaginator.js +25 -0
- package/dist-es/pagination/DescribeNotificationSubscriptionsPaginator.js +25 -0
- package/dist-es/pagination/DescribeResourcePermissionsPaginator.js +25 -0
- package/dist-es/pagination/DescribeRootFoldersPaginator.js +25 -0
- package/dist-es/pagination/SearchResourcesPaginator.js +25 -0
- package/dist-es/pagination/index.js +7 -0
- package/dist-es/protocols/Aws_restJson1.js +241 -0
- package/dist-types/WorkDocs.d.ts +7 -0
- package/dist-types/WorkDocsClient.d.ts +5 -4
- package/dist-types/commands/InitiateDocumentVersionUploadCommand.d.ts +3 -0
- package/dist-types/commands/SearchResourcesCommand.d.ts +56 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +295 -0
- package/dist-types/pagination/DescribeActivitiesPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeCommentsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeNotificationSubscriptionsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeResourcePermissionsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeRootFoldersPaginator.d.ts +4 -0
- package/dist-types/pagination/SearchResourcesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +7 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/WorkDocs.d.ts +17 -0
- package/dist-types/ts3.4/WorkDocsClient.d.ts +10 -4
- package/dist-types/ts3.4/commands/SearchResourcesCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -5
- package/dist-types/ts3.4/models/models_0.d.ts +156 -0
- package/dist-types/ts3.4/pagination/DescribeActivitiesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeCommentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeNotificationSubscriptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeResourcePermissionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeRootFoldersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchResourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +36 -36
|
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
4
4
|
import { UpdateDocumentRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1UpdateDocumentCommand, serializeAws_restJson1UpdateDocumentCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class UpdateDocumentCommand extends $Command {
|
|
7
|
-
constructor(input) {
|
|
8
|
-
super();
|
|
9
|
-
this.input = input;
|
|
10
|
-
}
|
|
11
7
|
static getEndpointParameterInstructions() {
|
|
12
8
|
return {
|
|
13
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -16,6 +12,10 @@ export class UpdateDocumentCommand extends $Command {
|
|
|
16
12
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
13
|
};
|
|
18
14
|
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
20
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
21
|
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateDocumentCommand.getEndpointParameterInstructions()));
|
|
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
4
4
|
import { UpdateDocumentVersionRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1UpdateDocumentVersionCommand, serializeAws_restJson1UpdateDocumentVersionCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class UpdateDocumentVersionCommand extends $Command {
|
|
7
|
-
constructor(input) {
|
|
8
|
-
super();
|
|
9
|
-
this.input = input;
|
|
10
|
-
}
|
|
11
7
|
static getEndpointParameterInstructions() {
|
|
12
8
|
return {
|
|
13
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -16,6 +12,10 @@ export class UpdateDocumentVersionCommand extends $Command {
|
|
|
16
12
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
13
|
};
|
|
18
14
|
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
20
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
21
|
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateDocumentVersionCommand.getEndpointParameterInstructions()));
|
|
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
4
4
|
import { UpdateFolderRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1UpdateFolderCommand, serializeAws_restJson1UpdateFolderCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class UpdateFolderCommand extends $Command {
|
|
7
|
-
constructor(input) {
|
|
8
|
-
super();
|
|
9
|
-
this.input = input;
|
|
10
|
-
}
|
|
11
7
|
static getEndpointParameterInstructions() {
|
|
12
8
|
return {
|
|
13
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -16,6 +12,10 @@ export class UpdateFolderCommand extends $Command {
|
|
|
16
12
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
13
|
};
|
|
18
14
|
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
20
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
21
|
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateFolderCommand.getEndpointParameterInstructions()));
|
|
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
4
4
|
import { UpdateUserRequestFilterSensitiveLog, UpdateUserResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1UpdateUserCommand, serializeAws_restJson1UpdateUserCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class UpdateUserCommand extends $Command {
|
|
7
|
-
constructor(input) {
|
|
8
|
-
super();
|
|
9
|
-
this.input = input;
|
|
10
|
-
}
|
|
11
7
|
static getEndpointParameterInstructions() {
|
|
12
8
|
return {
|
|
13
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -16,6 +12,10 @@ export class UpdateUserCommand extends $Command {
|
|
|
16
12
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
13
|
};
|
|
18
14
|
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
20
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
21
|
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateUserCommand.getEndpointParameterInstructions()));
|
|
@@ -37,6 +37,7 @@ export * from "./InitiateDocumentVersionUploadCommand";
|
|
|
37
37
|
export * from "./RemoveAllResourcePermissionsCommand";
|
|
38
38
|
export * from "./RemoveResourcePermissionCommand";
|
|
39
39
|
export * from "./RestoreDocumentVersionsCommand";
|
|
40
|
+
export * from "./SearchResourcesCommand";
|
|
40
41
|
export * from "./UpdateDocumentCommand";
|
|
41
42
|
export * from "./UpdateDocumentVersionCommand";
|
|
42
43
|
export * from "./UpdateFolderCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const q = "
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://workdocs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://workdocs-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://workdocs.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://workdocs.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -173,6 +173,10 @@ export var ActivityType;
|
|
|
173
173
|
ActivityType["FOLDER_SHARE_PERMISSION_CHANGED"] = "FOLDER_SHARE_PERMISSION_CHANGED";
|
|
174
174
|
ActivityType["FOLDER_UNSHARED"] = "FOLDER_UNSHARED";
|
|
175
175
|
})(ActivityType || (ActivityType = {}));
|
|
176
|
+
export var AdditionalResponseFieldType;
|
|
177
|
+
(function (AdditionalResponseFieldType) {
|
|
178
|
+
AdditionalResponseFieldType["WEBURL"] = "WEBURL";
|
|
179
|
+
})(AdditionalResponseFieldType || (AdditionalResponseFieldType = {}));
|
|
176
180
|
export var RoleType;
|
|
177
181
|
(function (RoleType) {
|
|
178
182
|
RoleType["CONTRIBUTOR"] = "CONTRIBUTOR";
|
|
@@ -476,6 +480,96 @@ export class StorageLimitWillExceedException extends __BaseException {
|
|
|
476
480
|
this.Message = opts.Message;
|
|
477
481
|
}
|
|
478
482
|
}
|
|
483
|
+
export var ContentCategoryType;
|
|
484
|
+
(function (ContentCategoryType) {
|
|
485
|
+
ContentCategoryType["AUDIO"] = "AUDIO";
|
|
486
|
+
ContentCategoryType["DOCUMENT"] = "DOCUMENT";
|
|
487
|
+
ContentCategoryType["IMAGE"] = "IMAGE";
|
|
488
|
+
ContentCategoryType["OTHER"] = "OTHER";
|
|
489
|
+
ContentCategoryType["PDF"] = "PDF";
|
|
490
|
+
ContentCategoryType["PRESENTATION"] = "PRESENTATION";
|
|
491
|
+
ContentCategoryType["SOURCE_CODE"] = "SOURCE_CODE";
|
|
492
|
+
ContentCategoryType["SPREADSHEET"] = "SPREADSHEET";
|
|
493
|
+
ContentCategoryType["VIDEO"] = "VIDEO";
|
|
494
|
+
})(ContentCategoryType || (ContentCategoryType = {}));
|
|
495
|
+
export var PrincipalRoleType;
|
|
496
|
+
(function (PrincipalRoleType) {
|
|
497
|
+
PrincipalRoleType["CONTRIBUTOR"] = "CONTRIBUTOR";
|
|
498
|
+
PrincipalRoleType["COOWNER"] = "COOWNER";
|
|
499
|
+
PrincipalRoleType["OWNER"] = "OWNER";
|
|
500
|
+
PrincipalRoleType["VIEWER"] = "VIEWER";
|
|
501
|
+
})(PrincipalRoleType || (PrincipalRoleType = {}));
|
|
502
|
+
export var SearchResourceType;
|
|
503
|
+
(function (SearchResourceType) {
|
|
504
|
+
SearchResourceType["COMMENT"] = "COMMENT";
|
|
505
|
+
SearchResourceType["DOCUMENT"] = "DOCUMENT";
|
|
506
|
+
SearchResourceType["DOCUMENT_VERSION"] = "DOCUMENT_VERSION";
|
|
507
|
+
SearchResourceType["FOLDER"] = "FOLDER";
|
|
508
|
+
})(SearchResourceType || (SearchResourceType = {}));
|
|
509
|
+
export var SearchCollectionType;
|
|
510
|
+
(function (SearchCollectionType) {
|
|
511
|
+
SearchCollectionType["OWNED"] = "OWNED";
|
|
512
|
+
SearchCollectionType["SHARED_WITH_ME"] = "SHARED_WITH_ME";
|
|
513
|
+
})(SearchCollectionType || (SearchCollectionType = {}));
|
|
514
|
+
export var LanguageCodeType;
|
|
515
|
+
(function (LanguageCodeType) {
|
|
516
|
+
LanguageCodeType["AR"] = "AR";
|
|
517
|
+
LanguageCodeType["BG"] = "BG";
|
|
518
|
+
LanguageCodeType["BN"] = "BN";
|
|
519
|
+
LanguageCodeType["CS"] = "CS";
|
|
520
|
+
LanguageCodeType["DA"] = "DA";
|
|
521
|
+
LanguageCodeType["DE"] = "DE";
|
|
522
|
+
LanguageCodeType["DEFAULT"] = "DEFAULT";
|
|
523
|
+
LanguageCodeType["EL"] = "EL";
|
|
524
|
+
LanguageCodeType["EN"] = "EN";
|
|
525
|
+
LanguageCodeType["ES"] = "ES";
|
|
526
|
+
LanguageCodeType["FA"] = "FA";
|
|
527
|
+
LanguageCodeType["FI"] = "FI";
|
|
528
|
+
LanguageCodeType["FR"] = "FR";
|
|
529
|
+
LanguageCodeType["HI"] = "HI";
|
|
530
|
+
LanguageCodeType["HU"] = "HU";
|
|
531
|
+
LanguageCodeType["ID"] = "ID";
|
|
532
|
+
LanguageCodeType["IT"] = "IT";
|
|
533
|
+
LanguageCodeType["JA"] = "JA";
|
|
534
|
+
LanguageCodeType["KO"] = "KO";
|
|
535
|
+
LanguageCodeType["LT"] = "LT";
|
|
536
|
+
LanguageCodeType["LV"] = "LV";
|
|
537
|
+
LanguageCodeType["NL"] = "NL";
|
|
538
|
+
LanguageCodeType["NO"] = "NO";
|
|
539
|
+
LanguageCodeType["PT"] = "PT";
|
|
540
|
+
LanguageCodeType["RO"] = "RO";
|
|
541
|
+
LanguageCodeType["RU"] = "RU";
|
|
542
|
+
LanguageCodeType["SV"] = "SV";
|
|
543
|
+
LanguageCodeType["SW"] = "SW";
|
|
544
|
+
LanguageCodeType["TH"] = "TH";
|
|
545
|
+
LanguageCodeType["TR"] = "TR";
|
|
546
|
+
LanguageCodeType["ZH"] = "ZH";
|
|
547
|
+
})(LanguageCodeType || (LanguageCodeType = {}));
|
|
548
|
+
export var OrderByFieldType;
|
|
549
|
+
(function (OrderByFieldType) {
|
|
550
|
+
OrderByFieldType["CREATED_TIMESTAMP"] = "CREATED_TIMESTAMP";
|
|
551
|
+
OrderByFieldType["MODIFIED_TIMESTAMP"] = "MODIFIED_TIMESTAMP";
|
|
552
|
+
OrderByFieldType["NAME"] = "NAME";
|
|
553
|
+
OrderByFieldType["RELEVANCE"] = "RELEVANCE";
|
|
554
|
+
OrderByFieldType["SIZE"] = "SIZE";
|
|
555
|
+
})(OrderByFieldType || (OrderByFieldType = {}));
|
|
556
|
+
export var SortOrder;
|
|
557
|
+
(function (SortOrder) {
|
|
558
|
+
SortOrder["ASC"] = "ASC";
|
|
559
|
+
SortOrder["DESC"] = "DESC";
|
|
560
|
+
})(SortOrder || (SortOrder = {}));
|
|
561
|
+
export var SearchQueryScopeType;
|
|
562
|
+
(function (SearchQueryScopeType) {
|
|
563
|
+
SearchQueryScopeType["CONTENT"] = "CONTENT";
|
|
564
|
+
SearchQueryScopeType["NAME"] = "NAME";
|
|
565
|
+
})(SearchQueryScopeType || (SearchQueryScopeType = {}));
|
|
566
|
+
export var ResponseItemType;
|
|
567
|
+
(function (ResponseItemType) {
|
|
568
|
+
ResponseItemType["COMMENT"] = "COMMENT";
|
|
569
|
+
ResponseItemType["DOCUMENT"] = "DOCUMENT";
|
|
570
|
+
ResponseItemType["DOCUMENT_VERSION"] = "DOCUMENT_VERSION";
|
|
571
|
+
ResponseItemType["FOLDER"] = "FOLDER";
|
|
572
|
+
})(ResponseItemType || (ResponseItemType = {}));
|
|
479
573
|
export var DocumentVersionStatus;
|
|
480
574
|
(function (DocumentVersionStatus) {
|
|
481
575
|
DocumentVersionStatus["ACTIVE"] = "ACTIVE";
|
|
@@ -528,7 +622,10 @@ export const UserStorageMetadataFilterSensitiveLog = (obj) => ({
|
|
|
528
622
|
});
|
|
529
623
|
export const UserFilterSensitiveLog = (obj) => ({
|
|
530
624
|
...obj,
|
|
625
|
+
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
531
626
|
...(obj.EmailAddress && { EmailAddress: SENSITIVE_STRING }),
|
|
627
|
+
...(obj.GivenName && { GivenName: SENSITIVE_STRING }),
|
|
628
|
+
...(obj.Surname && { Surname: SENSITIVE_STRING }),
|
|
532
629
|
});
|
|
533
630
|
export const ActivateUserResponseFilterSensitiveLog = (obj) => ({
|
|
534
631
|
...obj,
|
|
@@ -540,10 +637,15 @@ export const CommentMetadataFilterSensitiveLog = (obj) => ({
|
|
|
540
637
|
});
|
|
541
638
|
export const UserMetadataFilterSensitiveLog = (obj) => ({
|
|
542
639
|
...obj,
|
|
640
|
+
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
641
|
+
...(obj.GivenName && { GivenName: SENSITIVE_STRING }),
|
|
642
|
+
...(obj.Surname && { Surname: SENSITIVE_STRING }),
|
|
543
643
|
...(obj.EmailAddress && { EmailAddress: SENSITIVE_STRING }),
|
|
544
644
|
});
|
|
545
645
|
export const ResourceMetadataFilterSensitiveLog = (obj) => ({
|
|
546
646
|
...obj,
|
|
647
|
+
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
648
|
+
...(obj.OriginalName && { OriginalName: SENSITIVE_STRING }),
|
|
547
649
|
...(obj.Owner && { Owner: UserMetadataFilterSensitiveLog(obj.Owner) }),
|
|
548
650
|
});
|
|
549
651
|
export const GroupMetadataFilterSensitiveLog = (obj) => ({
|
|
@@ -607,12 +709,15 @@ export const CreateCustomMetadataResponseFilterSensitiveLog = (obj) => ({
|
|
|
607
709
|
export const CreateFolderRequestFilterSensitiveLog = (obj) => ({
|
|
608
710
|
...obj,
|
|
609
711
|
...(obj.AuthenticationToken && { AuthenticationToken: SENSITIVE_STRING }),
|
|
712
|
+
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
610
713
|
});
|
|
611
714
|
export const FolderMetadataFilterSensitiveLog = (obj) => ({
|
|
612
715
|
...obj,
|
|
716
|
+
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
613
717
|
});
|
|
614
718
|
export const CreateFolderResponseFilterSensitiveLog = (obj) => ({
|
|
615
719
|
...obj,
|
|
720
|
+
...(obj.Metadata && { Metadata: FolderMetadataFilterSensitiveLog(obj.Metadata) }),
|
|
616
721
|
});
|
|
617
722
|
export const CreateLabelsRequestFilterSensitiveLog = (obj) => ({
|
|
618
723
|
...obj,
|
|
@@ -632,7 +737,10 @@ export const CreateNotificationSubscriptionResponseFilterSensitiveLog = (obj) =>
|
|
|
632
737
|
});
|
|
633
738
|
export const CreateUserRequestFilterSensitiveLog = (obj) => ({
|
|
634
739
|
...obj,
|
|
740
|
+
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
635
741
|
...(obj.EmailAddress && { EmailAddress: SENSITIVE_STRING }),
|
|
742
|
+
...(obj.GivenName && { GivenName: SENSITIVE_STRING }),
|
|
743
|
+
...(obj.Surname && { Surname: SENSITIVE_STRING }),
|
|
636
744
|
...(obj.Password && { Password: SENSITIVE_STRING }),
|
|
637
745
|
...(obj.AuthenticationToken && { AuthenticationToken: SENSITIVE_STRING }),
|
|
638
746
|
});
|
|
@@ -707,6 +815,7 @@ export const DescribeDocumentVersionsRequestFilterSensitiveLog = (obj) => ({
|
|
|
707
815
|
});
|
|
708
816
|
export const DocumentVersionMetadataFilterSensitiveLog = (obj) => ({
|
|
709
817
|
...obj,
|
|
818
|
+
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
710
819
|
...(obj.Thumbnail && { Thumbnail: SENSITIVE_STRING }),
|
|
711
820
|
...(obj.Source && { Source: SENSITIVE_STRING }),
|
|
712
821
|
});
|
|
@@ -728,6 +837,7 @@ export const DocumentMetadataFilterSensitiveLog = (obj) => ({
|
|
|
728
837
|
});
|
|
729
838
|
export const DescribeFolderContentsResponseFilterSensitiveLog = (obj) => ({
|
|
730
839
|
...obj,
|
|
840
|
+
...(obj.Folders && { Folders: obj.Folders.map((item) => FolderMetadataFilterSensitiveLog(item)) }),
|
|
731
841
|
...(obj.Documents && { Documents: obj.Documents.map((item) => DocumentMetadataFilterSensitiveLog(item)) }),
|
|
732
842
|
});
|
|
733
843
|
export const DescribeGroupsRequestFilterSensitiveLog = (obj) => ({
|
|
@@ -763,6 +873,7 @@ export const DescribeRootFoldersRequestFilterSensitiveLog = (obj) => ({
|
|
|
763
873
|
});
|
|
764
874
|
export const DescribeRootFoldersResponseFilterSensitiveLog = (obj) => ({
|
|
765
875
|
...obj,
|
|
876
|
+
...(obj.Folders && { Folders: obj.Folders.map((item) => FolderMetadataFilterSensitiveLog(item)) }),
|
|
766
877
|
});
|
|
767
878
|
export const DescribeUsersRequestFilterSensitiveLog = (obj) => ({
|
|
768
879
|
...obj,
|
|
@@ -795,12 +906,15 @@ export const GetDocumentPathRequestFilterSensitiveLog = (obj) => ({
|
|
|
795
906
|
});
|
|
796
907
|
export const ResourcePathComponentFilterSensitiveLog = (obj) => ({
|
|
797
908
|
...obj,
|
|
909
|
+
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
798
910
|
});
|
|
799
911
|
export const ResourcePathFilterSensitiveLog = (obj) => ({
|
|
800
912
|
...obj,
|
|
913
|
+
...(obj.Components && { Components: obj.Components.map((item) => ResourcePathComponentFilterSensitiveLog(item)) }),
|
|
801
914
|
});
|
|
802
915
|
export const GetDocumentPathResponseFilterSensitiveLog = (obj) => ({
|
|
803
916
|
...obj,
|
|
917
|
+
...(obj.Path && { Path: ResourcePathFilterSensitiveLog(obj.Path) }),
|
|
804
918
|
});
|
|
805
919
|
export const GetDocumentVersionRequestFilterSensitiveLog = (obj) => ({
|
|
806
920
|
...obj,
|
|
@@ -816,6 +930,7 @@ export const GetFolderRequestFilterSensitiveLog = (obj) => ({
|
|
|
816
930
|
});
|
|
817
931
|
export const GetFolderResponseFilterSensitiveLog = (obj) => ({
|
|
818
932
|
...obj,
|
|
933
|
+
...(obj.Metadata && { Metadata: FolderMetadataFilterSensitiveLog(obj.Metadata) }),
|
|
819
934
|
});
|
|
820
935
|
export const GetFolderPathRequestFilterSensitiveLog = (obj) => ({
|
|
821
936
|
...obj,
|
|
@@ -823,6 +938,7 @@ export const GetFolderPathRequestFilterSensitiveLog = (obj) => ({
|
|
|
823
938
|
});
|
|
824
939
|
export const GetFolderPathResponseFilterSensitiveLog = (obj) => ({
|
|
825
940
|
...obj,
|
|
941
|
+
...(obj.Path && { Path: ResourcePathFilterSensitiveLog(obj.Path) }),
|
|
826
942
|
});
|
|
827
943
|
export const GetResourcesRequestFilterSensitiveLog = (obj) => ({
|
|
828
944
|
...obj,
|
|
@@ -830,11 +946,13 @@ export const GetResourcesRequestFilterSensitiveLog = (obj) => ({
|
|
|
830
946
|
});
|
|
831
947
|
export const GetResourcesResponseFilterSensitiveLog = (obj) => ({
|
|
832
948
|
...obj,
|
|
949
|
+
...(obj.Folders && { Folders: obj.Folders.map((item) => FolderMetadataFilterSensitiveLog(item)) }),
|
|
833
950
|
...(obj.Documents && { Documents: obj.Documents.map((item) => DocumentMetadataFilterSensitiveLog(item)) }),
|
|
834
951
|
});
|
|
835
952
|
export const InitiateDocumentVersionUploadRequestFilterSensitiveLog = (obj) => ({
|
|
836
953
|
...obj,
|
|
837
954
|
...(obj.AuthenticationToken && { AuthenticationToken: SENSITIVE_STRING }),
|
|
955
|
+
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
838
956
|
});
|
|
839
957
|
export const UploadMetadataFilterSensitiveLog = (obj) => ({
|
|
840
958
|
...obj,
|
|
@@ -857,9 +975,44 @@ export const RestoreDocumentVersionsRequestFilterSensitiveLog = (obj) => ({
|
|
|
857
975
|
...obj,
|
|
858
976
|
...(obj.AuthenticationToken && { AuthenticationToken: SENSITIVE_STRING }),
|
|
859
977
|
});
|
|
978
|
+
export const DateRangeTypeFilterSensitiveLog = (obj) => ({
|
|
979
|
+
...obj,
|
|
980
|
+
});
|
|
981
|
+
export const SearchPrincipalTypeFilterSensitiveLog = (obj) => ({
|
|
982
|
+
...obj,
|
|
983
|
+
});
|
|
984
|
+
export const LongRangeTypeFilterSensitiveLog = (obj) => ({
|
|
985
|
+
...obj,
|
|
986
|
+
});
|
|
987
|
+
export const FiltersFilterSensitiveLog = (obj) => ({
|
|
988
|
+
...obj,
|
|
989
|
+
});
|
|
990
|
+
export const SearchSortResultFilterSensitiveLog = (obj) => ({
|
|
991
|
+
...obj,
|
|
992
|
+
});
|
|
993
|
+
export const SearchResourcesRequestFilterSensitiveLog = (obj) => ({
|
|
994
|
+
...obj,
|
|
995
|
+
...(obj.AuthenticationToken && { AuthenticationToken: SENSITIVE_STRING }),
|
|
996
|
+
...(obj.QueryText && { QueryText: SENSITIVE_STRING }),
|
|
997
|
+
});
|
|
998
|
+
export const ResponseItemFilterSensitiveLog = (obj) => ({
|
|
999
|
+
...obj,
|
|
1000
|
+
...(obj.WebUrl && { WebUrl: SENSITIVE_STRING }),
|
|
1001
|
+
...(obj.DocumentMetadata && { DocumentMetadata: DocumentMetadataFilterSensitiveLog(obj.DocumentMetadata) }),
|
|
1002
|
+
...(obj.FolderMetadata && { FolderMetadata: FolderMetadataFilterSensitiveLog(obj.FolderMetadata) }),
|
|
1003
|
+
...(obj.CommentMetadata && { CommentMetadata: CommentMetadataFilterSensitiveLog(obj.CommentMetadata) }),
|
|
1004
|
+
...(obj.DocumentVersionMetadata && {
|
|
1005
|
+
DocumentVersionMetadata: DocumentVersionMetadataFilterSensitiveLog(obj.DocumentVersionMetadata),
|
|
1006
|
+
}),
|
|
1007
|
+
});
|
|
1008
|
+
export const SearchResourcesResponseFilterSensitiveLog = (obj) => ({
|
|
1009
|
+
...obj,
|
|
1010
|
+
...(obj.Items && { Items: obj.Items.map((item) => ResponseItemFilterSensitiveLog(item)) }),
|
|
1011
|
+
});
|
|
860
1012
|
export const UpdateDocumentRequestFilterSensitiveLog = (obj) => ({
|
|
861
1013
|
...obj,
|
|
862
1014
|
...(obj.AuthenticationToken && { AuthenticationToken: SENSITIVE_STRING }),
|
|
1015
|
+
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
863
1016
|
});
|
|
864
1017
|
export const UpdateDocumentVersionRequestFilterSensitiveLog = (obj) => ({
|
|
865
1018
|
...obj,
|
|
@@ -868,10 +1021,13 @@ export const UpdateDocumentVersionRequestFilterSensitiveLog = (obj) => ({
|
|
|
868
1021
|
export const UpdateFolderRequestFilterSensitiveLog = (obj) => ({
|
|
869
1022
|
...obj,
|
|
870
1023
|
...(obj.AuthenticationToken && { AuthenticationToken: SENSITIVE_STRING }),
|
|
1024
|
+
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
871
1025
|
});
|
|
872
1026
|
export const UpdateUserRequestFilterSensitiveLog = (obj) => ({
|
|
873
1027
|
...obj,
|
|
874
1028
|
...(obj.AuthenticationToken && { AuthenticationToken: SENSITIVE_STRING }),
|
|
1029
|
+
...(obj.GivenName && { GivenName: SENSITIVE_STRING }),
|
|
1030
|
+
...(obj.Surname && { Surname: SENSITIVE_STRING }),
|
|
875
1031
|
});
|
|
876
1032
|
export const UpdateUserResponseFilterSensitiveLog = (obj) => ({
|
|
877
1033
|
...obj,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DescribeActivitiesCommand, } from "../commands/DescribeActivitiesCommand";
|
|
2
|
+
import { WorkDocsClient } from "../WorkDocsClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new DescribeActivitiesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateDescribeActivities(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.Marker = token;
|
|
12
|
+
input["Limit"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof WorkDocsClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected WorkDocs | WorkDocsClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.Marker;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DescribeCommentsCommand, } from "../commands/DescribeCommentsCommand";
|
|
2
|
+
import { WorkDocsClient } from "../WorkDocsClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new DescribeCommentsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateDescribeComments(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.Marker = token;
|
|
12
|
+
input["Limit"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof WorkDocsClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected WorkDocs | WorkDocsClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.Marker;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DescribeGroupsCommand, } from "../commands/DescribeGroupsCommand";
|
|
2
|
+
import { WorkDocsClient } from "../WorkDocsClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new DescribeGroupsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateDescribeGroups(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.Marker = token;
|
|
12
|
+
input["Limit"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof WorkDocsClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected WorkDocs | WorkDocsClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.Marker;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DescribeNotificationSubscriptionsCommand, } from "../commands/DescribeNotificationSubscriptionsCommand";
|
|
2
|
+
import { WorkDocsClient } from "../WorkDocsClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new DescribeNotificationSubscriptionsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateDescribeNotificationSubscriptions(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.Marker = token;
|
|
12
|
+
input["Limit"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof WorkDocsClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected WorkDocs | WorkDocsClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.Marker;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DescribeResourcePermissionsCommand, } from "../commands/DescribeResourcePermissionsCommand";
|
|
2
|
+
import { WorkDocsClient } from "../WorkDocsClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new DescribeResourcePermissionsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateDescribeResourcePermissions(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.Marker = token;
|
|
12
|
+
input["Limit"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof WorkDocsClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected WorkDocs | WorkDocsClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.Marker;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DescribeRootFoldersCommand, } from "../commands/DescribeRootFoldersCommand";
|
|
2
|
+
import { WorkDocsClient } from "../WorkDocsClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new DescribeRootFoldersCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateDescribeRootFolders(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.Marker = token;
|
|
12
|
+
input["Limit"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof WorkDocsClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected WorkDocs | WorkDocsClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.Marker;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SearchResourcesCommand, } from "../commands/SearchResourcesCommand";
|
|
2
|
+
import { WorkDocsClient } from "../WorkDocsClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new SearchResourcesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateSearchResources(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.Marker = token;
|
|
12
|
+
input["Limit"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof WorkDocsClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected WorkDocs | WorkDocsClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.Marker;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
export * from "./DescribeActivitiesPaginator";
|
|
2
|
+
export * from "./DescribeCommentsPaginator";
|
|
1
3
|
export * from "./DescribeDocumentVersionsPaginator";
|
|
2
4
|
export * from "./DescribeFolderContentsPaginator";
|
|
5
|
+
export * from "./DescribeGroupsPaginator";
|
|
6
|
+
export * from "./DescribeNotificationSubscriptionsPaginator";
|
|
7
|
+
export * from "./DescribeResourcePermissionsPaginator";
|
|
8
|
+
export * from "./DescribeRootFoldersPaginator";
|
|
3
9
|
export * from "./DescribeUsersPaginator";
|
|
4
10
|
export * from "./Interfaces";
|
|
11
|
+
export * from "./SearchResourcesPaginator";
|