@ikas/storefront 0.0.124 → 0.0.125
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/build/__generated__/global-types.d.ts +11 -2
- package/build/api/customer/__generated__/customerLogin.d.ts +1 -0
- package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +2 -1
- package/build/api/html-meta-data/index.d.ts +1 -1
- package/build/index.es.js +19 -49
- package/build/index.js +19 -49
- package/package.json +1 -1
|
@@ -229,16 +229,20 @@ export declare enum SortByTypeEnum {
|
|
|
229
229
|
PRICE = "PRICE"
|
|
230
230
|
}
|
|
231
231
|
/**
|
|
232
|
-
*
|
|
232
|
+
* StorefrontStatusEnum
|
|
233
233
|
*/
|
|
234
234
|
export declare enum StorefrontStatusTypes {
|
|
235
|
+
FAILED = "FAILED",
|
|
236
|
+
NOT_DEPLOYED = "NOT_DEPLOYED",
|
|
235
237
|
READY = "READY",
|
|
236
238
|
WAITING = "WAITING"
|
|
237
239
|
}
|
|
238
240
|
/**
|
|
239
|
-
*
|
|
241
|
+
* StorefrontThemeStatusEnum
|
|
240
242
|
*/
|
|
241
243
|
export declare enum StorefrontThemeStatus {
|
|
244
|
+
FAILED = "FAILED",
|
|
245
|
+
NOT_DEPLOYED = "NOT_DEPLOYED",
|
|
242
246
|
READY = "READY",
|
|
243
247
|
WAITING = "WAITING"
|
|
244
248
|
}
|
|
@@ -350,6 +354,10 @@ export interface CustomerAddressStateInput {
|
|
|
350
354
|
id?: string | null;
|
|
351
355
|
name?: string | null;
|
|
352
356
|
}
|
|
357
|
+
export interface HTMLMetaDataTargetTypeEnumFilter {
|
|
358
|
+
eq?: HTMLMetaDataTargetTypeEnum | null;
|
|
359
|
+
in?: HTMLMetaDataTargetTypeEnum[] | null;
|
|
360
|
+
}
|
|
353
361
|
export interface OrderAddressCityInput {
|
|
354
362
|
code?: string | null;
|
|
355
363
|
id?: string | null;
|
|
@@ -431,6 +439,7 @@ export interface SaveCheckoutInput {
|
|
|
431
439
|
customer?: CheckoutCustomerInput | null;
|
|
432
440
|
deleted?: boolean | null;
|
|
433
441
|
id?: string | null;
|
|
442
|
+
note?: string | null;
|
|
434
443
|
shippingAddress?: OrderAddressInput | null;
|
|
435
444
|
shippingMethod: ShippingMethodEnum;
|
|
436
445
|
shippingSettingsId?: string | null;
|
|
@@ -27,6 +27,7 @@ export interface customerLogin_customerLogin_customer_addresses {
|
|
|
27
27
|
__typename: "CustomerAddress";
|
|
28
28
|
addressLine1: string;
|
|
29
29
|
addressLine2: string | null;
|
|
30
|
+
identityNumber: string | null;
|
|
30
31
|
city: customerLogin_customerLogin_customer_addresses_city;
|
|
31
32
|
company: string | null;
|
|
32
33
|
country: customerLogin_customerLogin_customer_addresses_country;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StringFilterInput, HTMLMetaDataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
1
|
+
import { StringFilterInput, HTMLMetaDataTargetTypeEnumFilter, HTMLMetaDataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
2
|
export interface listHTMLMetaData_listHTMLMetaData {
|
|
3
3
|
__typename: "HTMLMetaData";
|
|
4
4
|
slug: string;
|
|
@@ -14,4 +14,5 @@ export interface listHTMLMetaData {
|
|
|
14
14
|
export interface listHTMLMetaDataVariables {
|
|
15
15
|
slug?: StringFilterInput | null;
|
|
16
16
|
targetId?: StringFilterInput | null;
|
|
17
|
+
targetType?: HTMLMetaDataTargetTypeEnumFilter | null;
|
|
17
18
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IkasHTMLMetaData } from "../../models/index";
|
|
2
2
|
export declare class IkasHTMLMetaDataAPI {
|
|
3
|
-
static listHTMLMetaData(slug?: string, targetId?: string): Promise<IkasHTMLMetaData[]>;
|
|
3
|
+
static listHTMLMetaData(slug?: string, targetId?: string, targetType?: string[]): Promise<IkasHTMLMetaData[]>;
|
|
4
4
|
}
|
package/build/index.es.js
CHANGED
|
@@ -11896,6 +11896,9 @@ var ThemeComponent = observer(function (_a) {
|
|
|
11896
11896
|
});
|
|
11897
11897
|
});
|
|
11898
11898
|
var Component = components[pageComponent.componentId];
|
|
11899
|
+
if (!Component) {
|
|
11900
|
+
console.error("COMPONENT NOT FOUND!", pageComponent.id, pageComponent.componentId, components ? Object.keys(components) : []);
|
|
11901
|
+
}
|
|
11899
11902
|
return (createElement("div", { id: index + "" }, hasNullValue.get() ? null : (createElement(Component, __assign({ key: pageComponent.id }, propValues, { settings: settings, store: store })))));
|
|
11900
11903
|
});
|
|
11901
11904
|
|
|
@@ -26087,13 +26090,13 @@ var templateObject_1$7;
|
|
|
26087
26090
|
var IkasHTMLMetaDataAPI = /** @class */ (function () {
|
|
26088
26091
|
function IkasHTMLMetaDataAPI() {
|
|
26089
26092
|
}
|
|
26090
|
-
IkasHTMLMetaDataAPI.listHTMLMetaData = function (slug, targetId) {
|
|
26093
|
+
IkasHTMLMetaDataAPI.listHTMLMetaData = function (slug, targetId, targetType) {
|
|
26091
26094
|
return __awaiter(this, void 0, void 0, function () {
|
|
26092
26095
|
var LIST_QUERY, _a, data, errors, err_1;
|
|
26093
26096
|
return __generator(this, function (_b) {
|
|
26094
26097
|
switch (_b.label) {
|
|
26095
26098
|
case 0:
|
|
26096
|
-
LIST_QUERY = src(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n query listHTMLMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n ) {\n listHTMLMetaData(slug: $slug
|
|
26099
|
+
LIST_QUERY = src(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n query listHTMLMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: HTMLMetaDataTargetTypeEnumFilter\n ) {\n listHTMLMetaData(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n ) {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n "], ["\n query listHTMLMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: HTMLMetaDataTargetTypeEnumFilter\n ) {\n listHTMLMetaData(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n ) {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n "])));
|
|
26097
26100
|
_b.label = 1;
|
|
26098
26101
|
case 1:
|
|
26099
26102
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -26112,6 +26115,11 @@ var IkasHTMLMetaDataAPI = /** @class */ (function () {
|
|
|
26112
26115
|
eq: targetId,
|
|
26113
26116
|
}
|
|
26114
26117
|
: undefined,
|
|
26118
|
+
targetType: targetType
|
|
26119
|
+
? {
|
|
26120
|
+
in: targetType,
|
|
26121
|
+
}
|
|
26122
|
+
: undefined,
|
|
26115
26123
|
},
|
|
26116
26124
|
})];
|
|
26117
26125
|
case 2:
|
|
@@ -29104,62 +29112,24 @@ var Page$1 = function (_a) {
|
|
|
29104
29112
|
};
|
|
29105
29113
|
var index$1 = observer(Page$1);
|
|
29106
29114
|
var getStaticPaths = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
29107
|
-
var
|
|
29108
|
-
return __generator(this, function (
|
|
29109
|
-
switch (
|
|
29110
|
-
case 0:
|
|
29111
|
-
case 1:
|
|
29112
|
-
metaData = _b.sent();
|
|
29115
|
+
var targetTypes, metaData;
|
|
29116
|
+
return __generator(this, function (_a) {
|
|
29117
|
+
switch (_a.label) {
|
|
29118
|
+
case 0:
|
|
29113
29119
|
targetTypes = [
|
|
29114
29120
|
IkasHTMLMetaDataTargetType.BRAND,
|
|
29115
29121
|
IkasHTMLMetaDataTargetType.CATEGORY,
|
|
29116
29122
|
];
|
|
29117
|
-
|
|
29118
|
-
|
|
29119
|
-
|
|
29120
|
-
productIdList: productMetaData.map(function (p) { return p.targetId; }),
|
|
29121
|
-
priceListId: IkasStorefrontConfig.priceListId,
|
|
29122
|
-
salesChannelId: IkasStorefrontConfig.salesChannelId,
|
|
29123
|
-
})];
|
|
29124
|
-
case 2:
|
|
29125
|
-
productsResponse = _b.sent();
|
|
29126
|
-
productParams = [];
|
|
29127
|
-
_loop_1 = function (product) {
|
|
29128
|
-
var meta = productMetaData.find(function (pm) { return pm.targetId === product.id; });
|
|
29129
|
-
if (meta) {
|
|
29130
|
-
for (var _i = 0, _a = product.variants; _i < _a.length; _i++) {
|
|
29131
|
-
var variant = _a[_i];
|
|
29132
|
-
if (product.hasVariant) {
|
|
29133
|
-
var variantSlug = variant.variantValues
|
|
29134
|
-
.map(function (vv) { return vv.slug; })
|
|
29135
|
-
.join("-");
|
|
29136
|
-
productParams.push({
|
|
29137
|
-
slug: meta.slug + "-" + variantSlug,
|
|
29138
|
-
});
|
|
29139
|
-
}
|
|
29140
|
-
else {
|
|
29141
|
-
productParams.push({
|
|
29142
|
-
slug: meta.slug,
|
|
29143
|
-
});
|
|
29144
|
-
}
|
|
29145
|
-
}
|
|
29146
|
-
}
|
|
29147
|
-
};
|
|
29148
|
-
for (_i = 0, _a = (productsResponse === null || productsResponse === void 0 ? void 0 : productsResponse.data) || []; _i < _a.length; _i++) {
|
|
29149
|
-
product = _a[_i];
|
|
29150
|
-
_loop_1(product);
|
|
29151
|
-
}
|
|
29123
|
+
return [4 /*yield*/, IkasHTMLMetaDataAPI.listHTMLMetaData(undefined, undefined, targetTypes)];
|
|
29124
|
+
case 1:
|
|
29125
|
+
metaData = _a.sent();
|
|
29152
29126
|
return [2 /*return*/, {
|
|
29153
|
-
paths:
|
|
29154
|
-
.map(function (m) { return ({
|
|
29127
|
+
paths: metaData.map(function (m) { return ({
|
|
29155
29128
|
params: {
|
|
29156
29129
|
slug: m.slug,
|
|
29157
29130
|
originalSlug: m.slug,
|
|
29158
29131
|
},
|
|
29159
|
-
}); })
|
|
29160
|
-
.concat(productParams.map(function (pp) { return ({
|
|
29161
|
-
params: pp,
|
|
29162
|
-
}); })),
|
|
29132
|
+
}); }),
|
|
29163
29133
|
fallback: "blocking",
|
|
29164
29134
|
}];
|
|
29165
29135
|
}
|
package/build/index.js
CHANGED
|
@@ -11911,6 +11911,9 @@ var ThemeComponent = mobxReactLite.observer(function (_a) {
|
|
|
11911
11911
|
});
|
|
11912
11912
|
});
|
|
11913
11913
|
var Component = components[pageComponent.componentId];
|
|
11914
|
+
if (!Component) {
|
|
11915
|
+
console.error("COMPONENT NOT FOUND!", pageComponent.id, pageComponent.componentId, components ? Object.keys(components) : []);
|
|
11916
|
+
}
|
|
11914
11917
|
return (React.createElement("div", { id: index + "" }, hasNullValue.get() ? null : (React.createElement(Component, __assign({ key: pageComponent.id }, propValues, { settings: settings, store: store })))));
|
|
11915
11918
|
});
|
|
11916
11919
|
|
|
@@ -26067,13 +26070,13 @@ var templateObject_1$7;
|
|
|
26067
26070
|
var IkasHTMLMetaDataAPI = /** @class */ (function () {
|
|
26068
26071
|
function IkasHTMLMetaDataAPI() {
|
|
26069
26072
|
}
|
|
26070
|
-
IkasHTMLMetaDataAPI.listHTMLMetaData = function (slug, targetId) {
|
|
26073
|
+
IkasHTMLMetaDataAPI.listHTMLMetaData = function (slug, targetId, targetType) {
|
|
26071
26074
|
return __awaiter(this, void 0, void 0, function () {
|
|
26072
26075
|
var LIST_QUERY, _a, data, errors, err_1;
|
|
26073
26076
|
return __generator(this, function (_b) {
|
|
26074
26077
|
switch (_b.label) {
|
|
26075
26078
|
case 0:
|
|
26076
|
-
LIST_QUERY = src(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n query listHTMLMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n ) {\n listHTMLMetaData(slug: $slug
|
|
26079
|
+
LIST_QUERY = src(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n query listHTMLMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: HTMLMetaDataTargetTypeEnumFilter\n ) {\n listHTMLMetaData(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n ) {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n "], ["\n query listHTMLMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: HTMLMetaDataTargetTypeEnumFilter\n ) {\n listHTMLMetaData(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n ) {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n "])));
|
|
26077
26080
|
_b.label = 1;
|
|
26078
26081
|
case 1:
|
|
26079
26082
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -26092,6 +26095,11 @@ var IkasHTMLMetaDataAPI = /** @class */ (function () {
|
|
|
26092
26095
|
eq: targetId,
|
|
26093
26096
|
}
|
|
26094
26097
|
: undefined,
|
|
26098
|
+
targetType: targetType
|
|
26099
|
+
? {
|
|
26100
|
+
in: targetType,
|
|
26101
|
+
}
|
|
26102
|
+
: undefined,
|
|
26095
26103
|
},
|
|
26096
26104
|
})];
|
|
26097
26105
|
case 2:
|
|
@@ -29084,62 +29092,24 @@ var Page$1 = function (_a) {
|
|
|
29084
29092
|
};
|
|
29085
29093
|
var index$1 = mobxReactLite.observer(Page$1);
|
|
29086
29094
|
var getStaticPaths = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
29087
|
-
var
|
|
29088
|
-
return __generator(this, function (
|
|
29089
|
-
switch (
|
|
29090
|
-
case 0:
|
|
29091
|
-
case 1:
|
|
29092
|
-
metaData = _b.sent();
|
|
29095
|
+
var targetTypes, metaData;
|
|
29096
|
+
return __generator(this, function (_a) {
|
|
29097
|
+
switch (_a.label) {
|
|
29098
|
+
case 0:
|
|
29093
29099
|
targetTypes = [
|
|
29094
29100
|
exports.IkasHTMLMetaDataTargetType.BRAND,
|
|
29095
29101
|
exports.IkasHTMLMetaDataTargetType.CATEGORY,
|
|
29096
29102
|
];
|
|
29097
|
-
|
|
29098
|
-
|
|
29099
|
-
|
|
29100
|
-
productIdList: productMetaData.map(function (p) { return p.targetId; }),
|
|
29101
|
-
priceListId: IkasStorefrontConfig.priceListId,
|
|
29102
|
-
salesChannelId: IkasStorefrontConfig.salesChannelId,
|
|
29103
|
-
})];
|
|
29104
|
-
case 2:
|
|
29105
|
-
productsResponse = _b.sent();
|
|
29106
|
-
productParams = [];
|
|
29107
|
-
_loop_1 = function (product) {
|
|
29108
|
-
var meta = productMetaData.find(function (pm) { return pm.targetId === product.id; });
|
|
29109
|
-
if (meta) {
|
|
29110
|
-
for (var _i = 0, _a = product.variants; _i < _a.length; _i++) {
|
|
29111
|
-
var variant = _a[_i];
|
|
29112
|
-
if (product.hasVariant) {
|
|
29113
|
-
var variantSlug = variant.variantValues
|
|
29114
|
-
.map(function (vv) { return vv.slug; })
|
|
29115
|
-
.join("-");
|
|
29116
|
-
productParams.push({
|
|
29117
|
-
slug: meta.slug + "-" + variantSlug,
|
|
29118
|
-
});
|
|
29119
|
-
}
|
|
29120
|
-
else {
|
|
29121
|
-
productParams.push({
|
|
29122
|
-
slug: meta.slug,
|
|
29123
|
-
});
|
|
29124
|
-
}
|
|
29125
|
-
}
|
|
29126
|
-
}
|
|
29127
|
-
};
|
|
29128
|
-
for (_i = 0, _a = (productsResponse === null || productsResponse === void 0 ? void 0 : productsResponse.data) || []; _i < _a.length; _i++) {
|
|
29129
|
-
product = _a[_i];
|
|
29130
|
-
_loop_1(product);
|
|
29131
|
-
}
|
|
29103
|
+
return [4 /*yield*/, IkasHTMLMetaDataAPI.listHTMLMetaData(undefined, undefined, targetTypes)];
|
|
29104
|
+
case 1:
|
|
29105
|
+
metaData = _a.sent();
|
|
29132
29106
|
return [2 /*return*/, {
|
|
29133
|
-
paths:
|
|
29134
|
-
.map(function (m) { return ({
|
|
29107
|
+
paths: metaData.map(function (m) { return ({
|
|
29135
29108
|
params: {
|
|
29136
29109
|
slug: m.slug,
|
|
29137
29110
|
originalSlug: m.slug,
|
|
29138
29111
|
},
|
|
29139
|
-
}); })
|
|
29140
|
-
.concat(productParams.map(function (pp) { return ({
|
|
29141
|
-
params: pp,
|
|
29142
|
-
}); })),
|
|
29112
|
+
}); }),
|
|
29143
29113
|
fallback: "blocking",
|
|
29144
29114
|
}];
|
|
29145
29115
|
}
|