@elasticpath/js-sdk 22.0.0 → 24.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 CHANGED
@@ -530,7 +530,7 @@ if (!globalThis.fetch) {
530
530
  globalThis.Response = fetch$1.Response;
531
531
  }
532
532
 
533
- var version = "22.0.0";
533
+ var version = "24.0.0";
534
534
 
535
535
  var LocalStorageFactory = /*#__PURE__*/function () {
536
536
  function LocalStorageFactory() {
@@ -5636,6 +5636,53 @@ var CustomApisEndpoint = /*#__PURE__*/function (_CRUDExtend) {
5636
5636
  return CustomApisEndpoint;
5637
5637
  }(CRUDExtend);
5638
5638
 
5639
+ var CustomApiRolePoliciesEndpoint = /*#__PURE__*/function (_CRUDExtend) {
5640
+ _inherits(CustomApiRolePoliciesEndpoint, _CRUDExtend);
5641
+ var _super = _createSuper(CustomApiRolePoliciesEndpoint);
5642
+ function CustomApiRolePoliciesEndpoint(endpoint) {
5643
+ var _this;
5644
+ _classCallCheck(this, CustomApiRolePoliciesEndpoint);
5645
+ _this = _super.call(this, endpoint);
5646
+ _this.endpoint = 'permissions';
5647
+ return _this;
5648
+ }
5649
+ _createClass(CustomApiRolePoliciesEndpoint, [{
5650
+ key: "CreateCustomApiRolePolicy",
5651
+ value: function CreateCustomApiRolePolicy(body) {
5652
+ return this.request.send("".concat(this.endpoint, "/custom-api-role-policies"), 'POST', body);
5653
+ }
5654
+ }, {
5655
+ key: "UpdateCustomApiRolePolicy",
5656
+ value: function UpdateCustomApiRolePolicy(policyId, body) {
5657
+ return this.request.send("".concat(this.endpoint, "/custom-api-role-policies/").concat(policyId), 'PUT', body);
5658
+ }
5659
+ }, {
5660
+ key: "GetCustomApiRolePolicies",
5661
+ value: function GetCustomApiRolePolicies(_ref) {
5662
+ var customApiId = _ref.customApiId;
5663
+ var limit = this.limit,
5664
+ offset = this.offset,
5665
+ sort = this.sort;
5666
+ return this.request.send(buildURL("".concat(this.endpoint, "/custom-api-role-policies?filter=eq(custom_api_id,").concat(customApiId, ")"), {
5667
+ limit: limit,
5668
+ offset: offset,
5669
+ sort: sort
5670
+ }), 'GET');
5671
+ }
5672
+ }, {
5673
+ key: "GetBuiltInRoles",
5674
+ value: function GetBuiltInRoles() {
5675
+ return this.request.send("".concat(this.endpoint, "/built-in-roles"), 'GET');
5676
+ }
5677
+ }, {
5678
+ key: "DeleteCustomApiRolePolicy",
5679
+ value: function DeleteCustomApiRolePolicy(policyId) {
5680
+ return this.request.send("".concat(this.endpoint, "/custom-api-role-policies/").concat(policyId), 'DELETE');
5681
+ }
5682
+ }]);
5683
+ return CustomApiRolePoliciesEndpoint;
5684
+ }(CRUDExtend);
5685
+
5639
5686
  var ElasticPath = /*#__PURE__*/function () {
5640
5687
  function ElasticPath(config) {
5641
5688
  _classCallCheck(this, ElasticPath);
@@ -5702,6 +5749,7 @@ var ElasticPath = /*#__PURE__*/function () {
5702
5749
  this.SubscriptionJobs = new SubscriptionJobsEndpoint(config);
5703
5750
  this.SubscriptionSchedules = new SubscriptionSchedulesEndpoint(config);
5704
5751
  this.CustomApis = new CustomApisEndpoint(config);
5752
+ this.CustomApiRolePolicies = new CustomApiRolePoliciesEndpoint(config);
5705
5753
  this.SubscriptionDunningRules = new SubscriptionDunningRulesEndpoint(config);
5706
5754
  this.SubscriptionProrationPolicies = new SubscriptionProrationPoliciesEndpoint(config);
5707
5755
  this.SubscriptionInvoices = new SubscriptionInvoicesEndpoint(config);
package/dist/index.d.ts CHANGED
@@ -8034,6 +8034,7 @@ interface RulePromotionBase {
8034
8034
  end: string
8035
8035
  stackable: boolean
8036
8036
  priority?: number | null | undefined
8037
+ override_stacking?: boolean
8037
8038
  rule_set: {
8038
8039
  currencies: string[]
8039
8040
  catalog_ids: string[]
@@ -8810,6 +8811,104 @@ interface MultiLocationInventoriesEndpoint {
8810
8811
  Filter(filter: MultiLocationInventoryFilter): MultiLocationInventoriesEndpoint
8811
8812
  }
8812
8813
 
8814
+ interface BuiltInRolePolicy {
8815
+ id: string
8816
+ type: 'built_in_role'
8817
+ links: {
8818
+ self: string
8819
+ }
8820
+ name: string
8821
+ cm_user_assignable: boolean
8822
+ }
8823
+
8824
+ interface CustomApiRolePolicyBase {
8825
+ data: {
8826
+ type: 'custom_api_role_policy'
8827
+ create: boolean
8828
+ list: boolean
8829
+ read: boolean
8830
+ update: boolean
8831
+ delete: boolean
8832
+ }
8833
+ }
8834
+
8835
+ interface CustomApiRolePolicyRequestBody {
8836
+ type: 'custom_api_role_policy'
8837
+ create: boolean
8838
+ list: boolean
8839
+ read: boolean
8840
+ update: boolean
8841
+ delete: boolean
8842
+ relationships: {
8843
+ custom_api: {
8844
+ data: {
8845
+ type: 'custom_api'
8846
+ id: string
8847
+ }
8848
+ }
8849
+ role: {
8850
+ data: {
8851
+ type: 'built_in_role'
8852
+ id: string
8853
+ }
8854
+ }
8855
+ }
8856
+ }
8857
+
8858
+ interface CustomApiRolePolicy {
8859
+ id: string
8860
+ type: 'custom_api_role_policy'
8861
+ relationships: {
8862
+ custom_api: {
8863
+ data: {
8864
+ type: 'custom_api'
8865
+ id: string
8866
+ }
8867
+ }
8868
+ role: {
8869
+ data: {
8870
+ type: 'built_in_role'
8871
+ id: string
8872
+ }
8873
+ }
8874
+ }
8875
+ links: {
8876
+ self: string
8877
+ }
8878
+ meta: {
8879
+ timestamps: {
8880
+ created_at: string
8881
+ updated_at: string
8882
+ }
8883
+ }
8884
+ create: boolean
8885
+ list: boolean
8886
+ read: boolean
8887
+ update: boolean
8888
+ delete: boolean
8889
+ }
8890
+
8891
+ interface CustomApiRolePoliciesEndpoint {
8892
+ endpoint: 'permissions'
8893
+
8894
+ CreateCustomApiRolePolicy(
8895
+ body: CustomApiRolePolicyRequestBody
8896
+ ): Promise<Resource<CustomApiRolePolicy>>
8897
+
8898
+ UpdateCustomApiRolePolicy(
8899
+ policyId: string,
8900
+ body: CustomApiRolePolicyBase
8901
+ ): Promise<Resource<CustomApiRolePolicy>>
8902
+
8903
+ GetCustomApiRolePolicies(args: {
8904
+ customApiId: string
8905
+ }): Promise<Resource<Array<CustomApiRolePolicy>>>
8906
+
8907
+ GetBuiltInRoles(): Promise<Resource<Array<BuiltInRolePolicy>>>
8908
+
8909
+ DeleteCustomApiRolePolicy(policyId: string): Promise<void>
8910
+ }
8911
+
8813
8912
  // Type definitions for @elasticpath/js-sdk
8814
8913
 
8815
8914
 
@@ -8871,6 +8970,7 @@ declare class ElasticPath {
8871
8970
  OneTimePasswordTokenRequest: OneTimePasswordTokenRequestEndpoint
8872
8971
  Subscriptions: SubscriptionsEndpoint
8873
8972
  RulePromotions: RulePromotionsEndpoint
8973
+ CustomApiRolePolicies: CustomApiRolePoliciesEndpoint
8874
8974
  SubscriptionSubscribers: SubscriptionSubscribersEndpoint
8875
8975
  SubscriptionJobs: SubscriptionJobsEndpoint
8876
8976
  SubscriptionSchedules: SubscriptionSchedulesEndpoint
@@ -8898,4 +8998,4 @@ declare namespace elasticpath {
8898
8998
  }
8899
8999
  }
8900
9000
 
8901
- export { Account, AccountAddress, AccountAddressBase, AccountAddressEdit, 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, AccountTokenBase, AccountUpdateBody, Action, ActionCondition, ActionLimitation, Address, AddressBase, AdyenPayment, AndCondition, AnonymizeOrder, AnonymizeOrderResponse, ApplicationKey, ApplicationKeyBase, ApplicationKeyResponse, ApplicationKeysEndpoint, Attribute, Attributes, AttributesMeta, AuthenticateResponseBody, AuthenticationRealmEndpoint, AuthenticationSettings, AuthenticationSettingsBase, AuthenticationSettingsEndpoint, AuthorizeNetPayment, AuthorizePaymentMethod, 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, Condition, Conditions, Config, ConfigOptions, ConfirmPaymentBody, ConfirmPaymentBodyWithOptions, ConfirmPaymentResponse, CreateCartObject, CreateChildrenSortOrderBody, CreateCustomRelationshipBody, CreateLocationBody, CrudQueryableResource, Currency, CurrencyAmount, CurrencyBase, CurrencyEndpoint, CurrencyPercentage, CustomApi, CustomApiBase, CustomApiField, CustomApiFieldBase, 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, FieldsEndpoint, File, FileBase, FileEndpoint, FileFilter, FileHref, FixedDiscountSchema, Flow, FlowBase, FlowEndpoint, FlowFilter, FormattedPrice, Gateway, GatewayBase, GatewaysEndpoint, GeolocationDetails, GrantType, HierarchiesEndpoint, HierarchiesShopperCatalogEndpoint, Hierarchy, HierarchyBase, HierarchyFilter, HttpVerbs, Identifiable, Integration, IntegrationBase, IntegrationEndpoint, IntegrationFilter, IntegrationJob, IntegrationLog, IntegrationLogMeta, IntegrationLogsResponse, Inventory, InventoryActionTypes, InventoryBase, InventoryEndpoint, InventoryResourceType, InventoryResponse, InvoicingResult, ItemFixedDiscountSchema, ItemPercentDiscountSchema, ItemTaxObject, ItemTaxObjectResponse, Job, JobBase, JobEndpoint, LocalStorageFactory, Locales, Location, LocationAttributes, LocationBase, LocationCreateQuantity, LocationMeta, LocationQuantities, LocationUpdateQuantity, LocationsEndpoint, LogIntegration, ManualPayment, MatrixObject, MemoryStorageFactory, MerchantRealmMappings, MerchantRealmMappingsEndpoint, MergeCartOptions, MetricsBase, MetricsEndpoint, MetricsQuery, Modifier, ModifierResponse, ModifierType, ModifierTypeObj, MultiLocationInventoriesEndpoint, MultiLocationInventoryFilter, Node, NodeBase, NodeBaseResponse, NodeFilter, NodeProduct, NodeProductResponse, NodeRelationship, NodeRelationshipBase, NodeRelationshipParent, NodeRelationshipsEndpoint, NodesEndpoint, NodesResponse, NodesShopperCatalogEndpoint, NonAssociatedProductEntry, OidcProfileEndpoint, OnboardingLinkResponse, OneTimePasswordTokenRequestBody, OneTimePasswordTokenRequestEndpoint, Option, OptionResponse, Order, OrderAddressBase, OrderBase, OrderBillingAddress, OrderFilter, OrderInclude, OrderIncluded, OrderItem, OrderItemBase, OrderResponse, OrderShippingAddress, OrderSort, OrderSortAscend, OrderSortDescend, 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, 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, Variation, VariationBase, VariationsBuilderModifier, VariationsEndpoint, VariationsModifier, VariationsModifierResponse, VariationsModifierType, VariationsModifierTypeObj, XforAmountSchema, XforYSchema, createJob, elasticpath, gateway };
9001
+ export { Account, AccountAddress, AccountAddressBase, AccountAddressEdit, 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, AccountTokenBase, AccountUpdateBody, Action, ActionCondition, ActionLimitation, Address, AddressBase, AdyenPayment, AndCondition, AnonymizeOrder, AnonymizeOrderResponse, ApplicationKey, ApplicationKeyBase, ApplicationKeyResponse, ApplicationKeysEndpoint, Attribute, Attributes, AttributesMeta, AuthenticateResponseBody, AuthenticationRealmEndpoint, AuthenticationSettings, AuthenticationSettingsBase, AuthenticationSettingsEndpoint, AuthorizeNetPayment, AuthorizePaymentMethod, 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, 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, FieldsEndpoint, File, FileBase, FileEndpoint, FileFilter, FileHref, FixedDiscountSchema, Flow, FlowBase, FlowEndpoint, FlowFilter, FormattedPrice, Gateway, GatewayBase, GatewaysEndpoint, GeolocationDetails, GrantType, HierarchiesEndpoint, HierarchiesShopperCatalogEndpoint, Hierarchy, HierarchyBase, HierarchyFilter, HttpVerbs, Identifiable, Integration, IntegrationBase, IntegrationEndpoint, IntegrationFilter, IntegrationJob, IntegrationLog, IntegrationLogMeta, IntegrationLogsResponse, Inventory, InventoryActionTypes, InventoryBase, InventoryEndpoint, InventoryResourceType, InventoryResponse, InvoicingResult, ItemFixedDiscountSchema, ItemPercentDiscountSchema, ItemTaxObject, ItemTaxObjectResponse, Job, JobBase, JobEndpoint, LocalStorageFactory, Locales, Location, LocationAttributes, LocationBase, LocationCreateQuantity, LocationMeta, LocationQuantities, LocationUpdateQuantity, LocationsEndpoint, LogIntegration, ManualPayment, MatrixObject, MemoryStorageFactory, MerchantRealmMappings, MerchantRealmMappingsEndpoint, MergeCartOptions, MetricsBase, MetricsEndpoint, MetricsQuery, Modifier, ModifierResponse, ModifierType, ModifierTypeObj, MultiLocationInventoriesEndpoint, MultiLocationInventoryFilter, Node, NodeBase, NodeBaseResponse, NodeFilter, NodeProduct, NodeProductResponse, NodeRelationship, NodeRelationshipBase, NodeRelationshipParent, NodeRelationshipsEndpoint, NodesEndpoint, NodesResponse, NodesShopperCatalogEndpoint, NonAssociatedProductEntry, OidcProfileEndpoint, OnboardingLinkResponse, OneTimePasswordTokenRequestBody, OneTimePasswordTokenRequestEndpoint, Option, OptionResponse, Order, OrderAddressBase, OrderBase, OrderBillingAddress, OrderFilter, OrderInclude, OrderIncluded, OrderItem, OrderItemBase, OrderResponse, OrderShippingAddress, OrderSort, OrderSortAscend, OrderSortDescend, 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, 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, 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 = "22.0.0";
522
+ var version = "24.0.0";
523
523
 
524
524
  var LocalStorageFactory = /*#__PURE__*/function () {
525
525
  function LocalStorageFactory() {
@@ -5625,6 +5625,53 @@ var CustomApisEndpoint = /*#__PURE__*/function (_CRUDExtend) {
5625
5625
  return CustomApisEndpoint;
5626
5626
  }(CRUDExtend);
5627
5627
 
5628
+ var CustomApiRolePoliciesEndpoint = /*#__PURE__*/function (_CRUDExtend) {
5629
+ _inherits(CustomApiRolePoliciesEndpoint, _CRUDExtend);
5630
+ var _super = _createSuper(CustomApiRolePoliciesEndpoint);
5631
+ function CustomApiRolePoliciesEndpoint(endpoint) {
5632
+ var _this;
5633
+ _classCallCheck(this, CustomApiRolePoliciesEndpoint);
5634
+ _this = _super.call(this, endpoint);
5635
+ _this.endpoint = 'permissions';
5636
+ return _this;
5637
+ }
5638
+ _createClass(CustomApiRolePoliciesEndpoint, [{
5639
+ key: "CreateCustomApiRolePolicy",
5640
+ value: function CreateCustomApiRolePolicy(body) {
5641
+ return this.request.send("".concat(this.endpoint, "/custom-api-role-policies"), 'POST', body);
5642
+ }
5643
+ }, {
5644
+ key: "UpdateCustomApiRolePolicy",
5645
+ value: function UpdateCustomApiRolePolicy(policyId, body) {
5646
+ return this.request.send("".concat(this.endpoint, "/custom-api-role-policies/").concat(policyId), 'PUT', body);
5647
+ }
5648
+ }, {
5649
+ key: "GetCustomApiRolePolicies",
5650
+ value: function GetCustomApiRolePolicies(_ref) {
5651
+ var customApiId = _ref.customApiId;
5652
+ var limit = this.limit,
5653
+ offset = this.offset,
5654
+ sort = this.sort;
5655
+ return this.request.send(buildURL("".concat(this.endpoint, "/custom-api-role-policies?filter=eq(custom_api_id,").concat(customApiId, ")"), {
5656
+ limit: limit,
5657
+ offset: offset,
5658
+ sort: sort
5659
+ }), 'GET');
5660
+ }
5661
+ }, {
5662
+ key: "GetBuiltInRoles",
5663
+ value: function GetBuiltInRoles() {
5664
+ return this.request.send("".concat(this.endpoint, "/built-in-roles"), 'GET');
5665
+ }
5666
+ }, {
5667
+ key: "DeleteCustomApiRolePolicy",
5668
+ value: function DeleteCustomApiRolePolicy(policyId) {
5669
+ return this.request.send("".concat(this.endpoint, "/custom-api-role-policies/").concat(policyId), 'DELETE');
5670
+ }
5671
+ }]);
5672
+ return CustomApiRolePoliciesEndpoint;
5673
+ }(CRUDExtend);
5674
+
5628
5675
  var ElasticPath = /*#__PURE__*/function () {
5629
5676
  function ElasticPath(config) {
5630
5677
  _classCallCheck(this, ElasticPath);
@@ -5691,6 +5738,7 @@ var ElasticPath = /*#__PURE__*/function () {
5691
5738
  this.SubscriptionJobs = new SubscriptionJobsEndpoint(config);
5692
5739
  this.SubscriptionSchedules = new SubscriptionSchedulesEndpoint(config);
5693
5740
  this.CustomApis = new CustomApisEndpoint(config);
5741
+ this.CustomApiRolePolicies = new CustomApiRolePoliciesEndpoint(config);
5694
5742
  this.SubscriptionDunningRules = new SubscriptionDunningRulesEndpoint(config);
5695
5743
  this.SubscriptionProrationPolicies = new SubscriptionProrationPoliciesEndpoint(config);
5696
5744
  this.SubscriptionInvoices = new SubscriptionInvoicesEndpoint(config);
package/dist/index.js CHANGED
@@ -1085,7 +1085,7 @@
1085
1085
  globalThis.Response = browserPonyfill.exports.Response;
1086
1086
  }
1087
1087
 
1088
- var version = "22.0.0";
1088
+ var version = "24.0.0";
1089
1089
 
1090
1090
  var LocalStorageFactory = /*#__PURE__*/function () {
1091
1091
  function LocalStorageFactory() {
@@ -6797,6 +6797,53 @@
6797
6797
  return CustomApisEndpoint;
6798
6798
  }(CRUDExtend);
6799
6799
 
6800
+ var CustomApiRolePoliciesEndpoint = /*#__PURE__*/function (_CRUDExtend) {
6801
+ _inherits(CustomApiRolePoliciesEndpoint, _CRUDExtend);
6802
+ var _super = _createSuper(CustomApiRolePoliciesEndpoint);
6803
+ function CustomApiRolePoliciesEndpoint(endpoint) {
6804
+ var _this;
6805
+ _classCallCheck(this, CustomApiRolePoliciesEndpoint);
6806
+ _this = _super.call(this, endpoint);
6807
+ _this.endpoint = 'permissions';
6808
+ return _this;
6809
+ }
6810
+ _createClass(CustomApiRolePoliciesEndpoint, [{
6811
+ key: "CreateCustomApiRolePolicy",
6812
+ value: function CreateCustomApiRolePolicy(body) {
6813
+ return this.request.send("".concat(this.endpoint, "/custom-api-role-policies"), 'POST', body);
6814
+ }
6815
+ }, {
6816
+ key: "UpdateCustomApiRolePolicy",
6817
+ value: function UpdateCustomApiRolePolicy(policyId, body) {
6818
+ return this.request.send("".concat(this.endpoint, "/custom-api-role-policies/").concat(policyId), 'PUT', body);
6819
+ }
6820
+ }, {
6821
+ key: "GetCustomApiRolePolicies",
6822
+ value: function GetCustomApiRolePolicies(_ref) {
6823
+ var customApiId = _ref.customApiId;
6824
+ var limit = this.limit,
6825
+ offset = this.offset,
6826
+ sort = this.sort;
6827
+ return this.request.send(buildURL("".concat(this.endpoint, "/custom-api-role-policies?filter=eq(custom_api_id,").concat(customApiId, ")"), {
6828
+ limit: limit,
6829
+ offset: offset,
6830
+ sort: sort
6831
+ }), 'GET');
6832
+ }
6833
+ }, {
6834
+ key: "GetBuiltInRoles",
6835
+ value: function GetBuiltInRoles() {
6836
+ return this.request.send("".concat(this.endpoint, "/built-in-roles"), 'GET');
6837
+ }
6838
+ }, {
6839
+ key: "DeleteCustomApiRolePolicy",
6840
+ value: function DeleteCustomApiRolePolicy(policyId) {
6841
+ return this.request.send("".concat(this.endpoint, "/custom-api-role-policies/").concat(policyId), 'DELETE');
6842
+ }
6843
+ }]);
6844
+ return CustomApiRolePoliciesEndpoint;
6845
+ }(CRUDExtend);
6846
+
6800
6847
  var ElasticPath = /*#__PURE__*/function () {
6801
6848
  function ElasticPath(config) {
6802
6849
  _classCallCheck(this, ElasticPath);
@@ -6863,6 +6910,7 @@
6863
6910
  this.SubscriptionJobs = new SubscriptionJobsEndpoint(config);
6864
6911
  this.SubscriptionSchedules = new SubscriptionSchedulesEndpoint(config);
6865
6912
  this.CustomApis = new CustomApisEndpoint(config);
6913
+ this.CustomApiRolePolicies = new CustomApiRolePoliciesEndpoint(config);
6866
6914
  this.SubscriptionDunningRules = new SubscriptionDunningRulesEndpoint(config);
6867
6915
  this.SubscriptionProrationPolicies = new SubscriptionProrationPoliciesEndpoint(config);
6868
6916
  this.SubscriptionInvoices = new SubscriptionInvoicesEndpoint(config);
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": "22.0.0",
4
+ "version": "24.0.0",
5
5
  "homepage": "https://github.com/elasticpath/js-sdk",
6
6
  "author": "Elastic Path (https://elasticpath.com/)",
7
7
  "files": [