spitfirepm 23.9600.9 → 23.9600.10
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 +9 -8
- package/dist/SwaggerClients.d.ts +50 -9
- package/dist/SwaggerClients.js +211 -73
- package/dist/SwaggerClients.js.map +1 -1
- package/dist/sfRESTClient.js +2 -1
- package/dist/sfRESTClient.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,14 +25,15 @@ apiResult.then( (a) => {
|
|
|
25
25
|
### Change Log
|
|
26
26
|
|
|
27
27
|
```
|
|
28
|
-
23.9600.
|
|
29
|
-
23.9600.
|
|
30
|
-
23.9600.
|
|
31
|
-
23.9600.
|
|
32
|
-
23.9600.
|
|
33
|
-
23.
|
|
34
|
-
23.9500.
|
|
35
|
-
23.9500.
|
|
28
|
+
23.9600.10 - Adds csi-maintenance
|
|
29
|
+
23.9600.9 - Adds BuildWCCInfoTableHTML
|
|
30
|
+
23.9600.8 - Project SOP links and Send Log Endpoint
|
|
31
|
+
23.9600.5 - SignalR monkey unload to pagehide
|
|
32
|
+
23.9600.3 - Adds PresetSearch ShowTree
|
|
33
|
+
23.9600.1 - Constructing a view model of 3000 records and many fields improved
|
|
34
|
+
23.9500.12 - DataModels are now interfaces instead of classes (increases ES2022 compatability)
|
|
35
|
+
23.9500.11 - Adds Preset Search FolderSource
|
|
36
|
+
23.9500.8 - Vite 8 compatibility
|
|
36
37
|
23.9500.7 - adds forDeviceType optional to GetProjectDocSummary endpoint
|
|
37
38
|
23.9500.6 - adds user notification signal
|
|
38
39
|
23.9500.5 - Adds Bulk PDF Summary endpoint
|
package/dist/SwaggerClients.d.ts
CHANGED
|
@@ -267,7 +267,7 @@ export declare class LookupClient extends APIClientBase {
|
|
|
267
267
|
* @param project Project ID (or 0 for none; 1 for from context)
|
|
268
268
|
* @param id GUID key or 0 for none; 1 for from context
|
|
269
269
|
* @param dtk (optional) GUID process type or omit or 0 for none; 1 from context
|
|
270
|
-
* @param depends1 (optional) optional additional context for query
|
|
270
|
+
* @param depends1 (optional) optional additional context for query. Use 'empty' forces an empty value
|
|
271
271
|
* @param depends2 (optional) Optional additional context for query
|
|
272
272
|
* @param depends3 (optional) Optional additional context for query
|
|
273
273
|
* @param depends4 (optional) Optional additional context for query
|
|
@@ -796,6 +796,20 @@ export declare class ConfigClient extends APIClientBase {
|
|
|
796
796
|
private copyRouteWithCallbacks;
|
|
797
797
|
private processCopyRouteWithCallbacks;
|
|
798
798
|
protected processCopyRoute(xhr: any): string | null;
|
|
799
|
+
/**
|
|
800
|
+
* Returns the list of CSI codes
|
|
801
|
+
*/
|
|
802
|
+
getCSIList(): Promise<CSIEntry[] | null>;
|
|
803
|
+
private getCSIListWithCallbacks;
|
|
804
|
+
private processGetCSIListWithCallbacks;
|
|
805
|
+
protected processGetCSIList(xhr: any): CSIEntry[] | null | null;
|
|
806
|
+
/**
|
|
807
|
+
* Returns the Manage dashboard tool menu
|
|
808
|
+
*/
|
|
809
|
+
getManageTools(): Promise<MenuAction[] | null>;
|
|
810
|
+
private getManageToolsWithCallbacks;
|
|
811
|
+
private processGetManageToolsWithCallbacks;
|
|
812
|
+
protected processGetManageTools(xhr: any): MenuAction[] | null | null;
|
|
799
813
|
}
|
|
800
814
|
export declare class ContactClient extends APIClientBase {
|
|
801
815
|
baseUrl: string;
|
|
@@ -844,6 +858,14 @@ export declare class DocumentToolsClient extends APIClientBase {
|
|
|
844
858
|
beforeSend: any;
|
|
845
859
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
846
860
|
constructor(baseUrl?: string);
|
|
861
|
+
/**
|
|
862
|
+
* Returns the header Of the specified document, including a Document Session Key
|
|
863
|
+
* @param id Document Key
|
|
864
|
+
*/
|
|
865
|
+
getDocHeader(id: string): Promise<DocMasterDetail | null>;
|
|
866
|
+
private getDocHeaderWithCallbacks;
|
|
867
|
+
private processGetDocHeaderWithCallbacks;
|
|
868
|
+
protected processGetDocHeader(xhr: any): DocMasterDetail | null | null;
|
|
847
869
|
/**
|
|
848
870
|
* Deletes the specified document
|
|
849
871
|
* @param id Document Key
|
|
@@ -861,14 +883,6 @@ export declare class DocumentToolsClient extends APIClientBase {
|
|
|
861
883
|
private updateDocHeaderWithCallbacks;
|
|
862
884
|
private processUpdateDocHeaderWithCallbacks;
|
|
863
885
|
protected processUpdateDocHeader(xhr: any): any | null;
|
|
864
|
-
/**
|
|
865
|
-
* Returns the header Of the specified document, including a Document Session Key
|
|
866
|
-
* @param id Document Key
|
|
867
|
-
*/
|
|
868
|
-
getDocHeader(id: string): Promise<DocMasterDetail | null>;
|
|
869
|
-
private getDocHeaderWithCallbacks;
|
|
870
|
-
private processGetDocHeaderWithCallbacks;
|
|
871
|
-
protected processGetDocHeader(xhr: any): DocMasterDetail | null | null;
|
|
872
886
|
/**
|
|
873
887
|
* Updates a Single field On the header Of the specified document
|
|
874
888
|
* @param id Document Key
|
|
@@ -3565,6 +3579,33 @@ export interface ContentRangeHeaderValue {
|
|
|
3565
3579
|
HasLength?: boolean;
|
|
3566
3580
|
HasRange?: boolean;
|
|
3567
3581
|
}
|
|
3582
|
+
/** A single CSI code row. Mirrors the CSIList table in LVData.xsd; consumed by the Manage Dashboard CSI Maintenance tool. */
|
|
3583
|
+
export interface CSIEntry {
|
|
3584
|
+
/** Row key (xsfCSI) */
|
|
3585
|
+
CSIKey?: string;
|
|
3586
|
+
/** CSI code */
|
|
3587
|
+
CSICode: string;
|
|
3588
|
+
/** Short description */
|
|
3589
|
+
CSIDescription: string;
|
|
3590
|
+
/** Long / extended description */
|
|
3591
|
+
ExtendedDescription?: string | undefined;
|
|
3592
|
+
/** Account category (WB part) */
|
|
3593
|
+
WBPart?: string | undefined;
|
|
3594
|
+
/** GL account */
|
|
3595
|
+
GLAcct?: string | undefined;
|
|
3596
|
+
/** Phase */
|
|
3597
|
+
Phase?: string | undefined;
|
|
3598
|
+
/** Department */
|
|
3599
|
+
Dept?: string | undefined;
|
|
3600
|
+
/** When this row was created */
|
|
3601
|
+
Created?: Date;
|
|
3602
|
+
/** Automatically add this CSI to new budgets */
|
|
3603
|
+
AutoAdd?: boolean;
|
|
3604
|
+
/** Active flag */
|
|
3605
|
+
Active?: boolean;
|
|
3606
|
+
/** eTag */
|
|
3607
|
+
ETag?: string | undefined;
|
|
3608
|
+
}
|
|
3568
3609
|
/** Key Value pairs of Keys and ETags */
|
|
3569
3610
|
export interface CurrentDataSummary {
|
|
3570
3611
|
/** Key of Row/object */
|
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
|
|
@@ -593,7 +593,7 @@ class ActionItemsClient extends APIClientBase_1.APIClientBase {
|
|
|
593
593
|
jsonParseReviver = undefined;
|
|
594
594
|
constructor(baseUrl) {
|
|
595
595
|
super();
|
|
596
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
596
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
|
|
597
597
|
}
|
|
598
598
|
/**
|
|
599
599
|
* Returns action items for specified User
|
|
@@ -1042,7 +1042,7 @@ class AlertsClient extends APIClientBase_1.APIClientBase {
|
|
|
1042
1042
|
jsonParseReviver = undefined;
|
|
1043
1043
|
constructor(baseUrl) {
|
|
1044
1044
|
super();
|
|
1045
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
1045
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
|
|
1046
1046
|
}
|
|
1047
1047
|
/**
|
|
1048
1048
|
* Returns alert items for a specified user
|
|
@@ -1452,7 +1452,7 @@ class LookupClient extends APIClientBase_1.APIClientBase {
|
|
|
1452
1452
|
jsonParseReviver = undefined;
|
|
1453
1453
|
constructor(baseUrl) {
|
|
1454
1454
|
super();
|
|
1455
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
1455
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
|
|
1456
1456
|
}
|
|
1457
1457
|
/**
|
|
1458
1458
|
* Returns list of alerts that are recorded about the specified source key
|
|
@@ -2127,7 +2127,7 @@ class LookupClient extends APIClientBase_1.APIClientBase {
|
|
|
2127
2127
|
* @param project Project ID (or 0 for none; 1 for from context)
|
|
2128
2128
|
* @param id GUID key or 0 for none; 1 for from context
|
|
2129
2129
|
* @param dtk (optional) GUID process type or omit or 0 for none; 1 from context
|
|
2130
|
-
* @param depends1 (optional) optional additional context for query
|
|
2130
|
+
* @param depends1 (optional) optional additional context for query. Use 'empty' forces an empty value
|
|
2131
2131
|
* @param depends2 (optional) Optional additional context for query
|
|
2132
2132
|
* @param depends3 (optional) Optional additional context for query
|
|
2133
2133
|
* @param depends4 (optional) Optional additional context for query
|
|
@@ -2864,7 +2864,7 @@ class CatalogClient extends APIClientBase_1.APIClientBase {
|
|
|
2864
2864
|
jsonParseReviver = undefined;
|
|
2865
2865
|
constructor(baseUrl) {
|
|
2866
2866
|
super();
|
|
2867
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
2867
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
|
|
2868
2868
|
}
|
|
2869
2869
|
/**
|
|
2870
2870
|
* Releases a resource, usually a PDF of a report or export
|
|
@@ -6247,7 +6247,7 @@ class ConfigClient extends APIClientBase_1.APIClientBase {
|
|
|
6247
6247
|
jsonParseReviver = undefined;
|
|
6248
6248
|
constructor(baseUrl) {
|
|
6249
6249
|
super();
|
|
6250
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
6250
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
|
|
6251
6251
|
}
|
|
6252
6252
|
/**
|
|
6253
6253
|
* Updates a flex key by name and segment number. Returns the new definition.
|
|
@@ -6703,6 +6703,144 @@ class ConfigClient extends APIClientBase_1.APIClientBase {
|
|
|
6703
6703
|
}
|
|
6704
6704
|
return null;
|
|
6705
6705
|
}
|
|
6706
|
+
/**
|
|
6707
|
+
* Returns the list of CSI codes
|
|
6708
|
+
*/
|
|
6709
|
+
getCSIList() {
|
|
6710
|
+
return new Promise((resolve, reject) => {
|
|
6711
|
+
this.getCSIListWithCallbacks((result) => resolve(result), (exception, _reason) => reject(exception));
|
|
6712
|
+
});
|
|
6713
|
+
}
|
|
6714
|
+
getCSIListWithCallbacks(onSuccess, onFail) {
|
|
6715
|
+
let url_ = this.baseUrl + "/api/configuration/csi-maintenance";
|
|
6716
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6717
|
+
jQuery.ajax({
|
|
6718
|
+
url: url_,
|
|
6719
|
+
beforeSend: this.beforeSend,
|
|
6720
|
+
type: "get",
|
|
6721
|
+
dataType: "text",
|
|
6722
|
+
headers: {
|
|
6723
|
+
"Accept": "application/json"
|
|
6724
|
+
}
|
|
6725
|
+
}).done((_data, _textStatus, xhr) => {
|
|
6726
|
+
this.processGetCSIListWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
6727
|
+
}).fail((xhr) => {
|
|
6728
|
+
this.processGetCSIListWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
6729
|
+
});
|
|
6730
|
+
}
|
|
6731
|
+
processGetCSIListWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
6732
|
+
try {
|
|
6733
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processGetCSIList(xhr));
|
|
6734
|
+
if (onSuccess !== undefined)
|
|
6735
|
+
onSuccess(result);
|
|
6736
|
+
}
|
|
6737
|
+
catch (e) {
|
|
6738
|
+
if (onFail !== undefined)
|
|
6739
|
+
onFail(e, "http_service_exception");
|
|
6740
|
+
}
|
|
6741
|
+
}
|
|
6742
|
+
processGetCSIList(xhr) {
|
|
6743
|
+
const status = xhr.status;
|
|
6744
|
+
let _headers = {};
|
|
6745
|
+
if (status === 200) {
|
|
6746
|
+
const _responseText = xhr.responseText;
|
|
6747
|
+
let result200 = null;
|
|
6748
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6749
|
+
return result200;
|
|
6750
|
+
}
|
|
6751
|
+
else if (status === 400) {
|
|
6752
|
+
const _responseText = xhr.responseText;
|
|
6753
|
+
let result400 = null;
|
|
6754
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6755
|
+
return throwException("Request malformed", status, _responseText, _headers, result400);
|
|
6756
|
+
}
|
|
6757
|
+
else if (status === 401) {
|
|
6758
|
+
const _responseText = xhr.responseText;
|
|
6759
|
+
let result401 = null;
|
|
6760
|
+
result401 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6761
|
+
return throwException("Not currently authenticated", status, _responseText, _headers, result401);
|
|
6762
|
+
}
|
|
6763
|
+
else if (status === 403) {
|
|
6764
|
+
const _responseText = xhr.responseText;
|
|
6765
|
+
let result403 = null;
|
|
6766
|
+
result403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6767
|
+
return throwException("Access denied", status, _responseText, _headers, result403);
|
|
6768
|
+
}
|
|
6769
|
+
else if (status === 500) {
|
|
6770
|
+
const _responseText = xhr.responseText;
|
|
6771
|
+
let result500 = null;
|
|
6772
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6773
|
+
return throwException("Internal failure; see response", status, _responseText, _headers, result500);
|
|
6774
|
+
}
|
|
6775
|
+
else if (status !== 200 && status !== 204) {
|
|
6776
|
+
const _responseText = xhr.responseText;
|
|
6777
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6778
|
+
}
|
|
6779
|
+
return null;
|
|
6780
|
+
}
|
|
6781
|
+
/**
|
|
6782
|
+
* Returns the Manage dashboard tool menu
|
|
6783
|
+
*/
|
|
6784
|
+
getManageTools() {
|
|
6785
|
+
return new Promise((resolve, reject) => {
|
|
6786
|
+
this.getManageToolsWithCallbacks((result) => resolve(result), (exception, _reason) => reject(exception));
|
|
6787
|
+
});
|
|
6788
|
+
}
|
|
6789
|
+
getManageToolsWithCallbacks(onSuccess, onFail) {
|
|
6790
|
+
let url_ = this.baseUrl + "/api/configuration/manage-tools";
|
|
6791
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6792
|
+
jQuery.ajax({
|
|
6793
|
+
url: url_,
|
|
6794
|
+
beforeSend: this.beforeSend,
|
|
6795
|
+
type: "get",
|
|
6796
|
+
dataType: "text",
|
|
6797
|
+
headers: {
|
|
6798
|
+
"Accept": "application/json"
|
|
6799
|
+
}
|
|
6800
|
+
}).done((_data, _textStatus, xhr) => {
|
|
6801
|
+
this.processGetManageToolsWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
6802
|
+
}).fail((xhr) => {
|
|
6803
|
+
this.processGetManageToolsWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
6804
|
+
});
|
|
6805
|
+
}
|
|
6806
|
+
processGetManageToolsWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
6807
|
+
try {
|
|
6808
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processGetManageTools(xhr));
|
|
6809
|
+
if (onSuccess !== undefined)
|
|
6810
|
+
onSuccess(result);
|
|
6811
|
+
}
|
|
6812
|
+
catch (e) {
|
|
6813
|
+
if (onFail !== undefined)
|
|
6814
|
+
onFail(e, "http_service_exception");
|
|
6815
|
+
}
|
|
6816
|
+
}
|
|
6817
|
+
processGetManageTools(xhr) {
|
|
6818
|
+
const status = xhr.status;
|
|
6819
|
+
let _headers = {};
|
|
6820
|
+
if (status === 200) {
|
|
6821
|
+
const _responseText = xhr.responseText;
|
|
6822
|
+
let result200 = null;
|
|
6823
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6824
|
+
return result200;
|
|
6825
|
+
}
|
|
6826
|
+
else if (status === 401) {
|
|
6827
|
+
const _responseText = xhr.responseText;
|
|
6828
|
+
let result401 = null;
|
|
6829
|
+
result401 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6830
|
+
return throwException("Not currently authenticated", status, _responseText, _headers, result401);
|
|
6831
|
+
}
|
|
6832
|
+
else if (status === 500) {
|
|
6833
|
+
const _responseText = xhr.responseText;
|
|
6834
|
+
let result500 = null;
|
|
6835
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6836
|
+
return throwException("Internal failure; see response", status, _responseText, _headers, result500);
|
|
6837
|
+
}
|
|
6838
|
+
else if (status !== 200 && status !== 204) {
|
|
6839
|
+
const _responseText = xhr.responseText;
|
|
6840
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6841
|
+
}
|
|
6842
|
+
return null;
|
|
6843
|
+
}
|
|
6706
6844
|
}
|
|
6707
6845
|
exports.ConfigClient = ConfigClient;
|
|
6708
6846
|
class ContactClient extends APIClientBase_1.APIClientBase {
|
|
@@ -6711,7 +6849,7 @@ class ContactClient extends APIClientBase_1.APIClientBase {
|
|
|
6711
6849
|
jsonParseReviver = undefined;
|
|
6712
6850
|
constructor(baseUrl) {
|
|
6713
6851
|
super();
|
|
6714
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
6852
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
|
|
6715
6853
|
}
|
|
6716
6854
|
/**
|
|
6717
6855
|
* Adds the contact
|
|
@@ -7022,18 +7160,18 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7022
7160
|
jsonParseReviver = undefined;
|
|
7023
7161
|
constructor(baseUrl) {
|
|
7024
7162
|
super();
|
|
7025
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
7163
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
|
|
7026
7164
|
}
|
|
7027
7165
|
/**
|
|
7028
|
-
*
|
|
7166
|
+
* Returns the header Of the specified document, including a Document Session Key
|
|
7029
7167
|
* @param id Document Key
|
|
7030
7168
|
*/
|
|
7031
|
-
|
|
7169
|
+
getDocHeader(id) {
|
|
7032
7170
|
return new Promise((resolve, reject) => {
|
|
7033
|
-
this.
|
|
7171
|
+
this.getDocHeaderWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
7034
7172
|
});
|
|
7035
7173
|
}
|
|
7036
|
-
|
|
7174
|
+
getDocHeaderWithCallbacks(id, onSuccess, onFail) {
|
|
7037
7175
|
let url_ = this.baseUrl + "/api/document/{id}";
|
|
7038
7176
|
if (id === undefined || id === null)
|
|
7039
7177
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -7042,20 +7180,20 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7042
7180
|
jQuery.ajax({
|
|
7043
7181
|
url: url_,
|
|
7044
7182
|
beforeSend: this.beforeSend,
|
|
7045
|
-
type: "
|
|
7183
|
+
type: "get",
|
|
7046
7184
|
dataType: "text",
|
|
7047
7185
|
headers: {
|
|
7048
|
-
"Accept": "application/
|
|
7186
|
+
"Accept": "application/json"
|
|
7049
7187
|
}
|
|
7050
7188
|
}).done((_data, _textStatus, xhr) => {
|
|
7051
|
-
this.
|
|
7189
|
+
this.processGetDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
7052
7190
|
}).fail((xhr) => {
|
|
7053
|
-
this.
|
|
7191
|
+
this.processGetDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
7054
7192
|
});
|
|
7055
7193
|
}
|
|
7056
|
-
|
|
7194
|
+
processGetDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
7057
7195
|
try {
|
|
7058
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.
|
|
7196
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processGetDocHeader(xhr));
|
|
7059
7197
|
if (onSuccess !== undefined)
|
|
7060
7198
|
onSuccess(result);
|
|
7061
7199
|
}
|
|
@@ -7064,10 +7202,10 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7064
7202
|
onFail(e, "http_service_exception");
|
|
7065
7203
|
}
|
|
7066
7204
|
}
|
|
7067
|
-
|
|
7205
|
+
processGetDocHeader(xhr) {
|
|
7068
7206
|
const status = xhr.status;
|
|
7069
7207
|
let _headers = {};
|
|
7070
|
-
if (status === 200
|
|
7208
|
+
if (status === 200) {
|
|
7071
7209
|
const _responseText = xhr.responseText;
|
|
7072
7210
|
let result200 = null;
|
|
7073
7211
|
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
@@ -7083,19 +7221,7 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7083
7221
|
const _responseText = xhr.responseText;
|
|
7084
7222
|
let result404 = null;
|
|
7085
7223
|
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7086
|
-
return throwException("Document
|
|
7087
|
-
}
|
|
7088
|
-
else if (status === 406) {
|
|
7089
|
-
const _responseText = xhr.responseText;
|
|
7090
|
-
let result406 = null;
|
|
7091
|
-
result406 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7092
|
-
return throwException("Not acceptable", status, _responseText, _headers, result406);
|
|
7093
|
-
}
|
|
7094
|
-
else if (status === 409) {
|
|
7095
|
-
const _responseText = xhr.responseText;
|
|
7096
|
-
let result409 = null;
|
|
7097
|
-
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7098
|
-
return throwException("Could Not persist the delete", status, _responseText, _headers, result409);
|
|
7224
|
+
return throwException("Document Not found, Or Not accessible", status, _responseText, _headers, result404);
|
|
7099
7225
|
}
|
|
7100
7226
|
else if (status === 500) {
|
|
7101
7227
|
const _responseText = xhr.responseText;
|
|
@@ -7110,41 +7236,37 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7110
7236
|
return null;
|
|
7111
7237
|
}
|
|
7112
7238
|
/**
|
|
7113
|
-
*
|
|
7239
|
+
* Deletes the specified document
|
|
7114
7240
|
* @param id Document Key
|
|
7115
|
-
* @param updatedData Replacement data
|
|
7116
7241
|
*/
|
|
7117
|
-
|
|
7242
|
+
deleteDocHeader(id) {
|
|
7118
7243
|
return new Promise((resolve, reject) => {
|
|
7119
|
-
this.
|
|
7244
|
+
this.deleteDocHeaderWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
7120
7245
|
});
|
|
7121
7246
|
}
|
|
7122
|
-
|
|
7247
|
+
deleteDocHeaderWithCallbacks(id, onSuccess, onFail) {
|
|
7123
7248
|
let url_ = this.baseUrl + "/api/document/{id}";
|
|
7124
7249
|
if (id === undefined || id === null)
|
|
7125
7250
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7126
7251
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7127
7252
|
url_ = url_.replace(/[?&]$/, "");
|
|
7128
|
-
const content_ = JSON.stringify(updatedData);
|
|
7129
7253
|
jQuery.ajax({
|
|
7130
7254
|
url: url_,
|
|
7131
7255
|
beforeSend: this.beforeSend,
|
|
7132
|
-
type: "
|
|
7133
|
-
data: content_,
|
|
7256
|
+
type: "delete",
|
|
7134
7257
|
dataType: "text",
|
|
7135
7258
|
headers: {
|
|
7136
|
-
"Content-Type": "application/json",
|
|
7137
7259
|
"Accept": "application/octet-stream"
|
|
7138
7260
|
}
|
|
7139
7261
|
}).done((_data, _textStatus, xhr) => {
|
|
7140
|
-
this.
|
|
7262
|
+
this.processDeleteDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
7141
7263
|
}).fail((xhr) => {
|
|
7142
|
-
this.
|
|
7264
|
+
this.processDeleteDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
7143
7265
|
});
|
|
7144
7266
|
}
|
|
7145
|
-
|
|
7267
|
+
processDeleteDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
7146
7268
|
try {
|
|
7147
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.
|
|
7269
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processDeleteDocHeader(xhr));
|
|
7148
7270
|
if (onSuccess !== undefined)
|
|
7149
7271
|
onSuccess(result);
|
|
7150
7272
|
}
|
|
@@ -7153,7 +7275,7 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7153
7275
|
onFail(e, "http_service_exception");
|
|
7154
7276
|
}
|
|
7155
7277
|
}
|
|
7156
|
-
|
|
7278
|
+
processDeleteDocHeader(xhr) {
|
|
7157
7279
|
const status = xhr.status;
|
|
7158
7280
|
let _headers = {};
|
|
7159
7281
|
if (status === 200 || status === 206) {
|
|
@@ -7172,19 +7294,19 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7172
7294
|
const _responseText = xhr.responseText;
|
|
7173
7295
|
let result404 = null;
|
|
7174
7296
|
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7175
|
-
return throwException("Document
|
|
7297
|
+
return throwException("Document not found, or not accessible", status, _responseText, _headers, result404);
|
|
7176
7298
|
}
|
|
7177
7299
|
else if (status === 406) {
|
|
7178
7300
|
const _responseText = xhr.responseText;
|
|
7179
7301
|
let result406 = null;
|
|
7180
7302
|
result406 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7181
|
-
return throwException("
|
|
7303
|
+
return throwException("Not acceptable", status, _responseText, _headers, result406);
|
|
7182
7304
|
}
|
|
7183
7305
|
else if (status === 409) {
|
|
7184
7306
|
const _responseText = xhr.responseText;
|
|
7185
7307
|
let result409 = null;
|
|
7186
7308
|
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7187
|
-
return throwException("Could Not persist the
|
|
7309
|
+
return throwException("Could Not persist the delete", status, _responseText, _headers, result409);
|
|
7188
7310
|
}
|
|
7189
7311
|
else if (status === 500) {
|
|
7190
7312
|
const _responseText = xhr.responseText;
|
|
@@ -7199,37 +7321,41 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7199
7321
|
return null;
|
|
7200
7322
|
}
|
|
7201
7323
|
/**
|
|
7202
|
-
*
|
|
7324
|
+
* Updates the header On the specified document
|
|
7203
7325
|
* @param id Document Key
|
|
7326
|
+
* @param updatedData Replacement data
|
|
7204
7327
|
*/
|
|
7205
|
-
|
|
7328
|
+
updateDocHeader(id, updatedData) {
|
|
7206
7329
|
return new Promise((resolve, reject) => {
|
|
7207
|
-
this.
|
|
7330
|
+
this.updateDocHeaderWithCallbacks(id, updatedData, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
7208
7331
|
});
|
|
7209
7332
|
}
|
|
7210
|
-
|
|
7333
|
+
updateDocHeaderWithCallbacks(id, updatedData, onSuccess, onFail) {
|
|
7211
7334
|
let url_ = this.baseUrl + "/api/document/{id}";
|
|
7212
7335
|
if (id === undefined || id === null)
|
|
7213
7336
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7214
7337
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7215
7338
|
url_ = url_.replace(/[?&]$/, "");
|
|
7339
|
+
const content_ = JSON.stringify(updatedData);
|
|
7216
7340
|
jQuery.ajax({
|
|
7217
7341
|
url: url_,
|
|
7218
7342
|
beforeSend: this.beforeSend,
|
|
7219
|
-
type: "
|
|
7343
|
+
type: "put",
|
|
7344
|
+
data: content_,
|
|
7220
7345
|
dataType: "text",
|
|
7221
7346
|
headers: {
|
|
7222
|
-
"
|
|
7347
|
+
"Content-Type": "application/json",
|
|
7348
|
+
"Accept": "application/octet-stream"
|
|
7223
7349
|
}
|
|
7224
7350
|
}).done((_data, _textStatus, xhr) => {
|
|
7225
|
-
this.
|
|
7351
|
+
this.processUpdateDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
7226
7352
|
}).fail((xhr) => {
|
|
7227
|
-
this.
|
|
7353
|
+
this.processUpdateDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
7228
7354
|
});
|
|
7229
7355
|
}
|
|
7230
|
-
|
|
7356
|
+
processUpdateDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
7231
7357
|
try {
|
|
7232
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.
|
|
7358
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processUpdateDocHeader(xhr));
|
|
7233
7359
|
if (onSuccess !== undefined)
|
|
7234
7360
|
onSuccess(result);
|
|
7235
7361
|
}
|
|
@@ -7238,10 +7364,10 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7238
7364
|
onFail(e, "http_service_exception");
|
|
7239
7365
|
}
|
|
7240
7366
|
}
|
|
7241
|
-
|
|
7367
|
+
processUpdateDocHeader(xhr) {
|
|
7242
7368
|
const status = xhr.status;
|
|
7243
7369
|
let _headers = {};
|
|
7244
|
-
if (status === 200) {
|
|
7370
|
+
if (status === 200 || status === 206) {
|
|
7245
7371
|
const _responseText = xhr.responseText;
|
|
7246
7372
|
let result200 = null;
|
|
7247
7373
|
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
@@ -7259,6 +7385,18 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7259
7385
|
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7260
7386
|
return throwException("Document Not found, Or Not accessible", status, _responseText, _headers, result404);
|
|
7261
7387
|
}
|
|
7388
|
+
else if (status === 406) {
|
|
7389
|
+
const _responseText = xhr.responseText;
|
|
7390
|
+
let result406 = null;
|
|
7391
|
+
result406 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7392
|
+
return throwException("Document number cannot be changed by this method", status, _responseText, _headers, result406);
|
|
7393
|
+
}
|
|
7394
|
+
else if (status === 409) {
|
|
7395
|
+
const _responseText = xhr.responseText;
|
|
7396
|
+
let result409 = null;
|
|
7397
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7398
|
+
return throwException("Could Not persist the update", status, _responseText, _headers, result409);
|
|
7399
|
+
}
|
|
7262
7400
|
else if (status === 500) {
|
|
7263
7401
|
const _responseText = xhr.responseText;
|
|
7264
7402
|
let result500 = null;
|
|
@@ -15747,7 +15885,7 @@ class ExcelToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
15747
15885
|
jsonParseReviver = undefined;
|
|
15748
15886
|
constructor(baseUrl) {
|
|
15749
15887
|
super();
|
|
15750
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
15888
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
|
|
15751
15889
|
}
|
|
15752
15890
|
/**
|
|
15753
15891
|
* Returns a financial snapshot
|
|
@@ -16538,7 +16676,7 @@ class ProjectToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
16538
16676
|
jsonParseReviver = undefined;
|
|
16539
16677
|
constructor(baseUrl) {
|
|
16540
16678
|
super();
|
|
16541
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
16679
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
|
|
16542
16680
|
}
|
|
16543
16681
|
/**
|
|
16544
16682
|
* Removes/clears a Project Budget and optionally the entire Project (if uncommitted)
|
|
@@ -18739,7 +18877,7 @@ class ProjectDocListClient extends APIClientBase_1.APIClientBase {
|
|
|
18739
18877
|
jsonParseReviver = undefined;
|
|
18740
18878
|
constructor(baseUrl) {
|
|
18741
18879
|
super();
|
|
18742
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
18880
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
|
|
18743
18881
|
}
|
|
18744
18882
|
/**
|
|
18745
18883
|
* Returns full list of documents on a project that match the requested document type
|
|
@@ -19063,7 +19201,7 @@ class ProjectKPIClient extends APIClientBase_1.APIClientBase {
|
|
|
19063
19201
|
jsonParseReviver = undefined;
|
|
19064
19202
|
constructor(baseUrl) {
|
|
19065
19203
|
super();
|
|
19066
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
19204
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
|
|
19067
19205
|
}
|
|
19068
19206
|
/**
|
|
19069
19207
|
* Returns list of KPI facts for the specified project
|
|
@@ -19146,7 +19284,7 @@ class ProjectTeamClient extends APIClientBase_1.APIClientBase {
|
|
|
19146
19284
|
jsonParseReviver = undefined;
|
|
19147
19285
|
constructor(baseUrl) {
|
|
19148
19286
|
super();
|
|
19149
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
19287
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
|
|
19150
19288
|
}
|
|
19151
19289
|
/**
|
|
19152
19290
|
* Returns members of the specified project team
|
|
@@ -19676,7 +19814,7 @@ class ProjectsClient extends APIClientBase_1.APIClientBase {
|
|
|
19676
19814
|
jsonParseReviver = undefined;
|
|
19677
19815
|
constructor(baseUrl) {
|
|
19678
19816
|
super();
|
|
19679
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
19817
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
|
|
19680
19818
|
}
|
|
19681
19819
|
/**
|
|
19682
19820
|
* Returns projects that match User and hidden filter
|
|
@@ -20202,7 +20340,7 @@ class SessionClient extends APIClientBase_1.APIClientBase {
|
|
|
20202
20340
|
jsonParseReviver = undefined;
|
|
20203
20341
|
constructor(baseUrl) {
|
|
20204
20342
|
super();
|
|
20205
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
20343
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
|
|
20206
20344
|
}
|
|
20207
20345
|
/**
|
|
20208
20346
|
* Removes a specific users session; see also api/system/users/idle to auto-prune
|
|
@@ -22324,7 +22462,7 @@ class SystemClient extends APIClientBase_1.APIClientBase {
|
|
|
22324
22462
|
jsonParseReviver = undefined;
|
|
22325
22463
|
constructor(baseUrl) {
|
|
22326
22464
|
super();
|
|
22327
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
22465
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
|
|
22328
22466
|
}
|
|
22329
22467
|
/**
|
|
22330
22468
|
* Returns site branding label
|
|
@@ -24017,7 +24155,7 @@ class UICFGClient extends APIClientBase_1.APIClientBase {
|
|
|
24017
24155
|
jsonParseReviver = undefined;
|
|
24018
24156
|
constructor(baseUrl) {
|
|
24019
24157
|
super();
|
|
24020
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
24158
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
|
|
24021
24159
|
}
|
|
24022
24160
|
/**
|
|
24023
24161
|
* Returns Live UI CFG data for this user for the requested part
|
|
@@ -24486,7 +24624,7 @@ class XTSClient extends APIClientBase_1.APIClientBase {
|
|
|
24486
24624
|
jsonParseReviver = undefined;
|
|
24487
24625
|
constructor(baseUrl) {
|
|
24488
24626
|
super();
|
|
24489
|
-
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/
|
|
24627
|
+
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
|
|
24490
24628
|
}
|
|
24491
24629
|
/**
|
|
24492
24630
|
* Requests the document be requeued for cloud sync
|