@elasticpath/js-sdk 22.0.0 → 23.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 = "23.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
@@ -8810,6 +8810,104 @@ interface MultiLocationInventoriesEndpoint {
8810
8810
  Filter(filter: MultiLocationInventoryFilter): MultiLocationInventoriesEndpoint
8811
8811
  }
8812
8812
 
8813
+ interface BuiltInRolePolicy {
8814
+ id: string
8815
+ type: 'built_in_role'
8816
+ links: {
8817
+ self: string
8818
+ }
8819
+ name: string
8820
+ cm_user_assignable: boolean
8821
+ }
8822
+
8823
+ interface CustomApiRolePolicyBase {
8824
+ data: {
8825
+ type: 'custom_api_role_policy'
8826
+ create: boolean
8827
+ list: boolean
8828
+ read: boolean
8829
+ update: boolean
8830
+ delete: boolean
8831
+ }
8832
+ }
8833
+
8834
+ interface CustomApiRolePolicyRequestBody {
8835
+ type: 'custom_api_role_policy'
8836
+ create: boolean
8837
+ list: boolean
8838
+ read: boolean
8839
+ update: boolean
8840
+ delete: boolean
8841
+ relationships: {
8842
+ custom_api: {
8843
+ data: {
8844
+ type: 'custom_api'
8845
+ id: string
8846
+ }
8847
+ }
8848
+ role: {
8849
+ data: {
8850
+ type: 'built_in_role'
8851
+ id: string
8852
+ }
8853
+ }
8854
+ }
8855
+ }
8856
+
8857
+ interface CustomApiRolePolicy {
8858
+ id: string
8859
+ type: 'custom_api_role_policy'
8860
+ relationships: {
8861
+ custom_api: {
8862
+ data: {
8863
+ type: 'custom_api'
8864
+ id: string
8865
+ }
8866
+ }
8867
+ role: {
8868
+ data: {
8869
+ type: 'built_in_role'
8870
+ id: string
8871
+ }
8872
+ }
8873
+ }
8874
+ links: {
8875
+ self: string
8876
+ }
8877
+ meta: {
8878
+ timestamps: {
8879
+ created_at: string
8880
+ updated_at: string
8881
+ }
8882
+ }
8883
+ create: boolean
8884
+ list: boolean
8885
+ read: boolean
8886
+ update: boolean
8887
+ delete: boolean
8888
+ }
8889
+
8890
+ interface CustomApiRolePoliciesEndpoint {
8891
+ endpoint: 'permissions'
8892
+
8893
+ CreateCustomApiRolePolicy(
8894
+ body: CustomApiRolePolicyRequestBody
8895
+ ): Promise<Resource<CustomApiRolePolicy>>
8896
+
8897
+ UpdateCustomApiRolePolicy(
8898
+ policyId: string,
8899
+ body: CustomApiRolePolicyBase
8900
+ ): Promise<Resource<CustomApiRolePolicy>>
8901
+
8902
+ GetCustomApiRolePolicies(args: {
8903
+ customApiId: string
8904
+ }): Promise<Resource<Array<CustomApiRolePolicy>>>
8905
+
8906
+ GetBuiltInRoles(): Promise<Resource<Array<BuiltInRolePolicy>>>
8907
+
8908
+ DeleteCustomApiRolePolicy(policyId: string): Promise<void>
8909
+ }
8910
+
8813
8911
  // Type definitions for @elasticpath/js-sdk
8814
8912
 
8815
8913
 
@@ -8871,6 +8969,7 @@ declare class ElasticPath {
8871
8969
  OneTimePasswordTokenRequest: OneTimePasswordTokenRequestEndpoint
8872
8970
  Subscriptions: SubscriptionsEndpoint
8873
8971
  RulePromotions: RulePromotionsEndpoint
8972
+ CustomApiRolePolicies: CustomApiRolePoliciesEndpoint
8874
8973
  SubscriptionSubscribers: SubscriptionSubscribersEndpoint
8875
8974
  SubscriptionJobs: SubscriptionJobsEndpoint
8876
8975
  SubscriptionSchedules: SubscriptionSchedulesEndpoint
@@ -8898,4 +8997,4 @@ declare namespace elasticpath {
8898
8997
  }
8899
8998
  }
8900
8999
 
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 };
9000
+ 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 = "23.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 = "23.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": "23.0.0",
5
5
  "homepage": "https://github.com/elasticpath/js-sdk",
6
6
  "author": "Elastic Path (https://elasticpath.com/)",
7
7
  "files": [