@aurigma/axios-design-atoms-api-client 2.62.3 → 2.62.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.
@@ -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.
@@ -2876,25 +2876,17 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
2876
2876
  throw new Error("The parameter 'patchType' cannot be null.");
2877
2877
  else
2878
2878
  content_.append("patchType", patchType.toString());
2879
- if (replaceImageItemFileInfo_itemName === null || replaceImageItemFileInfo_itemName === undefined)
2880
- throw new Error("The parameter 'replaceImageItemFileInfo_itemName' cannot be null.");
2881
- else
2879
+ if (replaceImageItemFileInfo_itemName !== null && replaceImageItemFileInfo_itemName !== undefined)
2882
2880
  content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
2883
- if (replaceImageItemFileInfo_sourceFile === null || replaceImageItemFileInfo_sourceFile === undefined)
2884
- throw new Error("The parameter 'replaceImageItemFileInfo_sourceFile' cannot be null.");
2885
- else
2881
+ if (replaceImageItemFileInfo_sourceFile !== null && replaceImageItemFileInfo_sourceFile !== undefined)
2886
2882
  content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
2887
- if (replacePlaceholderItemContentInfo_placeholderItemName === null || replacePlaceholderItemContentInfo_placeholderItemName === undefined)
2888
- throw new Error("The parameter 'replacePlaceholderItemContentInfo_placeholderItemName' cannot be null.");
2889
- else
2883
+ if (replacePlaceholderItemContentInfo_placeholderItemName !== null && replacePlaceholderItemContentInfo_placeholderItemName !== undefined)
2890
2884
  content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
2891
2885
  if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
2892
2886
  throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
2893
2887
  else
2894
2888
  content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
2895
- if (replacePlaceholderItemContentInfo_sourceFile === null || replacePlaceholderItemContentInfo_sourceFile === undefined)
2896
- throw new Error("The parameter 'replacePlaceholderItemContentInfo_sourceFile' cannot be null.");
2897
- else
2889
+ if (replacePlaceholderItemContentInfo_sourceFile !== null && replacePlaceholderItemContentInfo_sourceFile !== undefined)
2898
2890
  content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
2899
2891
  let options_ = {
2900
2892
  data: content_,
@@ -3798,21 +3790,13 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3798
3790
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3799
3791
  url_ = url_.replace(/[?&]$/, "");
3800
3792
  const content_ = new FormData();
3801
- if (sourceType === null || sourceType === undefined)
3802
- throw new Error("The parameter 'sourceType' cannot be null.");
3803
- else
3793
+ if (sourceType !== null && sourceType !== undefined)
3804
3794
  content_.append("sourceType", sourceType.toString());
3805
- if (sourceId === null || sourceId === undefined)
3806
- throw new Error("The parameter 'sourceId' cannot be null.");
3807
- else
3795
+ if (sourceId !== null && sourceId !== undefined)
3808
3796
  content_.append("sourceId", sourceId.toString());
3809
- if (sourceOwnerId === null || sourceOwnerId === undefined)
3810
- throw new Error("The parameter 'sourceOwnerId' cannot be null.");
3811
- else
3797
+ if (sourceOwnerId !== null && sourceOwnerId !== undefined)
3812
3798
  content_.append("sourceOwnerId", sourceOwnerId.toString());
3813
- if (sourceFile === null || sourceFile === undefined)
3814
- throw new Error("The parameter 'sourceFile' cannot be null.");
3815
- else
3799
+ if (sourceFile !== null && sourceFile !== undefined)
3816
3800
  content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
3817
3801
  let options_ = {
3818
3802
  data: content_,