@etsoo/appscript 1.3.11 → 1.3.12
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.
|
@@ -55,7 +55,7 @@ export declare class PublicApi extends BaseApi {
|
|
|
55
55
|
* @param payload Payload
|
|
56
56
|
* @returns Result
|
|
57
57
|
*/
|
|
58
|
-
product<T extends number | string>(id: T, culture?: string, payload?: IApiPayload<PublicProductDto>): T extends number ? PublicProductDto : PublicOrgProductDto
|
|
58
|
+
product<T extends number | string>(id: T, culture?: string, payload?: IApiPayload<PublicProductDto>): Promise<(T extends number ? PublicProductDto : PublicOrgProductDto) | undefined>;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* Get all repeat options
|
|
@@ -55,7 +55,7 @@ export declare class PublicApi extends BaseApi {
|
|
|
55
55
|
* @param payload Payload
|
|
56
56
|
* @returns Result
|
|
57
57
|
*/
|
|
58
|
-
product<T extends number | string>(id: T, culture?: string, payload?: IApiPayload<PublicProductDto>): T extends number ? PublicProductDto : PublicOrgProductDto
|
|
58
|
+
product<T extends number | string>(id: T, culture?: string, payload?: IApiPayload<PublicProductDto>): Promise<(T extends number ? PublicProductDto : PublicOrgProductDto) | undefined>;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* Get all repeat options
|
package/package.json
CHANGED
package/src/erp/PublicApi.ts
CHANGED
|
@@ -117,7 +117,9 @@ export class PublicApi extends BaseApi {
|
|
|
117
117
|
id: T,
|
|
118
118
|
culture?: string,
|
|
119
119
|
payload?: IApiPayload<PublicProductDto>
|
|
120
|
-
):
|
|
120
|
+
): Promise<
|
|
121
|
+
(T extends number ? PublicProductDto : PublicOrgProductDto) | undefined
|
|
122
|
+
> {
|
|
121
123
|
culture = this.app.checkLanguage(culture);
|
|
122
124
|
return this.api.get(
|
|
123
125
|
`Public/Product/${id}/${culture}`,
|