Skip to content

Commit

Permalink
feat(client-marketplace-catalog): This release enhances the ListEntit…
Browse files Browse the repository at this point in the history
…ies API to support new entity type-specific strongly typed filters in the request and entity type-specific strongly typed summaries in the response.
  • Loading branch information
awstools committed Nov 30, 2023
1 parent e8c53cd commit decb184
Show file tree
Hide file tree
Showing 4 changed files with 5,751 additions and 679 deletions.
298 changes: 298 additions & 0 deletions clients/client-marketplace-catalog/src/commands/ListEntitiesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,262 @@ export interface ListEntitiesCommandOutput extends ListEntitiesResponse, __Metad
* NextToken: "STRING_VALUE",
* MaxResults: Number("int"),
* OwnershipType: "SELF" || "SHARED",
* EntityTypeFilters: { // EntityTypeFilters Union: only one key present
* DataProductFilters: { // DataProductFilters
* EntityId: { // DataProductEntityIdFilter
* ValueList: [ // DataProductEntityIdFilterValueList
* "STRING_VALUE",
* ],
* },
* ProductTitle: { // DataProductTitleFilter
* ValueList: [ // DataProductTitleFilterValueList
* "STRING_VALUE",
* ],
* WildCardValue: "STRING_VALUE",
* },
* Visibility: { // DataProductVisibilityFilter
* ValueList: [ // DataProductVisibilityFilterValueList
* "Limited" || "Public" || "Restricted" || "Unavailable" || "Draft",
* ],
* },
* LastModifiedDate: { // DataProductLastModifiedDateFilter
* DateRange: { // DataProductLastModifiedDateFilterDateRange
* AfterValue: "STRING_VALUE",
* BeforeValue: "STRING_VALUE",
* },
* },
* },
* SaaSProductFilters: { // SaaSProductFilters
* EntityId: { // SaaSProductEntityIdFilter
* ValueList: [ // SaaSProductEntityIdFilterValueList
* "STRING_VALUE",
* ],
* },
* ProductTitle: { // SaaSProductTitleFilter
* ValueList: [ // SaaSProductTitleFilterValueList
* "STRING_VALUE",
* ],
* WildCardValue: "STRING_VALUE",
* },
* Visibility: { // SaaSProductVisibilityFilter
* ValueList: [ // SaaSProductVisibilityFilterValueList
* "Limited" || "Public" || "Restricted" || "Draft",
* ],
* },
* LastModifiedDate: { // SaaSProductLastModifiedDateFilter
* DateRange: { // SaaSProductLastModifiedDateFilterDateRange
* AfterValue: "STRING_VALUE",
* BeforeValue: "STRING_VALUE",
* },
* },
* },
* AmiProductFilters: { // AmiProductFilters
* EntityId: { // AmiProductEntityIdFilter
* ValueList: [ // AmiProductEntityIdFilterValueList
* "STRING_VALUE",
* ],
* },
* LastModifiedDate: { // AmiProductLastModifiedDateFilter
* DateRange: { // AmiProductLastModifiedDateFilterDateRange
* AfterValue: "STRING_VALUE",
* BeforeValue: "STRING_VALUE",
* },
* },
* ProductTitle: { // AmiProductTitleFilter
* ValueList: [ // AmiProductTitleFilterValueList
* "STRING_VALUE",
* ],
* WildCardValue: "STRING_VALUE",
* },
* Visibility: { // AmiProductVisibilityFilter
* ValueList: [ // AmiProductVisibilityFilterValueList
* "Limited" || "Public" || "Restricted" || "Draft",
* ],
* },
* },
* OfferFilters: { // OfferFilters
* EntityId: { // OfferEntityIdFilter
* ValueList: [ // OfferEntityIdFilterValueList
* "STRING_VALUE",
* ],
* },
* Name: { // OfferNameFilter
* ValueList: [ // OfferNameFilterValueList
* "STRING_VALUE",
* ],
* WildCardValue: "STRING_VALUE",
* },
* ProductId: { // OfferProductIdFilter
* ValueList: [ // OfferProductIdFilterValueList
* "STRING_VALUE",
* ],
* },
* ReleaseDate: { // OfferReleaseDateFilter
* DateRange: { // OfferReleaseDateFilterDateRange
* AfterValue: "STRING_VALUE",
* BeforeValue: "STRING_VALUE",
* },
* },
* AvailabilityEndDate: { // OfferAvailabilityEndDateFilter
* DateRange: { // OfferAvailabilityEndDateFilterDateRange
* AfterValue: "STRING_VALUE",
* BeforeValue: "STRING_VALUE",
* },
* },
* BuyerAccounts: { // OfferBuyerAccountsFilter
* WildCardValue: "STRING_VALUE",
* },
* State: { // OfferStateFilter
* ValueList: [ // OfferStateFilterValueList
* "Draft" || "Released",
* ],
* },
* Targeting: { // OfferTargetingFilter
* ValueList: [ // OfferTargetingFilterValueList
* "BuyerAccounts" || "ParticipatingPrograms" || "CountryCodes" || "None",
* ],
* },
* LastModifiedDate: { // OfferLastModifiedDateFilter
* DateRange: { // OfferLastModifiedDateFilterDateRange
* AfterValue: "STRING_VALUE",
* BeforeValue: "STRING_VALUE",
* },
* },
* },
* ContainerProductFilters: { // ContainerProductFilters
* EntityId: { // ContainerProductEntityIdFilter
* ValueList: [ // ContainerProductEntityIdFilterValueList
* "STRING_VALUE",
* ],
* },
* LastModifiedDate: { // ContainerProductLastModifiedDateFilter
* DateRange: { // ContainerProductLastModifiedDateFilterDateRange
* AfterValue: "STRING_VALUE",
* BeforeValue: "STRING_VALUE",
* },
* },
* ProductTitle: { // ContainerProductTitleFilter
* ValueList: [ // ContainerProductTitleFilterValueList
* "STRING_VALUE",
* ],
* WildCardValue: "STRING_VALUE",
* },
* Visibility: { // ContainerProductVisibilityFilter
* ValueList: [ // ContainerProductVisibilityFilterValueList
* "Limited" || "Public" || "Restricted" || "Draft",
* ],
* },
* },
* ResaleAuthorizationFilters: { // ResaleAuthorizationFilters
* EntityId: { // ResaleAuthorizationEntityIdFilter
* ValueList: [ // ResaleAuthorizationEntityIdFilterValueList
* "STRING_VALUE",
* ],
* },
* Name: { // ResaleAuthorizationNameFilter
* ValueList: [ // ResaleAuthorizationNameFilterValueList
* "STRING_VALUE",
* ],
* WildCardValue: "STRING_VALUE",
* },
* ProductId: { // ResaleAuthorizationProductIdFilter
* ValueList: [ // ResaleAuthorizationProductIdFilterValueList
* "STRING_VALUE",
* ],
* WildCardValue: "STRING_VALUE",
* },
* CreatedDate: { // ResaleAuthorizationCreatedDateFilter
* DateRange: { // ResaleAuthorizationCreatedDateFilterDateRange
* AfterValue: "STRING_VALUE",
* BeforeValue: "STRING_VALUE",
* },
* ValueList: [ // ResaleAuthorizationCreatedDateFilterValueList
* "STRING_VALUE",
* ],
* },
* AvailabilityEndDate: { // ResaleAuthorizationAvailabilityEndDateFilter
* DateRange: { // ResaleAuthorizationAvailabilityEndDateFilterDateRange
* AfterValue: "STRING_VALUE",
* BeforeValue: "STRING_VALUE",
* },
* ValueList: [ // ResaleAuthorizationAvailabilityEndDateFilterValueList
* "STRING_VALUE",
* ],
* },
* ManufacturerAccountId: { // ResaleAuthorizationManufacturerAccountIdFilter
* ValueList: [ // ResaleAuthorizationManufacturerAccountIdFilterValueList
* "STRING_VALUE",
* ],
* WildCardValue: "STRING_VALUE",
* },
* ProductName: { // ResaleAuthorizationProductNameFilter
* ValueList: [ // ResaleAuthorizationProductNameFilterValueList
* "STRING_VALUE",
* ],
* WildCardValue: "STRING_VALUE",
* },
* ManufacturerLegalName: { // ResaleAuthorizationManufacturerLegalNameFilter
* ValueList: [ // ResaleAuthorizationManufacturerLegalNameFilterValueList
* "STRING_VALUE",
* ],
* WildCardValue: "STRING_VALUE",
* },
* ResellerAccountID: { // ResaleAuthorizationResellerAccountIDFilter
* ValueList: [ // ResaleAuthorizationResellerAccountIDFilterValueList
* "STRING_VALUE",
* ],
* WildCardValue: "STRING_VALUE",
* },
* ResellerLegalName: { // ResaleAuthorizationResellerLegalNameFilter
* ValueList: [ // ResaleAuthorizationResellerLegalNameFilterValueList
* "STRING_VALUE",
* ],
* WildCardValue: "STRING_VALUE",
* },
* Status: { // ResaleAuthorizationStatusFilter
* ValueList: [ // ResaleAuthorizationStatusFilterValueList
* "Draft" || "Active" || "Restricted",
* ],
* },
* OfferExtendedStatus: { // ResaleAuthorizationOfferExtendedStatusFilter
* ValueList: [ // ResaleAuthorizationOfferExtendedStatusFilterValueList
* "STRING_VALUE",
* ],
* },
* LastModifiedDate: { // ResaleAuthorizationLastModifiedDateFilter
* DateRange: { // ResaleAuthorizationLastModifiedDateFilterDateRange
* AfterValue: "STRING_VALUE",
* BeforeValue: "STRING_VALUE",
* },
* },
* },
* },
* EntityTypeSort: { // EntityTypeSort Union: only one key present
* DataProductSort: { // DataProductSort
* SortBy: "EntityId" || "ProductTitle" || "Visibility" || "LastModifiedDate",
* SortOrder: "ASCENDING" || "DESCENDING",
* },
* SaaSProductSort: { // SaaSProductSort
* SortBy: "EntityId" || "ProductTitle" || "Visibility" || "LastModifiedDate",
* SortOrder: "ASCENDING" || "DESCENDING",
* },
* AmiProductSort: { // AmiProductSort
* SortBy: "EntityId" || "LastModifiedDate" || "ProductTitle" || "Visibility",
* SortOrder: "ASCENDING" || "DESCENDING",
* },
* OfferSort: { // OfferSort
* SortBy: "EntityId" || "Name" || "ProductId" || "ReleaseDate" || "AvailabilityEndDate" || "BuyerAccounts" || "State" || "Targeting" || "LastModifiedDate",
* SortOrder: "ASCENDING" || "DESCENDING",
* },
* ContainerProductSort: { // ContainerProductSort
* SortBy: "EntityId" || "LastModifiedDate" || "ProductTitle" || "Visibility",
* SortOrder: "ASCENDING" || "DESCENDING",
* },
* ResaleAuthorizationSort: { // ResaleAuthorizationSort
* SortBy: "EntityId" || "Name" || "ProductId" || "ProductName" || "ManufacturerAccountId" || "ManufacturerLegalName" || "ResellerAccountID" || "ResellerLegalName" || "Status" || "OfferExtendedStatus" || "CreatedDate" || "AvailabilityEndDate" || "LastModifiedDate",
* SortOrder: "ASCENDING" || "DESCENDING",
* },
* },
* };
* const command = new ListEntitiesCommand(input);
* const response = await client.send(command);
Expand All @@ -78,6 +334,48 @@ export interface ListEntitiesCommandOutput extends ListEntitiesResponse, __Metad
* // EntityArn: "STRING_VALUE",
* // LastModifiedDate: "STRING_VALUE",
* // Visibility: "STRING_VALUE",
* // AmiProductSummary: { // AmiProductSummary
* // ProductTitle: "STRING_VALUE",
* // Visibility: "Limited" || "Public" || "Restricted" || "Draft",
* // },
* // ContainerProductSummary: { // ContainerProductSummary
* // ProductTitle: "STRING_VALUE",
* // Visibility: "Limited" || "Public" || "Restricted" || "Draft",
* // },
* // DataProductSummary: { // DataProductSummary
* // ProductTitle: "STRING_VALUE",
* // Visibility: "Limited" || "Public" || "Restricted" || "Unavailable" || "Draft",
* // },
* // SaaSProductSummary: { // SaaSProductSummary
* // ProductTitle: "STRING_VALUE",
* // Visibility: "Limited" || "Public" || "Restricted" || "Draft",
* // },
* // OfferSummary: { // OfferSummary
* // Name: "STRING_VALUE",
* // ProductId: "STRING_VALUE",
* // ReleaseDate: "STRING_VALUE",
* // AvailabilityEndDate: "STRING_VALUE",
* // BuyerAccounts: [ // OfferBuyerAccountsList
* // "STRING_VALUE",
* // ],
* // State: "Draft" || "Released",
* // Targeting: [ // OfferTargetingList
* // "BuyerAccounts" || "ParticipatingPrograms" || "CountryCodes" || "None",
* // ],
* // },
* // ResaleAuthorizationSummary: { // ResaleAuthorizationSummary
* // Name: "STRING_VALUE",
* // ProductId: "STRING_VALUE",
* // ProductName: "STRING_VALUE",
* // ManufacturerAccountId: "STRING_VALUE",
* // ManufacturerLegalName: "STRING_VALUE",
* // ResellerAccountID: "STRING_VALUE",
* // ResellerLegalName: "STRING_VALUE",
* // Status: "Draft" || "Active" || "Restricted",
* // OfferExtendedStatus: "STRING_VALUE",
* // CreatedDate: "STRING_VALUE",
* // AvailabilityEndDate: "STRING_VALUE",
* // },
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
Loading

0 comments on commit decb184

Please sign in to comment.