@aurigma/axios-design-atoms-api-client 2.62.3 → 2.62.5
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/design-atoms-api-client.d.ts +4 -4
- package/dist/cjs/design-atoms-api-client.js +8 -24
- package/dist/cjs/design-atoms-api-client.js.map +1 -1
- package/dist/esm/design-atoms-api-client.d.ts +4 -4
- package/dist/esm/design-atoms-api-client.js +8 -24
- package/dist/esm/design-atoms-api-client.js.map +1 -1
- package/package.json +1 -1
|
@@ -548,7 +548,7 @@ export interface IDesignAtomsServiceApiClient {
|
|
|
548
548
|
* @param replacePlaceholderItemContentInfo_sourceFile (optional)
|
|
549
549
|
* @return Success
|
|
550
550
|
*/
|
|
551
|
-
patchProduct(id: string, privateStorageOwner?: string | undefined, tenantId?: number | undefined, patchType?: ProductPatchType | undefined, replaceImageItemFileInfo_itemName?: string | undefined, replaceImageItemFileInfo_sourceFile?: FileParameter | undefined, replacePlaceholderItemContentInfo_placeholderItemName?: string | undefined, replacePlaceholderItemContentInfo_newContentType?: PlaceholderItemContentType | undefined, replacePlaceholderItemContentInfo_sourceFile?: FileParameter | undefined): Promise<void>;
|
|
551
|
+
patchProduct(id: string, privateStorageOwner?: string | undefined, tenantId?: number | undefined, patchType?: ProductPatchType | undefined, replaceImageItemFileInfo_itemName?: string | null | undefined, replaceImageItemFileInfo_sourceFile?: FileParameter | null | undefined, replacePlaceholderItemContentInfo_placeholderItemName?: string | null | undefined, replacePlaceholderItemContentInfo_newContentType?: PlaceholderItemContentType | undefined, replacePlaceholderItemContentInfo_sourceFile?: FileParameter | null | undefined): Promise<void>;
|
|
552
552
|
/**
|
|
553
553
|
* Returns design parameters stored in product model.
|
|
554
554
|
* @param id Design identifier.
|
|
@@ -640,7 +640,7 @@ export interface IDesignAtomsServiceApiClient {
|
|
|
640
640
|
* @param sourceFile (optional)
|
|
641
641
|
* @return Success
|
|
642
642
|
*/
|
|
643
|
-
createItem(itemType?: ItemType | undefined, tenantId?: number | undefined, sourceType?: ItemSourceType | undefined, sourceId?: string | undefined, sourceOwnerId?: string | undefined, sourceFile?: FileParameter | undefined): Promise<any>;
|
|
643
|
+
createItem(itemType?: ItemType | undefined, tenantId?: number | undefined, sourceType?: ItemSourceType | null | undefined, sourceId?: string | null | undefined, sourceOwnerId?: string | null | undefined, sourceFile?: FileParameter | null | undefined): Promise<any>;
|
|
644
644
|
/**
|
|
645
645
|
* Extracts product item image.
|
|
646
646
|
* @param tenantId (optional) Tenant identifier
|
|
@@ -773,7 +773,7 @@ export declare class DesignAtomsServiceApiClient extends ApiClientBase implement
|
|
|
773
773
|
* @param replacePlaceholderItemContentInfo_sourceFile (optional)
|
|
774
774
|
* @return Success
|
|
775
775
|
*/
|
|
776
|
-
patchProduct(id: string, privateStorageOwner?: string | undefined, tenantId?: number | undefined, patchType?: ProductPatchType | undefined, replaceImageItemFileInfo_itemName?: string | undefined, replaceImageItemFileInfo_sourceFile?: FileParameter | undefined, replacePlaceholderItemContentInfo_placeholderItemName?: string | undefined, replacePlaceholderItemContentInfo_newContentType?: PlaceholderItemContentType | undefined, replacePlaceholderItemContentInfo_sourceFile?: FileParameter | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
|
|
776
|
+
patchProduct(id: string, privateStorageOwner?: string | undefined, tenantId?: number | undefined, patchType?: ProductPatchType | undefined, replaceImageItemFileInfo_itemName?: string | null | undefined, replaceImageItemFileInfo_sourceFile?: FileParameter | null | undefined, replacePlaceholderItemContentInfo_placeholderItemName?: string | null | undefined, replacePlaceholderItemContentInfo_newContentType?: PlaceholderItemContentType | undefined, replacePlaceholderItemContentInfo_sourceFile?: FileParameter | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
|
|
777
777
|
protected processPatchProduct(response: AxiosResponse): Promise<void>;
|
|
778
778
|
/**
|
|
779
779
|
* Returns design parameters stored in product model.
|
|
@@ -876,7 +876,7 @@ export declare class DesignAtomsServiceApiClient extends ApiClientBase implement
|
|
|
876
876
|
* @param sourceFile (optional)
|
|
877
877
|
* @return Success
|
|
878
878
|
*/
|
|
879
|
-
createItem(itemType?: ItemType | undefined, tenantId?: number | undefined, sourceType?: ItemSourceType | undefined, sourceId?: string | undefined, sourceOwnerId?: string | undefined, sourceFile?: FileParameter | undefined, cancelToken?: CancelToken | undefined): Promise<any>;
|
|
879
|
+
createItem(itemType?: ItemType | undefined, tenantId?: number | undefined, sourceType?: ItemSourceType | null | undefined, sourceId?: string | null | undefined, sourceOwnerId?: string | null | undefined, sourceFile?: FileParameter | null | undefined, cancelToken?: CancelToken | undefined): Promise<any>;
|
|
880
880
|
protected processCreateItem(response: AxiosResponse): Promise<any>;
|
|
881
881
|
/**
|
|
882
882
|
* Extracts product item image.
|
|
@@ -2885,25 +2885,17 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2885
2885
|
throw new Error("The parameter 'patchType' cannot be null.");
|
|
2886
2886
|
else
|
|
2887
2887
|
content_.append("patchType", patchType.toString());
|
|
2888
|
-
if (replaceImageItemFileInfo_itemName
|
|
2889
|
-
throw new Error("The parameter 'replaceImageItemFileInfo_itemName' cannot be null.");
|
|
2890
|
-
else
|
|
2888
|
+
if (replaceImageItemFileInfo_itemName !== null && replaceImageItemFileInfo_itemName !== undefined)
|
|
2891
2889
|
content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
|
|
2892
|
-
if (replaceImageItemFileInfo_sourceFile
|
|
2893
|
-
throw new Error("The parameter 'replaceImageItemFileInfo_sourceFile' cannot be null.");
|
|
2894
|
-
else
|
|
2890
|
+
if (replaceImageItemFileInfo_sourceFile !== null && replaceImageItemFileInfo_sourceFile !== undefined)
|
|
2895
2891
|
content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
|
|
2896
|
-
if (replacePlaceholderItemContentInfo_placeholderItemName
|
|
2897
|
-
throw new Error("The parameter 'replacePlaceholderItemContentInfo_placeholderItemName' cannot be null.");
|
|
2898
|
-
else
|
|
2892
|
+
if (replacePlaceholderItemContentInfo_placeholderItemName !== null && replacePlaceholderItemContentInfo_placeholderItemName !== undefined)
|
|
2899
2893
|
content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
|
|
2900
2894
|
if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
|
|
2901
2895
|
throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
|
|
2902
2896
|
else
|
|
2903
2897
|
content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
|
|
2904
|
-
if (replacePlaceholderItemContentInfo_sourceFile
|
|
2905
|
-
throw new Error("The parameter 'replacePlaceholderItemContentInfo_sourceFile' cannot be null.");
|
|
2906
|
-
else
|
|
2898
|
+
if (replacePlaceholderItemContentInfo_sourceFile !== null && replacePlaceholderItemContentInfo_sourceFile !== undefined)
|
|
2907
2899
|
content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
|
|
2908
2900
|
let options_ = {
|
|
2909
2901
|
data: content_,
|
|
@@ -3807,21 +3799,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3807
3799
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3808
3800
|
url_ = url_.replace(/[?&]$/, "");
|
|
3809
3801
|
const content_ = new FormData();
|
|
3810
|
-
if (sourceType
|
|
3811
|
-
throw new Error("The parameter 'sourceType' cannot be null.");
|
|
3812
|
-
else
|
|
3802
|
+
if (sourceType !== null && sourceType !== undefined)
|
|
3813
3803
|
content_.append("sourceType", sourceType.toString());
|
|
3814
|
-
if (sourceId
|
|
3815
|
-
throw new Error("The parameter 'sourceId' cannot be null.");
|
|
3816
|
-
else
|
|
3804
|
+
if (sourceId !== null && sourceId !== undefined)
|
|
3817
3805
|
content_.append("sourceId", sourceId.toString());
|
|
3818
|
-
if (sourceOwnerId
|
|
3819
|
-
throw new Error("The parameter 'sourceOwnerId' cannot be null.");
|
|
3820
|
-
else
|
|
3806
|
+
if (sourceOwnerId !== null && sourceOwnerId !== undefined)
|
|
3821
3807
|
content_.append("sourceOwnerId", sourceOwnerId.toString());
|
|
3822
|
-
if (sourceFile
|
|
3823
|
-
throw new Error("The parameter 'sourceFile' cannot be null.");
|
|
3824
|
-
else
|
|
3808
|
+
if (sourceFile !== null && sourceFile !== undefined)
|
|
3825
3809
|
content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
|
|
3826
3810
|
let options_ = {
|
|
3827
3811
|
data: content_,
|