@elasticpath/js-sdk 33.5.0 → 33.7.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/dist/index.cjs.js CHANGED
@@ -530,7 +530,7 @@ if (!globalThis.fetch) {
530
530
  globalThis.Response = fetch$1.Response;
531
531
  }
532
532
 
533
- var version = "33.5.0";
533
+ var version = "33.7.0";
534
534
 
535
535
  var LocalStorageFactory = /*#__PURE__*/function () {
536
536
  function LocalStorageFactory() {
@@ -2038,11 +2038,19 @@ var PCMEndpoint = /*#__PURE__*/function (_CRUDExtend) {
2038
2038
  }
2039
2039
  }, {
2040
2040
  key: "ExportProducts",
2041
- value: function ExportProducts(filter, useTemplateSlugs) {
2041
+ value: function ExportProducts(filter, useTemplateSlugs, columns) {
2042
+ var body = columns ? {
2043
+ data: {
2044
+ type: 'product',
2045
+ attributes: {
2046
+ columns: columns
2047
+ }
2048
+ }
2049
+ } : undefined;
2042
2050
  return this.request.send(buildURL("".concat(this.endpoint, "/export"), {
2043
2051
  filter: filter,
2044
2052
  useTemplateSlugs: useTemplateSlugs
2045
- }), 'POST');
2053
+ }), 'POST', body);
2046
2054
  }
2047
2055
  }]);
2048
2056
  return PCMEndpoint;
@@ -5480,6 +5488,17 @@ var Rules = /*#__PURE__*/function (_CRUDExtend4) {
5480
5488
  var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
5481
5489
  return this.request.send("catalogs/".concat(this.endpoint, "/").concat(catalogRuleId), "DELETE", token);
5482
5490
  }
5491
+ }, {
5492
+ key: "Validate",
5493
+ value: function Validate(body) {
5494
+ var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
5495
+ var limit = this.limit,
5496
+ offset = this.offset;
5497
+ return this.request.send(buildURL("catalogs/".concat(this.endpoint, "/validate"), {
5498
+ limit: limit,
5499
+ offset: offset
5500
+ }), 'POST', body, token);
5501
+ }
5483
5502
  }]);
5484
5503
  return Rules;
5485
5504
  }(CRUDExtend);
package/dist/index.d.ts CHANGED
@@ -1227,6 +1227,8 @@ interface PcmProductBase extends PcmProductRelationships {
1227
1227
  components?: ProductComponents
1228
1228
  custom_inputs?: CustomInputs
1229
1229
  tags?: string[]
1230
+ admin_attributes?: { [key: string]: string }
1231
+ shopper_attributes?: { [key: string]: string }
1230
1232
  }
1231
1233
  }
1232
1234
 
