@fyul/embed-sdk 2.1.1 → 2.2.1
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/dist/cjs/modules/mockup-generation/types/event/actionEventPayload.types.d.ts +6 -4
- package/dist/cjs/modules/product-publish/types/event/actionEventPayload.types.d.ts +3 -0
- package/dist/cjs/modules/product-publish/types/event/resultEventPayload.types.d.ts +5 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/modules/mockup-generation/types/event/actionEventPayload.types.d.ts +6 -4
- package/dist/esm/modules/product-publish/types/event/actionEventPayload.types.d.ts +3 -0
- package/dist/esm/modules/product-publish/types/event/resultEventPayload.types.d.ts +5 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
export interface GetMockupsPayload {
|
|
2
2
|
/** File from which to generate mockups */
|
|
3
3
|
file: Blob;
|
|
4
|
-
/** List of all products and their variants to fetch mockups for */
|
|
5
4
|
products: {
|
|
6
5
|
productId: number;
|
|
6
|
+
/** Prefetch as many variants as necessary, so that switching colors/sizes
|
|
7
|
+
* will be faster */
|
|
7
8
|
variantIds?: number[];
|
|
9
|
+
/** If not provided, the first variant from each product will be used */
|
|
10
|
+
selectedVariantId?: number;
|
|
11
|
+
/** If not provided, the default product technique will be used */
|
|
12
|
+
selectedTechnique?: string;
|
|
8
13
|
}[];
|
|
9
|
-
/** Optional mapping of productId → selected variantId.
|
|
10
|
-
* If not provided, the first variant from each product will be used. */
|
|
11
|
-
selectedVariants?: Record<string, number>;
|
|
12
14
|
/** If set to true, request will finish faster, and allow you
|
|
13
15
|
* to show preview image on which mockup will be generated on */
|
|
14
16
|
shouldReturnBlankMockups?: true;
|
|
@@ -6,6 +6,9 @@ export interface GetProductPublishPayload {
|
|
|
6
6
|
productId: number;
|
|
7
7
|
/** Should not be empty, otherwise will fail to publish */
|
|
8
8
|
variantIds: number[];
|
|
9
|
+
/** If was provided for getMockups payload, should be provided also here.
|
|
10
|
+
* Otherwise, customer might not get what he sees */
|
|
11
|
+
selectedTechnique?: string;
|
|
9
12
|
}[];
|
|
10
13
|
/** Used to position design on a product */
|
|
11
14
|
designOptions?: DesignOption[];
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION: "2.
|
|
1
|
+
export declare const VERSION: "2.2.1";
|
package/dist/cjs/version.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
export interface GetMockupsPayload {
|
|
2
2
|
/** File from which to generate mockups */
|
|
3
3
|
file: Blob;
|
|
4
|
-
/** List of all products and their variants to fetch mockups for */
|
|
5
4
|
products: {
|
|
6
5
|
productId: number;
|
|
6
|
+
/** Prefetch as many variants as necessary, so that switching colors/sizes
|
|
7
|
+
* will be faster */
|
|
7
8
|
variantIds?: number[];
|
|
9
|
+
/** If not provided, the first variant from each product will be used */
|
|
10
|
+
selectedVariantId?: number;
|
|
11
|
+
/** If not provided, the default product technique will be used */
|
|
12
|
+
selectedTechnique?: string;
|
|
8
13
|
}[];
|
|
9
|
-
/** Optional mapping of productId → selected variantId.
|
|
10
|
-
* If not provided, the first variant from each product will be used. */
|
|
11
|
-
selectedVariants?: Record<string, number>;
|
|
12
14
|
/** If set to true, request will finish faster, and allow you
|
|
13
15
|
* to show preview image on which mockup will be generated on */
|
|
14
16
|
shouldReturnBlankMockups?: true;
|
|
@@ -6,6 +6,9 @@ export interface GetProductPublishPayload {
|
|
|
6
6
|
productId: number;
|
|
7
7
|
/** Should not be empty, otherwise will fail to publish */
|
|
8
8
|
variantIds: number[];
|
|
9
|
+
/** If was provided for getMockups payload, should be provided also here.
|
|
10
|
+
* Otherwise, customer might not get what he sees */
|
|
11
|
+
selectedTechnique?: string;
|
|
9
12
|
}[];
|
|
10
13
|
/** Used to position design on a product */
|
|
11
14
|
designOptions?: DesignOption[];
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION: "2.
|
|
1
|
+
export declare const VERSION: "2.2.1";
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// AUTO-GENERATED
|
|
2
|
-
export const VERSION = '2.
|
|
2
|
+
export const VERSION = '2.2.1';
|