@elasticpath/js-sdk 34.0.0 → 34.0.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/dist/index.cjs.js +3 -22
- package/dist/index.d.ts +3 -126
- package/dist/index.esm.js +3 -22
- package/dist/index.js +3 -22
- package/package.json +1 -1
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 = "34.0.
|
|
533
|
+
var version = "34.0.1";
|
|
534
534
|
|
|
535
535
|
var LocalStorageFactory = /*#__PURE__*/function () {
|
|
536
536
|
function LocalStorageFactory() {
|
|
@@ -2038,19 +2038,11 @@ var PCMEndpoint = /*#__PURE__*/function (_CRUDExtend) {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
}, {
|
|
2040
2040
|
key: "ExportProducts",
|
|
2041
|
-
value: function ExportProducts(filter, useTemplateSlugs
|
|
2042
|
-
var body = columns ? {
|
|
2043
|
-
data: {
|
|
2044
|
-
type: 'product',
|
|
2045
|
-
attributes: {
|
|
2046
|
-
columns: columns
|
|
2047
|
-
}
|
|
2048
|
-
}
|
|
2049
|
-
} : undefined;
|
|
2041
|
+
value: function ExportProducts(filter, useTemplateSlugs) {
|
|
2050
2042
|
return this.request.send(buildURL("".concat(this.endpoint, "/export"), {
|
|
2051
2043
|
filter: filter,
|
|
2052
2044
|
useTemplateSlugs: useTemplateSlugs
|
|
2053
|
-
}), 'POST'
|
|
2045
|
+
}), 'POST');
|
|
2054
2046
|
}
|
|
2055
2047
|
}]);
|
|
2056
2048
|
return PCMEndpoint;
|
|
@@ -5496,17 +5488,6 @@ var Rules = /*#__PURE__*/function (_CRUDExtend4) {
|
|
|
5496
5488
|
var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
5497
5489
|
return this.request.send("catalogs/".concat(this.endpoint, "/").concat(catalogRuleId), "DELETE", token);
|
|
5498
5490
|
}
|
|
5499
|
-
}, {
|
|
5500
|
-
key: "Validate",
|
|
5501
|
-
value: function Validate(body) {
|
|
5502
|
-
var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
5503
|
-
var limit = this.limit,
|
|
5504
|
-
offset = this.offset;
|
|
5505
|
-
return this.request.send(buildURL("catalogs/".concat(this.endpoint, "/validate"), {
|
|
5506
|
-
limit: limit,
|
|
5507
|
-
offset: offset
|
|
5508
|
-
}), 'POST', body, token);
|
|
5509
|
-
}
|
|
5510
5491
|
}]);
|
|
5511
5492
|
return Rules;
|
|
5512
5493
|
}(CRUDExtend);
|
package/dist/index.d.ts
CHANGED
|
@@ -1226,8 +1226,6 @@ interface PcmProductBase extends PcmProductRelationships {
|
|
|
1226
1226
|
components?: ProductComponents
|
|
1227
1227
|
custom_inputs?: CustomInputs
|
|
1228
1228
|
tags?: string[]
|
|
1229
|
-
admin_attributes?: { [key: string]: string }
|
|
1230
|
-
shopper_attributes?: { [key: string]: string }
|
|
1231
1229
|
}
|
|
1232
1230
|
}
|
|
1233
1231
|
|
|
@@ -1273,8 +1271,6 @@ interface ProductComponentOption {
|
|
|
1273
1271
|
id: string
|
|
1274
1272
|
quantity: number
|
|
1275
1273
|
type: string
|
|
1276
|
-
min?: number | null
|
|
1277
|
-
max?: number | null
|
|
1278
1274
|
sort_order?: number | null
|
|
1279
1275
|
default?: boolean
|
|
1280
1276
|
meta: {
|
|
@@ -1444,21 +1440,9 @@ interface PcmProductsEndpoint
|
|
|
1444
1440
|
/**
|
|
1445
1441
|
* Export products
|
|
1446
1442
|
* @param filter - products filters
|
|
1447
|
-
* @param useTemplateSlugs - use template slugs instead of template IDs
|
|
1448
|
-
* @param columns - select which columns to include in the exported CSV. Supports
|
|
1449
|
-
* individual keys (e.g. `admin_attributes.cost_of_goods`) and wildcards
|
|
1450
|
-
* (e.g. `admin_attributes.*`).
|
|
1451
1443
|
* @constructor
|
|
1452
1444
|
*/
|
|
1453
|
-
ExportProducts(
|
|
1454
|
-
filter?: PcmProductFilter,
|
|
1455
|
-
useTemplateSlugs?: boolean,
|
|
1456
|
-
columns?: PcmProductExportColumns
|
|
1457
|
-
): Promise<Resource<PcmJob>>
|
|
1458
|
-
}
|
|
1459
|
-
|
|
1460
|
-
interface PcmProductExportColumns {
|
|
1461
|
-
include: string[]
|
|
1445
|
+
ExportProducts(filter?: PcmProductFilter, useTemplateSlugs?: boolean): Promise<Resource<PcmJob>>
|
|
1462
1446
|
}
|
|
1463
1447
|
|
|
1464
1448
|
/**
|
|
@@ -5383,44 +5367,6 @@ interface CatalogsProductVariation
|
|
|
5383
5367
|
options: Omit<Option, 'modifiers'>[]
|
|
5384
5368
|
}
|
|
5385
5369
|
|
|
5386
|
-
interface PriceTier {
|
|
5387
|
-
minimum_quantity: number
|
|
5388
|
-
amount: {
|
|
5389
|
-
[currency: string]: {
|
|
5390
|
-
amount: number
|
|
5391
|
-
includes_tax: boolean
|
|
5392
|
-
}
|
|
5393
|
-
}
|
|
5394
|
-
}
|
|
5395
|
-
|
|
5396
|
-
interface AvailablePrice {
|
|
5397
|
-
pricebook_id: string
|
|
5398
|
-
shopper_attributes?: { [key: string]: string }
|
|
5399
|
-
sale_id?: string
|
|
5400
|
-
sale_expires?: string
|
|
5401
|
-
price?: {
|
|
5402
|
-
[currency: string]: {
|
|
5403
|
-
amount: number
|
|
5404
|
-
includes_tax: boolean
|
|
5405
|
-
}
|
|
5406
|
-
}
|
|
5407
|
-
tiers?: { [tier: string]: PriceTier }
|
|
5408
|
-
}
|
|
5409
|
-
|
|
5410
|
-
interface AlternativePrice extends AvailablePrice {
|
|
5411
|
-
name: string
|
|
5412
|
-
display_price?: {
|
|
5413
|
-
without_tax?: FormattedPrice
|
|
5414
|
-
with_tax?: FormattedPrice
|
|
5415
|
-
}
|
|
5416
|
-
original_price?: {
|
|
5417
|
-
[currency: string]: {
|
|
5418
|
-
amount: number
|
|
5419
|
-
includes_tax: boolean
|
|
5420
|
-
}
|
|
5421
|
-
}
|
|
5422
|
-
}
|
|
5423
|
-
|
|
5424
5370
|
interface ProductResponse extends Identifiable {
|
|
5425
5371
|
type: 'product'
|
|
5426
5372
|
attributes: {
|
|
@@ -5450,9 +5396,6 @@ interface ProductResponse extends Identifiable {
|
|
|
5450
5396
|
weight: string
|
|
5451
5397
|
manufacturer_part_num?: string
|
|
5452
5398
|
extensions?: Extensions
|
|
5453
|
-
available_prices?: AvailablePrice[]
|
|
5454
|
-
alternative_prices?: { [name: string]: AlternativePrice }
|
|
5455
|
-
available_pricebook_ids?: string[]
|
|
5456
5399
|
}
|
|
5457
5400
|
meta: {
|
|
5458
5401
|
catalog_id?: string
|
|
@@ -5491,7 +5434,6 @@ interface ProductResponse extends Identifiable {
|
|
|
5491
5434
|
}
|
|
5492
5435
|
}
|
|
5493
5436
|
pricebook_id: string
|
|
5494
|
-
alternative_prices?: { [name: string]: AlternativePrice }
|
|
5495
5437
|
}
|
|
5496
5438
|
}
|
|
5497
5439
|
}
|
|
@@ -5884,14 +5826,6 @@ interface ReleaseBodyBase {
|
|
|
5884
5826
|
export_full_delta?: boolean
|
|
5885
5827
|
}
|
|
5886
5828
|
|
|
5887
|
-
type ReleaseIndexingStatus = 'succeeded' | 'failed'
|
|
5888
|
-
|
|
5889
|
-
interface ReleaseIndexingCompleteData {
|
|
5890
|
-
data: {
|
|
5891
|
-
status: ReleaseIndexingStatus
|
|
5892
|
-
}
|
|
5893
|
-
}
|
|
5894
|
-
|
|
5895
5829
|
interface CatalogsReleasesEndpoint {
|
|
5896
5830
|
endpoint: 'releases'
|
|
5897
5831
|
|
|
@@ -5954,7 +5888,6 @@ interface RuleBase {
|
|
|
5954
5888
|
customer_ids?: string[]
|
|
5955
5889
|
channels?: string[]
|
|
5956
5890
|
tags?: string[]
|
|
5957
|
-
pricebook_ids?: string[]
|
|
5958
5891
|
schedules?: {valid_from: string, valid_to: string}[]
|
|
5959
5892
|
}
|
|
5960
5893
|
}
|
|
@@ -5967,19 +5900,8 @@ interface Rule extends Identifiable, RuleBase {
|
|
|
5967
5900
|
|
|
5968
5901
|
// Do Not have any relationships yet //TODO
|
|
5969
5902
|
|
|
5970
|
-
interface RuleFilterAttributes {
|
|
5971
|
-
id?: string
|
|
5972
|
-
catalog_id?: string
|
|
5973
|
-
account_ids?: string
|
|
5974
|
-
customer_ids?: string
|
|
5975
|
-
channels?: string
|
|
5976
|
-
tags?: string
|
|
5977
|
-
pricebook_ids?: string
|
|
5978
|
-
}
|
|
5979
|
-
|
|
5980
5903
|
interface RuleFilter {
|
|
5981
|
-
|
|
5982
|
-
in?: Pick<RuleFilterAttributes, 'pricebook_ids'>
|
|
5904
|
+
// TODO
|
|
5983
5905
|
}
|
|
5984
5906
|
|
|
5985
5907
|
type RuleSort = // TODO
|
|
@@ -5992,55 +5914,10 @@ interface RuleUpdateBody extends RuleBase {
|
|
|
5992
5914
|
id: string
|
|
5993
5915
|
}
|
|
5994
5916
|
|
|
5995
|
-
type RuleValidationMatchType =
|
|
5996
|
-
| 'filter'
|
|
5997
|
-
| 'similarity'
|
|
5998
|
-
| 'conflict'
|
|
5999
|
-
| 'resolve_for_shopper'
|
|
6000
|
-
|
|
6001
|
-
interface RuleValidationCriteria {
|
|
6002
|
-
channels?: string[]
|
|
6003
|
-
tags?: string[]
|
|
6004
|
-
account_ids?: string[]
|
|
6005
|
-
account_tag_ids?: string[]
|
|
6006
|
-
customer_ids?: string[]
|
|
6007
|
-
}
|
|
6008
|
-
|
|
6009
|
-
interface CatalogRuleValidatorRequest {
|
|
6010
|
-
data: {
|
|
6011
|
-
type: 'catalog_rule_validator'
|
|
6012
|
-
match_type: RuleValidationMatchType
|
|
6013
|
-
catalog_id?: string
|
|
6014
|
-
pricebook_ids?: string[]
|
|
6015
|
-
schedules?: { valid_from: string; valid_to: string }[]
|
|
6016
|
-
attributes?: RuleValidationCriteria
|
|
6017
|
-
}
|
|
6018
|
-
}
|
|
6019
|
-
|
|
6020
|
-
interface RuleMeta {
|
|
6021
|
-
similarity_score?: number
|
|
6022
|
-
active?: boolean
|
|
6023
|
-
resolved_for_shopper?: boolean
|
|
6024
|
-
release_id?: string
|
|
6025
|
-
}
|
|
6026
|
-
|
|
6027
|
-
interface ValidatedRule extends Rule {
|
|
6028
|
-
meta?: RuleMeta
|
|
6029
|
-
}
|
|
6030
|
-
|
|
6031
|
-
type ValidateRulesResponse = ResourcePage<ValidatedRule>
|
|
6032
|
-
|
|
6033
5917
|
interface CatalogsRulesEndpoint
|
|
6034
5918
|
extends CrudQueryableResource<Rule, RuleBase, RuleUpdateBody, RuleFilter, RuleSort, RuleInclude> {
|
|
6035
5919
|
endpoint: 'rules'
|
|
6036
5920
|
id: string
|
|
6037
|
-
|
|
6038
|
-
/**
|
|
6039
|
-
* Validate Catalog Rules
|
|
6040
|
-
* @param body - validation request describing the match_type and rule criteria.
|
|
6041
|
-
* @param token - optional customer token.
|
|
6042
|
-
*/
|
|
6043
|
-
Validate(body: CatalogRuleValidatorRequest, token?: string): Promise<ValidateRulesResponse>
|
|
6044
5921
|
}
|
|
6045
5922
|
|
|
6046
5923
|
/**
|
|
@@ -9531,4 +9408,4 @@ declare namespace elasticpath {
|
|
|
9531
9408
|
}
|
|
9532
9409
|
}
|
|
9533
9410
|
|
|
9534
|
-
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, 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, CustomApiRolePoliciesIncluded, CustomApiRolePoliciesResponse, 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, IncludedRole, 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, StandardRole, StandardRoleType, StandardShopperRole, StandardUserRole, 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 };
|
|
9411
|
+
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, 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, CustomApiRolePoliciesIncluded, CustomApiRolePoliciesResponse, 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, IncludedRole, 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, StandardRole, StandardRoleType, StandardShopperRole, StandardUserRole, 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 };
|
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 = "34.0.
|
|
522
|
+
var version = "34.0.1";
|
|
523
523
|
|
|
524
524
|
var LocalStorageFactory = /*#__PURE__*/function () {
|
|
525
525
|
function LocalStorageFactory() {
|
|
@@ -2027,19 +2027,11 @@ var PCMEndpoint = /*#__PURE__*/function (_CRUDExtend) {
|
|
|
2027
2027
|
}
|
|
2028
2028
|
}, {
|
|
2029
2029
|
key: "ExportProducts",
|
|
2030
|
-
value: function ExportProducts(filter, useTemplateSlugs
|
|
2031
|
-
var body = columns ? {
|
|
2032
|
-
data: {
|
|
2033
|
-
type: 'product',
|
|
2034
|
-
attributes: {
|
|
2035
|
-
columns: columns
|
|
2036
|
-
}
|
|
2037
|
-
}
|
|
2038
|
-
} : undefined;
|
|
2030
|
+
value: function ExportProducts(filter, useTemplateSlugs) {
|
|
2039
2031
|
return this.request.send(buildURL("".concat(this.endpoint, "/export"), {
|
|
2040
2032
|
filter: filter,
|
|
2041
2033
|
useTemplateSlugs: useTemplateSlugs
|
|
2042
|
-
}), 'POST'
|
|
2034
|
+
}), 'POST');
|
|
2043
2035
|
}
|
|
2044
2036
|
}]);
|
|
2045
2037
|
return PCMEndpoint;
|
|
@@ -5485,17 +5477,6 @@ var Rules = /*#__PURE__*/function (_CRUDExtend4) {
|
|
|
5485
5477
|
var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
5486
5478
|
return this.request.send("catalogs/".concat(this.endpoint, "/").concat(catalogRuleId), "DELETE", token);
|
|
5487
5479
|
}
|
|
5488
|
-
}, {
|
|
5489
|
-
key: "Validate",
|
|
5490
|
-
value: function Validate(body) {
|
|
5491
|
-
var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
5492
|
-
var limit = this.limit,
|
|
5493
|
-
offset = this.offset;
|
|
5494
|
-
return this.request.send(buildURL("catalogs/".concat(this.endpoint, "/validate"), {
|
|
5495
|
-
limit: limit,
|
|
5496
|
-
offset: offset
|
|
5497
|
-
}), 'POST', body, token);
|
|
5498
|
-
}
|
|
5499
5480
|
}]);
|
|
5500
5481
|
return Rules;
|
|
5501
5482
|
}(CRUDExtend);
|
package/dist/index.js
CHANGED
|
@@ -1085,7 +1085,7 @@
|
|
|
1085
1085
|
globalThis.Response = browserPonyfill.exports.Response;
|
|
1086
1086
|
}
|
|
1087
1087
|
|
|
1088
|
-
var version = "34.0.
|
|
1088
|
+
var version = "34.0.1";
|
|
1089
1089
|
|
|
1090
1090
|
var LocalStorageFactory = /*#__PURE__*/function () {
|
|
1091
1091
|
function LocalStorageFactory() {
|
|
@@ -3195,19 +3195,11 @@
|
|
|
3195
3195
|
}
|
|
3196
3196
|
}, {
|
|
3197
3197
|
key: "ExportProducts",
|
|
3198
|
-
value: function ExportProducts(filter, useTemplateSlugs
|
|
3199
|
-
var body = columns ? {
|
|
3200
|
-
data: {
|
|
3201
|
-
type: 'product',
|
|
3202
|
-
attributes: {
|
|
3203
|
-
columns: columns
|
|
3204
|
-
}
|
|
3205
|
-
}
|
|
3206
|
-
} : undefined;
|
|
3198
|
+
value: function ExportProducts(filter, useTemplateSlugs) {
|
|
3207
3199
|
return this.request.send(buildURL("".concat(this.endpoint, "/export"), {
|
|
3208
3200
|
filter: filter,
|
|
3209
3201
|
useTemplateSlugs: useTemplateSlugs
|
|
3210
|
-
}), 'POST'
|
|
3202
|
+
}), 'POST');
|
|
3211
3203
|
}
|
|
3212
3204
|
}]);
|
|
3213
3205
|
return PCMEndpoint;
|
|
@@ -6657,17 +6649,6 @@
|
|
|
6657
6649
|
var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
6658
6650
|
return this.request.send("catalogs/".concat(this.endpoint, "/").concat(catalogRuleId), "DELETE", token);
|
|
6659
6651
|
}
|
|
6660
|
-
}, {
|
|
6661
|
-
key: "Validate",
|
|
6662
|
-
value: function Validate(body) {
|
|
6663
|
-
var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
6664
|
-
var limit = this.limit,
|
|
6665
|
-
offset = this.offset;
|
|
6666
|
-
return this.request.send(buildURL("catalogs/".concat(this.endpoint, "/validate"), {
|
|
6667
|
-
limit: limit,
|
|
6668
|
-
offset: offset
|
|
6669
|
-
}), 'POST', body, token);
|
|
6670
|
-
}
|
|
6671
6652
|
}]);
|
|
6672
6653
|
return Rules;
|
|
6673
6654
|
}(CRUDExtend);
|
package/package.json
CHANGED