@elasticpath/js-sdk 26.0.0 → 27.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 = "26.0.0";
533
+ var version = "27.0.0";
534
534
 
535
535
  var LocalStorageFactory = /*#__PURE__*/function () {
536
536
  function LocalStorageFactory() {
@@ -3718,14 +3718,26 @@ var AccountsEndpoint = /*#__PURE__*/function (_CRUDExtend) {
3718
3718
  var headers = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3719
3719
  var limit = this.limit,
3720
3720
  offset = this.offset,
3721
- filter = this.filter;
3721
+ filter = this.filter,
3722
+ includes = this.includes;
3722
3723
  this.call = this.request.send(buildURL(this.endpoint, {
3723
3724
  limit: limit,
3724
3725
  offset: offset,
3725
- filter: filter
3726
+ filter: filter,
3727
+ includes: includes
3726
3728
  }), 'GET', undefined, token, this, headers);
3727
3729
  return this.call;
3728
3730
  }
3731
+ }, {
3732
+ key: "AddAccountTags",
3733
+ value: function AddAccountTags(accountId, requestBody) {
3734
+ return this.request.send("".concat(this.endpoint, "/").concat(accountId, "/relationships/account-tags"), 'POST', requestBody);
3735
+ }
3736
+ }, {
3737
+ key: "DeleteAccountTags",
3738
+ value: function DeleteAccountTags(accountId, requestBody) {
3739
+ return this.request.send("".concat(this.endpoint, "/").concat(accountId, "/relationships/account-tags"), 'DELETE', requestBody);
3740
+ }
3729
3741
  }]);
3730
3742
  return AccountsEndpoint;
3731
3743
  }(CRUDExtend);
@@ -4943,6 +4955,55 @@ var MultiLocationInventories = /*#__PURE__*/function () {
4943
4955
  return MultiLocationInventories;
4944
4956
  }();
4945
4957
 