@@ -1272,6 +1274,8 @@ interface ProductComponentOption {
1272
1274
  id: string
1273
1275
  quantity: number
1274
1276
  type: string
1277
+ min?: number | null
1278
+ max?: number | null
1275
1279
  sort_order?: number | null
1276
1280
  default?: boolean
1277
1281
  meta: {
@@ -1441,9 +1445,21 @@ interface PcmProductsEndpoint
1441
1445
  /**
1442
1446
  * Export products
1443
1447
  * @param filter - products filters
1448
+ * @param useTemplateSlugs - use template slugs instead of template IDs
1449
+ * @param columns - select which columns to include in the exported CSV. Supports
1450
+ * individual keys (e.g. `admin_attributes.cost_of_goods`) and wildcards
1451
+ * (e.g. `admin_attributes.*`).
1444
1452
  * @constructor
1445
1453
  */
1446
- ExportProducts(filter?: PcmProductFilter, useTemplateSlugs?: boolean): Promise<Resource<PcmJob>>
1454
+ ExportProducts(
1455
+ filter?: PcmProductFilter,
1456
+ useTemplateSlugs?: boolean,
1457
+ columns?: PcmProductExportColumns
1458
+ ): Promise<Resource<PcmJob>>
1459
+ }
1460
+
1461
+ interface PcmProductExportColumns {
1462
+ include: string[]
1447
1463
  }
1448
1464
 
1449
1465
  /**
@@ -5368,6 +5384,44 @@ interface CatalogsProductVariation
5368
5384
  options: Omit<Option, 'modifiers'>[]
5369
5385
  }
5370
5386
 
5387
+ interface PriceTier {
5388
+ minimum_quantity: number
5389
+ amount: {
5390
+ [currency: string]: {
5391
+ amount: number
5392
+ includes_tax: boolean
5393
+ }
5394
+ }
5395
+ }
5396
+
5397
+ interface AvailablePrice {
5398
+ pricebook_id: string
5399
+ shopper_attributes?: { [key: string]: string }
5400
+ sale_id?: string
5401
+ sale_expires?: string
5402
+ price?: {
5403
+ [currency: string]: {
5404
+ amount: number
5405
+ includes_tax: boolean
5406
+ }
5407
+ }
5408
+ tiers?: { [tier: string]: PriceTier }
5409
+ }
5410
+
5411
+ interface AlternativePrice extends AvailablePrice {
5412
+ name: string
5413
+ display_price?: {
5414
+ without_tax?: FormattedPrice
5415
+ with_tax?: FormattedPrice
5416
+ }
5417
+ original_price?: {
5418
+ [currency: string]: {
5419
+ amount: number
5420
+ includes_tax: boolean
5421
+ }
5422
+ }
5423
+ }
5424
+
5371
5425
  interface ProductResponse extends Identifiable {
5372
5426
  type: 'product'
5373
5427
  attributes: {
@@ -5397,6 +5451,9 @@ interface ProductResponse extends Identifiable {
5397
5451
  weight: string
5398
5452
  manufacturer_part_num?: string
5399
5453
  extensions?: Extensions
5454
+ available_prices?: AvailablePrice[]
5455
+ alternative_prices?: { [name: string]: AlternativePrice }
5456
+ available_pricebook_ids?: string[]
5400
5457
  }
5401
5458
  meta: {
5402
5459
  catalog_id?: string
@@ -5435,6 +5492,7 @@ interface ProductResponse extends Identifiable {
5435
5492
  }
5436
5493
  }
5437
5494
  pricebook_id: string
5495
+ alternative_prices?: { [name: string]: AlternativePrice }
5438
5496
  }
5439
5497
  }
5440
5498
  }
@@ -5827,6 +5885,14 @@ interface ReleaseBodyBase {
5827
5885
  export_full_delta?: boolean
5828
5886
  }
5829
5887
 
5888
+ type ReleaseIndexingStatus = 'succeeded' | 'failed'
5889
+
5890
+ interface ReleaseIndexingCompleteData {
5891
+ data: {
5892
+ status: ReleaseIndexingStatus
5893
+ }
5894
+ }
5895
+
5830
5896
  interface CatalogsReleasesEndpoint {
5831
5897
  endpoint: 'releases'
5832
5898
 
@@ -5889,6 +5955,7 @@ interface RuleBase {
5889
5955
  customer_ids?: string[]
5890
5956
  channels?: string[]
5891
5957
  tags?: string[]
5958
+ pricebook_ids?: string[]
5892
5959
  schedules?: {valid_from: string, valid_to: string}[]
5893
5960
  }
5894
5961
  }
@@ -5901,8 +5968,19 @@ interface Rule extends Identifiable, RuleBase {
5901
5968
 
5902
5969
  // Do Not have any relationships yet //TODO
5903
5970
 
5971
+ interface RuleFilterAttributes {
5972
+ id?: string
5973
+ catalog_id?: string
5974
+ account_ids?: string
5975
+ customer_ids?: string
5976
+ channels?: string
5977
+ tags?: string
5978
+ pricebook_ids?: string
5979
+ }
5980
+
5904
5981
  interface RuleFilter {
5905
- // TODO
5982
+ eq?: RuleFilterAttributes
5983
+ in?: Pick<RuleFilterAttributes, 'pricebook_ids'>
5906
5984
  }
5907
5985
 
5908
5986
  type RuleSort = // TODO
@@ -5915,10 +5993,55 @@ interface RuleUpdateBody extends RuleBase {
5915
5993
  id: string
5916
5994
  }
5917
5995
 
5996
+ type RuleValidationMatchType =
5997
+ | 'filter'
5998
+ | 'similarity'
5999
+ | 'conflict'
6000
+ | 'resolve_for_shopper'
6001
+
6002
+ interface RuleValidationCriteria {
6003
+ channels?: string[]
6004
+ tags?: string[]
6005
+ account_ids?: string[]
6006
+ account_tag_ids?: string[]
6007
+ customer_ids?: string[]
6008
+ }
6009
+
6010
+ interface CatalogRuleValidatorRequest {
6011
+ data: {
6012
+ type: 'catalog_rule_validator'
6013
+ match_type: RuleValidationMatchType
6014
+ catalog_id?: string
6015
+ pricebook_ids?: string[]
6016
+ schedules?: { valid_from: string; valid_to: string }[]
6017
+ attributes?: RuleValidationCriteria
6018
+ }
6019
+ }
6020
+
6021
+ interface RuleMeta {
6022
+ similarity_score?: number
6023
+ active?: boolean
6024
+ resolved_for_shopper?: boolean
6025
+ release_id?: string
6026
+ }
6027
+
6028
+ interface ValidatedRule extends Rule {
6029
+ meta?: RuleMeta
6030
+ }
6031
+
6032
+ type ValidateRulesResponse = ResourcePage<ValidatedRule>
6033
+
5918
6034
  interface CatalogsRulesEndpoint
5919
6035
  extends CrudQueryableResource<Rule, RuleBase, RuleUpdateBody, RuleFilter, RuleSort, RuleInclude> {
5920
6036
  endpoint: 'rules'
5921
6037
  id: string
6038
+
6039
+ /**
6040
+ * Validate Catalog Rules
6041
+ * @param body - validation request describing the match_type and rule criteria.
6042
+ * @param token - optional customer token.
6043
+ */
6044
+ Validate(body: CatalogRuleValidatorRequest, token?: string): Promise<ValidateRulesResponse>
5922
6045
  }
5923
6046
 
