@elasticpath/js-sdk 33.7.0 → 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 CHANGED
@@ -530,7 +530,7 @@ if (!globalThis.fetch) {
530
530
  globalThis.Response = fetch$1.Response;
531
531
  }
532
532
 
533
- var version = "33.7.0";
533
+ var version = "34.0.0";
534
534
 
535
535
  var LocalStorageFactory = /*#__PURE__*/function () {
536
536
  function LocalStorageFactory() {
@@ -3532,15 +3532,18 @@ var NodesEndpoint = /*#__PURE__*/function () {
3532
3532
  config.version = 'pcm';
3533
3533
  this.endpoint = 'nodes';
3534
3534
  }
3535
-
3536
- // TODO: API - currently not working! (can get from hierarchy relationships)
3537
3535
  _createClass(NodesEndpoint, [{
3538
3536
  key: "All",
3539
3537
  value: function All(_ref) {
3540
3538
  var hierarchyId = _ref.hierarchyId,
3541
3539
  _ref$token = _ref.token,
3542
3540
  token = _ref$token === void 0 ? null : _ref$token;
3543
- return this.request.send("hierarchies/".concat(hierarchyId, "/").concat(this.endpoint), 'GET', undefined, token);
3541
+ var limit = this.limit,
3542
+ offset = this.offset;
3543
+ return this.request.send(buildURL("hierarchies/".concat(hierarchyId, "/").concat(this.endpoint), {
3544
+ limit: limit,
3545
+ offset: offset
3546
+ }), 'GET', undefined, token);
3544
3547
  }
3545
3548
  }, {
3546
3549
  key: "Get",
@@ -5161,7 +5164,12 @@ var Nodes$1 = /*#__PURE__*/function (_CRUDExtend) {
5161
5164
  value: function All(_ref) {
5162
5165
  var _ref$token = _ref.token,
5163
5166
  token = _ref$token === void 0 ? null : _ref$token;
5164
- return this.request.send("catalogs/".concat(this.endpoint), 'GET', undefined, token);
5167
+ var limit = this.limit,
5168
+ offset = this.offset;
5169
+ return this.request.send(buildURL("catalogs/".concat(this.endpoint), {
5170
+ limit: limit,
5171
+ offset: offset
5172
+ }), 'GET', undefined, token);
5165
5173
  }
5166
5174
  }, {
5167
5175
  key: "Get",
@@ -5715,7 +5723,12 @@ var Hierarchies = /*#__PURE__*/function (_ShopperCatalogQuery3) {
5715
5723
  token = _ref5$token === void 0 ? null : _ref5$token,
5716
5724
  _ref5$additionalHeade = _ref5.additionalHeaders,
5717
5725
  additionalHeaders = _ref5$additionalHeade === void 0 ? null : _ref5$additionalHeade;
5718
- return this.request.send("catalog/".concat(this.endpoint), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5726
+ var limit = this.limit,
5727
+ offset = this.offset;
5728
+ return this.request.send(buildURL("catalog/".concat(this.endpoint), {
5729
+ limit: limit,
5730
+ offset: offset
5731
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5719
5732
  }
5720
5733
  }, {
5721
5734
  key: "Get",
@@ -5735,7 +5748,12 @@ var Hierarchies = /*#__PURE__*/function (_ShopperCatalogQuery3) {
5735
5748
  token = _ref7$token === void 0 ? null : _ref7$token,
5736
5749
  _ref7$additionalHeade = _ref7.additionalHeaders,
5737
5750
  additionalHeaders = _ref7$additionalHeade === void 0 ? null : _ref7$additionalHeade;
5738
- return this.request.send("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/children"), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5751
+ var limit = this.limit,
5752
+ offset = this.offset;
5753
+ return this.request.send(buildURL("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/children"), {
5754
+ limit: limit,
5755
+ offset: offset
5756
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5739
5757
  }
5740
5758
  }, {
5741
5759
  key: "GetHierarchyNodes",
@@ -5746,7 +5764,12 @@ var Hierarchies = /*#__PURE__*/function (_ShopperCatalogQuery3) {
5746
5764
  token = _ref8$token === void 0 ? null : _ref8$token,
5747
5765
  _ref8$additionalHeade = _ref8.additionalHeaders,
5748
5766
  additionalHeaders = _ref8$additionalHeade === void 0 ? null : _ref8$additionalHeade;
5749
- return this.request.send("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/nodes"), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5767
+ var limit = this.limit,
5768
+ offset = this.offset;
5769
+ return this.request.send(buildURL("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/nodes"), {
5770
+ limit: limit,
5771
+ offset: offset
5772
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5750
5773
  }
5751
5774
  }]);
5752
5775
  return Hierarchies;
@@ -6068,21 +6091,36 @@ var CustomApiRolePoliciesEndpoint = /*#__PURE__*/function (_CRUDExtend) {
6068
6091
  }
6069
6092
  }, {
6070
6093
  key: "GetCustomApiRolePolicies",
6071
- value: function GetCustomApiRolePolicies(_ref) {
6072
- var customApiId = _ref.customApiId;
6094
+ value: function GetCustomApiRolePolicies() {
6095
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
6096
+ customApiId = _ref.customApiId,
6097
+ include = _ref.include;
6073
6098
  var limit = this.limit,
6074
6099
  offset = this.offset,
6075
6100
  sort = this.sort;
6076
- return this.request.send(buildURL("".concat(this.endpoint, "/custom-api-role-policies?filter=eq(custom_api_id,").concat(customApiId, ")"), {
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
+ }), {}, {
6077
6110
  limit: limit,
6078
6111
  offset: offset,
6079
6112
  sort: sort
6080
- }), 'GET');
6113
+ })), 'GET');
6114
+ }
6115
+ }, {
6116
+ key: "GetStandardUserRoles",
6117
+ value: function GetStandardUserRoles() {
6118
+ return this.request.send("".concat(this.endpoint, "/standard-user-roles"), 'GET');
6081
6119
  }
6082
6120
  }, {
6083
- key: "GetBuiltInRoles",
6084
- value: function GetBuiltInRoles() {
6085
- return this.request.send("".concat(this.endpoint, "/built-in-roles"), 'GET');
6121
+ key: "GetStandardShopperRoles",
6122
+ value: function GetStandardShopperRoles() {
6123
+ return this.request.send("".concat(this.endpoint, "/standard-shopper-roles"), 'GET');
6086
6124
  }
6087
6125
  }, {
6088
6126
  key: "DeleteCustomApiRolePolicy",
package/dist/index.d.ts CHANGED
@@ -1163,7 +1163,6 @@ interface NodesEndpoint {
1163
1163
  token?: string
1164
1164
  }): Promise<Resource<Node>>
1165
1165
 
1166
- // TODO: API - currently not working! (can get from hierarchy relationships)
1167
1166
  All(options: {
1168
1167
  hierarchyId: string
1169
1168
  token?: string
@@ -9346,16 +9345,25 @@ interface MultiLocationInventoriesEndpoint {
9346
9345
  GetMultipleStock(productIds: string[]): Promise<ResourceList<StockResponse>>
9347
9346
  }
9348
9347
 
9349
- interface BuiltInRolePolicy {
9348
+ interface StandardUserRole {
9350
9349
  id: string
9351
- type: 'built_in_role'
9352
- links: {
9353
- self: string
9354
- }
9350
+ type: 'standard_user_role'
9351
+ links: { self: string }
9355
9352
  name: string
9356
- cm_user_assignable: boolean
9357
9353
  }
9358
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
+
9359
9367
  interface CustomApiRolePolicyBase {
9360
9368
  data: {
9361
9369
  type: 'custom_api_role_policy'
@@ -9375,18 +9383,8 @@ interface CustomApiRolePolicyRequestBody {
9375
9383
  update: boolean
9376
9384
  delete: boolean
9377
9385
  relationships: {
9378
- custom_api: {
9379
- data: {
9380
- type: 'custom_api'
9381
- id: string
9382
- }
9383
- }
9384
- role: {
9385
- data: {
9386
- type: 'built_in_role'
9387
- id: string
9388
- }
9389
- }
9386
+ custom_api: { data: { type: 'custom_api'; id: string } }
9387
+ role: { data: { type: StandardRoleType; id: string } }
9390
9388
  }
9391
9389
  }
9392
9390
 
@@ -9394,22 +9392,10 @@ interface CustomApiRolePolicy {
9394
9392
  id: string
9395
9393
  type: 'custom_api_role_policy'
9396
9394
  relationships: {
9397
- custom_api: {
9398
- data: {
9399
- type: 'custom_api'
9400
- id: string
9401
- }
9402
- }
9403
- role: {
9404
- data: {
9405
- type: 'built_in_role'
9406
- id: string
9407
- }
9408
- }
9409
- }
9410
- links: {
9411
- self: string
9395
+ custom_api: { data: { type: 'custom_api'; id: string } }
9396
+ role: { data: { type: StandardRoleType; id: string } }
9412
9397
  }
9398
+ links: { self: string }
9413
9399
  meta: {
9414
9400
  timestamps: {
9415
9401
  created_at: string
@@ -9423,6 +9409,14 @@ interface CustomApiRolePolicy {
9423
9409
  delete: boolean
9424
9410
  }
9425
9411
 
9412
+ interface CustomApiRolePoliciesIncluded {
9413
+ role: IncludedRole[]
9414
+ }
9415
+
9416
+ interface CustomApiRolePoliciesResponse extends ResourceList<CustomApiRolePolicy> {
9417
+ included?: CustomApiRolePoliciesIncluded
9418
+ }
9419
+
9426
9420
  interface CustomApiRolePoliciesEndpoint {
9427
9421
  endpoint: 'permissions'
9428
9422
 
@@ -9437,9 +9431,12 @@ interface CustomApiRolePoliciesEndpoint {
9437
9431
 
9438
9432
  GetCustomApiRolePolicies(args: {
9439
9433
  customApiId: string
9440
- }): Promise<Resource<Array<CustomApiRolePolicy>>>
9434
+ include?: 'role'
9435
+ }): Promise<CustomApiRolePoliciesResponse>
9436
+
9437
+ GetStandardUserRoles(): Promise<ResourceList<StandardUserRole>>
9441
9438
 
9442
- GetBuiltInRoles(): Promise<Resource<Array<BuiltInRolePolicy>>>
9439
+ GetStandardShopperRoles(): Promise<ResourceList<StandardShopperRole>>
9443
9440
 
9444
9441
  DeleteCustomApiRolePolicy(policyId: string): Promise<void>
9445
9442
  }
@@ -9534,4 +9531,4 @@ declare namespace elasticpath {
9534
9531
  }
9535
9532
  }
9536
9533
 
9537
- export { Account, AccountAddress, AccountAddressBase, AccountAddressEdit, AccountAddressFilter, AccountAddressFilterAttributes, AccountAddressesEndpoint, AccountAssociationData, AccountAssociationResponse, AccountAuthenticationSettings, AccountAuthenticationSettingsBase, AccountAuthenticationSettingsEndpoint, AccountBase, AccountEndpoint, AccountFilter, AccountManagementAuthenticationTokenBody, AccountMember, AccountMemberBase, AccountMemberFilter, AccountMembersEndpoint, AccountMembership, AccountMembershipCreateBody, AccountMembershipOnAccountMember, AccountMembershipSettings, AccountMembershipSettingsBase, AccountMembershipSettingsEndpoint, AccountMembershipsEndpoint, AccountMembershipsFilter, AccountMembershipsInclude, AccountMembershipsIncludeAccounts, AccountMembershipsIncluded, AccountMembershipsIncludedAccounts, AccountMembershipsOnAccountMember, AccountMembershipsResponse, AccountTag, AccountTagBase, AccountTagFilter, AccountTagMeta, AccountTagsEndpoint, AccountTokenBase, AccountUpdateBody, Action, ActionCondition, ActionLimitation, AddProductsItem, Address, AddressBase, AdyenPayment, AlternativePrice, AndCondition, AnonymizeOrder, AnonymizeOrderResponse, AnyValidationOptions, ApplicationKey, ApplicationKeyBase, ApplicationKeyResponse, ApplicationKeysEndpoint, Attribute, Attributes, AttributesMeta, AuthenticateResponseBody, AuthenticationRealmEndpoint, AuthenticationSettings, AuthenticationSettingsBase, AuthenticationSettingsEndpoint, AuthorizeNetPayment, AuthorizePaymentMethod, AvailablePrice, BooleanValidationOptions, BraintreePayment, Brand, BrandBase, BrandEndpoint, BrandFilter, BuildChildProductsJob, BuildRules, BuilderModifier, BuiltInRolePolicy, BulkAddOptions, BulkCustomDiscountOptions, BundleDiscountSchema, BundleGiftSchema, CapturePaymentMethod, CardConnectPayment, Cart, CartAdditionalHeaders, CartCustomDiscount, CartEndpoint, CartInclude, CartIncluded, CartItem, CartItemBase, CartItemObject, CartItemsResponse, CartSettings, CartShippingGroupBase, CartTaxItemObject, Catalog, CatalogBase, CatalogFilter, CatalogReleaseProductFilter, CatalogReleaseProductFilterAttributes, CatalogRuleValidatorRequest, CatalogUpdateBody, CatalogsEndpoint, CatalogsNodesEndpoint, CatalogsProductVariation, CatalogsProductsEndpoint, CatalogsReleasesEndpoint, CatalogsRulesEndpoint, Category, CategoryBase, CategoryEndpoint, CategoryFilter, CheckoutCustomer, CheckoutCustomerObject, Collection, CollectionBase, CollectionEndpoint, CollectionFilter, CommonValidationOptions, Condition, Conditions, Config, ConfigOptions, ConfirmPaymentBody, ConfirmPaymentBodyWithOptions, ConfirmPaymentResponse, CreateCartObject, CreateChildrenSortOrderBody, CreateCustomRelationshipBody, CreateLocationBody, CrudQueryableResource, Currency, CurrencyAmount, CurrencyBase, CurrencyEndpoint, CurrencyPercentage, CustomApi, CustomApiBase, CustomApiField, CustomApiFieldBase, CustomApiRolePoliciesEndpoint, CustomApiRolePolicy, CustomApiRolePolicyBase, CustomApiRolePolicyRequestBody, CustomApisEndpoint, CustomAuthenticatorResponseBody, CustomDiscount, CustomDiscountResponse, CustomFieldValidation, CustomInputs, CustomInputsValidationRules, CustomRelationship, CustomRelationshipBase, CustomRelationshipBaseAttributes, CustomRelationshipEntry, CustomRelationshipsEndpoint, CustomRelationshipsFilter, CustomRelationshipsListResponse, Customer, CustomerAddress, CustomerAddressBase, CustomerAddressEdit, CustomerAddressesEndpoint, CustomerBase, CustomerFilter, CustomerInclude, CustomerToken, CustomersEndpoint, CyberSourcePayment, DataEntriesEndpoint, DataEntryRecord, DeletePromotionCodesBodyItem, DeleteRulePromotionCodes, DuplicateHierarchyBody, DuplicateHierarchyJob, ElasticPath, ElasticPathStripePayment, ErasureRequestRecord, ErasureRequestsEndpoint, Exclude$1 as Exclude, Extensions, Field, FieldBase, FieldType, FieldsEndpoint, File, FileBase, FileEndpoint, FileFilter, FileHref, FixedDiscountSchema, FloatValidationOptions, Flow, FlowBase, FlowEndpoint, FlowFilter, FormattedPrice, Gateway, GatewayBase, GatewaysEndpoint, GeolocationDetails, GrantType, HierarchiesEndpoint, HierarchiesShopperCatalogEndpoint, Hierarchy, HierarchyBase, HierarchyFilter, HttpVerbs, Identifiable, IntegerValidationOptions, Integration, IntegrationBase, IntegrationEndpoint, IntegrationFilter, IntegrationJob, IntegrationLog, IntegrationLogMeta, IntegrationLogsResponse, Inventory, InventoryActionTypes, InventoryBase, InventoryEndpoint, InventoryResourceType, InventoryResponse, InvoicingResult, ItemFixedDiscountSchema, ItemPercentDiscountSchema, ItemTaxObject, ItemTaxObjectResponse, Job, JobBase, JobEndpoint, ListValidationOptions, LocalStorageFactory, Locales, Location, LocationAttributes, LocationBase, LocationCreateQuantity, LocationMeta, LocationQuantities, LocationUpdateQuantity, LocationsEndpoint, LogIntegration, ManualPayment, MatrixObject, MemoryStorageFactory, MerchantRealmMappings, MerchantRealmMappingsEndpoint, MergeCartOptions, MetricsBase, MetricsEndpoint, MetricsFilter, MetricsQuery, MetricsV2Query, Modifier, ModifierResponse, ModifierType, ModifierTypeObj, MultiLocationInventoriesEndpoint, MultiLocationInventoryFilter, MultiLocationInventoryResponse, Node, NodeBase, NodeBaseResponse, NodeFilter, NodeProduct, NodeProductResponse, NodeRelationship, NodeRelationshipBase, NodeRelationshipParent, NodeRelationshipsEndpoint, NodesEndpoint, NodesResponse, NodesShopperCatalogEndpoint, NonAssociatedProductEntry, OidcProfileEndpoint, OnboardingLinkResponse, OneTimePasswordTokenRequestBody, OneTimePasswordTokenRequestEndpoint, Option, OptionResponse, Order, OrderAddressBase, OrderBase, OrderBillingAddress, OrderCountTimeSeries, OrderDiscountTimeSeries, OrderFilter, OrderInclude, OrderIncluded, OrderItem, OrderItemBase, OrderMetricsSummary, OrderResponse, OrderShippingAddress, OrderSort, OrderSortAscend, OrderSortDescend, OrderValueTimeSeries, OrdersEndpoint, PCMVariation, PCMVariationBase, PCMVariationMetaOption, PCMVariationOption, PCMVariationOptionBase, PCMVariationsEndpoint, PartialPcmProductBase, PasswordProfile, PasswordProfileBody, PasswordProfileEndpoint, PasswordProfileListItem, PasswordProfileResponse, PayPalExpressCheckoutPayment, PaymentMethod, PaymentRequestBody, PcmCustomRelationshipEndpoint, PcmFileRelationship, PcmFileRelationshipEndpoint, PcmJob, PcmJobBase, PcmJobError, PcmJobsEndpoint, PcmMainImageRelationship, PcmMainImageRelationshipEndpoint, PcmProduct, PcmProductAttachmentBody, PcmProductAttachmentResponse, PcmProductBase, PcmProductEntry, PcmProductExportColumns, PcmProductFilter, PcmProductInclude, PcmProductRelationships, PcmProductResponse, PcmProductUpdateBody, PcmProductsEndpoint, PcmProductsResponse, PcmTemplateRelationship, PcmTemplateRelationshipEndpoint, PcmVariationsRelationshipResource, PcmVariationsRelationships, PcmVariationsRelationshipsEndpoint, PercentDiscountSchema, PersonalDataEndpoint, PersonalDataRecord, Presentation, Price, PriceBook, PriceBookBase, PriceBookFilter, PriceBookPrice, PriceBookPriceBase, PriceBookPriceModifier, PriceBookPriceModifierBase, PriceBookPriceModifierEndpoint, PriceBookPricesCreateBody, PriceBookPricesEndpoint, PriceBookPricesUpdateBody, PriceBooksEndpoint, PriceBooksUpdateBody, PriceTier, PricesFilter, Product, ProductAssociationResponse, ProductBase, ProductComponentOption, ProductComponents, ProductFileRelationshipResource, ProductFilter, ProductResponse, ProductTemplateRelationshipResource, ProductsEndpoint, Profile, ProfileBase, ProfileCreateUpdateBody, ProfileListItem, ProfileResponse, ProfileResponseBody, Promotion, PromotionAttribute, PromotionAttributeValues, PromotionBase, PromotionCode, PromotionCodesJob, PromotionFilter, PromotionJob, PromotionMeta, PromotionSettings, PromotionsEndpoint, PurchasePaymentMethod, QueryableResource, Realm, RealmBase, RealmCreateBody, RealmUpdateBody, RefundPaymentMethod, Relationship, RelationshipToMany, RelationshipToOne, ReleaseBase, ReleaseBodyBase, ReleaseIndexingCompleteData, ReleaseIndexingStatus, ReleaseResponse, RequestFactory, Requirements, Resource, ResourceIncluded, ResourceList, ResourcePage, Rule, RuleBase, RuleFilter, RuleFilterAttributes, RuleMeta, RulePromotion, RulePromotionBase, RulePromotionCode, RulePromotionCodesJob, RulePromotionFilter, RulePromotionJob, RulePromotionMeta, RulePromotionsEndpoint, RuleUpdateBody, RuleValidationCriteria, RuleValidationMatchType, Settings, SettingsEndpoint, ShippingGroupBase, ShippingGroupResponse, ShippingIncluded, ShopperCatalogEndpoint, ShopperCatalogProductsEndpoint, ShopperCatalogReleaseBase, ShopperCatalogResource, ShopperCatalogResourceList, ShopperCatalogResourcePage, SimpleResourcePageResponse, StockAttributes, StockCreate, StockLocationsMap, StockResponse, StockUpdate, StorageFactory, StringValidationOptions, StripeConnectPayment, StripeIntentsPayment, StripePayment, StripePaymentBase, StripePaymentOptionBase, Subscription, SubscriptionBase, SubscriptionCreate, SubscriptionDunningRules, SubscriptionDunningRulesBase, SubscriptionDunningRulesCreate, SubscriptionDunningRulesEndpoint, SubscriptionDunningRulesUpdate, SubscriptionFilter, SubscriptionInvoice, SubscriptionInvoiceBase, SubscriptionInvoiceFilter, SubscriptionInvoicePayment, SubscriptionInvoicePaymentBase, SubscriptionInvoicesEndpoint, SubscriptionJob, SubscriptionJobBase, SubscriptionJobCreate, SubscriptionJobsEndpoint, SubscriptionOffering, SubscriptionOfferingAttachPlanBody, SubscriptionOfferingAttachProductBody, SubscriptionOfferingAttachProrationPolicyBody, SubscriptionOfferingBase, SubscriptionOfferingBuildBody, SubscriptionOfferingBuildProduct, SubscriptionOfferingCreate, SubscriptionOfferingFilter, SubscriptionOfferingPlan, SubscriptionOfferingProduct, SubscriptionOfferingRelationships, SubscriptionOfferingUpdate, SubscriptionOfferingsEndpoint, SubscriptionPlan, SubscriptionPlanBase, SubscriptionPlanCreate, SubscriptionPlanUpdate, SubscriptionPlansEndpoint, SubscriptionProduct, SubscriptionProductBase, SubscriptionProductCreate, SubscriptionProductUpdate, SubscriptionProductsEndpoint, SubscriptionProrationPoliciesEndpoint, SubscriptionProrationPolicy, SubscriptionProrationPolicyBase, SubscriptionProrationPolicyCreate, SubscriptionProrationPolicyUpdate, SubscriptionSchedule, SubscriptionScheduleBase, SubscriptionScheduleCreate, SubscriptionScheduleUpdate, SubscriptionSchedulesEndpoint, SubscriptionSettings, SubscriptionSubscriber, SubscriptionSubscriberBase, SubscriptionSubscriberCreate, SubscriptionSubscriberUpdate, SubscriptionSubscribersEndpoint, SubscriptionUpdate, SubscriptionsEndpoint, SubscriptionsInclude, SubscriptionsIncluded, SubscriptionsStateAction, Subset, TargetCondition, Timestamps, Transaction, TransactionBase, TransactionEndpoint, TransactionsResponse, TtlSettings, UpdateCustomRelationshipBody, UpdateLocationBody, UpdateNodeBody, UpdateVariationBody, UpdateVariationOptionBody, UserAuthenticationInfo, UserAuthenticationInfoBody, UserAuthenticationInfoEndpoint, UserAuthenticationInfoFilter, UserAuthenticationInfoResponse, UserAuthenticationPasswordProfile, UserAuthenticationPasswordProfileBody, UserAuthenticationPasswordProfileEndpoint, UserAuthenticationPasswordProfileResponse, UserAuthenticationPasswordProfileUpdateBody, ValidateRulesResponse, ValidatedRule, Validation, ValidationOptionsMap, Variation, VariationBase, VariationsBuilderModifier, VariationsEndpoint, VariationsModifier, VariationsModifierResponse, VariationsModifierType, VariationsModifierTypeObj, XforAmountSchema, XforYSchema, createJob, elasticpath, gateway };
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 = "33.7.0";
522
+ var version = "34.0.0";
523
523
 
524
524
  var LocalStorageFactory = /*#__PURE__*/function () {
525
525
  function LocalStorageFactory() {
@@ -3521,15 +3521,18 @@ var NodesEndpoint = /*#__PURE__*/function () {
3521
3521
  config.version = 'pcm';
3522
3522
  this.endpoint = 'nodes';
3523
3523
  }
3524
-
3525
- // TODO: API - currently not working! (can get from hierarchy relationships)
3526
3524
  _createClass(NodesEndpoint, [{
3527
3525
  key: "All",
3528
3526
  value: function All(_ref) {
3529
3527
  var hierarchyId = _ref.hierarchyId,
3530
3528
  _ref$token = _ref.token,
3531
3529
  token = _ref$token === void 0 ? null : _ref$token;
3532
- return this.request.send("hierarchies/".concat(hierarchyId, "/").concat(this.endpoint), 'GET', undefined, token);
3530
+ var limit = this.limit,
3531
+ offset = this.offset;
3532
+ return this.request.send(buildURL("hierarchies/".concat(hierarchyId, "/").concat(this.endpoint), {
3533
+ limit: limit,
3534
+ offset: offset
3535
+ }), 'GET', undefined, token);
3533
3536
  }
3534
3537
  }, {
3535
3538
  key: "Get",
@@ -5150,7 +5153,12 @@ var Nodes$1 = /*#__PURE__*/function (_CRUDExtend) {
5150
5153
  value: function All(_ref) {
5151
5154
  var _ref$token = _ref.token,
5152
5155
  token = _ref$token === void 0 ? null : _ref$token;
5153
- return this.request.send("catalogs/".concat(this.endpoint), 'GET', undefined, token);
5156
+ var limit = this.limit,
5157
+ offset = this.offset;
5158
+ return this.request.send(buildURL("catalogs/".concat(this.endpoint), {
5159
+ limit: limit,
5160
+ offset: offset
5161
+ }), 'GET', undefined, token);
5154
5162
  }
5155
5163
  }, {
5156
5164
  key: "Get",
@@ -5704,7 +5712,12 @@ var Hierarchies = /*#__PURE__*/function (_ShopperCatalogQuery3) {
5704
5712
  token = _ref5$token === void 0 ? null : _ref5$token,
5705
5713
  _ref5$additionalHeade = _ref5.additionalHeaders,
5706
5714
  additionalHeaders = _ref5$additionalHeade === void 0 ? null : _ref5$additionalHeade;
5707
- return this.request.send("catalog/".concat(this.endpoint), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5715
+ var limit = this.limit,
5716
+ offset = this.offset;
5717
+ return this.request.send(buildURL("catalog/".concat(this.endpoint), {
5718
+ limit: limit,
5719
+ offset: offset
5720
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5708
5721
  }
5709
5722
  }, {
5710
5723
  key: "Get",
@@ -5724,7 +5737,12 @@ var Hierarchies = /*#__PURE__*/function (_ShopperCatalogQuery3) {
5724
5737
  token = _ref7$token === void 0 ? null : _ref7$token,
5725
5738
  _ref7$additionalHeade = _ref7.additionalHeaders,
5726
5739
  additionalHeaders = _ref7$additionalHeade === void 0 ? null : _ref7$additionalHeade;
5727
- return this.request.send("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/children"), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5740
+ var limit = this.limit,
5741
+ offset = this.offset;
5742
+ return this.request.send(buildURL("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/children"), {
5743
+ limit: limit,
5744
+ offset: offset
5745
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5728
5746
  }
5729
5747
  }, {
5730
5748
  key: "GetHierarchyNodes",
@@ -5735,7 +5753,12 @@ var Hierarchies = /*#__PURE__*/function (_ShopperCatalogQuery3) {
5735
5753
  token = _ref8$token === void 0 ? null : _ref8$token,
5736
5754
  _ref8$additionalHeade = _ref8.additionalHeaders,
5737
5755
  additionalHeaders = _ref8$additionalHeade === void 0 ? null : _ref8$additionalHeade;
5738
- return this.request.send("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/nodes"), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5756
+ var limit = this.limit,
5757
+ offset = this.offset;
5758
+ return this.request.send(buildURL("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/nodes"), {
5759
+ limit: limit,
5760
+ offset: offset
5761
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5739
5762
  }
5740
5763
  }]);
5741
5764
  return Hierarchies;
@@ -6057,21 +6080,36 @@ var CustomApiRolePoliciesEndpoint = /*#__PURE__*/function (_CRUDExtend) {
6057
6080
  }
6058
6081
  }, {
6059
6082
  key: "GetCustomApiRolePolicies",
6060
- value: function GetCustomApiRolePolicies(_ref) {
6061
- var customApiId = _ref.customApiId;
6083
+ value: function GetCustomApiRolePolicies() {
6084
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
6085
+ customApiId = _ref.customApiId,
6086
+ include = _ref.include;
6062
6087
  var limit = this.limit,
6063
6088
  offset = this.offset,
6064
6089
  sort = this.sort;
6065
- return this.request.send(buildURL("".concat(this.endpoint, "/custom-api-role-policies?filter=eq(custom_api_id,").concat(customApiId, ")"), {
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
+ }), {}, {
6066
6099
  limit: limit,
6067
6100
  offset: offset,
6068
6101
  sort: sort
6069
- }), 'GET');
6102
+ })), 'GET');
6103
+ }
6104
+ }, {
6105
+ key: "GetStandardUserRoles",
6106
+ value: function GetStandardUserRoles() {
6107
+ return this.request.send("".concat(this.endpoint, "/standard-user-roles"), 'GET');
6070
6108
  }
6071
6109
  }, {
6072
- key: "GetBuiltInRoles",
6073
- value: function GetBuiltInRoles() {
6074
- return this.request.send("".concat(this.endpoint, "/built-in-roles"), 'GET');
6110
+ key: "GetStandardShopperRoles",
6111
+ value: function GetStandardShopperRoles() {
6112
+ return this.request.send("".concat(this.endpoint, "/standard-shopper-roles"), 'GET');
6075
6113
  }
6076
6114
  }, {
6077
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 = "33.7.0";
1088
+ var version = "34.0.0";
1089
1089
 
1090
1090
  var LocalStorageFactory = /*#__PURE__*/function () {
1091
1091
  function LocalStorageFactory() {
@@ -4693,15 +4693,18 @@
4693
4693
  config.version = 'pcm';
4694
4694
  this.endpoint = 'nodes';
4695
4695
  }
4696
-
4697
- // TODO: API - currently not working! (can get from hierarchy relationships)
4698
4696
  _createClass(NodesEndpoint, [{
4699
4697
  key: "All",
4700
4698
  value: function All(_ref) {
4701
4699
  var hierarchyId = _ref.hierarchyId,
4702
4700
  _ref$token = _ref.token,
4703
4701
  token = _ref$token === void 0 ? null : _ref$token;
4704
- return this.request.send("hierarchies/".concat(hierarchyId, "/").concat(this.endpoint), 'GET', undefined, token);
4702
+ var limit = this.limit,
4703
+ offset = this.offset;
4704
+ return this.request.send(buildURL("hierarchies/".concat(hierarchyId, "/").concat(this.endpoint), {
4705
+ limit: limit,
4706
+ offset: offset
4707
+ }), 'GET', undefined, token);
4705
4708
  }
4706
4709
  }, {
4707
4710
  key: "Get",
@@ -6322,7 +6325,12 @@
6322
6325
  value: function All(_ref) {
6323
6326
  var _ref$token = _ref.token,
6324
6327
  token = _ref$token === void 0 ? null : _ref$token;
6325
- return this.request.send("catalogs/".concat(this.endpoint), 'GET', undefined, token);
6328
+ var limit = this.limit,
6329
+ offset = this.offset;
6330
+ return this.request.send(buildURL("catalogs/".concat(this.endpoint), {
6331
+ limit: limit,
6332
+ offset: offset
6333
+ }), 'GET', undefined, token);
6326
6334
  }
6327
6335
  }, {
6328
6336
  key: "Get",
@@ -6876,7 +6884,12 @@
6876
6884
  token = _ref5$token === void 0 ? null : _ref5$token,
6877
6885
  _ref5$additionalHeade = _ref5.additionalHeaders,
6878
6886
  additionalHeaders = _ref5$additionalHeade === void 0 ? null : _ref5$additionalHeade;
6879
- return this.request.send("catalog/".concat(this.endpoint), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
6887
+ var limit = this.limit,
6888
+ offset = this.offset;
6889
+ return this.request.send(buildURL("catalog/".concat(this.endpoint), {
6890
+ limit: limit,
6891
+ offset: offset
6892
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
6880
6893
  }
6881
6894
  }, {
6882
6895
  key: "Get",
@@ -6896,7 +6909,12 @@
6896
6909
  token = _ref7$token === void 0 ? null : _ref7$token,
6897
6910
  _ref7$additionalHeade = _ref7.additionalHeaders,
6898
6911
  additionalHeaders = _ref7$additionalHeade === void 0 ? null : _ref7$additionalHeade;
6899
- return this.request.send("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/children"), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
6912
+ var limit = this.limit,
6913
+ offset = this.offset;
6914
+ return this.request.send(buildURL("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/children"), {
6915
+ limit: limit,
6916
+ offset: offset
6917
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
6900
6918
  }
6901
6919
  }, {
6902
6920
  key: "GetHierarchyNodes",
@@ -6907,7 +6925,12 @@
6907
6925
  token = _ref8$token === void 0 ? null : _ref8$token,
6908
6926
  _ref8$additionalHeade = _ref8.additionalHeaders,
6909
6927
  additionalHeaders = _ref8$additionalHeade === void 0 ? null : _ref8$additionalHeade;
6910
- return this.request.send("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/nodes"), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
6928
+ var limit = this.limit,
6929
+ offset = this.offset;
6930
+ return this.request.send(buildURL("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/nodes"), {
6931
+ limit: limit,
6932
+ offset: offset
6933
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
6911
6934
  }
6912
6935
  }]);
6913
6936
  return Hierarchies;
@@ -7229,21 +7252,36 @@
7229
7252
  }
7230
7253
  }, {
7231
7254
  key: "GetCustomApiRolePolicies",
7232
- value: function GetCustomApiRolePolicies(_ref) {
7233
- var customApiId = _ref.customApiId;
7255
+ value: function GetCustomApiRolePolicies() {
7256
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
7257
+ customApiId = _ref.customApiId,
7258
+ include = _ref.include;
7234
7259
  var limit = this.limit,
7235
7260
  offset = this.offset,
7236
7261
  sort = this.sort;
7237
- return this.request.send(buildURL("".concat(this.endpoint, "/custom-api-role-policies?filter=eq(custom_api_id,").concat(customApiId, ")"), {
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
+ }), {}, {
7238
7271
  limit: limit,
7239
7272
  offset: offset,
7240
7273
  sort: sort
7241
- }), 'GET');
7274
+ })), 'GET');
7275
+ }
7276
+ }, {
7277
+ key: "GetStandardUserRoles",
7278
+ value: function GetStandardUserRoles() {
7279
+ return this.request.send("".concat(this.endpoint, "/standard-user-roles"), 'GET');
7242
7280
  }
7243
7281
  }, {
7244
- key: "GetBuiltInRoles",
7245
- value: function GetBuiltInRoles() {
7246
- return this.request.send("".concat(this.endpoint, "/built-in-roles"), 'GET');
7282
+ key: "GetStandardShopperRoles",
7283
+ value: function GetStandardShopperRoles() {
7284
+ return this.request.send("".concat(this.endpoint, "/standard-shopper-roles"), 'GET');
7247
7285
  }
7248
7286
  }, {
7249
7287
  key: "DeleteCustomApiRolePolicy",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elasticpath/js-sdk",
3
3
  "description": "SDK for the Elastic Path eCommerce API",
4
- "version": "33.7.0",
4
+ "version": "34.0.0",
5
5
  "homepage": "https://github.com/elasticpath/js-sdk",
6
6
  "author": "Elastic Path (https://elasticpath.com/)",
7
7
  "files": [