@servicenow/glide 27.0.3 → 27.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicenow/glide",
3
- "version": "27.0.3",
3
+ "version": "27.0.5",
4
4
  "description": "Contains type declaration for Glide Scriptable APIs",
5
5
  "homepage": "https://www.servicenow.com/docs/csh?topicname=servicenow-sdk-landing&version=latest",
6
6
  "keywords": [
@@ -56,6 +56,7 @@ interface IGlideAggregate<T extends keyof Tables | string = string> {
56
56
  field: F,
57
57
  value: V
58
58
  ): void;
59
+ query(): void;
59
60
 
60
61
  // GlideAggregate
61
62
 
@@ -79,7 +80,7 @@ interface IGlideAggregate<T extends keyof Tables | string = string> {
79
80
  /**
80
81
  * Adds a query to the aggregate. Adds an encoded query to the other queries that may have been set for this aggregate
81
82
  */
82
- addEncodedQuery(query: string, enforceFieldACLs: any): void;
83
+ addEncodedQuery(query: string, enforceFieldACLs?: any): void;
83
84
  getEncodedQuery(): string;
84
85
  addHaving(arg1: string, arg2: string, arg3: string, arg4: string): void;
85
86
  addSystemOrderBy<F extends SafeTableFieldKey<T & string>>(name: F): void;
@@ -168,7 +169,7 @@ interface IGlideAggregate<T extends keyof Tables | string = string> {
168
169
  // GlideRecord
169
170
  _get<F extends SafeTableFieldKey<T & string>, V extends SafeTableField<T & string, F & string>>(
170
171
  name: F,
171
- value: V
172
+ value?: V
172
173
  ): boolean;
173
174
  getTableName(): string;
174
175
  getRowCount(): number;
@@ -24,7 +24,7 @@ type IGlideRecord<T extends keyof Tables | string = string> = {
24
24
  ): void;
25
25
  _get<F extends SafeTableFieldKey<T & string>, V extends SafeTableField<T & string, F & string>>(
26
26
  name: F,
27
- value: V
27
+ value?: V
28
28
  ): boolean;
29
29
  _next(): boolean;
30
30
 
@@ -101,7 +101,7 @@ type IGlideRecord<T extends keyof Tables | string = string> = {
101
101
  /*
102
102
  * Adds an encoded query to the other queries that may have been set
103
103
  */
104
- addEncodedQuery(query: string, enforceFieldACLs: any): void;
104
+ addEncodedQuery(query: string, enforceFieldACLs?: any): void;
105
105
  addInactiveQuery(): GlideQueryCondition<T>;
106
106
  addUserOrderBy<F extends SafeTableFieldKey<T & string>>(name: F): void;
107
107
  addUserOrderByDesc<F extends SafeTableFieldKey<T & string>>(name: F): void;
@@ -206,19 +206,20 @@ type IGlideRecord<T extends keyof Tables | string = string> = {
206
206
  field: F,
207
207
  value: V
208
208
  ): void;
209
+ query(): void;
209
210
  /*
210
211
  * Defines a GlideRecord based on the specified expression of name = value
211
212
  */
212
213
  get<F extends SafeTableFieldKey<T & string>, V extends SafeTableField<T & string, F & string>>(
213
214
  name: F,
214
- value: V
215
+ value?: V
215
216
  ): boolean;
216
217
  addValue<F extends SafeTableFieldKey<T & string>>(field: F, value: number): void;
217
218
  /*
218
219
  * Updates the current GlideRecord with any changes that have been made
219
220
  */
220
- update(reason: any): string | null;
221
- updateWithReferences(reason: any): string | null;
221
+ update(reason?: any): string | null;
222
+ updateWithReferences(reason?: any): string | null;
222
223
  /*
223
224
  * Updates each GlideRecord in the list with any changes that have been made
224
225
  */