5924
6047
  /**
@@ -7968,6 +8091,11 @@ interface SubscriptionInvoice
7968
8091
  subscription_id?: string
7969
8092
  subscriber_id?: string
7970
8093
  price?: SubscriptionInvoiceItemPrice
8094
+ display_price?: {
8095
+ with_tax: FormattedPrice
8096
+ without_tax: FormattedPrice
8097
+ tax: FormattedPrice
8098
+ }
7971
8099
  timestamps: {
7972
8100
  updated_at: string
7973
8101
  created_at: string
@@ -9406,4 +9534,4 @@ declare namespace elasticpath {
9406
9534
  }
9407
9535
  }
9408
9536
 
9409
- export { Account, AccountAddress, AccountAddressBase, AccountAddressEdit, AccountAddressFilter, AccountAddressFilterAttributes, AccountAddressesEndpoint, AccountAssociationData, AccountAssociationResponse, AccountAuthenticationSettings, AccountAuthenticationSettingsBase, AccountAuthenticationSettingsEndpoint, AccountBase, AccountEndpoint, AccountFilter, AccountManagementAuthenticationTokenBody, AccountMember, AccountMemberBase, AccountMemberFilter, AccountMembersEndpoint, AccountMembership, AccountMembershipCreateBody, AccountMembershipOnAccountMember, AccountMembershipSettings, AccountMembershipSettingsBase, AccountMembershipSettingsEndpoint, AccountMembershipsEndpoint, AccountMembershipsFilter, AccountMembershipsInclude, AccountMembershipsIncludeAccounts, AccountMembershipsIncluded, AccountMembershipsIncludedAccounts, AccountMembershipsOnAccountMember, AccountMembershipsResponse, AccountTag, AccountTagBase, AccountTagFilter, AccountTagMeta, AccountTagsEndpoint, AccountTokenBase, AccountUpdateBody, Action, ActionCondition, ActionLimitation, AddProductsItem, Address, AddressBase, AdyenPayment, AndCondition, AnonymizeOrder, AnonymizeOrderResponse, AnyValidationOptions, ApplicationKey, ApplicationKeyBase, ApplicationKeyResponse, ApplicationKeysEndpoint, Attribute, Attributes, AttributesMeta, AuthenticateResponseBody, AuthenticationRealmEndpoint, AuthenticationSettings, AuthenticationSettingsBase, AuthenticationSettingsEndpoint, AuthorizeNetPayment, AuthorizePaymentMethod, BooleanValidationOptions, BraintreePayment, Brand, BrandBase, BrandEndpoint, BrandFilter, BuildChildProductsJob, BuildRules, BuilderModifier, BuiltInRolePolicy, BulkAddOptions, BulkCustomDiscountOptions, BundleDiscountSchema, BundleGiftSchema, CapturePaymentMethod, CardConnectPayment, Cart, CartAdditionalHeaders, CartCustomDiscount, CartEndpoint, CartInclude, CartIncluded, CartItem, CartItemBase, CartItemObject, CartItemsResponse, CartSettings, CartShippingGroupBase, CartTaxItemObject, Catalog, CatalogBase, CatalogFilter, CatalogReleaseProductFilter, CatalogReleaseProductFilterAttributes, CatalogUpdateBody, CatalogsEndpoint, CatalogsNodesEndpoint, CatalogsProductVariation, CatalogsProductsEndpoint, CatalogsReleasesEndpoint, CatalogsRulesEndpoint, Category, CategoryBase, CategoryEndpoint, CategoryFilter, CheckoutCustomer, CheckoutCustomerObject, Collection, CollectionBase, CollectionEndpoint, CollectionFilter, CommonValidationOptions, Condition, Conditions, Config, ConfigOptions, ConfirmPaymentBody, ConfirmPaymentBodyWithOptions, ConfirmPaymentResponse, CreateCartObject, CreateChildrenSortOrderBody, CreateCustomRelationshipBody, CreateLocationBody, CrudQueryableResource, Currency, CurrencyAmount, CurrencyBase, CurrencyEndpoint, CurrencyPercentage, CustomApi, CustomApiBase, CustomApiField, CustomApiFieldBase, CustomApiRolePoliciesEndpoint, CustomApiRolePolicy, CustomApiRolePolicyBase, CustomApiRolePolicyRequestBody, CustomApisEndpoint, CustomAuthenticatorResponseBody, CustomDiscount, CustomDiscountResponse, CustomFieldValidation, CustomInputs, CustomInputsValidationRules, CustomRelationship, CustomRelationshipBase, CustomRelationshipBaseAttributes, CustomRelationshipEntry, CustomRelationshipsEndpoint, CustomRelationshipsFilter, CustomRelationshipsListResponse, Customer, CustomerAddress, CustomerAddressBase, CustomerAddressEdit, CustomerAddressesEndpoint, CustomerBase, CustomerFilter, CustomerInclude, CustomerToken, CustomersEndpoint, CyberSourcePayment, DataEntriesEndpoint, DataEntryRecord, DeletePromotionCodesBodyItem, DeleteRulePromotionCodes, DuplicateHierarchyBody, DuplicateHierarchyJob, ElasticPath, ElasticPathStripePayment, ErasureRequestRecord, ErasureRequestsEndpoint, Exclude$1 as Exclude, Extensions, Field, FieldBase, FieldType, FieldsEndpoint, File, FileBase, FileEndpoint, FileFilter, FileHref, FixedDiscountSchema, FloatValidationOptions, Flow, FlowBase, FlowEndpoint, FlowFilter, FormattedPrice, Gateway, GatewayBase, GatewaysEndpoint, GeolocationDetails, GrantType, HierarchiesEndpoint, HierarchiesShopperCatalogEndpoint, Hierarchy, HierarchyBase, HierarchyFilter, HttpVerbs, Identifiable, IntegerValidationOptions, Integration, IntegrationBase, IntegrationEndpoint, IntegrationFilter, IntegrationJob, IntegrationLog, IntegrationLogMeta, IntegrationLogsResponse, Inventory, InventoryActionTypes, InventoryBase, InventoryEndpoint, InventoryResourceType, InventoryResponse, InvoicingResult, ItemFixedDiscountSchema, ItemPercentDiscountSchema, ItemTaxObject, ItemTaxObjectResponse, Job, JobBase, JobEndpoint, ListValidationOptions, LocalStorageFactory, Locales, Location, LocationAttributes, LocationBase, LocationCreateQuantity, LocationMeta, LocationQuantities, LocationUpdateQuantity, LocationsEndpoint, LogIntegration, ManualPayment, MatrixObject, MemoryStorageFactory, MerchantRealmMappings, MerchantRealmMappingsEndpoint, MergeCartOptions, MetricsBase, MetricsEndpoint, MetricsFilter, MetricsQuery, MetricsV2Query, Modifier, ModifierResponse, ModifierType, ModifierTypeObj, MultiLocationInventoriesEndpoint, MultiLocationInventoryFilter, MultiLocationInventoryResponse, Node, NodeBase, NodeBaseResponse, NodeFilter, NodeProduct, NodeProductResponse, NodeRelationship, NodeRelationshipBase, NodeRelationshipParent, NodeRelationshipsEndpoint, NodesEndpoint, NodesResponse, NodesShopperCatalogEndpoint, NonAssociatedProductEntry, OidcProfileEndpoint, OnboardingLinkResponse, OneTimePasswordTokenRequestBody, OneTimePasswordTokenRequestEndpoint, Option, OptionResponse, Order, OrderAddressBase, OrderBase, OrderBillingAddress, OrderCountTimeSeries, OrderDiscountTimeSeries, OrderFilter, OrderInclude, OrderIncluded, OrderItem, OrderItemBase, OrderMetricsSummary, OrderResponse, OrderShippingAddress, OrderSort, OrderSortAscend, OrderSortDescend, OrderValueTimeSeries, OrdersEndpoint, PCMVariation, PCMVariationBase, PCMVariationMetaOption, PCMVariationOption, PCMVariationOptionBase, PCMVariationsEndpoint, PartialPcmProductBase, PasswordProfile, PasswordProfileBody, PasswordProfileEndpoint, PasswordProfileListItem, PasswordProfileResponse, PayPalExpressCheckoutPayment, PaymentMethod, PaymentRequestBody, PcmCustomRelationshipEndpoint, PcmFileRelationship, PcmFileRelationshipEndpoint, PcmJob, PcmJobBase, PcmJobError, PcmJobsEndpoint, PcmMainImageRelationship, PcmMainImageRelationshipEndpoint, PcmProduct, PcmProductAttachmentBody, PcmProductAttachmentResponse, PcmProductBase, PcmProductEntry, PcmProductFilter, PcmProductInclude, PcmProductRelationships, PcmProductResponse, PcmProductUpdateBody, PcmProductsEndpoint, PcmProductsResponse, PcmTemplateRelationship, PcmTemplateRelationshipEndpoint, PcmVariationsRelationshipResource, PcmVariationsRelationships, PcmVariationsRelationshipsEndpoint, PercentDiscountSchema, PersonalDataEndpoint, PersonalDataRecord, Presentation, Price, PriceBook, PriceBookBase, PriceBookFilter, PriceBookPrice, PriceBookPriceBase, PriceBookPriceModifier, PriceBookPriceModifierBase, PriceBookPriceModifierEndpoint, PriceBookPricesCreateBody, PriceBookPricesEndpoint, PriceBookPricesUpdateBody, PriceBooksEndpoint, PriceBooksUpdateBody, PricesFilter, Product, ProductAssociationResponse, ProductBase, ProductComponentOption, ProductComponents, ProductFileRelationshipResource, ProductFilter, ProductResponse, ProductTemplateRelationshipResource, ProductsEndpoint, Profile, ProfileBase, ProfileCreateUpdateBody, ProfileListItem, ProfileResponse, ProfileResponseBody, Promotion, PromotionAttribute, PromotionAttributeValues, PromotionBase, PromotionCode, PromotionCodesJob, PromotionFilter, PromotionJob, PromotionMeta, PromotionSettings, PromotionsEndpoint, PurchasePaymentMethod, QueryableResource, Realm, RealmBase, RealmCreateBody, RealmUpdateBody, RefundPaymentMethod, Relationship, RelationshipToMany, RelationshipToOne, ReleaseBase, ReleaseBodyBase, ReleaseResponse, RequestFactory, Requirements, Resource, ResourceIncluded, ResourceList, ResourcePage, Rule, RuleBase, RuleFilter, RulePromotion, RulePromotionBase, RulePromotionCode, RulePromotionCodesJob, RulePromotionFilter, RulePromotionJob, RulePromotionMeta, RulePromotionsEndpoint, RuleUpdateBody, Settings, SettingsEndpoint, ShippingGroupBase, ShippingGroupResponse, ShippingIncluded, ShopperCatalogEndpoint, ShopperCatalogProductsEndpoint, ShopperCatalogReleaseBase, ShopperCatalogResource, ShopperCatalogResourceList, ShopperCatalogResourcePage, SimpleResourcePageResponse, StockAttributes, StockCreate, StockLocationsMap, StockResponse, StockUpdate, StorageFactory, StringValidationOptions, StripeConnectPayment, StripeIntentsPayment, StripePayment, StripePaymentBase, StripePaymentOptionBase, Subscription, SubscriptionBase, SubscriptionCreate, SubscriptionDunningRules, SubscriptionDunningRulesBase, SubscriptionDunningRulesCreate, SubscriptionDunningRulesEndpoint, SubscriptionDunningRulesUpdate, SubscriptionFilter, SubscriptionInvoice, SubscriptionInvoiceBase, SubscriptionInvoiceFilter, SubscriptionInvoicePayment, SubscriptionInvoicePaymentBase, SubscriptionInvoicesEndpoint, SubscriptionJob, SubscriptionJobBase, SubscriptionJobCreate, SubscriptionJobsEndpoint, SubscriptionOffering, SubscriptionOfferingAttachPlanBody, SubscriptionOfferingAttachProductBody, SubscriptionOfferingAttachProrationPolicyBody, SubscriptionOfferingBase, SubscriptionOfferingBuildBody, SubscriptionOfferingBuildProduct, SubscriptionOfferingCreate, SubscriptionOfferingFilter, SubscriptionOfferingPlan, SubscriptionOfferingProduct, SubscriptionOfferingRelationships, SubscriptionOfferingUpdate, SubscriptionOfferingsEndpoint, SubscriptionPlan, SubscriptionPlanBase, SubscriptionPlanCreate, SubscriptionPlanUpdate, SubscriptionPlansEndpoint, SubscriptionProduct, SubscriptionProductBase, SubscriptionProductCreate, SubscriptionProductUpdate, SubscriptionProductsEndpoint, SubscriptionProrationPoliciesEndpoint, SubscriptionProrationPolicy, SubscriptionProrationPolicyBase, SubscriptionProrationPolicyCreate, SubscriptionProrationPolicyUpdate, SubscriptionSchedule, SubscriptionScheduleBase, SubscriptionScheduleCreate, SubscriptionScheduleUpdate, SubscriptionSchedulesEndpoint, SubscriptionSettings, SubscriptionSubscriber, SubscriptionSubscriberBase, SubscriptionSubscriberCreate, SubscriptionSubscriberUpdate, SubscriptionSubscribersEndpoint, SubscriptionUpdate, SubscriptionsEndpoint, SubscriptionsInclude, SubscriptionsIncluded, SubscriptionsStateAction, Subset, TargetCondition, Timestamps, Transaction, TransactionBase, TransactionEndpoint, TransactionsResponse, TtlSettings, UpdateCustomRelationshipBody, UpdateLocationBody, UpdateNodeBody, UpdateVariationBody, UpdateVariationOptionBody, UserAuthenticationInfo, UserAuthenticationInfoBody, UserAuthenticationInfoEndpoint, UserAuthenticationInfoFilter, UserAuthenticationInfoResponse, UserAuthenticationPasswordProfile, UserAuthenticationPasswordProfileBody, UserAuthenticationPasswordProfileEndpoint, UserAuthenticationPasswordProfileResponse, UserAuthenticationPasswordProfileUpdateBody, Validation, ValidationOptionsMap, Variation, VariationBase, VariationsBuilderModifier, VariationsEndpoint, VariationsModifier, VariationsModifierResponse, VariationsModifierType, VariationsModifierTypeObj, XforAmountSchema, XforYSchema, createJob, elasticpath, gateway };
9537
+ export { Account, AccountAddress, AccountAddressBase, AccountAddressEdit, AccountAddressFilter, AccountAddressFilterAttributes, AccountAddressesEndpoint, AccountAssociationData, AccountAssociationResponse, AccountAuthenticationSettings, AccountAuthenticationSettingsBase, AccountAuthenticationSettingsEndpoint, AccountBase, AccountEndpoint, AccountFilter, AccountManagementAuthenticationTokenBody, AccountMember, AccountMemberBase, AccountMemberFilter, AccountMembersEndpoint, AccountMembership, AccountMembershipCreateBody, AccountMembershipOnAccountMember, AccountMembershipSettings, AccountMembershipSettingsBase, AccountMembershipSettingsEndpoint, AccountMembershipsEndpoint, AccountMembershipsFilter, AccountMembershipsInclude, AccountMembershipsIncludeAccounts, AccountMembershipsIncluded, AccountMembershipsIncludedAccounts, AccountMembershipsOnAccountMember, AccountMembershipsResponse, AccountTag, AccountTagBase, AccountTagFilter, AccountTagMeta, AccountTagsEndpoint, AccountTokenBase, AccountUpdateBody, Action, ActionCondition, ActionLimitation, AddProductsItem, Address, AddressBase, AdyenPayment, AlternativePrice, AndCondition, AnonymizeOrder, AnonymizeOrderResponse, AnyValidationOptions, ApplicationKey, ApplicationKeyBase, ApplicationKeyResponse, ApplicationKeysEndpoint, Attribute, Attributes, AttributesMeta, AuthenticateResponseBody, AuthenticationRealmEndpoint, AuthenticationSettings, AuthenticationSettingsBase, AuthenticationSettingsEndpoint, AuthorizeNetPayment, AuthorizePaymentMethod, AvailablePrice, BooleanValidationOptions, BraintreePayment, Brand, BrandBase, BrandEndpoint, BrandFilter, BuildChildProductsJob, BuildRules, BuilderModifier, BuiltInRolePolicy, BulkAddOptions, BulkCustomDiscountOptions, BundleDiscountSchema, BundleGiftSchema, CapturePaymentMethod, CardConnectPayment, Cart, CartAdditionalHeaders, CartCustomDiscount, CartEndpoint, CartInclude, CartIncluded, CartItem, CartItemBase, CartItemObject, CartItemsResponse, CartSettings, CartShippingGroupBase, CartTaxItemObject, Catalog, CatalogBase, CatalogFilter, CatalogReleaseProductFilter, CatalogReleaseProductFilterAttributes, CatalogRuleValidatorRequest, CatalogUpdateBody, CatalogsEndpoint, CatalogsNodesEndpoint, CatalogsProductVariation, CatalogsProductsEndpoint, CatalogsReleasesEndpoint, CatalogsRulesEndpoint, Category, CategoryBase, CategoryEndpoint, CategoryFilter, CheckoutCustomer, CheckoutCustomerObject, Collection, CollectionBase, CollectionEndpoint, CollectionFilter, CommonValidationOptions, Condition, Conditions, Config, ConfigOptions, ConfirmPaymentBody, ConfirmPaymentBodyWithOptions, ConfirmPaymentResponse, CreateCartObject, CreateChildrenSortOrderBody, CreateCustomRelationshipBody, CreateLocationBody, CrudQueryableResource, Currency, CurrencyAmount, CurrencyBase, CurrencyEndpoint, CurrencyPercentage, CustomApi, CustomApiBase, CustomApiField, CustomApiFieldBase, CustomApiRolePoliciesEndpoint, CustomApiRolePolicy, CustomApiRolePolicyBase, CustomApiRolePolicyRequestBody, CustomApisEndpoint, CustomAuthenticatorResponseBody, CustomDiscount, CustomDiscountResponse, CustomFieldValidation, CustomInputs, CustomInputsValidationRules, CustomRelationship, CustomRelationshipBase, CustomRelationshipBaseAttributes, CustomRelationshipEntry, CustomRelationshipsEndpoint, CustomRelationshipsFilter, CustomRelationshipsListResponse, Customer, CustomerAddress, CustomerAddressBase, CustomerAddressEdit, CustomerAddressesEndpoint, CustomerBase, CustomerFilter, CustomerInclude, CustomerToken, CustomersEndpoint, CyberSourcePayment, DataEntriesEndpoint, DataEntryRecord, DeletePromotionCodesBodyItem, DeleteRulePromotionCodes, DuplicateHierarchyBody, DuplicateHierarchyJob, ElasticPath, ElasticPathStripePayment, ErasureRequestRecord, ErasureRequestsEndpoint, Exclude$1 as Exclude, Extensions, Field, FieldBase, FieldType, FieldsEndpoint, File, FileBase, FileEndpoint, FileFilter, FileHref, FixedDiscountSchema, FloatValidationOptions, Flow, FlowBase, FlowEndpoint, FlowFilter, FormattedPrice, Gateway, GatewayBase, GatewaysEndpoint, GeolocationDetails, GrantType, HierarchiesEndpoint, HierarchiesShopperCatalogEndpoint, Hierarchy, HierarchyBase, HierarchyFilter, HttpVerbs, Identifiable, IntegerValidationOptions, Integration, IntegrationBase, IntegrationEndpoint, IntegrationFilter, IntegrationJob, IntegrationLog, IntegrationLogMeta, IntegrationLogsResponse, Inventory, InventoryActionTypes, InventoryBase, InventoryEndpoint, InventoryResourceType, InventoryResponse, InvoicingResult, ItemFixedDiscountSchema, ItemPercentDiscountSchema, ItemTaxObject, ItemTaxObjectResponse, Job, JobBase, JobEndpoint, ListValidationOptions, LocalStorageFactory, Locales, Location, LocationAttributes, LocationBase, LocationCreateQuantity, LocationMeta, LocationQuantities, LocationUpdateQuantity, LocationsEndpoint, LogIntegration, ManualPayment, MatrixObject, MemoryStorageFactory, MerchantRealmMappings, MerchantRealmMappingsEndpoint, MergeCartOptions, MetricsBase, MetricsEndpoint, MetricsFilter, MetricsQuery, MetricsV2Query, Modifier, ModifierResponse, ModifierType, ModifierTypeObj, MultiLocationInventoriesEndpoint, MultiLocationInventoryFilter, MultiLocationInventoryResponse, Node, NodeBase, NodeBaseResponse, NodeFilter, NodeProduct, NodeProductResponse, NodeRelationship, NodeRelationshipBase, NodeRelationshipParent, NodeRelationshipsEndpoint, NodesEndpoint, NodesResponse, NodesShopperCatalogEndpoint, NonAssociatedProductEntry, OidcProfileEndpoint, OnboardingLinkResponse, OneTimePasswordTokenRequestBody, OneTimePasswordTokenRequestEndpoint, Option, OptionResponse, Order, OrderAddressBase, OrderBase, OrderBillingAddress, OrderCountTimeSeries, OrderDiscountTimeSeries, OrderFilter, OrderInclude, OrderIncluded, OrderItem, OrderItemBase, OrderMetricsSummary, OrderResponse, OrderShippingAddress, OrderSort, OrderSortAscend, OrderSortDescend, OrderValueTimeSeries, OrdersEndpoint, PCMVariation, PCMVariationBase, PCMVariationMetaOption, PCMVariationOption, PCMVariationOptionBase, PCMVariationsEndpoint, PartialPcmProductBase, PasswordProfile, PasswordProfileBody, PasswordProfileEndpoint, PasswordProfileListItem, PasswordProfileResponse, PayPalExpressCheckoutPayment, PaymentMethod, PaymentRequestBody, PcmCustomRelationshipEndpoint, PcmFileRelationship, PcmFileRelationshipEndpoint, PcmJob, PcmJobBase, PcmJobError, PcmJobsEndpoint, PcmMainImageRelationship, PcmMainImageRelationshipEndpoint, PcmProduct, PcmProductAttachmentBody, PcmProductAttachmentResponse, PcmProductBase, PcmProductEntry, PcmProductExportColumns, PcmProductFilter, PcmProductInclude, PcmProductRelationships, PcmProductResponse, PcmProductUpdateBody, PcmProductsEndpoint, PcmProductsResponse, PcmTemplateRelationship, PcmTemplateRelationshipEndpoint, PcmVariationsRelationshipResource, PcmVariationsRelationships, PcmVariationsRelationshipsEndpoint, PercentDiscountSchema, PersonalDataEndpoint, PersonalDataRecord, Presentation, Price, PriceBook, PriceBookBase, PriceBookFilter, PriceBookPrice, PriceBookPriceBase, PriceBookPriceModifier, PriceBookPriceModifierBase, PriceBookPriceModifierEndpoint, PriceBookPricesCreateBody, PriceBookPricesEndpoint, PriceBookPricesUpdateBody, PriceBooksEndpoint, PriceBooksUpdateBody, PriceTier, PricesFilter, Product, ProductAssociationResponse, ProductBase, ProductComponentOption, ProductComponents, ProductFileRelationshipResource, ProductFilter, ProductResponse, ProductTemplateRelationshipResource, ProductsEndpoint, Profile, ProfileBase, ProfileCreateUpdateBody, ProfileListItem, ProfileResponse, ProfileResponseBody, Promotion, PromotionAttribute, PromotionAttributeValues, PromotionBase, PromotionCode, PromotionCodesJob, PromotionFilter, PromotionJob, PromotionMeta, PromotionSettings, PromotionsEndpoint, PurchasePaymentMethod, QueryableResource, Realm, RealmBase, RealmCreateBody, RealmUpdateBody, RefundPaymentMethod, Relationship, RelationshipToMany, RelationshipToOne, ReleaseBase, ReleaseBodyBase, ReleaseIndexingCompleteData, ReleaseIndexingStatus, ReleaseResponse, RequestFactory, Requirements, Resource, ResourceIncluded, ResourceList, ResourcePage, Rule, RuleBase, RuleFilter, RuleFilterAttributes, RuleMeta, RulePromotion, RulePromotionBase, RulePromotionCode, RulePromotionCodesJob, RulePromotionFilter, RulePromotionJob, RulePromotionMeta, RulePromotionsEndpoint, RuleUpdateBody, RuleValidationCriteria, RuleValidationMatchType, Settings, SettingsEndpoint, ShippingGroupBase, ShippingGroupResponse, ShippingIncluded, ShopperCatalogEndpoint, ShopperCatalogProductsEndpoint, ShopperCatalogReleaseBase, ShopperCatalogResource, ShopperCatalogResourceList, ShopperCatalogResourcePage, SimpleResourcePageResponse, StockAttributes, StockCreate, StockLocationsMap, StockResponse, StockUpdate, StorageFactory, StringValidationOptions, StripeConnectPayment, StripeIntentsPayment, StripePayment, StripePaymentBase, StripePaymentOptionBase, Subscription, SubscriptionBase, SubscriptionCreate, SubscriptionDunningRules, SubscriptionDunningRulesBase, SubscriptionDunningRulesCreate, SubscriptionDunningRulesEndpoint, SubscriptionDunningRulesUpdate, SubscriptionFilter, SubscriptionInvoice, SubscriptionInvoiceBase, SubscriptionInvoiceFilter, SubscriptionInvoicePayment, SubscriptionInvoicePaymentBase, SubscriptionInvoicesEndpoint, SubscriptionJob, SubscriptionJobBase, SubscriptionJobCreate, SubscriptionJobsEndpoint, SubscriptionOffering, SubscriptionOfferingAttachPlanBody, SubscriptionOfferingAttachProductBody, SubscriptionOfferingAttachProrationPolicyBody, SubscriptionOfferingBase, SubscriptionOfferingBuildBody, SubscriptionOfferingBuildProduct, SubscriptionOfferingCreate, SubscriptionOfferingFilter, SubscriptionOfferingPlan, SubscriptionOfferingProduct, SubscriptionOfferingRelationships, SubscriptionOfferingUpdate, SubscriptionOfferingsEndpoint, SubscriptionPlan, SubscriptionPlanBase, SubscriptionPlanCreate, SubscriptionPlanUpdate, SubscriptionPlansEndpoint, SubscriptionProduct, SubscriptionProductBase, SubscriptionProductCreate, SubscriptionProductUpdate, SubscriptionProductsEndpoint, SubscriptionProrationPoliciesEndpoint, SubscriptionProrationPolicy, SubscriptionProrationPolicyBase, SubscriptionProrationPolicyCreate, SubscriptionProrationPolicyUpdate, SubscriptionSchedule, SubscriptionScheduleBase, SubscriptionScheduleCreate, SubscriptionScheduleUpdate, SubscriptionSchedulesEndpoint, SubscriptionSettings, SubscriptionSubscriber, SubscriptionSubscriberBase, SubscriptionSubscriberCreate, SubscriptionSubscriberUpdate, SubscriptionSubscribersEndpoint, SubscriptionUpdate, SubscriptionsEndpoint, SubscriptionsInclude, SubscriptionsIncluded, SubscriptionsStateAction, Subset, TargetCondition, Timestamps, Transaction, TransactionBase, TransactionEndpoint, TransactionsResponse, TtlSettings, UpdateCustomRelationshipBody, UpdateLocationBody, UpdateNodeBody, UpdateVariationBody, UpdateVariationOptionBody, UserAuthenticationInfo, UserAuthenticationInfoBody, UserAuthenticationInfoEndpoint, UserAuthenticationInfoFilter, UserAuthenticationInfoResponse, UserAuthenticationPasswordProfile, UserAuthenticationPasswordProfileBody, UserAuthenticationPasswordProfileEndpoint, UserAuthenticationPasswordProfileResponse, UserAuthenticationPasswordProfileUpdateBody, ValidateRulesResponse, ValidatedRule, Validation, ValidationOptionsMap, Variation, VariationBase, VariationsBuilderModifier, VariationsEndpoint, VariationsModifier, VariationsModifierResponse, VariationsModifierType, VariationsModifierTypeObj, XforAmountSchema, XforYSchema, createJob, elasticpath, gateway };
package/dist/index.esm.js CHANGED
@@ -519,7 +519,7 @@ if (!globalThis.fetch) {
519
519
  globalThis.Response = Response;
520
520
  }
521
521
 
522
- var version = "33.5.0";
522
+ var version = "33.7.0";
523
523
 
524
524
  var LocalStorageFactory = /*#__PURE__*/function () {
525
525
  function LocalStorageFactory() {
@@ -2027,11 +2027,19 @@ var PCMEndpoint = /*#__PURE__*/function (_CRUDExtend) {
2027
2027
  }
2028
2028
  }, {
2029
2029
  key: "ExportProducts",
2030
- value: function ExportProducts(filter, useTemplateSlugs) {
2030
+ value: function ExportProducts(filter, useTemplateSlugs, columns) {
2031
+ var body = columns ? {
2032
+ data: {
2033
+ type: 'product',
2034
+ attributes: {
2035
+ columns: columns
2036
+ }
2037
+ }
2038
+ } : undefined;
2031
2039
  return this.request.send(buildURL("".concat(this.endpoint, "/export"), {
2032
2040
  filter: filter,
2033
2041
  useTemplateSlugs: useTemplateSlugs
2034
- }), 'POST');
2042
+ }), 'POST', body);
2035
2043
  }