4958
+ var AccountTagsEndpoint = /*#__PURE__*/function (_BaseExtend) {
4959
+ _inherits(AccountTagsEndpoint, _BaseExtend);
4960
+ var _super = _createSuper(AccountTagsEndpoint);
4961
+ function AccountTagsEndpoint() {
4962
+ _classCallCheck(this, AccountTagsEndpoint);
4963
+ return _super.apply(this, arguments);
4964
+ }
4965
+ _createClass(AccountTagsEndpoint, [{
4966
+ key: "Create",
4967
+ value: function Create(body) {
4968
+ var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
4969
+ return this.request.send("account-tags", 'POST', body, token, this);
4970
+ }
4971
+ }, {
4972
+ key: "All",
4973
+ value: function All() {
4974
+ var token = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
4975
+ var limit = this.limit,
4976
+ offset = this.offset,
4977
+ filter = this.filter;
4978
+ this.call = this.request.send(buildURL("account-tags", {
4979
+ limit: limit,
4980
+ offset: offset,
4981
+ filter: filter
4982
+ }), 'GET', undefined, token, this);
4983
+ return this.call;
4984
+ }
4985
+ }, {
4986
+ key: "Get",
4987
+ value: function Get(accountTagId) {
4988
+ var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
4989
+ return this.request.send("account-tags/".concat(accountTagId), 'GET', undefined, token);
4990
+ }
4991
+ }, {
4992
+ key: "Update",
4993
+ value: function Update(accountTagId, body) {
4994
+ var token = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
4995
+ return this.request.send("account-tags/".concat(accountTagId), 'PUT', body, token);
4996
+ }
4997
+ }, {
4998
+ key: "Delete",
4999
+ value: function Delete(accountTagId) {
5000
+ var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
5001
+ return this.request.send("account-tags/".concat(accountTagId), 'DELETE', undefined, token);
5002
+ }
5003
+ }]);
5004
+ return AccountTagsEndpoint;
5005
+ }(BaseExtend);
5006
+
4946
5007
  var Nodes$1 = /*#__PURE__*/function (_CRUDExtend) {
4947
5008
  _inherits(Nodes, _CRUDExtend);
4948
5009
  var _super = _createSuper(Nodes);
@@ -5903,6 +5964,7 @@ var ElasticPath = /*#__PURE__*/function () {
5903
5964
  this.SubscriptionInvoices = new SubscriptionInvoicesEndpoint(config);
5904
5965
  this.CustomRelationships = new CustomRelationshipsEndpoint(config);
5905
5966
  this.MultiLocationInventories = new MultiLocationInventories(config);
5967
+ this.AccountTags = new AccountTagsEndpoint(config);
5906
5968
  }
5907
5969
 
5908
5970
  // Expose `Cart` class on ElasticPath class
package/dist/index.d.ts CHANGED
@@ -6195,6 +6195,54 @@ interface MerchantRealmMappingsEndpoint {
6195
6195
  Get(id: string): Promise<Resource<MerchantRealmMappings>>
6196
6196
  }
6197
6197
 
6198
+ interface AccountTagBase {
6199
+ type: string
6200
+ name: string
6201
+ description: string
6202
+ }
6203
+
6204
+ interface AccountTagMeta {
6205
+ timestamps: {
6206
+ created_at: string
6207
+ updated_at: string
6208
+ }
6209
+ }
6210
+
6211
+ interface AccountTag extends Identifiable, AccountTagBase {
6212
+ meta: AccountTagMeta
6213
+ }
6214
+
6215
+ interface AccountTagFilter {
6216
+ like?: {
6217
+ name?: string
6218
+ }
6219
+ }
6220
+
6221
+ interface AccountTagsEndpoint
6222
+ extends CrudQueryableResource<
6223
+ AccountTag,
6224
+ AccountTagBase,
6225
+ AccountTagBase,
6226
+ AccountTagFilter,
6227
+ never,
6228
+ never
6229
+ > {
6230
+ endpoint: 'account-tags'
6231
+
6232
+ Create(body: AccountTagBase): Promise<Resource<AccountTag>>
6233
+
6234
+ All(token?: string, headers?): Promise<ResourcePage<AccountTag>>
6235
+
6236
+ Get(accountTagId: string, token?: string): Promise<Resource<AccountTag>>
6237
+
6238
+ Update(
6239
+ accountTagId: string,
6240
+ body: AccountTagBase
6241
+ ): Promise<Resource<AccountTag>>
6242
+
6243
+ Delete(accountTagId: string): Promise<{}>
6244
+ }
6245
+
6198
6246
  /**
6199
6247
  * Accounts
6200
6248
  */
@@ -6226,6 +6274,7 @@ interface Account extends AccountBase, Identifiable {
6226
6274
  }
6227
6275
  }
6228
6276
  ]
6277
+ account_tags: RelationshipToMany<'account_tag'>
6229
6278
  }
6230
6279
  }
6231
6280
 
@@ -6236,9 +6285,11 @@ interface AccountBase {
6236
6285
  registration_id?: string
6237
6286
  parent_id?: string
6238
6287
  external_ref?: string
6288
+ relationships?: {
6289
+ account_tags: RelationshipToMany<'account_tag'>
6290
+ }
6239
6291
  }
6240
6292
 
6241
-
6242
6293
  /**
6243
6294
  * filter for accounts
6244
6295
  */
@@ -6254,6 +6305,7 @@ interface AccountFilter {
6254
6305
  legal_name?: string
6255
6306
  registration_id?: string
6256
6307
  external_ref?: string
6308
+ account_tags?: string[]
6257
6309
  }
6258
6310
  }
6259
6311
  interface AccountUpdateBody extends Partial<AccountBase> {}
@@ -6269,7 +6321,7 @@ interface AccountEndpoint
6269
6321
  AccountUpdateBody,
6270
6322
  AccountFilter,
6271
6323
  never,
6272
- never
6324
+ 'account_tags'
6273
6325
  >,
6274
6326
  'All' | 'Create' | 'Get' | 'Update'
