@captureid/datatypes 1.0.73 → 1.0.75
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/esm2022/lib/enums.mjs +4 -1
- package/esm2022/lib/model/common/module-object.mjs +14 -1
- package/esm2022/lib/model/erp/items/catalog-object.mjs +28 -0
- package/esm2022/lib/model/erp/items/journal-object.mjs +4 -2
- package/esm2022/lib/model/erp/items/pre-order-object.mjs +5 -2
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/captureid-datatypes.mjs +181 -135
- package/fesm2022/captureid-datatypes.mjs.map +1 -1
- package/lib/enums.d.ts +5 -2
- package/lib/model/common/module-object.d.ts +16 -1
- package/lib/model/erp/items/catalog-object.d.ts +25 -0
- package/lib/model/erp/items/journal-object.d.ts +4 -1
- package/lib/model/erp/items/pre-order-object.d.ts +4 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
package/lib/enums.d.ts
CHANGED
|
@@ -104,7 +104,9 @@ export declare enum DataType {
|
|
|
104
104
|
SECURITYPROFILE = 102,
|
|
105
105
|
ADVERTISEMENT_IMAGE_TYPE = 103,
|
|
106
106
|
IMAGETOADVERTISEMENT = 104,
|
|
107
|
-
ADDRESSTOMANUFACTURER = 105
|
|
107
|
+
ADDRESSTOMANUFACTURER = 105,
|
|
108
|
+
KEYS = 106,
|
|
109
|
+
CATALOG = 107
|
|
108
110
|
}
|
|
109
111
|
export declare enum BookingType {
|
|
110
112
|
UNKNOWN = 0,
|
|
@@ -217,7 +219,8 @@ export declare enum ModuleType {
|
|
|
217
219
|
AUTHENTICATION_MODULE = 8,
|
|
218
220
|
GATEWAY_MODULE = 9,
|
|
219
221
|
PRINT_MODULE = 10,
|
|
220
|
-
REGISTRY_MODULE = 11
|
|
222
|
+
REGISTRY_MODULE = 11,
|
|
223
|
+
WEB_MODULE = 12
|
|
221
224
|
}
|
|
222
225
|
export declare namespace ModuleType {
|
|
223
226
|
function valueOf(str: string): number;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { ModuleType } from "../../enums";
|
|
1
2
|
import { DataObject } from "../data-object";
|
|
2
3
|
import { Tenant } from "./tenant-object";
|
|
3
4
|
export interface Module {
|
|
4
5
|
id?: string;
|
|
5
6
|
name: string;
|
|
6
|
-
type:
|
|
7
|
+
type: ModuleType;
|
|
7
8
|
description: string;
|
|
8
9
|
hostname: string;
|
|
9
10
|
port: number;
|
|
@@ -18,3 +19,17 @@ export interface ModuleObject {
|
|
|
18
19
|
export declare class ModuleObject extends DataObject implements ModuleObject {
|
|
19
20
|
constructor(data: Module[]);
|
|
20
21
|
}
|
|
22
|
+
export interface Keys {
|
|
23
|
+
id?: string;
|
|
24
|
+
encryptedkey: string;
|
|
25
|
+
module: Module;
|
|
26
|
+
}
|
|
27
|
+
export declare class Keys implements Keys {
|
|
28
|
+
constructor(id?: string, encryptedkey?: string, module?: Module);
|
|
29
|
+
}
|
|
30
|
+
export interface KeysObject {
|
|
31
|
+
data: Keys[];
|
|
32
|
+
}
|
|
33
|
+
export declare class KeysObject extends DataObject implements KeysObject {
|
|
34
|
+
constructor(data: Keys[]);
|
|
35
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DataObject } from "../../data-object";
|
|
2
|
+
import { Inventory } from "./inventory-object";
|
|
3
|
+
export interface CatalogGroup {
|
|
4
|
+
id?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
groups?: CatalogGroup[];
|
|
7
|
+
inventory?: Inventory[];
|
|
8
|
+
}
|
|
9
|
+
export declare class CatalogGroup implements CatalogGroup {
|
|
10
|
+
constructor(id?: string, name?: string, groups?: CatalogGroup[], inventory?: Inventory[]);
|
|
11
|
+
}
|
|
12
|
+
export interface Catalog {
|
|
13
|
+
id?: string;
|
|
14
|
+
groups?: CatalogGroup[];
|
|
15
|
+
}
|
|
16
|
+
export declare class Catalog implements Catalog {
|
|
17
|
+
constructor(id?: string, groups?: CatalogGroup[]);
|
|
18
|
+
}
|
|
19
|
+
export interface CatalogObject {
|
|
20
|
+
data: Catalog[];
|
|
21
|
+
}
|
|
22
|
+
export declare class CatalogObject extends DataObject implements CatalogObject {
|
|
23
|
+
constructor(data: Catalog[]);
|
|
24
|
+
getEntryCount(): number;
|
|
25
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Cart } from "../../common/cart-object";
|
|
1
2
|
import { Company } from "../../common/company-object";
|
|
2
3
|
import { Currency } from "../../common/currency-object";
|
|
3
4
|
import { Building } from "../../common/location-object";
|
|
@@ -39,9 +40,11 @@ export interface JournalEntry {
|
|
|
39
40
|
company?: Company;
|
|
40
41
|
building?: Building;
|
|
41
42
|
bon?: Bon;
|
|
43
|
+
cart?: Cart;
|
|
44
|
+
price?: number;
|
|
42
45
|
}
|
|
43
46
|
export declare class JournalEntry implements JournalEntry {
|
|
44
|
-
constructor(timestamp?: Date, user?: User, itementry?: ItemJournalEntry[], company?: Company, building?: Building, bon?: Bon);
|
|
47
|
+
constructor(timestamp?: Date, user?: User, itementry?: ItemJournalEntry[], company?: Company, building?: Building, bon?: Bon, cart?: Cart, price?: number);
|
|
45
48
|
}
|
|
46
49
|
export interface JournalObject {
|
|
47
50
|
data: JournalEntry[];
|
|
@@ -11,9 +11,12 @@ export interface PreOrder {
|
|
|
11
11
|
startdate: Date;
|
|
12
12
|
enddate: Date;
|
|
13
13
|
active: boolean;
|
|
14
|
+
dayofweek: string;
|
|
15
|
+
additionaltext: string;
|
|
16
|
+
confirmationtext: string;
|
|
14
17
|
}
|
|
15
18
|
export declare class PreOrder implements PreOrder {
|
|
16
|
-
constructor(id?: string, stores?: Store[], type?: PreOrderType, item?: Item, price?: number, startdate?: Date, enddate?: Date, active?: boolean);
|
|
19
|
+
constructor(id?: string, stores?: Store[], type?: PreOrderType, item?: Item, price?: number, startdate?: Date, enddate?: Date, active?: boolean, dayofweek?: string, additionaltext?: string, confirmationtext?: string);
|
|
17
20
|
}
|
|
18
21
|
export interface PreOrderToCustomer {
|
|
19
22
|
id: string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ export * from './lib/model/erp/items/coupon-object';
|
|
|
68
68
|
export * from './lib/model/erp/items/bon-object';
|
|
69
69
|
export * from './lib/model/erp/items/journal-object';
|
|
70
70
|
export * from './lib/model/erp/items/pre-order-object';
|
|
71
|
+
export * from './lib/model/erp/items/catalog-object';
|
|
71
72
|
export * from './lib/model/esl/esl-object';
|
|
72
73
|
export * from './lib/model/esl/esl-pool-object';
|
|
73
74
|
export * from './lib/model/esl/esl-association-object';
|