@ikas/storefront-models 4.0.0-alpha.37 → 4.0.0-alpha.38

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.
@@ -128,6 +128,7 @@ export * from "./models/product/variant-type/init";
128
128
  export * from "./models/product/variant-type";
129
129
  export * from "./models/product/init";
130
130
  export * from "./models/product";
131
+ export * from "./models/product-option-file";
131
132
  export * from "./models/raffle/init";
132
133
  export * from "./models/raffle/";
133
134
  export * from "./models/sales-channel";
@@ -18,5 +18,7 @@ export declare enum IkasProductAttributeType {
18
18
  NUMERIC = "NUMERIC",
19
19
  DATETIME = "DATETIME",
20
20
  HTML = "HTML",
21
- TABLE = "TABLE"
21
+ TABLE = "TABLE",
22
+ IMAGE = "IMAGE",
23
+ PRODUCT = "PRODUCT"
22
24
  }
@@ -1,2 +1,2 @@
1
- "use strict";var t;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasProductAttributeType=void 0,(t=exports.IkasProductAttributeType||(exports.IkasProductAttributeType={})).CHOICE="CHOICE",t.MULTIPLE_CHOICE="MULTIPLE_CHOICE",t.TEXT="TEXT",t.BOOLEAN="BOOLEAN",t.NUMERIC="NUMERIC",t.DATETIME="DATETIME",t.HTML="HTML",t.TABLE="TABLE";
1
+ "use strict";var t;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasProductAttributeType=void 0,(t=exports.IkasProductAttributeType||(exports.IkasProductAttributeType={})).CHOICE="CHOICE",t.MULTIPLE_CHOICE="MULTIPLE_CHOICE",t.TEXT="TEXT",t.BOOLEAN="BOOLEAN",t.NUMERIC="NUMERIC",t.DATETIME="DATETIME",t.HTML="HTML",t.TABLE="TABLE",t.IMAGE="IMAGE",t.PRODUCT="PRODUCT";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/models/product/attribute/index.ts"],"sourcesContent":["import { IkasProductAttributeTableTemplate } from \"./table-template\";\nimport { IkasProductAttributeOption } from \"./option\";\nimport { IkasProductAttributeTranslation } from \"./translation\";\n\nexport type IkasProductAttribute = {\n id: string;\n name: string;\n description: string | null;\n type: IkasProductAttributeType;\n options: IkasProductAttributeOption[] | null;\n tableTemplate: IkasProductAttributeTableTemplate | null;\n translations?: IkasProductAttributeTranslation[] | null;\n};\n\nexport enum IkasProductAttributeType {\n CHOICE = \"CHOICE\",\n MULTIPLE_CHOICE = \"MULTIPLE_CHOICE\",\n TEXT = \"TEXT\",\n BOOLEAN = \"BOOLEAN\",\n NUMERIC = \"NUMERIC\",\n DATETIME = \"DATETIME\",\n HTML = \"HTML\",\n TABLE = \"TABLE\",\n}\n"],"names":["IkasProductAttributeType"],"mappings":"aAcA,IAAYA,yDAAAA,QASXA,8BAAA,GATWA,EAAAA,QAAwBA,2BAAxBA,iCASX,KARC,OAAA,SACAA,EAAA,gBAAA,kBACAA,EAAA,KAAA,OACAA,EAAA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,KAAA,OACAA,EAAA,MAAA"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/models/product/attribute/index.ts"],"sourcesContent":["import { IkasProductAttributeTableTemplate } from \"./table-template\";\nimport { IkasProductAttributeOption } from \"./option\";\nimport { IkasProductAttributeTranslation } from \"./translation\";\n\nexport type IkasProductAttribute = {\n id: string;\n name: string;\n description: string | null;\n type: IkasProductAttributeType;\n options: IkasProductAttributeOption[] | null;\n tableTemplate: IkasProductAttributeTableTemplate | null;\n translations?: IkasProductAttributeTranslation[] | null;\n};\n\nexport enum IkasProductAttributeType {\n CHOICE = \"CHOICE\",\n MULTIPLE_CHOICE = \"MULTIPLE_CHOICE\",\n TEXT = \"TEXT\",\n BOOLEAN = \"BOOLEAN\",\n NUMERIC = \"NUMERIC\",\n DATETIME = \"DATETIME\",\n HTML = \"HTML\",\n TABLE = \"TABLE\",\n IMAGE = \"IMAGE\",\n PRODUCT = \"PRODUCT\",\n}\n"],"names":["IkasProductAttributeType"],"mappings":"aAcA,IAAYA,yDAAAA,QAWXA,8BAAA,GAXWA,EAAAA,QAAwBA,2BAAxBA,iCAWX,KAVC,OAAA,SACAA,EAAA,gBAAA,kBACAA,EAAA,KAAA,OACAA,EAAA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,QAAA"}
@@ -0,0 +1,5 @@
1
+ export declare type IkasProductOptionFileUrl = {
2
+ fields: any;
3
+ optionUrl: string;
4
+ url: string;
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-models",
3
- "version": "4.0.0-alpha.37",
3
+ "version": "4.0.0-alpha.38",
4
4
  "author": "Umut Ozan Yıldırım",
5
5
  "license": "ISC",
6
6
  "description": "Data models to be used in an ikas storefront application.",
package/src/index.ts CHANGED
@@ -172,6 +172,9 @@ export * from "./models/product/variant-type";
172
172
  export * from "./models/product/init";
173
173
  export * from "./models/product";
174
174
 
175
+ // FILE-UPLOAD
176
+ export * from "./models/product-option-file";
177
+
175
178
  // RAFFLE
176
179
  export * from "./models/raffle/init";
177
180
  export * from "./models/raffle/";
@@ -21,4 +21,6 @@ export enum IkasProductAttributeType {
21
21
  DATETIME = "DATETIME",
22
22
  HTML = "HTML",
23
23
  TABLE = "TABLE",
24
+ IMAGE = "IMAGE",
25
+ PRODUCT = "PRODUCT",
24
26
  }
@@ -0,0 +1,5 @@
1
+ export type IkasProductOptionFileUrl = {
2
+ fields: any;
3
+ optionUrl: string;
4
+ url: string;
5
+ };