@captureid/datatypes 1.0.60 → 1.0.62

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/enums.d.ts CHANGED
@@ -98,7 +98,9 @@ export declare enum DataType {
98
98
  POSTERMINAL = 96,
99
99
  MANAGEMENT = 97,
100
100
  ADDRESSTYPE = 98,
101
- ADDRESSTOCOMPANY = 99
101
+ ADDRESSTOCOMPANY = 99,
102
+ PREORDER = 100,
103
+ PREORDERTOCUSTOMER = 101
102
104
  }
103
105
  export declare enum BookingType {
104
106
  UNKNOWN = 0,
@@ -385,6 +387,24 @@ export declare namespace FileType {
385
387
  function valueOf(str: string): number;
386
388
  function values(): any[];
387
389
  }
390
+ export declare enum PreOrderType {
391
+ UNKNOWN = 0,
392
+ ITEM = 1,
393
+ SERVICE = 2
394
+ }
395
+ export declare namespace PreOrderType {
396
+ function valueOf(str: string): number;
397
+ function values(): any[];
398
+ }
399
+ export declare enum TaskType {
400
+ UNKNOWN = 0,
401
+ ENDOFDAY = 1,
402
+ RESTART = 2
403
+ }
404
+ export declare namespace TaskType {
405
+ function valueOf(str: string): number;
406
+ function values(): any[];
407
+ }
388
408
  export declare enum CouponType {
389
409
  UNKNOWN = 0,
390
410
  COUPON = 1,
@@ -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[];
@@ -0,0 +1,41 @@
1
+ import { PreOrderType } from '../../../enums';
2
+ import { Store } from '../../common/store-object';
3
+ import { DataObject } from '../../data-object';
4
+ export interface PreOrder {
5
+ id: string;
6
+ stores: Store[];
7
+ type: PreOrderType;
8
+ itemid: string;
9
+ price: number;
10
+ startdate: Date;
11
+ enddate: Date;
12
+ active: boolean;
13
+ }
14
+ export declare class PreOrder implements PreOrder {
15
+ constructor(id?: string, stores?: Store[], type?: PreOrderType, itemid?: string, price?: number, startdate?: Date, enddate?: Date, active?: boolean);
16
+ }
17
+ export interface PreOrderToCustomer {
18
+ id: string;
19
+ preorderid: string;
20
+ customerid: string;
21
+ storeid: string;
22
+ redeemed: boolean;
23
+ purchasevalue: number;
24
+ purchasedate: Date;
25
+ redeemedate: Date;
26
+ }
27
+ export declare class PreOrderToCustomer implements PreOrderToCustomer {
28
+ constructor(id?: string, preorderid?: string, customerid?: string, storeid?: string, redeemed?: boolean, purchasevalue?: number, purchasedate?: Date, redeemedate?: Date);
29
+ }
30
+ export interface PreOrderToCustomerObject {
31
+ data: PreOrderToCustomer[];
32
+ }
33
+ export declare class PreOrderToCustomerObject extends DataObject implements PreOrderToCustomerObject {
34
+ constructor(data: PreOrderToCustomer[]);
35
+ }
36
+ export interface PreOrderObject {
37
+ data: PreOrder[];
38
+ }
39
+ export declare class PreOrderObject extends DataObject implements PreOrderObject {
40
+ constructor(data: PreOrder[]);
41
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@captureid/datatypes",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.0.0",
6
6
  "@angular/core": ">=17.0.0"
package/public-api.d.ts CHANGED
@@ -65,6 +65,7 @@ export * from './lib/model/erp/items/item-short-list-object';
65
65
  export * from './lib/model/erp/items/coupon-object';
66
66
  export * from './lib/model/erp/items/bon-object';
67
67
  export * from './lib/model/erp/items/journal-object';
68
+ export * from './lib/model/erp/items/pre-order-object';
68
69
  export * from './lib/model/esl/esl-object';
69
70
  export * from './lib/model/esl/esl-pool-object';
70
71
  export * from './lib/model/esl/esl-association-object';