@captureid/datatypes 1.0.4 → 1.0.6
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 +81 -1
- package/esm2022/lib/model/erp/items/coupon-object.mjs +3 -2
- package/fesm2022/captureid-datatypes.mjs +83 -2
- package/fesm2022/captureid-datatypes.mjs.map +1 -1
- package/lib/enums.d.ts +39 -1
- package/lib/model/erp/items/coupon-object.d.ts +3 -1
- package/package.json +1 -1
package/lib/enums.d.ts
CHANGED
|
@@ -81,7 +81,8 @@ export declare enum DataType {
|
|
|
81
81
|
TICKETMESSAGE = 79,
|
|
82
82
|
WEBTEMPLATE = 80,
|
|
83
83
|
EMAILTEMPLATE = 81,
|
|
84
|
-
JOURNAL = 82
|
|
84
|
+
JOURNAL = 82,
|
|
85
|
+
FILEIMPORT = 83
|
|
85
86
|
}
|
|
86
87
|
export declare enum BookingType {
|
|
87
88
|
UNKNOWN = 0,
|
|
@@ -301,3 +302,40 @@ export declare namespace TicketSenderType {
|
|
|
301
302
|
function valueOf(str: string): number;
|
|
302
303
|
function values(): any[];
|
|
303
304
|
}
|
|
305
|
+
export declare enum ImportType {
|
|
306
|
+
UNKNOWN = 0,
|
|
307
|
+
TERMINAL = 1,
|
|
308
|
+
ESL = 2,
|
|
309
|
+
ESLPOOL = 3
|
|
310
|
+
}
|
|
311
|
+
export declare namespace ImportType {
|
|
312
|
+
function valueOf(str: string): number;
|
|
313
|
+
function values(): any[];
|
|
314
|
+
}
|
|
315
|
+
export declare enum FileType {
|
|
316
|
+
UNKNOWN = 0,
|
|
317
|
+
CSV = 1,
|
|
318
|
+
XLSX = 2,
|
|
319
|
+
XML = 3,
|
|
320
|
+
JSON = 4,
|
|
321
|
+
PDF = 5,
|
|
322
|
+
TXT = 6,
|
|
323
|
+
ZIP = 7
|
|
324
|
+
}
|
|
325
|
+
export declare namespace FileType {
|
|
326
|
+
function valueOf(str: string): number;
|
|
327
|
+
function values(): any[];
|
|
328
|
+
}
|
|
329
|
+
export declare enum CouponType {
|
|
330
|
+
UNKNOWN = 0,
|
|
331
|
+
COUPON = 1,
|
|
332
|
+
VOUCHER = 2,
|
|
333
|
+
GIFT = 3,
|
|
334
|
+
GIFT_CARD = 4,
|
|
335
|
+
GIFT_VOUCHER = 5,
|
|
336
|
+
DISCOUNT = 6
|
|
337
|
+
}
|
|
338
|
+
export declare namespace CouponType {
|
|
339
|
+
function valueOf(str: string): number;
|
|
340
|
+
function values(): any[];
|
|
341
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { CouponType } from "../../../enums";
|
|
1
2
|
import { User } from "../../common/user-object";
|
|
2
3
|
import { DataObject } from "../../data-object";
|
|
3
4
|
export interface Coupon {
|
|
4
5
|
id: string;
|
|
6
|
+
type: CouponType;
|
|
5
7
|
created: Date;
|
|
6
8
|
activationcode: string;
|
|
7
9
|
buyer: User;
|
|
@@ -13,7 +15,7 @@ export interface Coupon {
|
|
|
13
15
|
value: number;
|
|
14
16
|
}
|
|
15
17
|
export declare class Coupon implements Coupon {
|
|
16
|
-
constructor(id?: string, created?: Date, activationcode?: string, buyer?: User, beneficiary?: User, activated?: Date, activatedby?: User, startdate?: Date, enddate?: Date, value?: number);
|
|
18
|
+
constructor(id?: string, type?: CouponType, created?: Date, activationcode?: string, buyer?: User, beneficiary?: User, activated?: Date, activatedby?: User, startdate?: Date, enddate?: Date, value?: number);
|
|
17
19
|
}
|
|
18
20
|
export interface CouponObject {
|
|
19
21
|
data: Coupon[];
|