@ikas/storefront-api 4.0.0-beta.4 → 4.0.0-beta.6

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.
@@ -22,6 +22,7 @@ export declare class SearchInputData {
22
22
  salesChannelId: string | null;
23
23
  showStockOption: ProductSearchShowStockOptionEnum | null;
24
24
  slug: string | null;
25
+ storefrontId: string | null;
25
26
  tagIdList: string[] | null;
26
27
  vendorIdList: string[] | null;
27
28
  constructor(data?: Partial<SearchInputData>);
@@ -2845,6 +2845,7 @@ export interface SearchInput {
2845
2845
  salesChannelId?: string | null;
2846
2846
  showStockOption?: ProductSearchShowStockOptionEnum | null;
2847
2847
  slug?: string | null;
2848
+ storefrontId?: string | null;
2848
2849
  tagIdList?: string[] | null;
2849
2850
  vendorIdList?: string[] | null;
2850
2851
  }
@@ -5,7 +5,7 @@ import { QueryParams as SaveRaffleParticipantQueryParams } from "../../__api/mut
5
5
  import { QueryParams as ListRaffleMetadataQueryParams } from "../../__api/queries/listRaffleMetadata";
6
6
  export type { ListStorefrontRaffleParams, SaveRaffleParticipantQueryParams, ListRaffleMetadataQueryParams, };
7
7
  export declare function listStorefrontRaffle(params: ListStorefrontRaffleParams): Promise<APIResponse<{
8
- data: IkasRaffle[] | undefined;
8
+ data: IkasRaffle[];
9
9
  count?: number | undefined;
10
10
  hasNext?: boolean | undefined;
11
11
  limit?: number | undefined;
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as r,__assign as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";import{initIkasRaffle as a}from"@ikas/storefront-models";import{IkasStorefrontConfig as i}from"@ikas/storefront-config";function s(s){return t(this,void 0,void 0,(function(){var t,o;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listStorefrontRaffle.js")];case 1:return[4,(0,r.sent().default)(s)];case 2:return t=r.sent(),null==(o=t.data)||o.forEach((function(t){return a(t,i.getCurrentLocale())})),[2,new n(e(e({},t.data),{data:o}),t.graphQLErrors)]}}))}))}function o(e){return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/saveRaffleParticipant.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(t.data?t.data:null,t.graphQLErrors)]}}))}))}function u(e){var a;return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listRaffleMetadata.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(null===(a=t.data)||void 0===a?void 0:a.map((function(t){return t})),t.graphQLErrors)]}}))}))}function c(){return t(this,void 0,void 0,(function(){var t,e;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listRaffleParticipants.js")];case 1:return[4,(0,r.sent().default)()];case 2:return t=r.sent(),null==(e=t.data)||e.forEach((function(t){return a(t,i.getCurrentLocale())})),[2,new n(e,t.graphQLErrors)]}}))}))}export{u as listRaffleMetaData,c as listRaffleParticipants,s as listStorefrontRaffle,o as saveRaffleParticipant};
1
+ import{__awaiter as t,__generator as r,__assign as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";import{initIkasRaffle as a}from"@ikas/storefront-models";import{IkasStorefrontConfig as i}from"@ikas/storefront-config";function s(a){var i;return t(this,void 0,void 0,(function(){var t,s;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listStorefrontRaffle.js")];case 1:return[4,(0,r.sent().default)(a)];case 2:return t=r.sent(),s=null===(i=t.data)||void 0===i?void 0:i.data,[2,new n(e(e({},t.data),{data:s}),t.graphQLErrors)]}}))}))}function o(e){return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/saveRaffleParticipant.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(t.data?t.data:null,t.graphQLErrors)]}}))}))}function u(e){var a;return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listRaffleMetadata.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(null===(a=t.data)||void 0===a?void 0:a.map((function(t){return t})),t.graphQLErrors)]}}))}))}function c(){return t(this,void 0,void 0,(function(){var t,e;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listRaffleParticipants.js")];case 1:return[4,(0,r.sent().default)()];case 2:return t=r.sent(),null==(e=t.data)||e.forEach((function(t){return a(t,i.getCurrentLocale())})),[2,new n(e,t.graphQLErrors)]}}))}))}export{u as listRaffleMetaData,c as listRaffleParticipants,s as listStorefrontRaffle,o as saveRaffleParticipant};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-api",
3
- "version": "4.0.0-beta.4",
3
+ "version": "4.0.0-beta.6",
4
4
  "author": "ikas",
5
5
  "license": "ISC",
6
6
  "description": "API functions that returns models from the ikas-storefront-models package.",
@@ -17,8 +17,8 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@rollup/plugin-commonjs": "^22.0.0",
20
- "@ikas/storefront-config": "^4.0.0-beta.4",
21
- "@ikas/storefront-models": "^4.0.0-beta.4",
20
+ "@ikas/storefront-config": "^4.0.0-beta.6",
21
+ "@ikas/storefront-models": "^4.0.0-beta.6",
22
22
  "@rollup/plugin-node-resolve": "^13.3.0",
23
23
  "rollup-plugin-rename-node-modules": "^1.2.0",
24
24
  "prettier": "^2.2.1",
@@ -34,8 +34,8 @@
34
34
  "@ikas/fe-api-client": "^1.0.16"
35
35
  },
36
36
  "peerDependencies": {
37
- "@ikas/storefront-config": "^4.0.0-beta.4",
38
- "@ikas/storefront-models": "^4.0.0-beta.4",
37
+ "@ikas/storefront-config": "^4.0.0-beta.6",
38
+ "@ikas/storefront-models": "^4.0.0-beta.6",
39
39
  "@ikas/fe-api-client": "^1.0.16",
40
40
  "axios": "^0.26.0",
41
41
  "ts-essentials": "^7.0.1"