@etsoo/appscript 1.3.11 → 1.3.13

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
@@ -1,3 +1,4 @@
1
+ import { DataTypes } from '@etsoo/shared';
1
2
  import { EntityStatus } from '../../business/EntityStatus';
2
3
  /**
3
4
  * Public product data
@@ -19,6 +20,10 @@ export declare type PublicProductDto = {
19
20
  * Web URL for access
20
21
  */
21
22
  webUrl: string;
23
+ /**
24
+ * Query id for service Id / service Uid
25
+ */
26
+ queryId?: DataTypes.IdType;
22
27
  };
23
28
  /**
24
29
  * Public product with organization data
@@ -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
@@ -1,3 +1,4 @@
1
+ import { DataTypes } from '@etsoo/shared';
1
2
  import { EntityStatus } from '../../business/EntityStatus';
2
3
  /**
3
4
  * Public product data
@@ -19,6 +20,10 @@ export declare type PublicProductDto = {
19
20
  * Web URL for access
20
21
  */
21
22
  webUrl: string;
23
+ /**
24
+ * Query id for service Id / service Uid
25
+ */
26
+ queryId?: DataTypes.IdType;
22
27
  };
23
28
  /**
24
29
  * Public product with organization data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.3.11",
3
+ "version": "1.3.13",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -117,7 +117,9 @@ export class PublicApi extends BaseApi {
117
117
  id: T,
118
118
  culture?: string,
119
119
  payload?: IApiPayload<PublicProductDto>
120
- ): T extends number ? PublicProductDto : PublicOrgProductDto {
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}`,
@@ -1,3 +1,4 @@
1
+ import { DataTypes } from '@etsoo/shared';
1
2
  import { EntityStatus } from '../../business/EntityStatus';
2
3
 
3
4
  /**
@@ -23,6 +24,11 @@ export type PublicProductDto = {
23
24
  * Web URL for access
24
25
  */
25
26
  webUrl: string;
27
+
28
+ /**
29
+ * Query id for service Id / service Uid
30
+ */
31
+ queryId?: DataTypes.IdType;
26
32
  };
27
33
 
28
34
  /**