@ikas/storefront 2.0.72 → 2.0.73

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.
@@ -1 +1 @@
1
- import{makeAutoObservable as t}from"mobx";import{IkasProductDetail as e}from"../../ui/product-detail/index.js";var i,a=function(e){this.start=e.start||null,this.end=e.end||null,t(this)};!function(t){t.EMAIL="EMAIL",t.MERSIS="MERSIS"}(i||(i={}));var n,s=function(){function t(t){var n,s;void 0===t&&(t={}),this.id=t.id||Date.now()+"",this.createdAt=t.createdAt||Date.now(),this.updatedAt=t.updatedAt||Date.now(),this.deleted=t.deleted||null,this.name=t.name||"",this.requiredCustomerAccount=t.requiredCustomerAccount||!1,this.status=t.status||!1,this.verificationType=t.verificationType||i.EMAIL,this.dateRange=t.dateRange?new a(t.dateRange):null,this.metadata=t.metadata?new l(t.metadata):null,this.variants=(null===(n=t.variants)||void 0===n?void 0:n.map((function(t){return new u(t)})))||[],this.products=(null===(s=t.products)||void 0===s?void 0:s.map((function(t){return new e(t.product,t.selectedVariantValues)})))||[]}return Object.defineProperty(t.prototype,"isRaffleAvailable",{get:function(){var t;if(!this.status)return!1;var e=Date.now();return(null===(t=this.dateRange)||void 0===t?void 0:t.start)&&e>this.dateRange.start&&this.dateRange.end&&e<this.dateRange.end},enumerable:!1,configurable:!0}),t}();!function(t){t.RAFFLE="RAFFLE"}(n||(n={}));var d,l=function(t){var e,i;this.canonicals=null,this.disableIndex=null,this.id=t.id||Date.now()+"",this.createdAt=t.createdAt||Date.now(),this.updatedAt=t.updatedAt||Date.now(),this.deleted=t.deleted||null,this.description=t.description||"",this.pageTitle=t.pageTitle||"",this.slug=t.slug||"",this.targetId=t.targetId||"",this.targetType=t.targetType||n.RAFFLE,this.canonicals=null!==(e=t.canonicals)&&void 0!==e?e:null,this.disableIndex=null!==(i=t.disableIndex)&&void 0!==i?i:null};!function(t){t.COMPLETED="COMPLETED",t.IN_PROGRESS="IN_PROGRESS",t.LOSER="LOSER",t.WINNER="WINNER"}(d||(d={}));var r=function(e){this.id=e.id||null,this.createdAt=e.createdAt||Date.now(),this.updatedAt=e.updatedAt||Date.now(),this.deleted=e.deleted||!1,this.customerId=e.customerId||null,this.raffleId=e.raffleId||"",this.firstName=e.firstName||"",this.lastName=e.lastName||"",this.fullName=e.fullName||null,this.email=e.email||"",this.applicationDate=e.applicationDate||0,this.phone=e.phone||null,this.extraData=e.extraData||{},this.isDeliveredCargo=e.isDeliveredCargo||null,this.raffle=new s(e.raffle),this.status=e.status||d.IN_PROGRESS,this.appliedProduct=new u(e.appliedProduct||{}),t(this)},u=function(e){this.productId=e.productId||"",this.variantId=e.variantId||"",t(this)};export{s as IkasRaffle,u as IkasRaffleAppliedProduct,l as IkasRaffleMetaData,n as IkasRaffleMetadataTargetType,r as IkasRaffleParticipant,i as IkasRaffleVerificationTypeEnum,a as RaffleDateRangeField,d as RaffleParticipantStatusEnum};
1
+ import{makeAutoObservable as t}from"mobx";import{IkasProductDetail as e}from"../../ui/product-detail/index.js";var i,a=function(e){this.start=e.start||null,this.end=e.end||null,t(this)};!function(t){t.EMAIL="EMAIL",t.MERSIS="MERSIS"}(i||(i={}));var n,s=function(){function t(t){var n,s;void 0===t&&(t={}),this.id=t.id||Date.now()+"",this.createdAt=t.createdAt||Date.now(),this.updatedAt=t.updatedAt||Date.now(),this.deleted=t.deleted||null,this.name=t.name||"",this.requiredCustomerAccount=t.requiredCustomerAccount||!1,this.status=t.status||!1,this.verificationType=t.verificationType||i.EMAIL,this.dateRange=t.dateRange?new a(t.dateRange):null,this.metadata=t.metadata?new l(t.metadata):null,this.variants=(null===(n=t.variants)||void 0===n?void 0:n.map((function(t){return new u(t)})))||[],this.products=(null===(s=t.products)||void 0===s?void 0:s.map((function(t){return new e(t.product,t.selectedVariantValues)})))||[]}return Object.defineProperty(t.prototype,"isRaffleAvailable",{get:function(){var t;if(!this.status)return!1;var e=Date.now();return(null===(t=this.dateRange)||void 0===t?void 0:t.start)&&e>this.dateRange.start&&this.dateRange.end&&e<this.dateRange.end},enumerable:!1,configurable:!0}),t}();!function(t){t.RAFFLE="RAFFLE"}(n||(n={}));var d,l=function(t){var e,i;this.canonicals=null,this.disableIndex=null,this.id=t.id||Date.now()+"",this.createdAt=t.createdAt||Date.now(),this.updatedAt=t.updatedAt||Date.now(),this.deleted=t.deleted||null,this.description=t.description||"",this.pageTitle=t.pageTitle||"",this.slug=t.slug||"",this.targetId=t.targetId||"",this.targetType=t.targetType||n.RAFFLE,this.canonicals=null!==(e=t.canonicals)&&void 0!==e?e:null,this.disableIndex=null!==(i=t.disableIndex)&&void 0!==i?i:null};!function(t){t.COMPLETED="COMPLETED",t.IN_PROGRESS="IN_PROGRESS",t.LOSER="LOSER",t.WINNER="WINNER"}(d||(d={}));var r=function(e){this.id=e.id||null,this.createdAt=e.createdAt||Date.now(),this.updatedAt=e.updatedAt||Date.now(),this.deleted=e.deleted||!1,this.customerId=e.customerId||null,this.raffleId=e.raffleId||"",this.firstName=e.firstName||"",this.lastName=e.lastName||"",this.fullName=e.fullName||null,this.email=e.email||"",this.applicationDate=e.applicationDate||0,this.phone=e.phone||null,this.extraData=e.extraData||{},this.isDeliveredCargo=e.isDeliveredCargo||null,this.raffle=new s(e.raffle||{}),this.status=e.status||d.IN_PROGRESS,this.appliedProduct=new u(e.appliedProduct||{}),t(this)},u=function(e){this.productId=e.productId||"",this.variantId=e.variantId||"",t(this)};export{s as IkasRaffle,u as IkasRaffleAppliedProduct,l as IkasRaffleMetaData,n as IkasRaffleMetadataTargetType,r as IkasRaffleParticipant,i as IkasRaffleVerificationTypeEnum,a as RaffleDateRangeField,d as RaffleParticipantStatusEnum};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "2.0.72",
3
+ "version": "2.0.73",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.js",
6
6
  "author": "Umut Ozan Yıldırım",