6275
6327
  > {
@@ -6281,7 +6333,17 @@ interface AccountEndpoint
6281
6333
  * @param token - The Bearer token to grant access to the API.
6282
6334
  * @param headers
6283
6335
  */
6284
- All(token?: string, headers?): Promise<ResourceList<Account>>
6336
+ All(
6337
+ token?: string,
6338
+ headers?: {}
6339
+ ): Promise<
6340
+ ResourcePage<
6341
+ Account,
6342
+ {
6343
+ account_tags: AccountTag[]
6344
+ }
6345
+ >
6346
+ >
6285
6347
 
6286
6348
  /**
6287
6349
  * Get an Account by reference
@@ -6295,10 +6357,35 @@ interface AccountEndpoint
6295
6357
  */
6296
6358
  Create(body: AccountBase): Promise<Resource<Account>>
6297
6359
 
6298
- /**
6360
+ /**
6299
6361
  * Update an Account
6300
6362
  */
6301
- Update(accountId: string, body: Partial<AccountBase>): Promise<Resource<Account>>
6363
+ Update(
6364
+ accountId: string,
6365
+ body: Partial<AccountBase>
6366
+ ): Promise<Resource<Account>>
6367
+
6368
+ /**
6369
+ * Add account tags to an Account
6370
+ */
6371
+ AddAccountTags(
6372
+ accountId: string,
6373
+ requestBody: Array<{
6374
+ id: string
6375
+ type: 'account_tag'
6376
+ }>
6377
+ ): Promise<void>
6378
+
6379
+ /**
6380
+ * Delete account tags from an Account
6381
+ */
6382
+ DeleteAccountTags(
6383
+ accountId: string,
6384
+ requestBody: Array<{
6385
+ id: string
6386
+ type: 'account_tag'
6387
+ }>
6388
+ ): Promise<void>
6302
6389
  }
6303
6390
 
6304
6391
  /**
@@ -9095,6 +9182,7 @@ declare class ElasticPath {
9095
9182
  SubscriptionInvoices: SubscriptionInvoicesEndpoint
9096
9183
  CustomRelationships: CustomRelationshipsEndpoint
9097
9184
  MultiLocationInventories: MultiLocationInventoriesEndpoint
9185
+ AccountTags: AccountTagsEndpoint
9098
9186
 
9099
9187
  Cart(id?: string): CartEndpoint // This optional cart id is super worrying when using the SDK in a node server :/
9100
9188
  constructor(config: Config)
@@ -9113,4 +9201,4 @@ declare namespace elasticpath {
9113
9201
  }
9114
9202
  }
9115
9203
 
9116
- 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, 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, 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 };
9204
+ 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, AccountTag, AccountTagBase, AccountTagFilter, AccountTagMeta, AccountTagsEndpoint, 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, 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, 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 = "26.0.0";
522
+ var version = "27.0.0";
523
523
 
524
524
  var LocalStorageFactory = /*#__PURE__*/function () {
525
525
  function LocalStorageFactory() {
@@ -3707,14 +3707,26 @@ var AccountsEndpoint = /*#__PURE__*/function (_CRUDExtend) {
3707
3707
  var headers = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3708
3708
  var limit = this.limit,
3709
3709
  offset = this.offset,
3710
- filter = this.filter;
3710
+ filter = this.filter,
3711
+ includes = this.includes;
3711
3712
  this.call = this.request.send(buildURL(this.endpoint, {
3712
3713
  limit: limit,
3713
3714
  offset: offset,
3714
- filter: filter
3715
+ filter: filter,
3716
+ includes: includes
3715
3717
  }), 'GET', undefined, token, this, headers);
3716
3718
  return this.call;
3717
3719
  }
3720
+ }, {
3721
+ key: "AddAccountTags",
3722
+ value: function AddAccountTags(accountId, requestBody) {
3723
+ return this.request.send("".concat(this.endpoint, "/").concat(accountId, "/relationships/account-tags"), 'POST', requestBody);
3724
+ }
3725
+ }, {
3726
+ key: "DeleteAccountTags",
3727
+ value: function DeleteAccountTags(accountId, requestBody) {
3728
+ return this.request.send("".concat(this.endpoint, "/").concat(accountId, "/relationships/account-tags"), 'DELETE', requestBody);
3729
+ }
3718
3730
  }]);
