@etsoo/appscript 1.4.15 → 1.4.16
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.
- package/lib/cjs/business/ApiService.d.ts +9 -0
- package/lib/cjs/business/ApiService.js +13 -0
- package/lib/cjs/erp/OrgApi.d.ts +8 -0
- package/lib/cjs/erp/OrgApi.js +10 -0
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/index.js +1 -0
- package/lib/mjs/business/ApiService.d.ts +9 -0
- package/lib/mjs/business/ApiService.js +10 -0
- package/lib/mjs/erp/OrgApi.d.ts +8 -0
- package/lib/mjs/erp/OrgApi.js +10 -0
- package/lib/mjs/index.d.ts +1 -0
- package/lib/mjs/index.js +1 -0
- package/package.json +1 -1
- package/src/business/ApiService.ts +9 -0
- package/src/erp/OrgApi.ts +12 -0
- package/src/index.ts +1 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiService = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* API service enum
|
|
6
|
+
*/
|
|
7
|
+
var ApiService;
|
|
8
|
+
(function (ApiService) {
|
|
9
|
+
/**
|
|
10
|
+
* Amazon SES
|
|
11
|
+
*/
|
|
12
|
+
ApiService[ApiService["AmazonSES"] = 1] = "AmazonSES";
|
|
13
|
+
})(ApiService || (exports.ApiService = ApiService = {}));
|
package/lib/cjs/erp/OrgApi.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { EntityApi } from './EntityApi';
|
|
|
9
9
|
import { OrgListRQ } from './rq/OrgListRQ';
|
|
10
10
|
import { OrgQueryRQ } from './rq/OrgQueryRQ';
|
|
11
11
|
import { SendActionMessageRQ } from './rq/SendActionMessageRQ';
|
|
12
|
+
import { ApiService } from '../business/ApiService';
|
|
12
13
|
/**
|
|
13
14
|
* Organization API
|
|
14
15
|
*/
|
|
@@ -18,6 +19,13 @@ export declare class OrgApi extends EntityApi {
|
|
|
18
19
|
* @param app Application
|
|
19
20
|
*/
|
|
20
21
|
constructor(app: IApp);
|
|
22
|
+
/**
|
|
23
|
+
* Check API service's availability
|
|
24
|
+
* @param api API service id
|
|
25
|
+
* @param payload Payload
|
|
26
|
+
* @returns Result
|
|
27
|
+
*/
|
|
28
|
+
checkApiService(api: ApiService, payload?: IApiPayload<boolean>): Promise<boolean | undefined>;
|
|
21
29
|
/**
|
|
22
30
|
* Get organization list
|
|
23
31
|
* @param items Max items or request data
|
package/lib/cjs/erp/OrgApi.js
CHANGED
|
@@ -14,6 +14,16 @@ class OrgApi extends EntityApi_1.EntityApi {
|
|
|
14
14
|
constructor(app) {
|
|
15
15
|
super('Organization', app);
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Check API service's availability
|
|
19
|
+
* @param api API service id
|
|
20
|
+
* @param payload Payload
|
|
21
|
+
* @returns Result
|
|
22
|
+
*/
|
|
23
|
+
checkApiService(api, payload) {
|
|
24
|
+
payload !== null && payload !== void 0 ? payload : (payload = { showLoading: false });
|
|
25
|
+
return this.api.get(`${this.flag}/CheckApiService`, { api }, payload);
|
|
26
|
+
}
|
|
17
27
|
list(items, serviceId) {
|
|
18
28
|
if (typeof items === 'object') {
|
|
19
29
|
if (typeof serviceId === 'number')
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './app/IApp';
|
|
|
15
15
|
export * from './app/UserRole';
|
|
16
16
|
export * from './bridges/BridgeUtils';
|
|
17
17
|
export * from './bridges/IBridgeHost';
|
|
18
|
+
export * from './business/ApiService';
|
|
18
19
|
export * from './business/BusinessTax';
|
|
19
20
|
export * from './business/BusinessUtils';
|
|
20
21
|
export * from './business/Currency';
|
package/lib/cjs/index.js
CHANGED
|
@@ -36,6 +36,7 @@ __exportStar(require("./app/UserRole"), exports);
|
|
|
36
36
|
__exportStar(require("./bridges/BridgeUtils"), exports);
|
|
37
37
|
__exportStar(require("./bridges/IBridgeHost"), exports);
|
|
38
38
|
// business
|
|
39
|
+
__exportStar(require("./business/ApiService"), exports);
|
|
39
40
|
__exportStar(require("./business/BusinessTax"), exports);
|
|
40
41
|
__exportStar(require("./business/BusinessUtils"), exports);
|
|
41
42
|
__exportStar(require("./business/Currency"), exports);
|
package/lib/mjs/erp/OrgApi.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { EntityApi } from './EntityApi';
|
|
|
9
9
|
import { OrgListRQ } from './rq/OrgListRQ';
|
|
10
10
|
import { OrgQueryRQ } from './rq/OrgQueryRQ';
|
|
11
11
|
import { SendActionMessageRQ } from './rq/SendActionMessageRQ';
|
|
12
|
+
import { ApiService } from '../business/ApiService';
|
|
12
13
|
/**
|
|
13
14
|
* Organization API
|
|
14
15
|
*/
|
|
@@ -18,6 +19,13 @@ export declare class OrgApi extends EntityApi {
|
|
|
18
19
|
* @param app Application
|
|
19
20
|
*/
|
|
20
21
|
constructor(app: IApp);
|
|
22
|
+
/**
|
|
23
|
+
* Check API service's availability
|
|
24
|
+
* @param api API service id
|
|
25
|
+
* @param payload Payload
|
|
26
|
+
* @returns Result
|
|
27
|
+
*/
|
|
28
|
+
checkApiService(api: ApiService, payload?: IApiPayload<boolean>): Promise<boolean | undefined>;
|
|
21
29
|
/**
|
|
22
30
|
* Get organization list
|
|
23
31
|
* @param items Max items or request data
|
package/lib/mjs/erp/OrgApi.js
CHANGED
|
@@ -11,6 +11,16 @@ export class OrgApi extends EntityApi {
|
|
|
11
11
|
constructor(app) {
|
|
12
12
|
super('Organization', app);
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Check API service's availability
|
|
16
|
+
* @param api API service id
|
|
17
|
+
* @param payload Payload
|
|
18
|
+
* @returns Result
|
|
19
|
+
*/
|
|
20
|
+
checkApiService(api, payload) {
|
|
21
|
+
payload !== null && payload !== void 0 ? payload : (payload = { showLoading: false });
|
|
22
|
+
return this.api.get(`${this.flag}/CheckApiService`, { api }, payload);
|
|
23
|
+
}
|
|
14
24
|
list(items, serviceId) {
|
|
15
25
|
if (typeof items === 'object') {
|
|
16
26
|
if (typeof serviceId === 'number')
|
package/lib/mjs/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './app/IApp';
|
|
|
15
15
|
export * from './app/UserRole';
|
|
16
16
|
export * from './bridges/BridgeUtils';
|
|
17
17
|
export * from './bridges/IBridgeHost';
|
|
18
|
+
export * from './business/ApiService';
|
|
18
19
|
export * from './business/BusinessTax';
|
|
19
20
|
export * from './business/BusinessUtils';
|
|
20
21
|
export * from './business/Currency';
|
package/lib/mjs/index.js
CHANGED
|
@@ -19,6 +19,7 @@ export * from './app/UserRole';
|
|
|
19
19
|
export * from './bridges/BridgeUtils';
|
|
20
20
|
export * from './bridges/IBridgeHost';
|
|
21
21
|
// business
|
|
22
|
+
export * from './business/ApiService';
|
|
22
23
|
export * from './business/BusinessTax';
|
|
23
24
|
export * from './business/BusinessUtils';
|
|
24
25
|
export * from './business/Currency';
|
package/package.json
CHANGED
package/src/erp/OrgApi.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { EntityApi } from './EntityApi';
|
|
|
9
9
|
import { OrgListRQ } from './rq/OrgListRQ';
|
|
10
10
|
import { OrgQueryRQ } from './rq/OrgQueryRQ';
|
|
11
11
|
import { SendActionMessageRQ } from './rq/SendActionMessageRQ';
|
|
12
|
+
import { ApiService } from '../business/ApiService';
|
|
12
13
|
|
|
13
14
|
const cachedOrgs: { [P: number]: OrgViewDto | undefined | null } = {};
|
|
14
15
|
|
|
@@ -24,6 +25,17 @@ export class OrgApi extends EntityApi {
|
|
|
24
25
|
super('Organization', app);
|
|
25
26
|
}
|
|
26
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Check API service's availability
|
|
30
|
+
* @param api API service id
|
|
31
|
+
* @param payload Payload
|
|
32
|
+
* @returns Result
|
|
33
|
+
*/
|
|
34
|
+
checkApiService(api: ApiService, payload?: IApiPayload<boolean>) {
|
|
35
|
+
payload ??= { showLoading: false };
|
|
36
|
+
return this.api.get(`${this.flag}/CheckApiService`, { api }, payload);
|
|
37
|
+
}
|
|
38
|
+
|
|
27
39
|
/**
|
|
28
40
|
* Get organization list
|
|
29
41
|
* @param items Max items or request data
|
package/src/index.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from './bridges/BridgeUtils';
|
|
|
22
22
|
export * from './bridges/IBridgeHost';
|
|
23
23
|
|
|
24
24
|
// business
|
|
25
|
+
export * from './business/ApiService';
|
|
25
26
|
export * from './business/BusinessTax';
|
|
26
27
|
export * from './business/BusinessUtils';
|
|
27
28
|
export * from './business/Currency';
|