You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: endpoints/Endpoint.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -226,7 +226,7 @@ export class Endpoint {
226
226
* Shows whether the server has indicated that a specific HTTP method is currently allowed.
227
227
* Uses cached data from last response.
228
228
* @param method The HTTP methods (e.g. GET, POST, ...) to check.
229
-
* @returnsAn indicator whether the method is allowed. If no request has been sent yet or the server did not specify allowed methods `undefined` is returned.
229
+
* @returns`true` if the method is allowed, `false` if the method is not allowed, `undefined` If no request has been sent yet or the server did not specify allowed methods.
* Sets/replaces an existing element in the collection.
31
29
* @param element The new state of the element.
30
+
* @returns The `TEntity` as returned by the server, possibly with additional fields set. undefined if the server does not respond with a result entity.
* Modifies an existing element in the collection by merging changes on the server-side.
44
41
* @param element The `TEntity` data to merge with the existing element.
42
+
* @returns The `TEntity` as returned by the server, possibly with additional fields set. undefined if the server does not respond with a result entity.
@@ -55,15 +53,14 @@ export class ElementEndpoint<TEntity> extends ETagEndpointBase {
55
53
/**
56
54
* Shows whether the server has indicated that {@link set} is currently allowed.
57
55
* Uses cached data from last response.
58
-
* @returnsAn indicator whether the method is allowed. If no request has been sent yet or the server did not specify allowed methods `undefined` is returned.
56
+
* @returns`true` if the method is allowed, `false` if the method is not allowed, `undefined` If no request has been sent yet or the server did not specify allowed methods.
* @returns The `TEntity` as returned by the server, possibly with additional fields set. undefined if the server does not respond with a result entity.
67
64
* @throws {@link ConcurrencyError}: The entity has changed since it was last retrieved with {@link read}. Your changes were rejected to prevent a lost update.
@@ -82,15 +79,14 @@ export class ElementEndpoint<TEntity> extends ETagEndpointBase {
82
79
/**
83
80
* Shows whether the server has indicated that {@link merge} is currently allowed.
84
81
* Uses cached data from last response.
85
-
* @returnsAn indicator whether the method is allowed. If no request has been sent yet or the server did not specify allowed methods `undefined` is returned.
82
+
* @returns`true` if the method is allowed, `false` if the method is not allowed, `undefined` If no request has been sent yet or the server did not specify allowed methods.
* Modifies an existing `TEntity` by merging changes on the server-side.
93
88
* @param entity The `TEntity` data to merge with the existing element.
89
+
* @returns The `TEntity` as returned by the server, possibly with additional fields set. undefined if the server does not respond with a result entity.
94
90
* @throws {@link ConcurrencyError}: The entity has changed since it was last retrieved with {@link read}. Your changes were rejected to prevent a lost update.
@@ -114,6 +110,7 @@ export class ElementEndpoint<TEntity> extends ETagEndpointBase {
114
110
* Reads the current state of the entity, applies a change to it and stores the result. Applies optimistic concurrency using automatic retries.
115
111
* @param updateAction A callback that takes the current state of the entity and applies the desired modifications.
116
112
* @param maxRetries The maximum number of retries to perform for optimistic concurrency before giving up.
113
+
* @returns The `TEntity` as returned by the server, possibly with additional fields set. undefined if the server does not respond with a result entity.
117
114
* @throws {@link ConcurrencyError}: The maximum number of retries to perform for optimistic concurrency before giving up.
@@ -138,11 +135,9 @@ export class ElementEndpoint<TEntity> extends ETagEndpointBase {
138
135
/**
139
136
* Shows whether the server has indicated that {@link delete} is currently allowed.
140
137
* Uses cached data from last response.
141
-
* @returnsAn indicator whether the method is allowed. If no request has been sent yet or the server did not specify allowed methods `undefined` is returned.
138
+
* @returns`true` if the method is allowed, `false` if the method is not allowed, `undefined` If no request has been sent yet or the server did not specify allowed methods.
Copy file name to clipboardExpand all lines: endpoints/generic/GenericCollectionEndpoint.ts
+12-23Lines changed: 12 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -39,28 +39,23 @@ export class GenericCollectionEndpoint<TEntity, TElementEndpoint extends Endpoin
39
39
/**
40
40
* Shows whether the server has indicated that {@link readAll} is currently allowed.
41
41
* Uses cached data from last response.
42
-
* @returnsAn indicator whether the method is allowed. If no request has been sent yet or the server did not specify allowed methods `undefined` is returned.
42
+
* @returns`true` if the method is allowed, `false` if the method is not allowed, `undefined` If no request has been sent yet or the server did not specify allowed methods.
* Shows whether the server has indicated that {@link create} is currently allowed.
54
50
* Uses cached data from last response.
55
-
* @returnsAn indicator whether the method is allowed. If no request has been sent yet or the server did not specify allowed methods `undefined` is returned.
51
+
* @returns`true` if the method is allowed, `false` if the method is not allowed, `undefined` If no request has been sent yet or the server did not specify allowed methods.
* Adds a `TEntity` as a new element to the collection.
63
57
* @param entity The new `TEntity`.
58
+
* @returns The `TEntity` as returned by the server, possibly with additional fields set. undefined if the server does not respond with a result entity.
@@ -83,11 +78,9 @@ export class GenericCollectionEndpoint<TEntity, TElementEndpoint extends Endpoin
83
78
/**
84
79
* Shows whether the server has indicated that {@link createAll} is currently allowed.
85
80
* Uses cached data from last response.
86
-
* @returnsAn indicator whether the method is allowed. If no request has been sent yet or the server did not specify allowed methods `undefined` is returned.
81
+
* @returns`true` if the method is allowed, `false` if the method is not allowed, `undefined` If no request has been sent yet or the server did not specify allowed methods.
@@ -107,11 +100,9 @@ export class GenericCollectionEndpoint<TEntity, TElementEndpoint extends Endpoin
107
100
/**
108
101
* Shows whether the server has indicated that {@link setAll} is currently allowed.
109
102
* Uses cached data from last response.
110
-
* @returnsAn indicator whether the method is allowed. If no request has been sent yet or the server did not specify allowed methods `undefined` is returned.
103
+
* @returns`true` if the method is allowed, `false` if the method is not allowed, `undefined` If no request has been sent yet or the server did not specify allowed methods.
Copy file name to clipboardExpand all lines: endpoints/raw/BlobEndpoint.ts
+9-21Lines changed: 9 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -18,18 +18,14 @@ export class BlobEndpoint extends Endpoint {
18
18
* @throws {@link NotFoundError}: {@link HttpStatusCode.NotFound} or {@link HttpStatusCode.Gone}
19
19
* @throws {@link HttpError}: Other non-success status code
20
20
*/
21
-
asyncprobe(): Promise<void>{
22
-
awaitthis.send(HttpMethod.Options);
23
-
}
21
+
asyncprobe(){awaitthis.send(HttpMethod.Options);}
24
22
25
23
/**
26
24
* Shows whether the server has indicated that {@link download} is currently allowed.
27
25
* Uses cached data from last response.
28
-
* @returnsAn indicator whether the method is allowed. If no request has been sent yet or the server did not specify allowed methods `undefined` is returned.
26
+
* @returns`true` if the method is allowed, `false` if the method is not allowed, `undefined` If no request has been sent yet or the server did not specify allowed methods.
@@ -47,11 +43,9 @@ export class BlobEndpoint extends Endpoint {
47
43
/**
48
44
* Shows whether the server has indicated that {@link upload} is currently allowed.
49
45
* Uses cached data from last response.
50
-
* @returnsAn indicator whether the method is allowed. If no request has been sent yet or the server did not specify allowed methods `undefined` is returned.
46
+
* @returns`true` if the method is allowed, `false` if the method is not allowed, `undefined` If no request has been sent yet or the server did not specify allowed methods.
* Shows whether the server has indicated that {@link delete} is currently allowed.
70
62
* Uses cached data from last response.
71
-
* @returnsAn indicator whether the method is allowed. If no request has been sent yet or the server did not specify allowed methods `undefined` is returned.
63
+
* @returns`true` if the method is allowed, `false` if the method is not allowed, `undefined` If no request has been sent yet or the server did not specify allowed methods.
0 commit comments