@ikas/storefront 0.0.133 → 0.0.135

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.
@@ -20,14 +20,6 @@ export interface listBlog_listBlog_data_category {
20
20
  name: string;
21
21
  metadata: listBlog_listBlog_data_category_metadata;
22
22
  }
23
- export interface listBlog_listBlog_data_blogContent {
24
- __typename: "BlogContent";
25
- content: string;
26
- createdAt: any | null;
27
- deleted: boolean | null;
28
- id: string;
29
- updatedAt: any | null;
30
- }
31
23
  export interface listBlog_listBlog_data_tags {
32
24
  __typename: "BlogTag";
33
25
  createdAt: any | null;
@@ -58,7 +50,6 @@ export interface listBlog_listBlog_data {
58
50
  title: string;
59
51
  categoryId: string;
60
52
  category: listBlog_listBlog_data_category;
61
- blogContent: listBlog_listBlog_data_blogContent;
62
53
  tags: listBlog_listBlog_data_tags[] | null;
63
54
  createdAt: any | null;
64
55
  deleted: boolean | null;
package/build/index.es.js CHANGED
@@ -25155,6 +25155,8 @@ var IkasPageDataProvider = /** @class */ (function () {
25155
25155
  return [4 /*yield*/, IkasBlogAPI.listBlogMetaData(slug)];
25156
25156
  case 1:
25157
25157
  metaDataList = _d.sent();
25158
+ if (!metaDataList.length)
25159
+ return [2 /*return*/];
25158
25160
  return [3 /*break*/, 4];
25159
25161
  case 2: return [4 /*yield*/, IkasHTMLMetaDataAPI.listHTMLMetaData(slug)];
25160
25162
  case 3:
@@ -25809,6 +25811,16 @@ var IkasBlog = /** @class */ (function () {
25809
25811
  this.image = data.imageId ? new IkasImage(data.imageId) : null;
25810
25812
  makeAutoObservable(this);
25811
25813
  }
25814
+ Object.defineProperty(IkasBlog.prototype, "href", {
25815
+ get: function () {
25816
+ var _a;
25817
+ if (!((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.slug))
25818
+ return "";
25819
+ return "/blog/" + this.metadata.slug;
25820
+ },
25821
+ enumerable: false,
25822
+ configurable: true
25823
+ });
25812
25824
  return IkasBlog;
25813
25825
  }());
25814
25826
  var IkasBlogContent = /** @class */ (function () {
@@ -25865,6 +25877,16 @@ var IkasBlogCategory = /** @class */ (function () {
25865
25877
  this.metadata = data.metadata ? new IkasBlogMetaData(data.metadata) : null;
25866
25878
  makeAutoObservable(this);
25867
25879
  }
25880
+ Object.defineProperty(IkasBlogCategory.prototype, "href", {
25881
+ get: function () {
25882
+ var _a;
25883
+ if (!((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.slug))
25884
+ return "";
25885
+ return "/blog/" + this.metadata.slug;
25886
+ },
25887
+ enumerable: false,
25888
+ configurable: true
25889
+ });
25868
25890
  return IkasBlogCategory;
25869
25891
  }());
25870
25892
  var IkasBlogTag = /** @class */ (function () {
@@ -25889,7 +25911,7 @@ var IkasBlogAPI = /** @class */ (function () {
25889
25911
  return __generator(this, function (_b) {
25890
25912
  switch (_b.label) {
25891
25913
  case 0:
25892
- QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
25914
+ QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
25893
25915
  _b.label = 1;
25894
25916
  case 1:
25895
25917
  _b.trys.push([1, 3, , 4]);
package/build/index.js CHANGED
@@ -25134,6 +25134,8 @@ var IkasPageDataProvider = /** @class */ (function () {
25134
25134
  return [4 /*yield*/, IkasBlogAPI.listBlogMetaData(slug)];
25135
25135
  case 1:
25136
25136
  metaDataList = _d.sent();
25137
+ if (!metaDataList.length)
25138
+ return [2 /*return*/];
25137
25139
  return [3 /*break*/, 4];
25138
25140
  case 2: return [4 /*yield*/, IkasHTMLMetaDataAPI.listHTMLMetaData(slug)];
25139
25141
  case 3:
@@ -25788,6 +25790,16 @@ var IkasBlog = /** @class */ (function () {
25788
25790
  this.image = data.imageId ? new IkasImage(data.imageId) : null;
25789
25791
  mobx.makeAutoObservable(this);
25790
25792
  }
25793
+ Object.defineProperty(IkasBlog.prototype, "href", {
25794
+ get: function () {
25795
+ var _a;
25796
+ if (!((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.slug))
25797
+ return "";
25798
+ return "/blog/" + this.metadata.slug;
25799
+ },
25800
+ enumerable: false,
25801
+ configurable: true
25802
+ });
25791
25803
  return IkasBlog;
25792
25804
  }());
25793
25805
  var IkasBlogContent = /** @class */ (function () {
@@ -25843,6 +25855,16 @@ var IkasBlogCategory = /** @class */ (function () {
25843
25855
  this.metadata = data.metadata ? new IkasBlogMetaData(data.metadata) : null;
25844
25856
  mobx.makeAutoObservable(this);
25845
25857
  }
25858
+ Object.defineProperty(IkasBlogCategory.prototype, "href", {
25859
+ get: function () {
25860
+ var _a;
25861
+ if (!((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.slug))
25862
+ return "";
25863
+ return "/blog/" + this.metadata.slug;
25864
+ },
25865
+ enumerable: false,
25866
+ configurable: true
25867
+ });
25846
25868
  return IkasBlogCategory;
25847
25869
  }());
25848
25870
  var IkasBlogTag = /** @class */ (function () {
@@ -25867,7 +25889,7 @@ var IkasBlogAPI = /** @class */ (function () {
25867
25889
  return __generator(this, function (_b) {
25868
25890
  switch (_b.label) {
25869
25891
  case 0:
25870
- QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
25892
+ QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
25871
25893
  _b.label = 1;
25872
25894
  case 1:
25873
25895
  _b.trys.push([1, 3, , 4]);
@@ -17,6 +17,7 @@ export declare class IkasBlog {
17
17
  metadata: IkasBlogMetaData | null;
18
18
  image: IkasImage | null;
19
19
  constructor(data?: Partial<IkasBlog>);
20
+ get href(): string;
20
21
  }
21
22
  export declare class IkasBlogContent {
22
23
  id: string;
@@ -54,6 +55,7 @@ export declare class IkasBlogCategory {
54
55
  imageId: string;
55
56
  metadata: IkasBlogMetaData | null;
56
57
  constructor(data?: Partial<IkasBlogCategory>);
58
+ get href(): string;
57
59
  }
58
60
  export declare class IkasBlogTag {
59
61
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.133",
3
+ "version": "0.0.135",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",