spitfirepm 23.9700.6 → 23.9700.7
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/README.md +1 -0
- package/dist/SwaggerClients.d.ts +9 -9
- package/dist/SwaggerClients.js +106 -106
- package/dist/SwaggerClients.js.map +1 -1
- package/dist/sfRESTClient.d.ts +26 -4
- package/dist/sfRESTClient.js +26 -4
- package/dist/sfRESTClient.js.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/SwaggerClients.d.ts
CHANGED
|
@@ -2376,15 +2376,6 @@ export declare class DocumentToolsClient extends APIClientBase {
|
|
|
2376
2376
|
private createNextRevisionWithCallbacks;
|
|
2377
2377
|
private processCreateNextRevisionWithCallbacks;
|
|
2378
2378
|
protected processCreateNextRevision(xhr: any): boolean | null;
|
|
2379
|
-
/**
|
|
2380
|
-
* Inserts a single route on the specified document
|
|
2381
|
-
* @param id Document Key
|
|
2382
|
-
* @param newRoute Route (DocRoute object)
|
|
2383
|
-
*/
|
|
2384
|
-
addDocRoute(id: string, newRoute: DocRoute): Promise<DocRoute | null>;
|
|
2385
|
-
private addDocRouteWithCallbacks;
|
|
2386
|
-
private processAddDocRouteWithCallbacks;
|
|
2387
|
-
protected processAddDocRoute(xhr: any): DocRoute | null | null;
|
|
2388
2379
|
/**
|
|
2389
2380
|
* Returns the route on the specified document
|
|
2390
2381
|
* @param id Document Key
|
|
@@ -2413,6 +2404,15 @@ export declare class DocumentToolsClient extends APIClientBase {
|
|
|
2413
2404
|
private updateDocRouteWithCallbacks;
|
|
2414
2405
|
private processUpdateDocRouteWithCallbacks;
|
|
2415
2406
|
protected processUpdateDocRoute(xhr: any): string | null;
|
|
2407
|
+
/**
|
|
2408
|
+
* Inserts a single route on the specified document
|
|
2409
|
+
* @param id Document Key
|
|
2410
|
+
* @param newRoute Route (DocRoute object)
|
|
2411
|
+
*/
|
|
2412
|
+
addDocRoute(id: string, newRoute: DocRoute): Promise<DocRoute | null>;
|
|
2413
|
+
private addDocRouteWithCallbacks;
|
|
2414
|
+
private processAddDocRouteWithCallbacks;
|
|
2415
|
+
protected processAddDocRoute(xhr: any): DocRoute | null | null;
|
|
2416
2416
|
/**
|
|
2417
2417
|
* Updates the specified field on the specified route on the specified document. See also PatchDoc
|
|
2418
2418
|
* @param id Document Key
|
package/dist/SwaggerClients.js
CHANGED
|
@@ -16,7 +16,7 @@ class AccountClient extends APIClientBase_1.APIClientBase {
|
|
|
16
16
|
jsonParseReviver = undefined;
|
|
17
17
|
constructor(baseUrl) {
|
|
18
18
|
super();
|
|
19
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
19
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* Authenticates a session and generates a FormsAuthenticationTicket and cookie
|
|
@@ -724,7 +724,7 @@ class ActionItemsClient extends APIClientBase_1.APIClientBase {
|
|
|
724
724
|
jsonParseReviver = undefined;
|
|
725
725
|
constructor(baseUrl) {
|
|
726
726
|
super();
|
|
727
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
727
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
728
728
|
}
|
|
729
729
|
/**
|
|
730
730
|
* Returns action items for specified User
|
|
@@ -1173,7 +1173,7 @@ class AlertsClient extends APIClientBase_1.APIClientBase {
|
|
|
1173
1173
|
jsonParseReviver = undefined;
|
|
1174
1174
|
constructor(baseUrl) {
|
|
1175
1175
|
super();
|
|
1176
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
1176
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
1177
1177
|
}
|
|
1178
1178
|
/**
|
|
1179
1179
|
* Returns alert items for a specified user
|
|
@@ -1583,7 +1583,7 @@ class LookupClient extends APIClientBase_1.APIClientBase {
|
|
|
1583
1583
|
jsonParseReviver = undefined;
|
|
1584
1584
|
constructor(baseUrl) {
|
|
1585
1585
|
super();
|
|
1586
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
1586
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
1587
1587
|
}
|
|
1588
1588
|
/**
|
|
1589
1589
|
* Returns list of alerts that are recorded about the specified source key
|
|
@@ -2995,7 +2995,7 @@ class ARRClient extends APIClientBase_1.APIClientBase {
|
|
|
2995
2995
|
jsonParseReviver = undefined;
|
|
2996
2996
|
constructor(baseUrl) {
|
|
2997
2997
|
super();
|
|
2998
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
2998
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
2999
2999
|
}
|
|
3000
3000
|
/**
|
|
3001
3001
|
* Queue the routed-content download package build
|
|
@@ -3248,7 +3248,7 @@ class CatalogClient extends APIClientBase_1.APIClientBase {
|
|
|
3248
3248
|
jsonParseReviver = undefined;
|
|
3249
3249
|
constructor(baseUrl) {
|
|
3250
3250
|
super();
|
|
3251
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
3251
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
3252
3252
|
}
|
|
3253
3253
|
/**
|
|
3254
3254
|
* Releases a resource, usually a PDF of a report or export
|
|
@@ -6704,7 +6704,7 @@ class ConfigClient extends APIClientBase_1.APIClientBase {
|
|
|
6704
6704
|
jsonParseReviver = undefined;
|
|
6705
6705
|
constructor(baseUrl) {
|
|
6706
6706
|
super();
|
|
6707
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
6707
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
6708
6708
|
}
|
|
6709
6709
|
/**
|
|
6710
6710
|
* Updates a flex key by name and segment number. Returns the new definition.
|
|
@@ -14769,7 +14769,7 @@ class ContactClient extends APIClientBase_1.APIClientBase {
|
|
|
14769
14769
|
jsonParseReviver = undefined;
|
|
14770
14770
|
constructor(baseUrl) {
|
|
14771
14771
|
super();
|
|
14772
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
14772
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
14773
14773
|
}
|
|
14774
14774
|
/**
|
|
14775
14775
|
* Adds the contact
|
|
@@ -15080,7 +15080,7 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
15080
15080
|
jsonParseReviver = undefined;
|
|
15081
15081
|
constructor(baseUrl) {
|
|
15082
15082
|
super();
|
|
15083
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
15083
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
15084
15084
|
}
|
|
15085
15085
|
/**
|
|
15086
15086
|
* Returns the header Of the specified document, including a Document Session Key
|
|
@@ -21906,41 +21906,37 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
21906
21906
|
return null;
|
|
21907
21907
|
}
|
|
21908
21908
|
/**
|
|
21909
|
-
*
|
|
21909
|
+
* Returns the route on the specified document
|
|
21910
21910
|
* @param id Document Key
|
|
21911
|
-
* @param newRoute Route (DocRoute object)
|
|
21912
21911
|
*/
|
|
21913
|
-
|
|
21912
|
+
getDocRoute(id) {
|
|
21914
21913
|
return new Promise((resolve, reject) => {
|
|
21915
|
-
this.
|
|
21914
|
+
this.getDocRouteWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
21916
21915
|
});
|
|
21917
21916
|
}
|
|
21918
|
-
|
|
21917
|
+
getDocRouteWithCallbacks(id, onSuccess, onFail) {
|
|
21919
21918
|
let url_ = this.baseUrl + "/api/document/{id}/route";
|
|
21920
21919
|
if (id === undefined || id === null)
|
|
21921
21920
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21922
21921
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21923
21922
|
url_ = url_.replace(/[?&]$/, "");
|
|
21924
|
-
const content_ = JSON.stringify(newRoute);
|
|
21925
21923
|
jQuery.ajax({
|
|
21926
21924
|
url: url_,
|
|
21927
21925
|
beforeSend: this.beforeSend,
|
|
21928
|
-
type: "
|
|
21929
|
-
data: content_,
|
|
21926
|
+
type: "get",
|
|
21930
21927
|
dataType: "text",
|
|
21931
21928
|
headers: {
|
|
21932
|
-
"Content-Type": "application/json",
|
|
21933
21929
|
"Accept": "application/json"
|
|
21934
21930
|
}
|
|
21935
21931
|
}).done((_data, _textStatus, xhr) => {
|
|
21936
|
-
this.
|
|
21932
|
+
this.processGetDocRouteWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
21937
21933
|
}).fail((xhr) => {
|
|
21938
|
-
this.
|
|
21934
|
+
this.processGetDocRouteWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
21939
21935
|
});
|
|
21940
21936
|
}
|
|
21941
|
-
|
|
21937
|
+
processGetDocRouteWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
21942
21938
|
try {
|
|
21943
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.
|
|
21939
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processGetDocRoute(xhr));
|
|
21944
21940
|
if (onSuccess !== undefined)
|
|
21945
21941
|
onSuccess(result);
|
|
21946
21942
|
}
|
|
@@ -21949,7 +21945,7 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
21949
21945
|
onFail(e, "http_service_exception");
|
|
21950
21946
|
}
|
|
21951
21947
|
}
|
|
21952
|
-
|
|
21948
|
+
processGetDocRoute(xhr) {
|
|
21953
21949
|
const status = xhr.status;
|
|
21954
21950
|
let _headers = {};
|
|
21955
21951
|
if (status === 200) {
|
|
@@ -21958,23 +21954,11 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
21958
21954
|
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21959
21955
|
return result200;
|
|
21960
21956
|
}
|
|
21961
|
-
else if (status === 400) {
|
|
21962
|
-
const _responseText = xhr.responseText;
|
|
21963
|
-
let result400 = null;
|
|
21964
|
-
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21965
|
-
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
21966
|
-
}
|
|
21967
|
-
else if (status === 401) {
|
|
21968
|
-
const _responseText = xhr.responseText;
|
|
21969
|
-
let result401 = null;
|
|
21970
|
-
result401 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21971
|
-
return throwException("Not currently authenticated", status, _responseText, _headers, result401);
|
|
21972
|
-
}
|
|
21973
21957
|
else if (status === 403) {
|
|
21974
21958
|
const _responseText = xhr.responseText;
|
|
21975
21959
|
let result403 = null;
|
|
21976
21960
|
result403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21977
|
-
return throwException("
|
|
21961
|
+
return throwException("Not currently authenticated or lacks authorization", status, _responseText, _headers, result403);
|
|
21978
21962
|
}
|
|
21979
21963
|
else if (status === 404) {
|
|
21980
21964
|
const _responseText = xhr.responseText;
|
|
@@ -21982,17 +21966,11 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
21982
21966
|
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21983
21967
|
return throwException("Document not found, or not accessible", status, _responseText, _headers, result404);
|
|
21984
21968
|
}
|
|
21985
|
-
else if (status === 406) {
|
|
21986
|
-
const _responseText = xhr.responseText;
|
|
21987
|
-
let result406 = null;
|
|
21988
|
-
result406 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21989
|
-
return throwException("Not acceptable", status, _responseText, _headers, result406);
|
|
21990
|
-
}
|
|
21991
21969
|
else if (status === 409) {
|
|
21992
21970
|
const _responseText = xhr.responseText;
|
|
21993
21971
|
let result409 = null;
|
|
21994
21972
|
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21995
|
-
return throwException("
|
|
21973
|
+
return throwException("Failed to persist", status, _responseText, _headers, result409);
|
|
21996
21974
|
}
|
|
21997
21975
|
else if (status === 500) {
|
|
21998
21976
|
const _responseText = xhr.responseText;
|
|
@@ -22007,37 +21985,42 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
22007
21985
|
return null;
|
|
22008
21986
|
}
|
|
22009
21987
|
/**
|
|
22010
|
-
*
|
|
21988
|
+
* Deletes the route on the specified document
|
|
22011
21989
|
* @param id Document Key
|
|
21990
|
+
* @param routeKeys Route Key(s)
|
|
21991
|
+
* @return Specified route not found
|
|
22012
21992
|
*/
|
|
22013
|
-
|
|
21993
|
+
deleteDocRoute(id, routeKeys) {
|
|
22014
21994
|
return new Promise((resolve, reject) => {
|
|
22015
|
-
this.
|
|
21995
|
+
this.deleteDocRouteWithCallbacks(id, routeKeys, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
22016
21996
|
});
|
|
22017
21997
|
}
|
|
22018
|
-
|
|
21998
|
+
deleteDocRouteWithCallbacks(id, routeKeys, onSuccess, onFail) {
|
|
22019
21999
|
let url_ = this.baseUrl + "/api/document/{id}/route";
|
|
22020
22000
|
if (id === undefined || id === null)
|
|
22021
22001
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22022
22002
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22023
22003
|
url_ = url_.replace(/[?&]$/, "");
|
|
22004
|
+
const content_ = JSON.stringify(routeKeys);
|
|
22024
22005
|
jQuery.ajax({
|
|
22025
22006
|
url: url_,
|
|
22026
22007
|
beforeSend: this.beforeSend,
|
|
22027
|
-
type: "
|
|
22008
|
+
type: "delete",
|
|
22009
|
+
data: content_,
|
|
22028
22010
|
dataType: "text",
|
|
22029
22011
|
headers: {
|
|
22012
|
+
"Content-Type": "application/json",
|
|
22030
22013
|
"Accept": "application/json"
|
|
22031
22014
|
}
|
|
22032
22015
|
}).done((_data, _textStatus, xhr) => {
|
|
22033
|
-
this.
|
|
22016
|
+
this.processDeleteDocRouteWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
22034
22017
|
}).fail((xhr) => {
|
|
22035
|
-
this.
|
|
22018
|
+
this.processDeleteDocRouteWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
22036
22019
|
});
|
|
22037
22020
|
}
|
|
22038
|
-
|
|
22021
|
+
processDeleteDocRouteWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
22039
22022
|
try {
|
|
22040
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.
|
|
22023
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processDeleteDocRoute(xhr));
|
|
22041
22024
|
if (onSuccess !== undefined)
|
|
22042
22025
|
onSuccess(result);
|
|
22043
22026
|
}
|
|
@@ -22046,14 +22029,14 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
22046
22029
|
onFail(e, "http_service_exception");
|
|
22047
22030
|
}
|
|
22048
22031
|
}
|
|
22049
|
-
|
|
22032
|
+
processDeleteDocRoute(xhr) {
|
|
22050
22033
|
const status = xhr.status;
|
|
22051
22034
|
let _headers = {};
|
|
22052
|
-
if (status ===
|
|
22035
|
+
if (status === 204) {
|
|
22053
22036
|
const _responseText = xhr.responseText;
|
|
22054
|
-
let
|
|
22055
|
-
|
|
22056
|
-
return
|
|
22037
|
+
let result204 = null;
|
|
22038
|
+
result204 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22039
|
+
return result204;
|
|
22057
22040
|
}
|
|
22058
22041
|
else if (status === 403) {
|
|
22059
22042
|
const _responseText = xhr.responseText;
|
|
@@ -22067,11 +22050,17 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
22067
22050
|
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22068
22051
|
return throwException("Document not found, or not accessible", status, _responseText, _headers, result404);
|
|
22069
22052
|
}
|
|
22053
|
+
else if (status === 406) {
|
|
22054
|
+
const _responseText = xhr.responseText;
|
|
22055
|
+
let result406 = null;
|
|
22056
|
+
result406 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22057
|
+
return throwException("Not acceptable", status, _responseText, _headers, result406);
|
|
22058
|
+
}
|
|
22070
22059
|
else if (status === 409) {
|
|
22071
22060
|
const _responseText = xhr.responseText;
|
|
22072
22061
|
let result409 = null;
|
|
22073
22062
|
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22074
|
-
return throwException("
|
|
22063
|
+
return throwException("Could not persist the delete", status, _responseText, _headers, result409);
|
|
22075
22064
|
}
|
|
22076
22065
|
else if (status === 500) {
|
|
22077
22066
|
const _responseText = xhr.responseText;
|
|
@@ -22086,27 +22075,27 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
22086
22075
|
return null;
|
|
22087
22076
|
}
|
|
22088
22077
|
/**
|
|
22089
|
-
*
|
|
22078
|
+
* Updates a route entry on the specified document
|
|
22090
22079
|
* @param id Document Key
|
|
22091
|
-
* @param
|
|
22080
|
+
* @param updatedRoute Replacement Route
|
|
22092
22081
|
* @return Specified route not found
|
|
22093
22082
|
*/
|
|
22094
|
-
|
|
22083
|
+
updateDocRoute(id, updatedRoute) {
|
|
22095
22084
|
return new Promise((resolve, reject) => {
|
|
22096
|
-
this.
|
|
22085
|
+
this.updateDocRouteWithCallbacks(id, updatedRoute, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
22097
22086
|
});
|
|
22098
22087
|
}
|
|
22099
|
-
|
|
22088
|
+
updateDocRouteWithCallbacks(id, updatedRoute, onSuccess, onFail) {
|
|
22100
22089
|
let url_ = this.baseUrl + "/api/document/{id}/route";
|
|
22101
22090
|
if (id === undefined || id === null)
|
|
22102
22091
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22103
22092
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22104
22093
|
url_ = url_.replace(/[?&]$/, "");
|
|
22105
|
-
const content_ = JSON.stringify(
|
|
22094
|
+
const content_ = JSON.stringify(updatedRoute);
|
|
22106
22095
|
jQuery.ajax({
|
|
22107
22096
|
url: url_,
|
|
22108
22097
|
beforeSend: this.beforeSend,
|
|
22109
|
-
type: "
|
|
22098
|
+
type: "put",
|
|
22110
22099
|
data: content_,
|
|
22111
22100
|
dataType: "text",
|
|
22112
22101
|
headers: {
|
|
@@ -22114,14 +22103,14 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
22114
22103
|
"Accept": "application/json"
|
|
22115
22104
|
}
|
|
22116
22105
|
}).done((_data, _textStatus, xhr) => {
|
|
22117
|
-
this.
|
|
22106
|
+
this.processUpdateDocRouteWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
22118
22107
|
}).fail((xhr) => {
|
|
22119
|
-
this.
|
|
22108
|
+
this.processUpdateDocRouteWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
22120
22109
|
});
|
|
22121
22110
|
}
|
|
22122
|
-
|
|
22111
|
+
processUpdateDocRouteWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
22123
22112
|
try {
|
|
22124
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.
|
|
22113
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processUpdateDocRoute(xhr));
|
|
22125
22114
|
if (onSuccess !== undefined)
|
|
22126
22115
|
onSuccess(result);
|
|
22127
22116
|
}
|
|
@@ -22130,7 +22119,7 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
22130
22119
|
onFail(e, "http_service_exception");
|
|
22131
22120
|
}
|
|
22132
22121
|
}
|
|
22133
|
-
|
|
22122
|
+
processUpdateDocRoute(xhr) {
|
|
22134
22123
|
const status = xhr.status;
|
|
22135
22124
|
let _headers = {};
|
|
22136
22125
|
if (status === 204) {
|
|
@@ -22151,17 +22140,11 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
22151
22140
|
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22152
22141
|
return throwException("Document not found, or not accessible", status, _responseText, _headers, result404);
|
|
22153
22142
|
}
|
|
22154
|
-
else if (status === 406) {
|
|
22155
|
-
const _responseText = xhr.responseText;
|
|
22156
|
-
let result406 = null;
|
|
22157
|
-
result406 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22158
|
-
return throwException("Not acceptable", status, _responseText, _headers, result406);
|
|
22159
|
-
}
|
|
22160
22143
|
else if (status === 409) {
|
|
22161
22144
|
const _responseText = xhr.responseText;
|
|
22162
22145
|
let result409 = null;
|
|
22163
22146
|
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22164
|
-
return throwException("Could not persist the
|
|
22147
|
+
return throwException("Could not persist the update", status, _responseText, _headers, result409);
|
|
22165
22148
|
}
|
|
22166
22149
|
else if (status === 500) {
|
|
22167
22150
|
const _responseText = xhr.responseText;
|
|
@@ -22176,27 +22159,26 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
22176
22159
|
return null;
|
|
22177
22160
|
}
|
|
22178
22161
|
/**
|
|
22179
|
-
*
|
|
22162
|
+
* Inserts a single route on the specified document
|
|
22180
22163
|
* @param id Document Key
|
|
22181
|
-
* @param
|
|
22182
|
-
* @return Specified route not found
|
|
22164
|
+
* @param newRoute Route (DocRoute object)
|
|
22183
22165
|
*/
|
|
22184
|
-
|
|
22166
|
+
addDocRoute(id, newRoute) {
|
|
22185
22167
|
return new Promise((resolve, reject) => {
|
|
22186
|
-
this.
|
|
22168
|
+
this.addDocRouteWithCallbacks(id, newRoute, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
22187
22169
|
});
|
|
22188
22170
|
}
|
|
22189
|
-
|
|
22171
|
+
addDocRouteWithCallbacks(id, newRoute, onSuccess, onFail) {
|
|
22190
22172
|
let url_ = this.baseUrl + "/api/document/{id}/route";
|
|
22191
22173
|
if (id === undefined || id === null)
|
|
22192
22174
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22193
22175
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22194
22176
|
url_ = url_.replace(/[?&]$/, "");
|
|
22195
|
-
const content_ = JSON.stringify(
|
|
22177
|
+
const content_ = JSON.stringify(newRoute);
|
|
22196
22178
|
jQuery.ajax({
|
|
22197
22179
|
url: url_,
|
|
22198
22180
|
beforeSend: this.beforeSend,
|
|
22199
|
-
type: "
|
|
22181
|
+
type: "post",
|
|
22200
22182
|
data: content_,
|
|
22201
22183
|
dataType: "text",
|
|
22202
22184
|
headers: {
|
|
@@ -22204,14 +22186,14 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
22204
22186
|
"Accept": "application/json"
|
|
22205
22187
|
}
|
|
22206
22188
|
}).done((_data, _textStatus, xhr) => {
|
|
22207
|
-
this.
|
|
22189
|
+
this.processAddDocRouteWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
22208
22190
|
}).fail((xhr) => {
|
|
22209
|
-
this.
|
|
22191
|
+
this.processAddDocRouteWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
22210
22192
|
});
|
|
22211
22193
|
}
|
|
22212
|
-
|
|
22194
|
+
processAddDocRouteWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
22213
22195
|
try {
|
|
22214
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.
|
|
22196
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processAddDocRoute(xhr));
|
|
22215
22197
|
if (onSuccess !== undefined)
|
|
22216
22198
|
onSuccess(result);
|
|
22217
22199
|
}
|
|
@@ -22220,20 +22202,32 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
22220
22202
|
onFail(e, "http_service_exception");
|
|
22221
22203
|
}
|
|
22222
22204
|
}
|
|
22223
|
-
|
|
22205
|
+
processAddDocRoute(xhr) {
|
|
22224
22206
|
const status = xhr.status;
|
|
22225
22207
|
let _headers = {};
|
|
22226
|
-
if (status ===
|
|
22208
|
+
if (status === 200) {
|
|
22227
22209
|
const _responseText = xhr.responseText;
|
|
22228
|
-
let
|
|
22229
|
-
|
|
22230
|
-
return
|
|
22210
|
+
let result200 = null;
|
|
22211
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22212
|
+
return result200;
|
|
22213
|
+
}
|
|
22214
|
+
else if (status === 400) {
|
|
22215
|
+
const _responseText = xhr.responseText;
|
|
22216
|
+
let result400 = null;
|
|
22217
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22218
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
22219
|
+
}
|
|
22220
|
+
else if (status === 401) {
|
|
22221
|
+
const _responseText = xhr.responseText;
|
|
22222
|
+
let result401 = null;
|
|
22223
|
+
result401 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22224
|
+
return throwException("Not currently authenticated", status, _responseText, _headers, result401);
|
|
22231
22225
|
}
|
|
22232
22226
|
else if (status === 403) {
|
|
22233
22227
|
const _responseText = xhr.responseText;
|
|
22234
22228
|
let result403 = null;
|
|
22235
22229
|
result403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22236
|
-
return throwException("
|
|
22230
|
+
return throwException("Lacks authorization", status, _responseText, _headers, result403);
|
|
22237
22231
|
}
|
|
22238
22232
|
else if (status === 404) {
|
|
22239
22233
|
const _responseText = xhr.responseText;
|
|
@@ -22241,11 +22235,17 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
22241
22235
|
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22242
22236
|
return throwException("Document not found, or not accessible", status, _responseText, _headers, result404);
|
|
22243
22237
|
}
|
|
22238
|
+
else if (status === 406) {
|
|
22239
|
+
const _responseText = xhr.responseText;
|
|
22240
|
+
let result406 = null;
|
|
22241
|
+
result406 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22242
|
+
return throwException("Not acceptable", status, _responseText, _headers, result406);
|
|
22243
|
+
}
|
|
22244
22244
|
else if (status === 409) {
|
|
22245
22245
|
const _responseText = xhr.responseText;
|
|
22246
22246
|
let result409 = null;
|
|
22247
22247
|
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22248
|
-
return throwException("Could not persist the
|
|
22248
|
+
return throwException("Could not persist the insert", status, _responseText, _headers, result409);
|
|
22249
22249
|
}
|
|
22250
22250
|
else if (status === 500) {
|
|
22251
22251
|
const _responseText = xhr.responseText;
|
|
@@ -23901,7 +23901,7 @@ class ExcelToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
23901
23901
|
jsonParseReviver = undefined;
|
|
23902
23902
|
constructor(baseUrl) {
|
|
23903
23903
|
super();
|
|
23904
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
23904
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
23905
23905
|
}
|
|
23906
23906
|
/**
|
|
23907
23907
|
* Returns a financial snapshot
|
|
@@ -24692,7 +24692,7 @@ class ProjectToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
24692
24692
|
jsonParseReviver = undefined;
|
|
24693
24693
|
constructor(baseUrl) {
|
|
24694
24694
|
super();
|
|
24695
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
24695
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
24696
24696
|
}
|
|
24697
24697
|
/**
|
|
24698
24698
|
* Removes/clears a Project Budget and optionally the entire Project (if uncommitted)
|
|
@@ -26893,7 +26893,7 @@ class ProjectDocListClient extends APIClientBase_1.APIClientBase {
|
|
|
26893
26893
|
jsonParseReviver = undefined;
|
|
26894
26894
|
constructor(baseUrl) {
|
|
26895
26895
|
super();
|
|
26896
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
26896
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
26897
26897
|
}
|
|
26898
26898
|
/**
|
|
26899
26899
|
* Returns full list of documents on a project that match the requested document type
|
|
@@ -27217,7 +27217,7 @@ class ProjectKPIClient extends APIClientBase_1.APIClientBase {
|
|
|
27217
27217
|
jsonParseReviver = undefined;
|
|
27218
27218
|
constructor(baseUrl) {
|
|
27219
27219
|
super();
|
|
27220
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
27220
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
27221
27221
|
}
|
|
27222
27222
|
/**
|
|
27223
27223
|
* Returns list of KPI facts for the specified project
|
|
@@ -27300,7 +27300,7 @@ class ProjectTeamClient extends APIClientBase_1.APIClientBase {
|
|
|
27300
27300
|
jsonParseReviver = undefined;
|
|
27301
27301
|
constructor(baseUrl) {
|
|
27302
27302
|
super();
|
|
27303
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
27303
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
27304
27304
|
}
|
|
27305
27305
|
/**
|
|
27306
27306
|
* Returns members of the specified project team
|
|
@@ -27830,7 +27830,7 @@ class ProjectsClient extends APIClientBase_1.APIClientBase {
|
|
|
27830
27830
|
jsonParseReviver = undefined;
|
|
27831
27831
|
constructor(baseUrl) {
|
|
27832
27832
|
super();
|
|
27833
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
27833
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
27834
27834
|
}
|
|
27835
27835
|
/**
|
|
27836
27836
|
* Returns projects that match User and hidden filter
|
|
@@ -28356,7 +28356,7 @@ class SessionClient extends APIClientBase_1.APIClientBase {
|
|
|
28356
28356
|
jsonParseReviver = undefined;
|
|
28357
28357
|
constructor(baseUrl) {
|
|
28358
28358
|
super();
|
|
28359
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
28359
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
28360
28360
|
}
|
|
28361
28361
|
/**
|
|
28362
28362
|
* Removes a specific users session; see also api/system/users/idle to auto-prune
|
|
@@ -30478,7 +30478,7 @@ class SystemClient extends APIClientBase_1.APIClientBase {
|
|
|
30478
30478
|
jsonParseReviver = undefined;
|
|
30479
30479
|
constructor(baseUrl) {
|
|
30480
30480
|
super();
|
|
30481
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
30481
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
30482
30482
|
}
|
|
30483
30483
|
/**
|
|
30484
30484
|
* Returns site branding label
|
|
@@ -32222,7 +32222,7 @@ class UICFGClient extends APIClientBase_1.APIClientBase {
|
|
|
32222
32222
|
jsonParseReviver = undefined;
|
|
32223
32223
|
constructor(baseUrl) {
|
|
32224
32224
|
super();
|
|
32225
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
32225
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
32226
32226
|
}
|
|
32227
32227
|
/**
|
|
32228
32228
|
* Returns Live UI CFG data for this user for the requested part
|
|
@@ -32691,7 +32691,7 @@ class XTSClient extends APIClientBase_1.APIClientBase {
|
|
|
32691
32691
|
jsonParseReviver = undefined;
|
|
32692
32692
|
constructor(baseUrl) {
|
|
32693
32693
|
super();
|
|
32694
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
32694
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
32695
32695
|
}
|
|
32696
32696
|
/**
|
|
32697
32697
|
* Requests the document's cloud folder be requeued for an inbound scan
|