@gomusdev/web-components 4.3.0 → 4.4.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/README.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.4.0 (2026-07-13)
4
+
5
+ ### Features
6
+
7
+ * **go-api:** add go.api.getCustomerAddresses()
8
+
3
9
  ## 4.3.0 (2026-07-13)
4
10
 
5
11
  ### Features
@@ -13623,6 +13623,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13623
13623
  var WITHDRAWAL_ENDPOINT = "/api/v4/orders/withdrawals";
13624
13624
  var MEMBERSHIP_ACTIVATION_ENDPOINT = "/api/v4/customer/memberships/activate";
13625
13625
  var ORDERS_ENDPOINT = "/api/v4/orders";
13626
+ var CUSTOMER_ADDRESSES_ENDPOINT = "/api/v4/customer/customer_addresses";
13626
13627
  //#endregion
13627
13628
  //#region ../../packages/gomus-api/lib/customerLevels.ts
13628
13629
  var CustomerLevels = {
@@ -13744,6 +13745,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13744
13745
  query: params
13745
13746
  });
13746
13747
  }
13748
+ getCustomerAddresses() {
13749
+ if (!this.auth.data.accessToken) return NOT_SIGNED_IN;
13750
+ return this.fetchAndCache(CUSTOMER_ADDRESSES_ENDPOINT, "customerAddresses", "", { cache: 5 });
13751
+ }
13747
13752
  ticketsCalendar(params) {
13748
13753
  return this.fetchAndCache(TICKETS_CALENDAR_ENDPOINT, `ticketsCalendar-${JSON.stringify(params)}`, "data", {
13749
13754
  cache: 60,
@@ -38124,6 +38129,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
38124
38129
  getOrders: async (params) => {
38125
38130
  await ensureShopReady();
38126
38131
  return shop.asyncFetch(() => shop.getOrders(params));
38132
+ },
38133
+ getCustomerAddresses: async () => {
38134
+ await ensureShopReady();
38135
+ return shop.asyncFetch(() => shop.getCustomerAddresses());
38127
38136
  }
38128
38137
  },
38129
38138
  cart: { addTour: async (options) => {
@@ -13622,6 +13622,7 @@ var SIGN_UP_ENDPOINT = "/api/v4/auth";
13622
13622
  var WITHDRAWAL_ENDPOINT = "/api/v4/orders/withdrawals";
13623
13623
  var MEMBERSHIP_ACTIVATION_ENDPOINT = "/api/v4/customer/memberships/activate";
13624
13624
  var ORDERS_ENDPOINT = "/api/v4/orders";
13625
+ var CUSTOMER_ADDRESSES_ENDPOINT = "/api/v4/customer/customer_addresses";
13625
13626
  //#endregion
13626
13627
  //#region ../../packages/gomus-api/lib/customerLevels.ts
13627
13628
  var CustomerLevels = {
@@ -13743,6 +13744,10 @@ var Shop = class {
13743
13744
  query: params
13744
13745
  });
13745
13746
  }
13747
+ getCustomerAddresses() {
13748
+ if (!this.auth.data.accessToken) return NOT_SIGNED_IN;
13749
+ return this.fetchAndCache(CUSTOMER_ADDRESSES_ENDPOINT, "customerAddresses", "", { cache: 5 });
13750
+ }
13746
13751
  ticketsCalendar(params) {
13747
13752
  return this.fetchAndCache(TICKETS_CALENDAR_ENDPOINT, `ticketsCalendar-${JSON.stringify(params)}`, "data", {
13748
13753
  cache: 60,
@@ -38123,6 +38128,10 @@ var go = {
38123
38128
  getOrders: async (params) => {
38124
38129
  await ensureShopReady();
38125
38130
  return shop.asyncFetch(() => shop.getOrders(params));
38131
+ },
38132
+ getCustomerAddresses: async () => {
38133
+ await ensureShopReady();
38134
+ return shop.asyncFetch(() => shop.getCustomerAddresses());
38126
38135
  }
38127
38136
  },
38128
38137
  cart: { addTour: async (options) => {