2036
2044
  }]);
2037
2045
  return PCMEndpoint;
@@ -5469,6 +5477,17 @@ var Rules = /*#__PURE__*/function (_CRUDExtend4) {
5469
5477
  var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
5470
5478
  return this.request.send("catalogs/".concat(this.endpoint, "/").concat(catalogRuleId), "DELETE", token);
5471
5479
  }
5480
+ }, {
5481
+ key: "Validate",
5482
+ value: function Validate(body) {
5483
+ var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
5484
+ var limit = this.limit,
5485
+ offset = this.offset;
5486
+ return this.request.send(buildURL("catalogs/".concat(this.endpoint, "/validate"), {
5487
+ limit: limit,
5488
+ offset: offset
5489
+ }), 'POST', body, token);
5490
+ }
5472
5491
  }]);
5473
5492
  return Rules;
5474
5493
  }(CRUDExtend);
package/dist/index.js CHANGED
@@ -1085,7 +1085,7 @@
1085
1085
  globalThis.Response = browserPonyfill.exports.Response;
1086
1086
  }
1087
1087
 
1088
- var version = "33.5.0";
1088
+ var version = "33.7.0";
1089
1089
 
1090
1090
  var LocalStorageFactory = /*#__PURE__*/function () {
1091
1091
  function LocalStorageFactory() {
@@ -3195,11 +3195,19 @@
3195
3195
  }
3196
3196
  }, {
3197
3197
  key: "ExportProducts",
3198
- value: function ExportProducts(filter, useTemplateSlugs) {
3198
+ value: function ExportProducts(filter, useTemplateSlugs, columns) {
3199
+ var body = columns ? {
3200
+ data: {
3201
+ type: 'product',
3202
+ attributes: {
3203
+ columns: columns
3204
+ }
3205
+ }
3206
+ } : undefined;
3199
3207
  return this.request.send(buildURL("".concat(this.endpoint, "/export"), {
3200
3208
  filter: filter,
3201
3209
  useTemplateSlugs: useTemplateSlugs
3202
- }), 'POST');
3210
+ }), 'POST', body);
3203
3211
  }
3204
3212
  }]);
3205
3213
  return PCMEndpoint;
@@ -6641,6 +6649,17 @@
6641
6649
  var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
6642
6650
  return this.request.send("catalogs/".concat(this.endpoint, "/").concat(catalogRuleId), "DELETE", token);
6643
6651
  }
6652
+ }, {
6653
+ key: "Validate",
6654
+ value: function Validate(body) {
6655
+ var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
6656
+ var limit = this.limit,
6657
+ offset = this.offset;
6658
+ return this.request.send(buildURL("catalogs/".concat(this.endpoint, "/validate"), {
6659
+ limit: limit,
6660
+ offset: offset
6661
+ }), 'POST', body, token);
6662
+ }
6644
6663
  }]);
6645
6664
  return Rules;
6646
6665
  }(CRUDExtend);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elasticpath/js-sdk",
3
3
  "description": "SDK for the Elastic Path eCommerce API",
4
- "version": "33.5.0",
4
+ "version": "33.7.0",
5
5
  "homepage": "https://github.com/elasticpath/js-sdk",
6
6
  "author": "Elastic Path (https://elasticpath.com/)",
7
7
  "files": [