@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 +6 -0
- package/dist-js/gomus-webcomponents.iife.js +9 -0
- package/dist-js/gomus-webcomponents.js +9 -0
- package/dist-js/gomus-webcomponents.min.iife.js +19 -19
- package/dist-js/gomus-webcomponents.min.js +2070 -2066
- package/dist-js/src/go/go.d.ts +3 -2
- package/dist-js/src/lib/stores/shop.svelte.d.ts +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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) => {
|