@conterra/ct-mapapps-typings 4.17.1-next.20240315052740 → 4.17.1-next.20240319050341
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/agssearch/api.d.ts +1 -7
- package/ct/util/css.d.ts +180 -1
- package/editing/api.d.ts +4 -0
- package/package.json +1 -1
- package/ct/__internal__/fs6eANFo.d.ts +0 -181
- package/ct/mapping/store/MapServerLayerStore.d.ts +0 -90
package/agssearch/api.d.ts
CHANGED
|
@@ -65,11 +65,6 @@ interface AGSStoreFactory {
|
|
|
65
65
|
interface AGSStoreCommonOptions {
|
|
66
66
|
/** The id of the new store. */
|
|
67
67
|
id: string;
|
|
68
|
-
/**
|
|
69
|
-
* Set this value to `true` to use the deprecated old MapServerLayerStore implementation
|
|
70
|
-
* instead of the new LayerStore.
|
|
71
|
-
*/
|
|
72
|
-
legacyImplementation?: boolean;
|
|
73
68
|
}
|
|
74
69
|
/**
|
|
75
70
|
* Specifies an AGSStore constructed from a layer or sublayer id.
|
|
@@ -92,7 +87,6 @@ interface AGSStoreFromURLOptions extends AGSStoreCommonOptions {
|
|
|
92
87
|
type?: "feature" | "geojson" | "csv" | "wfs";
|
|
93
88
|
/**
|
|
94
89
|
* An API key (or token) required to access the service.
|
|
95
|
-
* This parameter is not supported when `legacyImplementation` is true.
|
|
96
90
|
*
|
|
97
91
|
* See also https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#apiKey
|
|
98
92
|
*/
|
|
@@ -120,7 +114,7 @@ interface AGSStore extends AsyncStore {
|
|
|
120
114
|
/**
|
|
121
115
|
* The layer used by this store.
|
|
122
116
|
*/
|
|
123
|
-
layer
|
|
117
|
+
layer: Layer | Sublayer;
|
|
124
118
|
}
|
|
125
119
|
|
|
126
120
|
export type { AGSStore, AGSStoreCommonOptions, AGSStoreFactory, AGSStoreFromLayerOptions, AGSStoreFromURLOptions };
|
package/ct/util/css.d.ts
CHANGED
|
@@ -1,6 +1,185 @@
|
|
|
1
|
-
import { ExtendedPromise } from '../__internal__/fs6eANFo.js';
|
|
2
1
|
import * as apprt_core_load_css from 'apprt-core/load-css';
|
|
3
2
|
|
|
3
|
+
/**
|
|
4
|
+
* The methods of this interface are available when a Promise
|
|
5
|
+
* has been augmented using the `trackState` function.
|
|
6
|
+
*/
|
|
7
|
+
interface StateQueryable {
|
|
8
|
+
/** Returns true if the promise is settled, i.e. if it is no longer pending. */
|
|
9
|
+
isSettled(): boolean;
|
|
10
|
+
/** Returns true if the promise is fulfilled, i.e. if it has a success value. */
|
|
11
|
+
isFulfilled(): boolean;
|
|
12
|
+
/** Returns true if the promise is rejected, i.e. if it contains an error. */
|
|
13
|
+
isRejected(): boolean;
|
|
14
|
+
/** Returns true if the promise was cancelled before it was able to complete. */
|
|
15
|
+
isCancelled(): boolean;
|
|
16
|
+
}
|
|
17
|
+
type State = "pending" | "fulfilled" | "rejected" | "cancelled";
|
|
18
|
+
declare const PROMISE: unique symbol;
|
|
19
|
+
declare const STATE: unique symbol;
|
|
20
|
+
declare const PRIVATE_CONSTUCTOR_TAG: unique symbol;
|
|
21
|
+
/**
|
|
22
|
+
* Wrapper of global.Promise class.
|
|
23
|
+
* Read more about [Promises](./PROMISES.md).
|
|
24
|
+
*
|
|
25
|
+
* @see https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Promise
|
|
26
|
+
*/
|
|
27
|
+
declare class ExtendedPromise<T> implements Promise<T> {
|
|
28
|
+
private [PROMISE];
|
|
29
|
+
private [STATE]?;
|
|
30
|
+
/**
|
|
31
|
+
* Creates Promise instances.
|
|
32
|
+
* @param executor defined as (resolve,reject)=> \{\}
|
|
33
|
+
* @example
|
|
34
|
+
* ```js
|
|
35
|
+
* new Promise((resolve,reject)=>{
|
|
36
|
+
* ...
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void);
|
|
41
|
+
/**
|
|
42
|
+
* Internal constructor. Do not call.
|
|
43
|
+
*/
|
|
44
|
+
constructor(promise: PromiseLike<T> | LegacyDojoDeferred, state: State | undefined, tag: typeof PRIVATE_CONSTUCTOR_TAG);
|
|
45
|
+
/** Creates a new resolved promise */
|
|
46
|
+
static resolve(): ExtendedPromise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* Creates a new resolved promise with the given value
|
|
49
|
+
* @param value result object.
|
|
50
|
+
* @returns a promise in fulfilled state.
|
|
51
|
+
*/
|
|
52
|
+
static resolve<T>(value: T): ExtendedPromise<T>;
|
|
53
|
+
/**
|
|
54
|
+
* @param reason The reason the promise was rejected.
|
|
55
|
+
* @returns a promise in rejected state.
|
|
56
|
+
*/
|
|
57
|
+
static reject<T = never>(reason?: any): ExtendedPromise<T>;
|
|
58
|
+
/**
|
|
59
|
+
* Creates promise which fulfills if all other promises are fulfilled.
|
|
60
|
+
* Or rejects if one of the promises rejects.
|
|
61
|
+
*
|
|
62
|
+
* @param iterable Iterable of Promise instances
|
|
63
|
+
*/
|
|
64
|
+
static all<T>(iterable: Iterable<T | PromiseLike<T>>): ExtendedPromise<T[]>;
|
|
65
|
+
/**
|
|
66
|
+
* Creates promise which fulfills if one of the other promises fulfills.
|
|
67
|
+
* Or rejects if one of the promises rejects.
|
|
68
|
+
*
|
|
69
|
+
* @param iterable Iterable of Promise instances
|
|
70
|
+
*/
|
|
71
|
+
static race<T>(iterable: Iterable<T>): ExtendedPromise<T extends PromiseLike<infer U> ? U : T>;
|
|
72
|
+
/**
|
|
73
|
+
* Creates promise which fulfills if one of the other promises fulfills.
|
|
74
|
+
* Or rejects if one of the promises rejects.
|
|
75
|
+
*
|
|
76
|
+
* @param iterable Iterable of Promise instances
|
|
77
|
+
*/
|
|
78
|
+
static race<T>(iterable: Iterable<T | PromiseLike<T>>): ExtendedPromise<T>;
|
|
79
|
+
/**
|
|
80
|
+
* Creates a promise that resolves after all of the given promises have either fulfilled or rejected,
|
|
81
|
+
* with an array of objects that each describes the outcome of each promise.
|
|
82
|
+
*
|
|
83
|
+
* @param iterable Iterable of Promise instances
|
|
84
|
+
*/
|
|
85
|
+
static allSettled<T>(iterable: Iterable<T | PromiseLike<T>>): ExtendedPromise<PromiseSettledResult<Awaited<T>>[]>;
|
|
86
|
+
/**
|
|
87
|
+
* Promise.any() takes an iterable of Promise objects and, as soon as one of the promises in the iterable fulfills,
|
|
88
|
+
* returns a single promise that resolves with the value from that promise.
|
|
89
|
+
* If no promises in the iterable fulfill (if all of the given promises are rejected),
|
|
90
|
+
* then the returned promise is rejected with an AggregateError,
|
|
91
|
+
* Essentially, this method is the opposite of Promise.all().
|
|
92
|
+
*
|
|
93
|
+
* @param iterable Iterable of Promise instances
|
|
94
|
+
*/
|
|
95
|
+
static any<T>(iterable: (T | PromiseLike<T>)[] | Iterable<T | PromiseLike<T>>): ExtendedPromise<T>;
|
|
96
|
+
/**
|
|
97
|
+
* Produces an object with a promise along with its resolution and rejection functions.
|
|
98
|
+
* Allows to resolve/reject the promise manually after creating it.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```js
|
|
102
|
+
* const { promise, resolve, reject } = Promise.withResolvers();
|
|
103
|
+
* ```
|
|
104
|
+
* @returns {{ promise, resolve, reject }}
|
|
105
|
+
*/
|
|
106
|
+
static withResolvers<T>(): {
|
|
107
|
+
resolve: (value: T | PromiseLike<T>) => void;
|
|
108
|
+
reject: (reason?: unknown) => void;
|
|
109
|
+
promise: ExtendedPromise<T>;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* This method tests if a given object is a promise.
|
|
113
|
+
* The algorithm will return true for:
|
|
114
|
+
* * apprt-core/Promise
|
|
115
|
+
* * global Promise
|
|
116
|
+
* * dojo/Deferred
|
|
117
|
+
* * dojo/Deferred.promise
|
|
118
|
+
*
|
|
119
|
+
* Note: Because of support for dojo/Deferred any object with a
|
|
120
|
+
* 'then', 'isResolved' and 'isRejected' method is detected as a promise.
|
|
121
|
+
*
|
|
122
|
+
* @param candidate a potential promise.
|
|
123
|
+
* @returns true if candidate is a promise.
|
|
124
|
+
*/
|
|
125
|
+
static isPromise(candidate: any): candidate is PromiseLike<unknown>;
|
|
126
|
+
/**
|
|
127
|
+
* Wraps e.g. dojo/Deferred or native Promise to this Promise class.
|
|
128
|
+
* @returns a promise
|
|
129
|
+
*/
|
|
130
|
+
static wrap<T>(promise: PromiseLike<T> | LegacyDojoDeferred): ExtendedPromise<T>;
|
|
131
|
+
/**
|
|
132
|
+
* Augments the given Promise with new state lookup functions.
|
|
133
|
+
*/
|
|
134
|
+
static trackState<T>(promise: PromiseLike<T> | LegacyDojoDeferred): ExtendedPromise<T> & StateQueryable;
|
|
135
|
+
/**
|
|
136
|
+
* Registers success and/or error handlers.
|
|
137
|
+
* @param success called when the promise resolves
|
|
138
|
+
* @param failure called when the promise rejects
|
|
139
|
+
*/
|
|
140
|
+
then<TResult1 = T, TResult2 = never>(success?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, failure?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): ExtendedPromise<TResult1 | TResult2>;
|
|
141
|
+
/**
|
|
142
|
+
* Registers an error handler.
|
|
143
|
+
* @param failure called when the promise rejects
|
|
144
|
+
*/
|
|
145
|
+
catch<TResult = never>(failure?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): ExtendedPromise<T | TResult>;
|
|
146
|
+
/**
|
|
147
|
+
* Registers an error handler. Which is not called if the error is a Cancel instance.
|
|
148
|
+
* @param failure called when the promise rejects
|
|
149
|
+
*/
|
|
150
|
+
else<TResult = never>(failure?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): ExtendedPromise<T | TResult>;
|
|
151
|
+
/**
|
|
152
|
+
* Registers a handler, which is called in success or error state.
|
|
153
|
+
* But the handler is not able to change the result state!
|
|
154
|
+
* @param handler function invoked regardless of success or error
|
|
155
|
+
*/
|
|
156
|
+
finally(handler?: (() => void) | undefined | null): ExtendedPromise<T>;
|
|
157
|
+
/**
|
|
158
|
+
* @returns this instance, augmented with augmented with:
|
|
159
|
+
*
|
|
160
|
+
* * isFulfilled()
|
|
161
|
+
* * isRejected()
|
|
162
|
+
* * isCancelled()
|
|
163
|
+
* * isSettled()
|
|
164
|
+
*/
|
|
165
|
+
trackState(): ExtendedPromise<T> & StateQueryable;
|
|
166
|
+
get [Symbol.toStringTag](): string;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
interface LegacyDojoDeferred {
|
|
170
|
+
promise: any;
|
|
171
|
+
isResolved(): boolean;
|
|
172
|
+
isRejected(): boolean;
|
|
173
|
+
isFulfilled(): boolean;
|
|
174
|
+
isCanceled(): boolean;
|
|
175
|
+
progress(update: any, strict?: boolean): any;
|
|
176
|
+
resolve(value?: any, strict?: boolean): any;
|
|
177
|
+
reject(error?: any, strict?: boolean): any;
|
|
178
|
+
then(callback?: any, errback?: any, progback?: any): any;
|
|
179
|
+
cancel(reason?: any, strict?: boolean): any;
|
|
180
|
+
toString(): string;
|
|
181
|
+
}
|
|
182
|
+
|
|
4
183
|
/**
|
|
5
184
|
* The executor argument for new cancelable promises.
|
|
6
185
|
*
|
package/editing/api.d.ts
CHANGED
|
@@ -11,6 +11,10 @@ type WellKnownWorkflow = NonNullable<__esri.EditorProperties["allowedWorkflows"]
|
|
|
11
11
|
* Properties used to create an {@link Editor}.
|
|
12
12
|
*/
|
|
13
13
|
type EditorProperties = Omit<__esri.EditorProperties, "allowedWorkflows"> & {
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated since ArcGIS Maps SDK for JavaScript 4.29
|
|
16
|
+
* use {@link __esri.EditorProperties.visibleElements} instead;
|
|
17
|
+
*/
|
|
14
18
|
allowedWorkflows?: WellKnownWorkflow[];
|
|
15
19
|
};
|
|
16
20
|
/**
|
package/package.json
CHANGED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The methods of this interface are available when a Promise
|
|
3
|
-
* has been augmented using the `trackState` function.
|
|
4
|
-
*/
|
|
5
|
-
interface StateQueryable {
|
|
6
|
-
/** Returns true if the promise is settled, i.e. if it is no longer pending. */
|
|
7
|
-
isSettled(): boolean;
|
|
8
|
-
/** Returns true if the promise is fulfilled, i.e. if it has a success value. */
|
|
9
|
-
isFulfilled(): boolean;
|
|
10
|
-
/** Returns true if the promise is rejected, i.e. if it contains an error. */
|
|
11
|
-
isRejected(): boolean;
|
|
12
|
-
/** Returns true if the promise was cancelled before it was able to complete. */
|
|
13
|
-
isCancelled(): boolean;
|
|
14
|
-
}
|
|
15
|
-
type State = "pending" | "fulfilled" | "rejected" | "cancelled";
|
|
16
|
-
declare const PROMISE: unique symbol;
|
|
17
|
-
declare const STATE: unique symbol;
|
|
18
|
-
declare const PRIVATE_CONSTUCTOR_TAG: unique symbol;
|
|
19
|
-
/**
|
|
20
|
-
* Wrapper of global.Promise class.
|
|
21
|
-
* Read more about [Promises](./PROMISES.md).
|
|
22
|
-
*
|
|
23
|
-
* @see https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Promise
|
|
24
|
-
*/
|
|
25
|
-
declare class ExtendedPromise<T> implements Promise<T> {
|
|
26
|
-
private [PROMISE];
|
|
27
|
-
private [STATE]?;
|
|
28
|
-
/**
|
|
29
|
-
* Creates Promise instances.
|
|
30
|
-
* @param executor defined as (resolve,reject)=> \{\}
|
|
31
|
-
* @example
|
|
32
|
-
* ```js
|
|
33
|
-
* new Promise((resolve,reject)=>{
|
|
34
|
-
* ...
|
|
35
|
-
* });
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void);
|
|
39
|
-
/**
|
|
40
|
-
* Internal constructor. Do not call.
|
|
41
|
-
*/
|
|
42
|
-
constructor(promise: PromiseLike<T> | LegacyDojoDeferred, state: State | undefined, tag: typeof PRIVATE_CONSTUCTOR_TAG);
|
|
43
|
-
/** Creates a new resolved promise */
|
|
44
|
-
static resolve(): ExtendedPromise<void>;
|
|
45
|
-
/**
|
|
46
|
-
* Creates a new resolved promise with the given value
|
|
47
|
-
* @param value result object.
|
|
48
|
-
* @returns a promise in fulfilled state.
|
|
49
|
-
*/
|
|
50
|
-
static resolve<T>(value: T): ExtendedPromise<T>;
|
|
51
|
-
/**
|
|
52
|
-
* @param reason The reason the promise was rejected.
|
|
53
|
-
* @returns a promise in rejected state.
|
|
54
|
-
*/
|
|
55
|
-
static reject<T = never>(reason?: any): ExtendedPromise<T>;
|
|
56
|
-
/**
|
|
57
|
-
* Creates promise which fulfills if all other promises are fulfilled.
|
|
58
|
-
* Or rejects if one of the promises rejects.
|
|
59
|
-
*
|
|
60
|
-
* @param iterable Iterable of Promise instances
|
|
61
|
-
*/
|
|
62
|
-
static all<T>(iterable: Iterable<T | PromiseLike<T>>): ExtendedPromise<T[]>;
|
|
63
|
-
/**
|
|
64
|
-
* Creates promise which fulfills if one of the other promises fulfills.
|
|
65
|
-
* Or rejects if one of the promises rejects.
|
|
66
|
-
*
|
|
67
|
-
* @param iterable Iterable of Promise instances
|
|
68
|
-
*/
|
|
69
|
-
static race<T>(iterable: Iterable<T>): ExtendedPromise<T extends PromiseLike<infer U> ? U : T>;
|
|
70
|
-
/**
|
|
71
|
-
* Creates promise which fulfills if one of the other promises fulfills.
|
|
72
|
-
* Or rejects if one of the promises rejects.
|
|
73
|
-
*
|
|
74
|
-
* @param iterable Iterable of Promise instances
|
|
75
|
-
*/
|
|
76
|
-
static race<T>(iterable: Iterable<T | PromiseLike<T>>): ExtendedPromise<T>;
|
|
77
|
-
/**
|
|
78
|
-
* Creates a promise that resolves after all of the given promises have either fulfilled or rejected,
|
|
79
|
-
* with an array of objects that each describes the outcome of each promise.
|
|
80
|
-
*
|
|
81
|
-
* @param iterable Iterable of Promise instances
|
|
82
|
-
*/
|
|
83
|
-
static allSettled<T>(iterable: Iterable<T | PromiseLike<T>>): ExtendedPromise<PromiseSettledResult<Awaited<T>>[]>;
|
|
84
|
-
/**
|
|
85
|
-
* Promise.any() takes an iterable of Promise objects and, as soon as one of the promises in the iterable fulfills,
|
|
86
|
-
* returns a single promise that resolves with the value from that promise.
|
|
87
|
-
* If no promises in the iterable fulfill (if all of the given promises are rejected),
|
|
88
|
-
* then the returned promise is rejected with an AggregateError,
|
|
89
|
-
* Essentially, this method is the opposite of Promise.all().
|
|
90
|
-
*
|
|
91
|
-
* @param iterable Iterable of Promise instances
|
|
92
|
-
*/
|
|
93
|
-
static any<T>(iterable: (T | PromiseLike<T>)[] | Iterable<T | PromiseLike<T>>): ExtendedPromise<T>;
|
|
94
|
-
/**
|
|
95
|
-
* Produces an object with a promise along with its resolution and rejection functions.
|
|
96
|
-
* Allows to resolve/reject the promise manually after creating it.
|
|
97
|
-
*
|
|
98
|
-
* @example
|
|
99
|
-
* ```js
|
|
100
|
-
* const { promise, resolve, reject } = Promise.withResolvers();
|
|
101
|
-
* ```
|
|
102
|
-
* @returns {{ promise, resolve, reject }}
|
|
103
|
-
*/
|
|
104
|
-
static withResolvers<T>(): {
|
|
105
|
-
resolve: (value: T | PromiseLike<T>) => void;
|
|
106
|
-
reject: (reason?: unknown) => void;
|
|
107
|
-
promise: ExtendedPromise<T>;
|
|
108
|
-
};
|
|
109
|
-
/**
|
|
110
|
-
* This method tests if a given object is a promise.
|
|
111
|
-
* The algorithm will return true for:
|
|
112
|
-
* * apprt-core/Promise
|
|
113
|
-
* * global Promise
|
|
114
|
-
* * dojo/Deferred
|
|
115
|
-
* * dojo/Deferred.promise
|
|
116
|
-
*
|
|
117
|
-
* Note: Because of support for dojo/Deferred any object with a
|
|
118
|
-
* 'then', 'isResolved' and 'isRejected' method is detected as a promise.
|
|
119
|
-
*
|
|
120
|
-
* @param candidate a potential promise.
|
|
121
|
-
* @returns true if candidate is a promise.
|
|
122
|
-
*/
|
|
123
|
-
static isPromise(candidate: any): candidate is PromiseLike<unknown>;
|
|
124
|
-
/**
|
|
125
|
-
* Wraps e.g. dojo/Deferred or native Promise to this Promise class.
|
|
126
|
-
* @returns a promise
|
|
127
|
-
*/
|
|
128
|
-
static wrap<T>(promise: PromiseLike<T> | LegacyDojoDeferred): ExtendedPromise<T>;
|
|
129
|
-
/**
|
|
130
|
-
* Augments the given Promise with new state lookup functions.
|
|
131
|
-
*/
|
|
132
|
-
static trackState<T>(promise: PromiseLike<T> | LegacyDojoDeferred): ExtendedPromise<T> & StateQueryable;
|
|
133
|
-
/**
|
|
134
|
-
* Registers success and/or error handlers.
|
|
135
|
-
* @param success called when the promise resolves
|
|
136
|
-
* @param failure called when the promise rejects
|
|
137
|
-
*/
|
|
138
|
-
then<TResult1 = T, TResult2 = never>(success?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, failure?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): ExtendedPromise<TResult1 | TResult2>;
|
|
139
|
-
/**
|
|
140
|
-
* Registers an error handler.
|
|
141
|
-
* @param failure called when the promise rejects
|
|
142
|
-
*/
|
|
143
|
-
catch<TResult = never>(failure?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): ExtendedPromise<T | TResult>;
|
|
144
|
-
/**
|
|
145
|
-
* Registers an error handler. Which is not called if the error is a Cancel instance.
|
|
146
|
-
* @param failure called when the promise rejects
|
|
147
|
-
*/
|
|
148
|
-
else<TResult = never>(failure?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): ExtendedPromise<T | TResult>;
|
|
149
|
-
/**
|
|
150
|
-
* Registers a handler, which is called in success or error state.
|
|
151
|
-
* But the handler is not able to change the result state!
|
|
152
|
-
* @param handler function invoked regardless of success or error
|
|
153
|
-
*/
|
|
154
|
-
finally(handler?: (() => void) | undefined | null): ExtendedPromise<T>;
|
|
155
|
-
/**
|
|
156
|
-
* @returns this instance, augmented with augmented with:
|
|
157
|
-
*
|
|
158
|
-
* * isFulfilled()
|
|
159
|
-
* * isRejected()
|
|
160
|
-
* * isCancelled()
|
|
161
|
-
* * isSettled()
|
|
162
|
-
*/
|
|
163
|
-
trackState(): ExtendedPromise<T> & StateQueryable;
|
|
164
|
-
get [Symbol.toStringTag](): string;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
interface LegacyDojoDeferred {
|
|
168
|
-
promise: any;
|
|
169
|
-
isResolved(): boolean;
|
|
170
|
-
isRejected(): boolean;
|
|
171
|
-
isFulfilled(): boolean;
|
|
172
|
-
isCanceled(): boolean;
|
|
173
|
-
progress(update: any, strict?: boolean): any;
|
|
174
|
-
resolve(value?: any, strict?: boolean): any;
|
|
175
|
-
reject(error?: any, strict?: boolean): any;
|
|
176
|
-
then(callback?: any, errback?: any, progback?: any): any;
|
|
177
|
-
cancel(reason?: any, strict?: boolean): any;
|
|
178
|
-
toString(): string;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export { ExtendedPromise };
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/// <reference types="arcgis-js-api" />
|
|
2
|
-
import { ExtendedPromise } from '../../__internal__/fs6eANFo.js';
|
|
3
|
-
import Query from 'esri/rest/support/Query';
|
|
4
|
-
|
|
5
|
-
/** @lends ct.mapping.store.MapServerLayerStore.prototype*/
|
|
6
|
-
declare class MapServerLayerStore {
|
|
7
|
-
/**
|
|
8
|
-
* This store provides the dojo.store interface implemented over the MapServerQueryStore interface.
|
|
9
|
-
* @constructs
|
|
10
|
-
*/
|
|
11
|
-
constructor(options: any);
|
|
12
|
-
/**
|
|
13
|
-
* The target url pointing to the query layer, e.g.:
|
|
14
|
-
* http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/9
|
|
15
|
-
*/
|
|
16
|
-
target: any;
|
|
17
|
-
/**
|
|
18
|
-
* Sets the property to use as the identity property, if it's not possible to determine the identity property
|
|
19
|
-
* from the service metadata automatically. It does not overwrite the identity property from the service
|
|
20
|
-
* metadata.
|
|
21
|
-
*/
|
|
22
|
-
idProperty: string;
|
|
23
|
-
definitionExpression: string;
|
|
24
|
-
/**
|
|
25
|
-
* This flag enables the support for server-side pagination.
|
|
26
|
-
* It also requires support by from the server (metadata.advancedQueryCapabilities.supportsPagination)
|
|
27
|
-
*/
|
|
28
|
-
enablePagination: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* This flag enables an optimization to use objectIds queries instead of where=OBJECTID in [...] sql queries.
|
|
31
|
-
* But MapServers based on DB-Views do not support this. That is the reason why it is disabled by default.
|
|
32
|
-
*/
|
|
33
|
-
enableObjectIdsQueries: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* How many records can be requested.
|
|
36
|
-
*/
|
|
37
|
-
maxRecordCount: number;
|
|
38
|
-
/**
|
|
39
|
-
* How many records are requested by default.
|
|
40
|
-
*/
|
|
41
|
-
defaultRecordCount: number;
|
|
42
|
-
suggestContains: boolean;
|
|
43
|
-
fetchIdPropertyFromMetadata(): ExtendedPromise<string>;
|
|
44
|
-
/**
|
|
45
|
-
* Retrieves an object by its identity.
|
|
46
|
-
* @param {String|Number} id The identity to use to lookup the object
|
|
47
|
-
* @param {Object} options options to manipulate the request.
|
|
48
|
-
* @returns {Object} The object in the store that matches the given id.
|
|
49
|
-
*/
|
|
50
|
-
get(id: string | number, options: Object): Object;
|
|
51
|
-
/**
|
|
52
|
-
* Returns an object's identity
|
|
53
|
-
*/
|
|
54
|
-
getIdentity(object: any): any;
|
|
55
|
-
_isIdQuery({ fields }: {
|
|
56
|
-
fields?: {} | undefined;
|
|
57
|
-
}): any;
|
|
58
|
-
query(query: any, options: any): any;
|
|
59
|
-
_isInRecordCountBounds({ count, start }: {
|
|
60
|
-
count: any;
|
|
61
|
-
start: any;
|
|
62
|
-
}): boolean;
|
|
63
|
-
_queryAfterFetchingMetadata(taskQuery: any, options: any): ExtendedPromise<ExtendedPromise<any>>;
|
|
64
|
-
_queryWithoutPagination(taskQuery: any, options: any, supportsOrderBy: any): ExtendedPromise<any>;
|
|
65
|
-
_queryWithServerSideSupportedPagination(taskQuery: any, options: any, supportsOrderBy: any): ExtendedPromise<any[] | ExtendedPromise<any>>;
|
|
66
|
-
_executeQuery(queryFunc: any, taskQuery: any, signal: any, callback: any): ExtendedPromise<any>;
|
|
67
|
-
_idSortingNotPossible: boolean | undefined;
|
|
68
|
-
_featuresToItems(outSRS: any, features: any): any;
|
|
69
|
-
getMetadata(): any;
|
|
70
|
-
_metadataReq: any;
|
|
71
|
-
_metadata: any;
|
|
72
|
-
_parseMetaData(metadata: any): any;
|
|
73
|
-
_toTaskQuery(query: any, options: any): Query;
|
|
74
|
-
_convertToSort(sort: any): any;
|
|
75
|
-
/**
|
|
76
|
-
* Converts { fieldname : 1, fieldname2:1 } to [fieldname,fieldname2].
|
|
77
|
-
* It also ensures that the idProperty (OBJECTID) is always requested.
|
|
78
|
-
* The support for {fieldname : 0) is only implemented for "geometry".
|
|
79
|
-
*/
|
|
80
|
-
_convertToOutFields(fields: any): string[];
|
|
81
|
-
_convertQuery(taskQuery: any, query: any, options: any): void;
|
|
82
|
-
_convertToWhere(taskQuery: any, walker: any): void;
|
|
83
|
-
_getAllFeaturesQuery(): string;
|
|
84
|
-
_convertToSpatialQuery(taskQuery: any, walker: any): void;
|
|
85
|
-
_checkSpatialOperatorOnNodeAndChildren(taskQuery: any, walker: any): boolean;
|
|
86
|
-
_checkSpatialOperator(taskQuery: any, walker: any): boolean;
|
|
87
|
-
_isSupportedSpatialRel(relation: any): boolean;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export { MapServerLayerStore as default };
|