@etsoo/appscript 1.4.16 → 1.4.18

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.
@@ -4,7 +4,7 @@ import { IApp } from '../app/IApp';
4
4
  import { OrgDto } from './dto/OrgDto';
5
5
  import { OrgQueryDto } from './dto/OrgQueryDto';
6
6
  import { OrgViewDto } from './dto/OrgViewDto';
7
- import { IdResultPayload } from './dto/ResultPayload';
7
+ import { IdResultPayload, StringIdResultPayload } from './dto/ResultPayload';
8
8
  import { EntityApi } from './EntityApi';
9
9
  import { OrgListRQ } from './rq/OrgListRQ';
10
10
  import { OrgQueryRQ } from './rq/OrgQueryRQ';
@@ -25,7 +25,7 @@ export declare class OrgApi extends EntityApi {
25
25
  * @param payload Payload
26
26
  * @returns Result
27
27
  */
28
- checkApiService(api: ApiService, payload?: IApiPayload<boolean>): Promise<boolean | undefined>;
28
+ checkApiService(api: ApiService, payload?: StringIdResultPayload): Promise<import("..").IdActionResult<string> | undefined>;
29
29
  /**
30
30
  * Get organization list
31
31
  * @param items Max items or request data
@@ -168,6 +168,7 @@
168
168
  "send": "Send",
169
169
  "setAsDefault": "Set as default",
170
170
  "settings": "Settings",
171
+ "serviceDisabled": "The service is not enabled or has been disabled",
171
172
  "showIt": "Show it",
172
173
  "signout": "Sign out",
173
174
  "smartERP": "SmartERP",
@@ -168,6 +168,7 @@
168
168
  "send": "发送",
169
169
  "setAsDefault": "设为默认",
170
170
  "settings": "系统设置",
171
+ "serviceDisabled": "服务未开通或已被禁用",
171
172
  "showIt": "显示",
172
173
  "signout": "退出",
173
174
  "smartERP": "司友®云ERP",
@@ -168,6 +168,7 @@
168
168
  "send": "發送",
169
169
  "setAsDefault": "設為默認",
170
170
  "settings": "系統設置",
171
+ "serviceDisabled": "服務未開通或已被禁用",
171
172
  "showIt": "顯示",
172
173
  "signout": "退出",
173
174
  "smartERP": "司友®雲ERP",
@@ -4,7 +4,7 @@ import { IApp } from '../app/IApp';
4
4
  import { OrgDto } from './dto/OrgDto';
5
5
  import { OrgQueryDto } from './dto/OrgQueryDto';
6
6
  import { OrgViewDto } from './dto/OrgViewDto';
7
- import { IdResultPayload } from './dto/ResultPayload';
7
+ import { IdResultPayload, StringIdResultPayload } from './dto/ResultPayload';
8
8
  import { EntityApi } from './EntityApi';
9
9
  import { OrgListRQ } from './rq/OrgListRQ';
10
10
  import { OrgQueryRQ } from './rq/OrgQueryRQ';
@@ -25,7 +25,7 @@ export declare class OrgApi extends EntityApi {
25
25
  * @param payload Payload
26
26
  * @returns Result
27
27
  */
28
- checkApiService(api: ApiService, payload?: IApiPayload<boolean>): Promise<boolean | undefined>;
28
+ checkApiService(api: ApiService, payload?: StringIdResultPayload): Promise<import("..").IdActionResult<string> | undefined>;
29
29
  /**
30
30
  * Get organization list
31
31
  * @param items Max items or request data
@@ -168,6 +168,7 @@
168
168
  "send": "Send",
169
169
  "setAsDefault": "Set as default",
170
170
  "settings": "Settings",
171
+ "serviceDisabled": "The service is not enabled or has been disabled",
171
172
  "showIt": "Show it",
172
173
  "signout": "Sign out",
173
174
  "smartERP": "SmartERP",
@@ -168,6 +168,7 @@
168
168
  "send": "发送",
169
169
  "setAsDefault": "设为默认",
170
170
  "settings": "系统设置",
171
+ "serviceDisabled": "服务未开通或已被禁用",
171
172
  "showIt": "显示",
172
173
  "signout": "退出",
173
174
  "smartERP": "司友®云ERP",
@@ -168,6 +168,7 @@
168
168
  "send": "發送",
169
169
  "setAsDefault": "設為默認",
170
170
  "settings": "系統設置",
171
+ "serviceDisabled": "服務未開通或已被禁用",
171
172
  "showIt": "顯示",
172
173
  "signout": "退出",
173
174
  "smartERP": "司友®雲ERP",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.4.16",
3
+ "version": "1.4.18",
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
@@ -4,7 +4,7 @@ import { IApp } from '../app/IApp';
4
4
  import { OrgDto } from './dto/OrgDto';
5
5
  import { OrgQueryDto } from './dto/OrgQueryDto';
6
6
  import { OrgViewDto } from './dto/OrgViewDto';
7
- import { IdResultPayload } from './dto/ResultPayload';
7
+ import { IdResultPayload, StringIdResultPayload } from './dto/ResultPayload';
8
8
  import { EntityApi } from './EntityApi';
9
9
  import { OrgListRQ } from './rq/OrgListRQ';
10
10
  import { OrgQueryRQ } from './rq/OrgQueryRQ';
@@ -31,7 +31,7 @@ export class OrgApi extends EntityApi {
31
31
  * @param payload Payload
32
32
  * @returns Result
33
33
  */
34
- checkApiService(api: ApiService, payload?: IApiPayload<boolean>) {
34
+ checkApiService(api: ApiService, payload?: StringIdResultPayload) {
35
35
  payload ??= { showLoading: false };
36
36
  return this.api.get(`${this.flag}/CheckApiService`, { api }, payload);
37
37
  }
package/src/i18n/en.json CHANGED
@@ -168,6 +168,7 @@
168
168
  "send": "Send",
169
169
  "setAsDefault": "Set as default",
170
170
  "settings": "Settings",
171
+ "serviceDisabled": "The service is not enabled or has been disabled",
171
172
  "showIt": "Show it",
172
173
  "signout": "Sign out",
173
174
  "smartERP": "SmartERP",
@@ -168,6 +168,7 @@
168
168
  "send": "发送",
169
169
  "setAsDefault": "设为默认",
170
170
  "settings": "系统设置",
171
+ "serviceDisabled": "服务未开通或已被禁用",
171
172
  "showIt": "显示",
172
173
  "signout": "退出",
173
174
  "smartERP": "司友®云ERP",
@@ -168,6 +168,7 @@
168
168
  "send": "發送",
169
169
  "setAsDefault": "設為默認",
170
170
  "settings": "系統設置",
171
+ "serviceDisabled": "服務未開通或已被禁用",
171
172
  "showIt": "顯示",
172
173
  "signout": "退出",
173
174
  "smartERP": "司友®雲ERP",