@captureid/datatypes 1.0.59 → 1.0.61
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 +26 -1
- package/esm2022/lib/model/common/calendar-object.mjs +4 -4
- package/esm2022/lib/model/common/store-object.mjs +13 -2
- package/fesm2022/captureid-datatypes.mjs +41 -5
- package/fesm2022/captureid-datatypes.mjs.map +1 -1
- package/lib/enums.d.ts +11 -0
- package/lib/model/common/calendar-object.d.ts +3 -3
- package/lib/model/common/store-object.d.ts +14 -1
- package/package.json +1 -1
package/lib/enums.d.ts
CHANGED
|
@@ -385,6 +385,15 @@ export declare namespace FileType {
|
|
|
385
385
|
function valueOf(str: string): number;
|
|
386
386
|
function values(): any[];
|
|
387
387
|
}
|
|
388
|
+
export declare enum TaskType {
|
|
389
|
+
UNKNOWN = 0,
|
|
390
|
+
ENDOFDAY = 1,
|
|
391
|
+
RESTART = 2
|
|
392
|
+
}
|
|
393
|
+
export declare namespace TaskType {
|
|
394
|
+
function valueOf(str: string): number;
|
|
395
|
+
function values(): any[];
|
|
396
|
+
}
|
|
388
397
|
export declare enum CouponType {
|
|
389
398
|
UNKNOWN = 0,
|
|
390
399
|
COUPON = 1,
|
|
@@ -423,6 +432,8 @@ export declare namespace PaymentCommand {
|
|
|
423
432
|
export declare enum PaymentEventType {
|
|
424
433
|
EVENT_UNKNOWN = 0,
|
|
425
434
|
EVENT_PAYMENT = 1,
|
|
435
|
+
EVENT_ENDOFDAY = 2,
|
|
436
|
+
EVENT_STATUS = 3,
|
|
426
437
|
EVENT_HEARTBEAT = 10
|
|
427
438
|
}
|
|
428
439
|
export declare namespace PaymentEventType {
|
|
@@ -5,11 +5,11 @@ export interface CalendarEntry {
|
|
|
5
5
|
title: string;
|
|
6
6
|
type: CalendarType;
|
|
7
7
|
description?: string;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
startdate: Date;
|
|
9
|
+
enddate: Date;
|
|
10
10
|
}
|
|
11
11
|
export declare class CalendarEntry implements CalendarEntry {
|
|
12
|
-
constructor(id?: string, title?: string, type?: CalendarType, description?: string,
|
|
12
|
+
constructor(id?: string, title?: string, type?: CalendarType, description?: string, startdate?: Date, enddate?: Date);
|
|
13
13
|
}
|
|
14
14
|
export interface CalendarObject {
|
|
15
15
|
data: CalendarEntry[];
|
|
@@ -1,9 +1,21 @@
|
|
|
1
|
+
import { TaskType } from "../../enums";
|
|
1
2
|
import { DataObject } from "../data-object";
|
|
2
3
|
import { PaymentTerminal } from "../payment/payment-terminal-object";
|
|
3
4
|
import { Address } from "./address-object";
|
|
4
5
|
import { Image } from "./image-object";
|
|
5
6
|
import { Room } from "./location-object";
|
|
6
7
|
import { PosTerminal } from "./pos-terminal-object";
|
|
8
|
+
export interface StoreTask {
|
|
9
|
+
id: string;
|
|
10
|
+
type: TaskType;
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
active: boolean;
|
|
14
|
+
duedate: Date;
|
|
15
|
+
}
|
|
16
|
+
export declare class StoreTask implements StoreTask {
|
|
17
|
+
constructor(id?: string, type?: TaskType, name?: string, description?: string, active?: boolean, duedate?: Date);
|
|
18
|
+
}
|
|
7
19
|
export interface Store {
|
|
8
20
|
id: string;
|
|
9
21
|
name: string;
|
|
@@ -15,9 +27,10 @@ export interface Store {
|
|
|
15
27
|
posterminals: PosTerminal[];
|
|
16
28
|
images: Image[];
|
|
17
29
|
url: string;
|
|
30
|
+
tasks?: StoreTask[];
|
|
18
31
|
}
|
|
19
32
|
export declare class Store implements Store {
|
|
20
|
-
constructor(id?: string, name?: string, description?: string, ownerid?: string, companyid?: string, rooms?: Room[], terminals?: PaymentTerminal[], posterminals?: PosTerminal[], images?: Image[], url?: string);
|
|
33
|
+
constructor(id?: string, name?: string, description?: string, ownerid?: string, companyid?: string, rooms?: Room[], terminals?: PaymentTerminal[], posterminals?: PosTerminal[], images?: Image[], url?: string, tasks?: StoreTask[]);
|
|
21
34
|
}
|
|
22
35
|
export interface StoreObject {
|
|
23
36
|
data: Store[];
|