@etsoo/appscript 1.3.12 → 1.3.14

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.
@@ -1,8 +1,8 @@
1
1
  import { IApiPayload } from '@etsoo/restclient';
2
2
  import { DataTypes, ListType } from '@etsoo/shared';
3
3
  import { IApp } from '../app/IApp';
4
- import { IdActionResult } from '../result/IActionResult';
5
4
  import { OrgQueryDto } from './dto/OrgQueryDto';
5
+ import { IdResultPayload } from './dto/ResultPayload';
6
6
  import { EntityApi } from './EntityApi';
7
7
  import { OrgListRQ } from './rq/OrgListRQ';
8
8
  import { OrgQueryRQ } from './rq/OrgQueryRQ';
@@ -45,5 +45,5 @@ export declare class OrgApi extends EntityApi {
45
45
  * @param payload Payload
46
46
  * @returns Result
47
47
  */
48
- update(data: DataTypes.AddOrEditType<OrgRQ, true>, payload?: IApiPayload<IdActionResult>): Promise<IdActionResult<number> | undefined>;
48
+ update(data: DataTypes.AddOrEditType<OrgRQ, true>, payload?: IdResultPayload): Promise<import("..").IdActionResult<number> | undefined>;
49
49
  }
@@ -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
@@ -0,0 +1,14 @@
1
+ import { IApiPayload } from '@etsoo/restclient';
2
+ import { IActionResult, IdActionResult } from '../../result/IActionResult';
3
+ /**
4
+ * Action result payload
5
+ */
6
+ export declare type ResultPayload = IApiPayload<IActionResult>;
7
+ /**
8
+ * Number id action result payload
9
+ */
10
+ export declare type IdResultPayload = IApiPayload<IdActionResult>;
11
+ /**
12
+ * String id action result payload
13
+ */
14
+ export declare type StringIdResultPayload = IApiPayload<IdActionResult<string>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,8 @@
1
1
  import { IApiPayload } from '@etsoo/restclient';
2
2
  import { DataTypes, ListType } from '@etsoo/shared';
3
3
  import { IApp } from '../app/IApp';
4
- import { IdActionResult } from '../result/IActionResult';
5
4
  import { OrgQueryDto } from './dto/OrgQueryDto';
5
+ import { IdResultPayload } from './dto/ResultPayload';
6
6
  import { EntityApi } from './EntityApi';
7
7
  import { OrgListRQ } from './rq/OrgListRQ';
8
8
  import { OrgQueryRQ } from './rq/OrgQueryRQ';
@@ -45,5 +45,5 @@ export declare class OrgApi extends EntityApi {
45
45
  * @param payload Payload
46
46
  * @returns Result
47
47
  */
48
- update(data: DataTypes.AddOrEditType<OrgRQ, true>, payload?: IApiPayload<IdActionResult>): Promise<IdActionResult<number> | undefined>;
48
+ update(data: DataTypes.AddOrEditType<OrgRQ, true>, payload?: IdResultPayload): Promise<import("..").IdActionResult<number> | undefined>;
49
49
  }
@@ -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
@@ -0,0 +1,14 @@
1
+ import { IApiPayload } from '@etsoo/restclient';
2
+ import { IActionResult, IdActionResult } from '../../result/IActionResult';
3
+ /**
4
+ * Action result payload
5
+ */
6
+ export declare type ResultPayload = IApiPayload<IActionResult>;
7
+ /**
8
+ * Number id action result payload
9
+ */
10
+ export declare type IdResultPayload = IApiPayload<IdActionResult>;
11
+ /**
12
+ * String id action result payload
13
+ */
14
+ export declare type StringIdResultPayload = IApiPayload<IdActionResult<string>>;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.3.12",
3
+ "version": "1.3.14",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
package/src/erp/OrgApi.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { IApiPayload } from '@etsoo/restclient';
2
2
  import { DataTypes, ListType } from '@etsoo/shared';
3
3
  import { IApp } from '../app/IApp';
4
- import { IdActionResult } from '../result/IActionResult';
5
4
  import { OrgQueryDto } from './dto/OrgQueryDto';
5
+ import { IdResultPayload } from './dto/ResultPayload';
6
6
  import { EntityApi } from './EntityApi';
7
7
  import { OrgListRQ } from './rq/OrgListRQ';
8
8
  import { OrgQueryRQ } from './rq/OrgQueryRQ';
@@ -81,7 +81,7 @@ export class OrgApi extends EntityApi {
81
81
  */
82
82
  update(
83
83
  data: DataTypes.AddOrEditType<OrgRQ, true>,
84
- payload?: IApiPayload<IdActionResult>
84
+ payload?: IdResultPayload
85
85
  ) {
86
86
  return super.updateBase(data, payload);
87
87
  }
@@ -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
  /**
@@ -0,0 +1,17 @@
1
+ import { IApiPayload } from '@etsoo/restclient';
2
+ import { IActionResult, IdActionResult } from '../../result/IActionResult';
3
+
4
+ /**
5
+ * Action result payload
6
+ */
7
+ export type ResultPayload = IApiPayload<IActionResult>;
8
+
9
+ /**
10
+ * Number id action result payload
11
+ */
12
+ export type IdResultPayload = IApiPayload<IdActionResult>;
13
+
14
+ /**
15
+ * String id action result payload
16
+ */
17
+ export type StringIdResultPayload = IApiPayload<IdActionResult<string>>;