@junobuild/core-peer 0.0.21 → 0.0.22

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.
@@ -73,6 +73,51 @@ export interface ListOrder {
73
73
  * @typedef {(string | Principal)} ListOwner
74
74
  */
75
75
  export type ListOwner = string | Principal;
76
+ /**
77
+ * Represents timestamp matching criteria with mutually exclusive options.
78
+ * This type defines various ways to filter based on timestamp values.
79
+ */
80
+ export type ListTimestampMatcher = {
81
+ /**
82
+ * Specifies an exact match for the timestamp.
83
+ */
84
+ matcher: 'equal';
85
+ /**
86
+ * The timestamp value to match exactly.
87
+ */
88
+ timestamp: bigint;
89
+ } | {
90
+ /**
91
+ * Specifies a greater than comparison for the timestamp.
92
+ */
93
+ matcher: 'greaterThan';
94
+ /**
95
+ * The timestamp value that the target should be greater than.
96
+ */
97
+ timestamp: bigint;
98
+ } | {
99
+ /**
100
+ * Specifies a less than comparison for the timestamp.
101
+ */
102
+ matcher: 'lessThan';
103
+ /**
104
+ * The timestamp value that the target should be less than.
105
+ * Used only when `matchType` is 'lessThan'.
106
+ */
107
+ timestamp: bigint;
108
+ } | {
109
+ /**
110
+ * Specifies a range for the timestamp, inclusive of start and end.
111
+ */
112
+ matcher: 'between';
113
+ /**
114
+ * The range of timestamps to match, inclusive of both start and end values.
115
+ */
116
+ timestamps: {
117
+ start: bigint;
118
+ end: bigint;
119
+ };
120
+ };
76
121
  /**
77
122
  * Represents matching parameters for a list call.
78
123
  * @interface
@@ -88,6 +133,14 @@ export interface ListMatcher {
88
133
  * @type {string}
89
134
  */
90
135
  description?: string;
136
+ /**
137
+ * Criteria for matching the creation timestamp.
138
+ */
139
+ createdAt?: ListTimestampMatcher;
140
+ /**
141
+ * Criteria for matching the update timestamp.
142
+ */
143
+ updatedAt?: ListTimestampMatcher;
91
144
  }
92
145
  /**
93
146
  * Represents the parameters for a list query.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/core-peer",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "JavaScript core client for Juno minus DFINITY agent-js dependencies",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",