@etsoo/appscript 1.3.3 → 1.3.4
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/erp/AddressApi.d.ts +2 -8
- package/lib/cjs/erp/AddressApi.js +4 -7
- package/lib/cjs/erp/BaseApi.d.ts +12 -0
- package/lib/cjs/erp/BaseApi.js +16 -0
- package/lib/cjs/erp/OrgApi.d.ts +2 -8
- package/lib/cjs/erp/OrgApi.js +2 -8
- package/lib/cjs/erp/PublicApi.d.ts +2 -8
- package/lib/cjs/erp/PublicApi.js +2 -8
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/index.js +1 -0
- package/lib/mjs/erp/AddressApi.d.ts +2 -8
- package/lib/mjs/erp/AddressApi.js +4 -7
- package/lib/mjs/erp/BaseApi.d.ts +12 -0
- package/lib/mjs/erp/BaseApi.js +12 -0
- package/lib/mjs/erp/OrgApi.d.ts +2 -8
- package/lib/mjs/erp/OrgApi.js +2 -8
- package/lib/mjs/erp/PublicApi.d.ts +2 -8
- package/lib/mjs/erp/PublicApi.js +2 -8
- package/lib/mjs/index.d.ts +1 -0
- package/lib/mjs/index.js +1 -0
- package/package.json +1 -1
- package/src/erp/AddressApi.ts +2 -8
- package/src/erp/BaseApi.ts +12 -0
- package/src/erp/OrgApi.ts +2 -8
- package/src/erp/PublicApi.ts +2 -8
- package/src/index.ts +1 -0
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
import { DataTypes } from '@etsoo/shared';
|
|
2
2
|
import { AddressRegion, AddressRegionDb } from '../address/AddressRegion';
|
|
3
3
|
import { AddressState } from '../address/AddressState';
|
|
4
|
-
import { IApp } from '../app/IApp';
|
|
5
4
|
import { IdLabelConditional } from '../dto/IdLabelDto';
|
|
5
|
+
import { BaseApi } from './BaseApi';
|
|
6
6
|
/**
|
|
7
7
|
* Address Api
|
|
8
8
|
*/
|
|
9
|
-
export declare class AddressApi {
|
|
10
|
-
private app;
|
|
9
|
+
export declare class AddressApi extends BaseApi {
|
|
11
10
|
private languageLabels;
|
|
12
|
-
/**
|
|
13
|
-
* Constructor
|
|
14
|
-
* @param app Application
|
|
15
|
-
*/
|
|
16
|
-
constructor(app: IApp);
|
|
17
11
|
/**
|
|
18
12
|
* Get address labels
|
|
19
13
|
* @param language Language
|
|
@@ -27,16 +27,13 @@ exports.AddressApi = void 0;
|
|
|
27
27
|
const shared_1 = require("@etsoo/shared");
|
|
28
28
|
const AddressContinent_1 = require("../address/AddressContinent");
|
|
29
29
|
const AddressRegion_1 = require("../address/AddressRegion");
|
|
30
|
+
const BaseApi_1 = require("./BaseApi");
|
|
30
31
|
/**
|
|
31
32
|
* Address Api
|
|
32
33
|
*/
|
|
33
|
-
class AddressApi {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
* @param app Application
|
|
37
|
-
*/
|
|
38
|
-
constructor(app) {
|
|
39
|
-
this.app = app;
|
|
34
|
+
class AddressApi extends BaseApi_1.BaseApi {
|
|
35
|
+
constructor() {
|
|
36
|
+
super(...arguments);
|
|
40
37
|
this.languageLabels = {};
|
|
41
38
|
}
|
|
42
39
|
/**
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseApi = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* SmartERP base API
|
|
6
|
+
*/
|
|
7
|
+
class BaseApi {
|
|
8
|
+
/**
|
|
9
|
+
* Constructor
|
|
10
|
+
* @param app Application
|
|
11
|
+
*/
|
|
12
|
+
constructor(app) {
|
|
13
|
+
this.app = app;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.BaseApi = BaseApi;
|
package/lib/cjs/erp/OrgApi.d.ts
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { ListType } from '@etsoo/shared';
|
|
2
|
-
import {
|
|
2
|
+
import { BaseApi } from './BaseApi';
|
|
3
3
|
/**
|
|
4
4
|
* Organization API
|
|
5
5
|
*/
|
|
6
|
-
export declare class OrgApi {
|
|
7
|
-
private app;
|
|
8
|
-
/**
|
|
9
|
-
* Constructor
|
|
10
|
-
* @param app Application
|
|
11
|
-
*/
|
|
12
|
-
constructor(app: IApp);
|
|
6
|
+
export declare class OrgApi extends BaseApi {
|
|
13
7
|
/**
|
|
14
8
|
* Get organization list
|
|
15
9
|
* @param items Max items
|
package/lib/cjs/erp/OrgApi.js
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OrgApi = void 0;
|
|
4
|
+
const BaseApi_1 = require("./BaseApi");
|
|
4
5
|
/**
|
|
5
6
|
* Organization API
|
|
6
7
|
*/
|
|
7
|
-
class OrgApi {
|
|
8
|
-
/**
|
|
9
|
-
* Constructor
|
|
10
|
-
* @param app Application
|
|
11
|
-
*/
|
|
12
|
-
constructor(app) {
|
|
13
|
-
this.app = app;
|
|
14
|
-
}
|
|
8
|
+
class OrgApi extends BaseApi_1.BaseApi {
|
|
15
9
|
/**
|
|
16
10
|
* Get organization list
|
|
17
11
|
* @param items Max items
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ListType, ListType1 } from '@etsoo/shared';
|
|
2
|
-
import { IApp } from '../app/IApp';
|
|
3
2
|
import { Currency } from '../business/Currency';
|
|
4
3
|
import { ProductUnit } from '../business/ProductUnit';
|
|
4
|
+
import { BaseApi } from './BaseApi';
|
|
5
5
|
import { CurrencyDto } from './dto/CurrencyDto';
|
|
6
6
|
import { ExchangeRateDto } from './dto/ExchangeRateDto';
|
|
7
7
|
import { ExchangeRateHistoryDto } from './dto/ExchangeRateHistoryDto';
|
|
@@ -9,13 +9,7 @@ import { PublicOrgProductDto, PublicProductDto } from './dto/PublicProductDto';
|
|
|
9
9
|
/**
|
|
10
10
|
* Public API
|
|
11
11
|
*/
|
|
12
|
-
export declare class PublicApi {
|
|
13
|
-
private app;
|
|
14
|
-
/**
|
|
15
|
-
* Constructor
|
|
16
|
-
* @param app Application
|
|
17
|
-
*/
|
|
18
|
-
constructor(app: IApp);
|
|
12
|
+
export declare class PublicApi extends BaseApi {
|
|
19
13
|
/**
|
|
20
14
|
* Get currencies
|
|
21
15
|
* @param currencyNames Limited currency names for local data, undefined will try to retrive remoately
|
package/lib/cjs/erp/PublicApi.js
CHANGED
|
@@ -4,17 +4,11 @@ exports.PublicApi = void 0;
|
|
|
4
4
|
const shared_1 = require("@etsoo/shared");
|
|
5
5
|
const ProductUnit_1 = require("../business/ProductUnit");
|
|
6
6
|
const RepeatOption_1 = require("../business/RepeatOption");
|
|
7
|
+
const BaseApi_1 = require("./BaseApi");
|
|
7
8
|
/**
|
|
8
9
|
* Public API
|
|
9
10
|
*/
|
|
10
|
-
class PublicApi {
|
|
11
|
-
/**
|
|
12
|
-
* Constructor
|
|
13
|
-
* @param app Application
|
|
14
|
-
*/
|
|
15
|
-
constructor(app) {
|
|
16
|
-
this.app = app;
|
|
17
|
-
}
|
|
11
|
+
class PublicApi extends BaseApi_1.BaseApi {
|
|
18
12
|
/**
|
|
19
13
|
* Get currencies
|
|
20
14
|
* @param currencyNames Limited currency names for local data, undefined will try to retrive remoately
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from './dto/IdLabelDto';
|
|
|
20
20
|
export * from './dto/IdLabelPrimaryDto';
|
|
21
21
|
export * from './dto/InitCallDto';
|
|
22
22
|
export * from './erp/AddressApi';
|
|
23
|
+
export * from './erp/BaseApi';
|
|
23
24
|
export * from './erp/OrgApi';
|
|
24
25
|
export * from './erp/PublicApi';
|
|
25
26
|
export * from './i18n/enUS';
|
package/lib/cjs/index.js
CHANGED
|
@@ -44,6 +44,7 @@ __exportStar(require("./dto/IdLabelPrimaryDto"), exports);
|
|
|
44
44
|
__exportStar(require("./dto/InitCallDto"), exports);
|
|
45
45
|
// erp
|
|
46
46
|
__exportStar(require("./erp/AddressApi"), exports);
|
|
47
|
+
__exportStar(require("./erp/BaseApi"), exports);
|
|
47
48
|
__exportStar(require("./erp/OrgApi"), exports);
|
|
48
49
|
__exportStar(require("./erp/PublicApi"), exports);
|
|
49
50
|
// i18n
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
import { DataTypes } from '@etsoo/shared';
|
|
2
2
|
import { AddressRegion, AddressRegionDb } from '../address/AddressRegion';
|
|
3
3
|
import { AddressState } from '../address/AddressState';
|
|
4
|
-
import { IApp } from '../app/IApp';
|
|
5
4
|
import { IdLabelConditional } from '../dto/IdLabelDto';
|
|
5
|
+
import { BaseApi } from './BaseApi';
|
|
6
6
|
/**
|
|
7
7
|
* Address Api
|
|
8
8
|
*/
|
|
9
|
-
export declare class AddressApi {
|
|
10
|
-
private app;
|
|
9
|
+
export declare class AddressApi extends BaseApi {
|
|
11
10
|
private languageLabels;
|
|
12
|
-
/**
|
|
13
|
-
* Constructor
|
|
14
|
-
* @param app Application
|
|
15
|
-
*/
|
|
16
|
-
constructor(app: IApp);
|
|
17
11
|
/**
|
|
18
12
|
* Get address labels
|
|
19
13
|
* @param language Language
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { DataTypes } from '@etsoo/shared';
|
|
2
2
|
import { AddressContinent } from '../address/AddressContinent';
|
|
3
3
|
import { AddressRegion } from '../address/AddressRegion';
|
|
4
|
+
import { BaseApi } from './BaseApi';
|
|
4
5
|
/**
|
|
5
6
|
* Address Api
|
|
6
7
|
*/
|
|
7
|
-
export class AddressApi {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @param app Application
|
|
11
|
-
*/
|
|
12
|
-
constructor(app) {
|
|
13
|
-
this.app = app;
|
|
8
|
+
export class AddressApi extends BaseApi {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
14
11
|
this.languageLabels = {};
|
|
15
12
|
}
|
|
16
13
|
/**
|
package/lib/mjs/erp/OrgApi.d.ts
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { ListType } from '@etsoo/shared';
|
|
2
|
-
import {
|
|
2
|
+
import { BaseApi } from './BaseApi';
|
|
3
3
|
/**
|
|
4
4
|
* Organization API
|
|
5
5
|
*/
|
|
6
|
-
export declare class OrgApi {
|
|
7
|
-
private app;
|
|
8
|
-
/**
|
|
9
|
-
* Constructor
|
|
10
|
-
* @param app Application
|
|
11
|
-
*/
|
|
12
|
-
constructor(app: IApp);
|
|
6
|
+
export declare class OrgApi extends BaseApi {
|
|
13
7
|
/**
|
|
14
8
|
* Get organization list
|
|
15
9
|
* @param items Max items
|
package/lib/mjs/erp/OrgApi.js
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
|
+
import { BaseApi } from './BaseApi';
|
|
1
2
|
/**
|
|
2
3
|
* Organization API
|
|
3
4
|
*/
|
|
4
|
-
export class OrgApi {
|
|
5
|
-
/**
|
|
6
|
-
* Constructor
|
|
7
|
-
* @param app Application
|
|
8
|
-
*/
|
|
9
|
-
constructor(app) {
|
|
10
|
-
this.app = app;
|
|
11
|
-
}
|
|
5
|
+
export class OrgApi extends BaseApi {
|
|
12
6
|
/**
|
|
13
7
|
* Get organization list
|
|
14
8
|
* @param items Max items
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ListType, ListType1 } from '@etsoo/shared';
|
|
2
|
-
import { IApp } from '../app/IApp';
|
|
3
2
|
import { Currency } from '../business/Currency';
|
|
4
3
|
import { ProductUnit } from '../business/ProductUnit';
|
|
4
|
+
import { BaseApi } from './BaseApi';
|
|
5
5
|
import { CurrencyDto } from './dto/CurrencyDto';
|
|
6
6
|
import { ExchangeRateDto } from './dto/ExchangeRateDto';
|
|
7
7
|
import { ExchangeRateHistoryDto } from './dto/ExchangeRateHistoryDto';
|
|
@@ -9,13 +9,7 @@ import { PublicOrgProductDto, PublicProductDto } from './dto/PublicProductDto';
|
|
|
9
9
|
/**
|
|
10
10
|
* Public API
|
|
11
11
|
*/
|
|
12
|
-
export declare class PublicApi {
|
|
13
|
-
private app;
|
|
14
|
-
/**
|
|
15
|
-
* Constructor
|
|
16
|
-
* @param app Application
|
|
17
|
-
*/
|
|
18
|
-
constructor(app: IApp);
|
|
12
|
+
export declare class PublicApi extends BaseApi {
|
|
19
13
|
/**
|
|
20
14
|
* Get currencies
|
|
21
15
|
* @param currencyNames Limited currency names for local data, undefined will try to retrive remoately
|
package/lib/mjs/erp/PublicApi.js
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { DataTypes } from '@etsoo/shared';
|
|
2
2
|
import { ProductUnit } from '../business/ProductUnit';
|
|
3
3
|
import { RepeatOption } from '../business/RepeatOption';
|
|
4
|
+
import { BaseApi } from './BaseApi';
|
|
4
5
|
/**
|
|
5
6
|
* Public API
|
|
6
7
|
*/
|
|
7
|
-
export class PublicApi {
|
|
8
|
-
/**
|
|
9
|
-
* Constructor
|
|
10
|
-
* @param app Application
|
|
11
|
-
*/
|
|
12
|
-
constructor(app) {
|
|
13
|
-
this.app = app;
|
|
14
|
-
}
|
|
8
|
+
export class PublicApi extends BaseApi {
|
|
15
9
|
/**
|
|
16
10
|
* Get currencies
|
|
17
11
|
* @param currencyNames Limited currency names for local data, undefined will try to retrive remoately
|
package/lib/mjs/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from './dto/IdLabelDto';
|
|
|
20
20
|
export * from './dto/IdLabelPrimaryDto';
|
|
21
21
|
export * from './dto/InitCallDto';
|
|
22
22
|
export * from './erp/AddressApi';
|
|
23
|
+
export * from './erp/BaseApi';
|
|
23
24
|
export * from './erp/OrgApi';
|
|
24
25
|
export * from './erp/PublicApi';
|
|
25
26
|
export * from './i18n/enUS';
|
package/lib/mjs/index.js
CHANGED
package/package.json
CHANGED
package/src/erp/AddressApi.ts
CHANGED
|
@@ -2,22 +2,16 @@ import { DataTypes } from '@etsoo/shared';
|
|
|
2
2
|
import { AddressContinent } from '../address/AddressContinent';
|
|
3
3
|
import { AddressRegion, AddressRegionDb } from '../address/AddressRegion';
|
|
4
4
|
import { AddressState } from '../address/AddressState';
|
|
5
|
-
import { IApp } from '../app/IApp';
|
|
6
5
|
import { IdLabelConditional } from '../dto/IdLabelDto';
|
|
6
|
+
import { BaseApi } from './BaseApi';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Address Api
|
|
10
10
|
*/
|
|
11
|
-
export class AddressApi {
|
|
11
|
+
export class AddressApi extends BaseApi {
|
|
12
12
|
private languageLabels: Record<string, DataTypes.StringRecord | undefined> =
|
|
13
13
|
{};
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* Constructor
|
|
17
|
-
* @param app Application
|
|
18
|
-
*/
|
|
19
|
-
constructor(private app: IApp) {}
|
|
20
|
-
|
|
21
15
|
/**
|
|
22
16
|
* Get address labels
|
|
23
17
|
* @param language Language
|
package/src/erp/OrgApi.ts
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import { ListType } from '@etsoo/shared';
|
|
2
|
-
import {
|
|
2
|
+
import { BaseApi } from './BaseApi';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Organization API
|
|
6
6
|
*/
|
|
7
|
-
export class OrgApi {
|
|
8
|
-
/**
|
|
9
|
-
* Constructor
|
|
10
|
-
* @param app Application
|
|
11
|
-
*/
|
|
12
|
-
constructor(private app: IApp) {}
|
|
13
|
-
|
|
7
|
+
export class OrgApi extends BaseApi {
|
|
14
8
|
/**
|
|
15
9
|
* Get organization list
|
|
16
10
|
* @param items Max items
|
package/src/erp/PublicApi.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DataTypes, ListType, ListType1 } from '@etsoo/shared';
|
|
2
|
-
import { IApp } from '../app/IApp';
|
|
3
2
|
import { Currency } from '../business/Currency';
|
|
4
3
|
import { ProductUnit } from '../business/ProductUnit';
|
|
5
4
|
import { RepeatOption } from '../business/RepeatOption';
|
|
5
|
+
import { BaseApi } from './BaseApi';
|
|
6
6
|
import { CurrencyDto } from './dto/CurrencyDto';
|
|
7
7
|
import { ExchangeRateDto } from './dto/ExchangeRateDto';
|
|
8
8
|
import { ExchangeRateHistoryDto } from './dto/ExchangeRateHistoryDto';
|
|
@@ -11,13 +11,7 @@ import { PublicOrgProductDto, PublicProductDto } from './dto/PublicProductDto';
|
|
|
11
11
|
/**
|
|
12
12
|
* Public API
|
|
13
13
|
*/
|
|
14
|
-
export class PublicApi {
|
|
15
|
-
/**
|
|
16
|
-
* Constructor
|
|
17
|
-
* @param app Application
|
|
18
|
-
*/
|
|
19
|
-
constructor(private app: IApp) {}
|
|
20
|
-
|
|
14
|
+
export class PublicApi extends BaseApi {
|
|
21
15
|
/**
|
|
22
16
|
* Get currencies
|
|
23
17
|
* @param currencyNames Limited currency names for local data, undefined will try to retrive remoately
|