3719
3731
  return AccountsEndpoint;
3720
3732
  }(CRUDExtend);
@@ -4932,6 +4944,55 @@ var MultiLocationInventories = /*#__PURE__*/function () {
4932
4944
  return MultiLocationInventories;
4933
4945
  }();
4934
4946
 
4947
+ var AccountTagsEndpoint = /*#__PURE__*/function (_BaseExtend) {
4948
+ _inherits(AccountTagsEndpoint, _BaseExtend);
4949
+ var _super = _createSuper(AccountTagsEndpoint);
4950
+ function AccountTagsEndpoint() {
4951
+ _classCallCheck(this, AccountTagsEndpoint);
4952
+ return _super.apply(this, arguments);
4953
+ }
4954
+ _createClass(AccountTagsEndpoint, [{
4955
+ key: "Create",
4956
+ value: function Create(body) {
4957
+ var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
4958
+ return this.request.send("account-tags", 'POST', body, token, this);
4959
+ }
4960
+ }, {
4961
+ key: "All",
4962
+ value: function All() {
4963
+ var token = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
4964
+ var limit = this.limit,
4965
+ offset = this.offset,
4966
+ filter = this.filter;
4967
+ this.call = this.request.send(buildURL("account-tags", {
4968
+ limit: limit,
4969
+ offset: offset,
4970
+ filter: filter
4971
+ }), 'GET', undefined, token, this);
4972
+ return this.call;
4973
+ }
4974
+ }, {
4975
+ key: "Get",
4976
+ value: function Get(accountTagId) {
4977
+ var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
4978
+ return this.request.send("account-tags/".concat(accountTagId), 'GET', undefined, token);
4979
+ }
4980
+ }, {
4981
+ key: "Update",
4982
+ value: function Update(accountTagId, body) {
4983
+ var token = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
4984
+ return this.request.send("account-tags/".concat(accountTagId), 'PUT', body, token);
4985
+ }
4986
+ }, {
4987
+ key: "Delete",
4988
+ value: function Delete(accountTagId) {
4989
+ var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
4990
+ return this.request.send("account-tags/".concat(accountTagId), 'DELETE', undefined, token);
4991
+ }
4992
+ }]);
4993
+ return AccountTagsEndpoint;
4994
+ }(BaseExtend);
4995
+
4935
4996
  var Nodes$1 = /*#__PURE__*/function (_CRUDExtend) {
4936
4997
  _inherits(Nodes, _CRUDExtend);
4937
4998
  var _super = _createSuper(Nodes);
@@ -5892,6 +5953,7 @@ var ElasticPath = /*#__PURE__*/function () {
5892
5953
  this.SubscriptionInvoices = new SubscriptionInvoicesEndpoint(config);
5893
5954
  this.CustomRelationships = new CustomRelationshipsEndpoint(config);
5894
5955
  this.MultiLocationInventories = new MultiLocationInventories(config);
5956
+ this.AccountTags = new AccountTagsEndpoint(config);
5895
5957
  }
5896
5958
 
5897
5959
  // Expose `Cart` class on ElasticPath class
package/dist/index.js CHANGED
@@ -1085,7 +1085,7 @@
1085
1085
  globalThis.Response = browserPonyfill.exports.Response;
1086
1086
  }
1087
1087
 
1088
- var version = "26.0.0";
1088
+ var version = "27.0.0";
1089
1089
 
