@elasticpath/js-sdk 33.7.1 → 34.0.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 +23 -8
- package/dist/index.d.ts +34 -36
- package/dist/index.esm.js +23 -8
- package/dist/index.js +23 -8
- 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 = "
|
|
533
|
+
var version = "34.0.0";
|
|
534
534
|
|
|
535
535
|
var LocalStorageFactory = /*#__PURE__*/function () {
|
|
536
536
|
function LocalStorageFactory() {
|
|
@@ -6091,21 +6091,36 @@ var CustomApiRolePoliciesEndpoint = /*#__PURE__*/function (_CRUDExtend) {
|
|
|
6091
6091
|
}
|
|
6092
6092
|
}, {
|
|
6093
6093
|
key: "GetCustomApiRolePolicies",
|
|
6094
|
-
value: function GetCustomApiRolePolicies(
|
|
6095
|
-
var
|
|
6094
|
+
value: function GetCustomApiRolePolicies() {
|
|
6095
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
6096
|
+
customApiId = _ref.customApiId,
|
|
6097
|
+
include = _ref.include;
|
|
6096
6098
|
var limit = this.limit,
|
|
6097
6099
|
offset = this.offset,
|
|
6098
6100
|
sort = this.sort;
|
|
6099
|
-
return this.request.send(buildURL("".concat(this.endpoint, "/custom-api-role-policies
|
|
6101
|
+
return this.request.send(buildURL("".concat(this.endpoint, "/custom-api-role-policies"), _objectSpread2(_objectSpread2({
|
|
6102
|
+
filter: {
|
|
6103
|
+
eq: {
|
|
6104
|
+
custom_api_id: customApiId
|
|
6105
|
+
}
|
|
6106
|
+
}
|
|
6107
|
+
}, include === 'role' && {
|
|
6108
|
+
include: include
|
|
6109
|
+
}), {}, {
|
|
6100
6110
|
limit: limit,
|
|
6101
6111
|
offset: offset,
|
|
6102
6112
|
sort: sort
|
|
6103
|
-
}), 'GET');
|
|
6113
|
+
})), 'GET');
|
|
6114
|
+
}
|
|
6115
|
+
}, {
|
|
6116
|
+
key: "GetStandardUserRoles",
|
|
6117
|
+
value: function GetStandardUserRoles() {
|
|
6118
|
+
return this.request.send("".concat(this.endpoint, "/standard-user-roles"), 'GET');
|
|
6104
6119
|
}
|
|
6105
6120
|
}, {
|
|
6106
|
-
key: "
|
|
6107
|
-
value: function
|
|
6108
|
-
return this.request.send("".concat(this.endpoint, "/
|
|
6121
|
+
key: "GetStandardShopperRoles",
|
|
6122
|
+
value: function GetStandardShopperRoles() {
|
|
6123
|
+
return this.request.send("".concat(this.endpoint, "/standard-shopper-roles"), 'GET');
|
|
6109
6124
|
}
|
|
6110
6125
|
}, {
|
|
6111
6126
|
key: "DeleteCustomApiRolePolicy",
|
package/dist/index.d.ts
CHANGED
|
@@ -9345,16 +9345,25 @@ interface MultiLocationInventoriesEndpoint {
|
|
|
9345
9345
|
GetMultipleStock(productIds: string[]): Promise<ResourceList<StockResponse>>
|
|
9346
9346
|
}
|
|
9347
9347
|
|
|
9348
|
-
interface
|
|
9348
|
+
interface StandardUserRole {
|
|
9349
9349
|
id: string
|
|
9350
|
-
type: '
|
|
9351
|
-
links: {
|
|
9352
|
-
self: string
|
|
9353
|
-
}
|
|
9350
|
+
type: 'standard_user_role'
|
|
9351
|
+
links: { self: string }
|
|
9354
9352
|
name: string
|
|
9355
|
-
cm_user_assignable: boolean
|
|
9356
9353
|
}
|
|
9357
9354
|
|
|
9355
|
+
interface StandardShopperRole {
|
|
9356
|
+
id: string
|
|
9357
|
+
type: 'standard_shopper_role'
|
|
9358
|
+
links: { self: string }
|
|
9359
|
+
name: string
|
|
9360
|
+
}
|
|
9361
|
+
|
|
9362
|
+
type StandardRole = StandardUserRole | StandardShopperRole
|
|
9363
|
+
type StandardRoleType = StandardRole['type']
|
|
9364
|
+
|
|
9365
|
+
type IncludedRole = Omit<StandardRole, 'links'>
|
|
9366
|
+
|
|
9358
9367
|
interface CustomApiRolePolicyBase {
|
|
9359
9368
|
data: {
|
|
9360
9369
|
type: 'custom_api_role_policy'
|
|
@@ -9374,18 +9383,8 @@ interface CustomApiRolePolicyRequestBody {
|
|
|
9374
9383
|
update: boolean
|
|
9375
9384
|
delete: boolean
|
|
9376
9385
|
relationships: {
|
|
9377
|
-
custom_api: {
|
|
9378
|
-
|
|
9379
|
-
type: 'custom_api'
|
|
9380
|
-
id: string
|
|
9381
|
-
}
|
|
9382
|
-
}
|
|
9383
|
-
role: {
|
|
9384
|
-
data: {
|
|
9385
|
-
type: 'built_in_role'
|
|
9386
|
-
id: string
|
|
9387
|
-
}
|
|
9388
|
-
}
|
|
9386
|
+
custom_api: { data: { type: 'custom_api'; id: string } }
|
|
9387
|
+
role: { data: { type: StandardRoleType; id: string } }
|
|
9389
9388
|
}
|
|
9390
9389
|
}
|
|
9391
9390
|
|
|
@@ -9393,22 +9392,10 @@ interface CustomApiRolePolicy {
|
|
|
9393
9392
|
id: string
|
|
9394
9393
|
type: 'custom_api_role_policy'
|
|
9395
9394
|
relationships: {
|
|
9396
|
-
custom_api: {
|
|
9397
|
-
|
|
9398
|
-
type: 'custom_api'
|
|
9399
|
-
id: string
|
|
9400
|
-
}
|
|
9401
|
-
}
|
|
9402
|
-
role: {
|
|
9403
|
-
data: {
|
|
9404
|
-
type: 'built_in_role'
|
|
9405
|
-
id: string
|
|
9406
|
-
}
|
|
9407
|
-
}
|
|
9408
|
-
}
|
|
9409
|
-
links: {
|
|
9410
|
-
self: string
|
|
9395
|
+
custom_api: { data: { type: 'custom_api'; id: string } }
|
|
9396
|
+
role: { data: { type: StandardRoleType; id: string } }
|
|
9411
9397
|
}
|
|
9398
|
+
links: { self: string }
|
|
9412
9399
|
meta: {
|
|
9413
9400
|
timestamps: {
|
|
9414
9401
|
created_at: string
|
|
@@ -9422,6 +9409,14 @@ interface CustomApiRolePolicy {
|
|
|
9422
9409
|
delete: boolean
|
|
9423
9410
|
}
|
|
9424
9411
|
|
|
9412
|
+
interface CustomApiRolePoliciesIncluded {
|
|
9413
|
+
role: IncludedRole[]
|
|
9414
|
+
}
|
|
9415
|
+
|
|
9416
|
+
interface CustomApiRolePoliciesResponse extends ResourceList<CustomApiRolePolicy> {
|
|
9417
|
+
included?: CustomApiRolePoliciesIncluded
|
|
9418
|
+
}
|
|
9419
|
+
|
|
9425
9420
|
interface CustomApiRolePoliciesEndpoint {
|
|
9426
9421
|
endpoint: 'permissions'
|
|
9427
9422
|
|
|
@@ -9436,9 +9431,12 @@ interface CustomApiRolePoliciesEndpoint {
|
|
|
9436
9431
|
|
|
9437
9432
|
GetCustomApiRolePolicies(args: {
|
|
9438
9433
|
customApiId: string
|
|
9439
|
-
|
|
9434
|
+
include?: 'role'
|
|
9435
|
+
}): Promise<CustomApiRolePoliciesResponse>
|
|
9436
|
+
|
|
9437
|
+
GetStandardUserRoles(): Promise<ResourceList<StandardUserRole>>
|
|
9440
9438
|
|
|
9441
|
-
|
|
9439
|
+
GetStandardShopperRoles(): Promise<ResourceList<StandardShopperRole>>
|
|
9442
9440
|
|
|
9443
9441
|
DeleteCustomApiRolePolicy(policyId: string): Promise<void>
|
|
9444
9442
|
}
|
|
@@ -9533,4 +9531,4 @@ declare namespace elasticpath {
|
|
|
9533
9531
|
}
|
|
9534
9532
|
}
|
|
9535
9533
|
|
|
9536
|
-
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 };
|
|
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 };
|
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 = "
|
|
522
|
+
var version = "34.0.0";
|
|
523
523
|
|
|
524
524
|
var LocalStorageFactory = /*#__PURE__*/function () {
|
|
525
525
|
function LocalStorageFactory() {
|
|
@@ -6080,21 +6080,36 @@ var CustomApiRolePoliciesEndpoint = /*#__PURE__*/function (_CRUDExtend) {
|
|
|
6080
6080
|
}
|
|
6081
6081
|
}, {
|
|
6082
6082
|
key: "GetCustomApiRolePolicies",
|
|
6083
|
-
value: function GetCustomApiRolePolicies(
|
|
6084
|
-
var
|
|
6083
|
+
value: function GetCustomApiRolePolicies() {
|
|
6084
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
6085
|
+
customApiId = _ref.customApiId,
|
|
6086
|
+
include = _ref.include;
|
|
6085
6087
|
var limit = this.limit,
|
|
6086
6088
|
offset = this.offset,
|
|
6087
6089
|
sort = this.sort;
|
|
6088
|
-
return this.request.send(buildURL("".concat(this.endpoint, "/custom-api-role-policies
|
|
6090
|
+
return this.request.send(buildURL("".concat(this.endpoint, "/custom-api-role-policies"), _objectSpread2(_objectSpread2({
|
|
6091
|
+
filter: {
|
|
6092
|
+
eq: {
|
|
6093
|
+
custom_api_id: customApiId
|
|
6094
|
+
}
|
|
6095
|
+
}
|
|
6096
|
+
}, include === 'role' && {
|
|
6097
|
+
include: include
|
|
6098
|
+
}), {}, {
|
|
6089
6099
|
limit: limit,
|
|
6090
6100
|
offset: offset,
|
|
6091
6101
|
sort: sort
|
|
6092
|
-
}), 'GET');
|
|
6102
|
+
})), 'GET');
|
|
6103
|
+
}
|
|
6104
|
+
}, {
|
|
6105
|
+
key: "GetStandardUserRoles",
|
|
6106
|
+
value: function GetStandardUserRoles() {
|
|
6107
|
+
return this.request.send("".concat(this.endpoint, "/standard-user-roles"), 'GET');
|
|
6093
6108
|
}
|
|
6094
6109
|
}, {
|
|
6095
|
-
key: "
|
|
6096
|
-
value: function
|
|
6097
|
-
return this.request.send("".concat(this.endpoint, "/
|
|
6110
|
+
key: "GetStandardShopperRoles",
|
|
6111
|
+
value: function GetStandardShopperRoles() {
|
|
6112
|
+
return this.request.send("".concat(this.endpoint, "/standard-shopper-roles"), 'GET');
|
|
6098
6113
|
}
|
|
6099
6114
|
}, {
|
|
6100
6115
|
key: "DeleteCustomApiRolePolicy",
|
package/dist/index.js
CHANGED
|
@@ -1085,7 +1085,7 @@
|
|
|
1085
1085
|
globalThis.Response = browserPonyfill.exports.Response;
|
|
1086
1086
|
}
|
|
1087
1087
|
|
|
1088
|
-
var version = "
|
|
1088
|
+
var version = "34.0.0";
|
|
1089
1089
|
|
|
1090
1090
|
var LocalStorageFactory = /*#__PURE__*/function () {
|
|
1091
1091
|
function LocalStorageFactory() {
|
|
@@ -7252,21 +7252,36 @@
|
|
|
7252
7252
|
}
|
|
7253
7253
|
}, {
|
|
7254
7254
|
key: "GetCustomApiRolePolicies",
|
|
7255
|
-
value: function GetCustomApiRolePolicies(
|
|
7256
|
-
var
|
|
7255
|
+
value: function GetCustomApiRolePolicies() {
|
|
7256
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
7257
|
+
customApiId = _ref.customApiId,
|
|
7258
|
+
include = _ref.include;
|
|
7257
7259
|
var limit = this.limit,
|
|
7258
7260
|
offset = this.offset,
|
|
7259
7261
|
sort = this.sort;
|
|
7260
|
-
return this.request.send(buildURL("".concat(this.endpoint, "/custom-api-role-policies
|
|
7262
|
+
return this.request.send(buildURL("".concat(this.endpoint, "/custom-api-role-policies"), _objectSpread2(_objectSpread2({
|
|
7263
|
+
filter: {
|
|
7264
|
+
eq: {
|
|
7265
|
+
custom_api_id: customApiId
|
|
7266
|
+
}
|
|
7267
|
+
}
|
|
7268
|
+
}, include === 'role' && {
|
|
7269
|
+
include: include
|
|
7270
|
+
}), {}, {
|
|
7261
7271
|
limit: limit,
|
|
7262
7272
|
offset: offset,
|
|
7263
7273
|
sort: sort
|
|
7264
|
-
}), 'GET');
|
|
7274
|
+
})), 'GET');
|
|
7275
|
+
}
|
|
7276
|
+
}, {
|
|
7277
|
+
key: "GetStandardUserRoles",
|
|
7278
|
+
value: function GetStandardUserRoles() {
|
|
7279
|
+
return this.request.send("".concat(this.endpoint, "/standard-user-roles"), 'GET');
|
|
7265
7280
|
}
|
|
7266
7281
|
}, {
|
|
7267
|
-
key: "
|
|
7268
|
-
value: function
|
|
7269
|
-
return this.request.send("".concat(this.endpoint, "/
|
|
7282
|
+
key: "GetStandardShopperRoles",
|
|
7283
|
+
value: function GetStandardShopperRoles() {
|
|
7284
|
+
return this.request.send("".concat(this.endpoint, "/standard-shopper-roles"), 'GET');
|
|
7270
7285
|
}
|
|
7271
7286
|
}, {
|
|
7272
7287
|
key: "DeleteCustomApiRolePolicy",
|
package/package.json
CHANGED