@open-tender/types 0.2.108 → 0.2.110

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.
@@ -1,4 +1,4 @@
1
- import { DateString } from '../../datetimes';
1
+ import { DateString, ISOString } from '../../datetimes';
2
2
  import { DiscountType, Gender, Money } from '../../global';
3
3
  export interface TPLSCredit {
4
4
  balance: Money;
@@ -37,11 +37,12 @@ export interface TPLS {
37
37
  }
38
38
  export interface TPLSPointsShopReward {
39
39
  description: string | null;
40
+ expires_at: string;
40
41
  id: string;
41
42
  image: string | null;
42
- is_available: boolean;
43
+ is_available: boolean | null;
43
44
  name: string;
44
- points: number;
45
+ points: number | null;
45
46
  }
46
47
  export declare type TPLSPointsShopRewards = TPLSPointsShopReward[];
47
48
  export interface TPLSTerms {
@@ -49,3 +50,12 @@ export interface TPLSTerms {
49
50
  privacy_policy: string;
50
51
  terms_of_use: string;
51
52
  }
53
+ export interface TPLSHistoryEvent {
54
+ date: ISOString;
55
+ title: string;
56
+ event_value: string;
57
+ description: string;
58
+ points: number | null;
59
+ items: number | null;
60
+ }
61
+ export declare type TPLSHistory = TPLSHistoryEvent[];
@@ -1,4 +1,4 @@
1
- import { DateString } from '../../datetimes';
1
+ import { DateString, ISOString } from '../../datetimes';
2
2
  import { DiscountType, Gender, Money } from '../../global';
3
3
  export interface TPLSCredit {
4
4
  balance: Money;
@@ -37,11 +37,12 @@ export interface TPLS {
37
37
  }
38
38
  export interface TPLSPointsShopReward {
39
39
  description: string | null;
40
+ expires_at: string;
40
41
  id: string;
41
42
  image: string | null;
42
- is_available: boolean;
43
+ is_available: boolean | null;
43
44
  name: string;
44
- points: number;
45
+ points: number | null;
45
46
  }
46
47
  export declare type TPLSPointsShopRewards = TPLSPointsShopReward[];
47
48
  export interface TPLSTerms {
@@ -49,3 +50,12 @@ export interface TPLSTerms {
49
50
  privacy_policy: string;
50
51
  terms_of_use: string;
51
52
  }
53
+ export interface TPLSHistoryEvent {
54
+ date: ISOString;
55
+ title: string;
56
+ event_value: string;
57
+ description: string;
58
+ points: number | null;
59
+ items: number | null;
60
+ }
61
+ export declare type TPLSHistory = TPLSHistoryEvent[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.2.108",
3
+ "version": "0.2.110",
4
4
  "description": "A library of types for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",