1090
1090
  var LocalStorageFactory = /*#__PURE__*/function () {
1091
1091
  function LocalStorageFactory() {
@@ -4879,14 +4879,26 @@
4879
4879
  var headers = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
4880
4880
  var limit = this.limit,
4881
4881
  offset = this.offset,
4882
- filter = this.filter;
4882
+ filter = this.filter,
4883
+ includes = this.includes;
4883
4884
  this.call = this.request.send(buildURL(this.endpoint, {
4884
4885
  limit: limit,
4885
4886
  offset: offset,
4886
- filter: filter
4887
+ filter: filter,
4888
+ includes: includes
4887
4889
  }), 'GET', undefined, token, this, headers);
4888
4890
  return this.call;
4889
4891
  }
4892
+ }, {
4893
+ key: "AddAccountTags",
4894
+ value: function AddAccountTags(accountId, requestBody) {
4895
+ return this.request.send("".concat(this.endpoint, "/").concat(accountId, "/relationships/account-tags"), 'POST', requestBody);
4896
+ }
4897
+ }, {
4898
+ key: "DeleteAccountTags",
4899
+ value: function DeleteAccountTags(accountId, requestBody) {
4900
+ return this.request.send("".concat(this.endpoint, "/").concat(accountId, "/relationships/account-tags"), 'DELETE', requestBody);
4901
+ }
4890
4902
  }]);
4891
4903
  return AccountsEndpoint;
4892
4904
  }(CRUDExtend);
@@ -6104,6 +6116,55 @@
6104
6116
  return MultiLocationInventories;
6105
6117
  }();
6106
6118
 
6119
+ var AccountTagsEndpoint = /*#__PURE__*/function (_BaseExtend) {
6120
+ _inherits(AccountTagsEndpoint, _BaseExtend);
6121
+ var _super = _createSuper(AccountTagsEndpoint);
6122
+ function AccountTagsEndpoint() {
6123
+ _classCallCheck(this, AccountTagsEndpoint);
6124
+ return _super.apply(this, arguments);
6125
+ }
6126
+ _createClass(AccountTagsEndpoint, [{
6127
+ key: "Create",
6128
+ value: function Create(body) {
6129
+ var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
6130
+ return this.request.send("account-tags", 'POST', body, token, this);
6131
+ }
6132
+ }, {
6133
+ key: "All",
6134
+ value: function All() {
6135
+ var token = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
6136
+ var limit = this.limit,
6137
+ offset = this.offset,
6138
+ filter = this.filter;
6139
+ this.call = this.request.send(buildURL("account-tags", {
6140
+ limit: limit,
6141
+ offset: offset,
6142
+ filter: filter
6143
+ }), 'GET', undefined, token, this);
6144
+ return this.call;
6145
+ }
6146
+ }, {
6147
+ key: "Get",
6148
+ value: function Get(accountTagId) {
6149
+ var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
6150
+ return this.request.send("account-tags/".concat(accountTagId), 'GET', undefined, token);
6151
+ }
6152
+ }, {
6153
+ key: "Update",
6154
+ value: function Update(accountTagId, body) {
6155
+ var token = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
6156
+ return this.request.send("account-tags/".concat(accountTagId), 'PUT', body, token);
6157
+ }
6158
+ }, {
6159
+ key: "Delete",
6160
+ value: function Delete(accountTagId) {
6161
+ var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
6162
+ return this.request.send("account-tags/".concat(accountTagId), 'DELETE', undefined, token);
6163
+ }
6164
+ }]);
6165
+ return AccountTagsEndpoint;
6166
+ }(BaseExtend);
6167
+
6107
6168
  var Nodes$1 = /*#__PURE__*/function (_CRUDExtend) {
6108
6169
  _inherits(Nodes, _CRUDExtend);
6109
6170
  var _super = _createSuper(Nodes);
@@ -7064,6 +7125,7 @@
7064
7125
  this.SubscriptionInvoices = new SubscriptionInvoicesEndpoint(config);
7065
7126
  this.CustomRelationships = new CustomRelationshipsEndpoint(config);
7066
7127
  this.MultiLocationInventories = new MultiLocationInventories(config);
7128
+ this.AccountTags = new AccountTagsEndpoint(config);
7067
7129
  }
7068
7130
 
7069
7131
  // Expose `Cart` class on ElasticPath class
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": "26.0.0",
4
+ "version": "27.0.0",
5
5
  "homepage": "https://github.com/elasticpath/js-sdk",
6
6
  "author": "Elastic Path (https://elasticpath.com/)",
7
7
  "files": [