spitfirepm 23.9700.1 → 23.9700.2
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 +21 -12
- package/dist/SwaggerClients.js +55 -55
- package/dist/SwaggerClients.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
|
@@ -1510,15 +1510,6 @@ export declare class DocumentToolsClient extends APIClientBase {
|
|
|
1510
1510
|
beforeSend: any;
|
|
1511
1511
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
1512
1512
|
constructor(baseUrl?: string);
|
|
1513
|
-
/**
|
|
1514
|
-
* Updates the header On the specified document
|
|
1515
|
-
* @param id Document Key
|
|
1516
|
-
* @param updatedData Replacement data
|
|
1517
|
-
*/
|
|
1518
|
-
updateDocHeader(id: string, updatedData: DocMasterDetail): Promise<any>;
|
|
1519
|
-
private updateDocHeaderWithCallbacks;
|
|
1520
|
-
private processUpdateDocHeaderWithCallbacks;
|
|
1521
|
-
protected processUpdateDocHeader(xhr: any): any | null;
|
|
1522
1513
|
/**
|
|
1523
1514
|
* Returns the header Of the specified document, including a Document Session Key
|
|
1524
1515
|
* @param id Document Key
|
|
@@ -1535,6 +1526,15 @@ export declare class DocumentToolsClient extends APIClientBase {
|
|
|
1535
1526
|
private deleteDocHeaderWithCallbacks;
|
|
1536
1527
|
private processDeleteDocHeaderWithCallbacks;
|
|
1537
1528
|
protected processDeleteDocHeader(xhr: any): any | null;
|
|
1529
|
+
/**
|
|
1530
|
+
* Updates the header On the specified document
|
|
1531
|
+
* @param id Document Key
|
|
1532
|
+
* @param updatedData Replacement data
|
|
1533
|
+
*/
|
|
1534
|
+
updateDocHeader(id: string, updatedData: DocMasterDetail): Promise<any>;
|
|
1535
|
+
private updateDocHeaderWithCallbacks;
|
|
1536
|
+
private processUpdateDocHeaderWithCallbacks;
|
|
1537
|
+
protected processUpdateDocHeader(xhr: any): any | null;
|
|
1538
1538
|
/**
|
|
1539
1539
|
* Updates a Single field On the header Of the specified document
|
|
1540
1540
|
* @param id Document Key
|
|
@@ -2725,7 +2725,7 @@ export declare class ProjectToolsClient extends APIClientBase {
|
|
|
2725
2725
|
/**
|
|
2726
2726
|
* Returns programs in which the specified project is listed
|
|
2727
2727
|
* @param projectID Full Project ID
|
|
2728
|
-
* @param programList list of programs
|
|
2728
|
+
* @param programList list of programs by ProgramKey, PgmPjtMapKey or Program ID
|
|
2729
2729
|
*/
|
|
2730
2730
|
removeProjectPrograms(projectID: string | null, programList: string[]): Promise<ProjectPrograms[] | null>;
|
|
2731
2731
|
private removeProjectProgramsWithCallbacks;
|
|
@@ -6612,10 +6612,19 @@ export interface ProcessDocumentType {
|
|
|
6612
6612
|
MobileDashboard?: boolean;
|
|
6613
6613
|
/** When True, shown on project dashboards */
|
|
6614
6614
|
ProjectDashboard?: boolean;
|
|
6615
|
-
/** When True,
|
|
6616
|
-
|
|
6615
|
+
/** When True, tracks compliance */
|
|
6616
|
+
CheckCompliance?: boolean;
|
|
6617
|
+
/** When True, can be sync'd to cloud storage (other rules apply) */
|
|
6618
|
+
CloudSync?: boolean;
|
|
6617
6619
|
/** When True, is created from a parent document */
|
|
6618
6620
|
CreateFromParent?: boolean;
|
|
6621
|
+
/** When True, Document Numbers are sequenced across projects (PO,Work Posted, etc)
|
|
6622
|
+
When False, numbers start over on every project (See DocNumbering | StartDocNumber) */
|
|
6623
|
+
CrossProjectNumbering?: boolean;
|
|
6624
|
+
/** When True, can create from project dashboard */
|
|
6625
|
+
NewFromDashboard?: boolean;
|
|
6626
|
+
/** When True, Project is an optional field (Rare) */
|
|
6627
|
+
ProjectIsOptional?: boolean;
|
|
6619
6628
|
/** When True, uses an item register */
|
|
6620
6629
|
UseItemRegister?: boolean;
|
|
6621
6630
|
/** When True, is Site Active */
|
package/dist/SwaggerClients.js
CHANGED
|
@@ -13844,41 +13844,37 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
13844
13844
|
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
13845
13845
|
}
|
|
13846
13846
|
/**
|
|
13847
|
-
*
|
|
13847
|
+
* Returns the header Of the specified document, including a Document Session Key
|
|
13848
13848
|
* @param id Document Key
|
|
13849
|
-
* @param updatedData Replacement data
|
|
13850
13849
|
*/
|
|
13851
|
-
|
|
13850
|
+
getDocHeader(id) {
|
|
13852
13851
|
return new Promise((resolve, reject) => {
|
|
13853
|
-
this.
|
|
13852
|
+
this.getDocHeaderWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
13854
13853
|
});
|
|
13855
13854
|
}
|
|
13856
|
-
|
|
13855
|
+
getDocHeaderWithCallbacks(id, onSuccess, onFail) {
|
|
13857
13856
|
let url_ = this.baseUrl + "/api/document/{id}";
|
|
13858
13857
|
if (id === undefined || id === null)
|
|
13859
13858
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
13860
13859
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
13861
13860
|
url_ = url_.replace(/[?&]$/, "");
|
|
13862
|
-
const content_ = JSON.stringify(updatedData);
|
|
13863
13861
|
jQuery.ajax({
|
|
13864
13862
|
url: url_,
|
|
13865
13863
|
beforeSend: this.beforeSend,
|
|
13866
|
-
type: "
|
|
13867
|
-
data: content_,
|
|
13864
|
+
type: "get",
|
|
13868
13865
|
dataType: "text",
|
|
13869
13866
|
headers: {
|
|
13870
|
-
"
|
|
13871
|
-
"Accept": "application/octet-stream"
|
|
13867
|
+
"Accept": "application/json"
|
|
13872
13868
|
}
|
|
13873
13869
|
}).done((_data, _textStatus, xhr) => {
|
|
13874
|
-
this.
|
|
13870
|
+
this.processGetDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
13875
13871
|
}).fail((xhr) => {
|
|
13876
|
-
this.
|
|
13872
|
+
this.processGetDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
13877
13873
|
});
|
|
13878
13874
|
}
|
|
13879
|
-
|
|
13875
|
+
processGetDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
13880
13876
|
try {
|
|
13881
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.
|
|
13877
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processGetDocHeader(xhr));
|
|
13882
13878
|
if (onSuccess !== undefined)
|
|
13883
13879
|
onSuccess(result);
|
|
13884
13880
|
}
|
|
@@ -13887,10 +13883,10 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
13887
13883
|
onFail(e, "http_service_exception");
|
|
13888
13884
|
}
|
|
13889
13885
|
}
|
|
13890
|
-
|
|
13886
|
+
processGetDocHeader(xhr) {
|
|
13891
13887
|
const status = xhr.status;
|
|
13892
13888
|
let _headers = {};
|
|
13893
|
-
if (status === 200
|
|
13889
|
+
if (status === 200) {
|
|
13894
13890
|
const _responseText = xhr.responseText;
|
|
13895
13891
|
let result200 = null;
|
|
13896
13892
|
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
@@ -13908,18 +13904,6 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
13908
13904
|
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13909
13905
|
return throwException("Document Not found, Or Not accessible", status, _responseText, _headers, result404);
|
|
13910
13906
|
}
|
|
13911
|
-
else if (status === 406) {
|
|
13912
|
-
const _responseText = xhr.responseText;
|
|
13913
|
-
let result406 = null;
|
|
13914
|
-
result406 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13915
|
-
return throwException("Document number cannot be changed by this method", status, _responseText, _headers, result406);
|
|
13916
|
-
}
|
|
13917
|
-
else if (status === 409) {
|
|
13918
|
-
const _responseText = xhr.responseText;
|
|
13919
|
-
let result409 = null;
|
|
13920
|
-
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13921
|
-
return throwException("Could Not persist the update", status, _responseText, _headers, result409);
|
|
13922
|
-
}
|
|
13923
13907
|
else if (status === 500) {
|
|
13924
13908
|
const _responseText = xhr.responseText;
|
|
13925
13909
|
let result500 = null;
|
|
@@ -13933,15 +13917,15 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
13933
13917
|
return null;
|
|
13934
13918
|
}
|
|
13935
13919
|
/**
|
|
13936
|
-
*
|
|
13920
|
+
* Deletes the specified document
|
|
13937
13921
|
* @param id Document Key
|
|
13938
13922
|
*/
|
|
13939
|
-
|
|
13923
|
+
deleteDocHeader(id) {
|
|
13940
13924
|
return new Promise((resolve, reject) => {
|
|
13941
|
-
this.
|
|
13925
|
+
this.deleteDocHeaderWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
13942
13926
|
});
|
|
13943
13927
|
}
|
|
13944
|
-
|
|
13928
|
+
deleteDocHeaderWithCallbacks(id, onSuccess, onFail) {
|
|
13945
13929
|
let url_ = this.baseUrl + "/api/document/{id}";
|
|
13946
13930
|
if (id === undefined || id === null)
|
|
13947
13931
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13950,20 +13934,20 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
13950
13934
|
jQuery.ajax({
|
|
13951
13935
|
url: url_,
|
|
13952
13936
|
beforeSend: this.beforeSend,
|
|
13953
|
-
type: "
|
|
13937
|
+
type: "delete",
|
|
13954
13938
|
dataType: "text",
|
|
13955
13939
|
headers: {
|
|
13956
|
-
"Accept": "application/
|
|
13940
|
+
"Accept": "application/octet-stream"
|
|
13957
13941
|
}
|
|
13958
13942
|
}).done((_data, _textStatus, xhr) => {
|
|
13959
|
-
this.
|
|
13943
|
+
this.processDeleteDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
13960
13944
|
}).fail((xhr) => {
|
|
13961
|
-
this.
|
|
13945
|
+
this.processDeleteDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
13962
13946
|
});
|
|
13963
13947
|
}
|
|
13964
|
-
|
|
13948
|
+
processDeleteDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
13965
13949
|
try {
|
|
13966
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.
|
|
13950
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processDeleteDocHeader(xhr));
|
|
13967
13951
|
if (onSuccess !== undefined)
|
|
13968
13952
|
onSuccess(result);
|
|
13969
13953
|
}
|
|
@@ -13972,10 +13956,10 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
13972
13956
|
onFail(e, "http_service_exception");
|
|
13973
13957
|
}
|
|
13974
13958
|
}
|
|
13975
|
-
|
|
13959
|
+
processDeleteDocHeader(xhr) {
|
|
13976
13960
|
const status = xhr.status;
|
|
13977
13961
|
let _headers = {};
|
|
13978
|
-
if (status === 200) {
|
|
13962
|
+
if (status === 200 || status === 206) {
|
|
13979
13963
|
const _responseText = xhr.responseText;
|
|
13980
13964
|
let result200 = null;
|
|
13981
13965
|
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
@@ -13991,7 +13975,19 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
13991
13975
|
const _responseText = xhr.responseText;
|
|
13992
13976
|
let result404 = null;
|
|
13993
13977
|
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13994
|
-
return throwException("Document
|
|
13978
|
+
return throwException("Document not found, or not accessible", status, _responseText, _headers, result404);
|
|
13979
|
+
}
|
|
13980
|
+
else if (status === 406) {
|
|
13981
|
+
const _responseText = xhr.responseText;
|
|
13982
|
+
let result406 = null;
|
|
13983
|
+
result406 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13984
|
+
return throwException("Not acceptable", status, _responseText, _headers, result406);
|
|
13985
|
+
}
|
|
13986
|
+
else if (status === 409) {
|
|
13987
|
+
const _responseText = xhr.responseText;
|
|
13988
|
+
let result409 = null;
|
|
13989
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13990
|
+
return throwException("Could Not persist the delete", status, _responseText, _headers, result409);
|
|
13995
13991
|
}
|
|
13996
13992
|
else if (status === 500) {
|
|
13997
13993
|
const _responseText = xhr.responseText;
|
|
@@ -14006,37 +14002,41 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
14006
14002
|
return null;
|
|
14007
14003
|
}
|
|
14008
14004
|
/**
|
|
14009
|
-
*
|
|
14005
|
+
* Updates the header On the specified document
|
|
14010
14006
|
* @param id Document Key
|
|
14007
|
+
* @param updatedData Replacement data
|
|
14011
14008
|
*/
|
|
14012
|
-
|
|
14009
|
+
updateDocHeader(id, updatedData) {
|
|
14013
14010
|
return new Promise((resolve, reject) => {
|
|
14014
|
-
this.
|
|
14011
|
+
this.updateDocHeaderWithCallbacks(id, updatedData, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
14015
14012
|
});
|
|
14016
14013
|
}
|
|
14017
|
-
|
|
14014
|
+
updateDocHeaderWithCallbacks(id, updatedData, onSuccess, onFail) {
|
|
14018
14015
|
let url_ = this.baseUrl + "/api/document/{id}";
|
|
14019
14016
|
if (id === undefined || id === null)
|
|
14020
14017
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
14021
14018
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
14022
14019
|
url_ = url_.replace(/[?&]$/, "");
|
|
14020
|
+
const content_ = JSON.stringify(updatedData);
|
|
14023
14021
|
jQuery.ajax({
|
|
14024
14022
|
url: url_,
|
|
14025
14023
|
beforeSend: this.beforeSend,
|
|
14026
|
-
type: "
|
|
14024
|
+
type: "put",
|
|
14025
|
+
data: content_,
|
|
14027
14026
|
dataType: "text",
|
|
14028
14027
|
headers: {
|
|
14028
|
+
"Content-Type": "application/json",
|
|
14029
14029
|
"Accept": "application/octet-stream"
|
|
14030
14030
|
}
|
|
14031
14031
|
}).done((_data, _textStatus, xhr) => {
|
|
14032
|
-
this.
|
|
14032
|
+
this.processUpdateDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
14033
14033
|
}).fail((xhr) => {
|
|
14034
|
-
this.
|
|
14034
|
+
this.processUpdateDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
14035
14035
|
});
|
|
14036
14036
|
}
|
|
14037
|
-
|
|
14037
|
+
processUpdateDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
14038
14038
|
try {
|
|
14039
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.
|
|
14039
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processUpdateDocHeader(xhr));
|
|
14040
14040
|
if (onSuccess !== undefined)
|
|
14041
14041
|
onSuccess(result);
|
|
14042
14042
|
}
|
|
@@ -14045,7 +14045,7 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
14045
14045
|
onFail(e, "http_service_exception");
|
|
14046
14046
|
}
|
|
14047
14047
|
}
|
|
14048
|
-
|
|
14048
|
+
processUpdateDocHeader(xhr) {
|
|
14049
14049
|
const status = xhr.status;
|
|
14050
14050
|
let _headers = {};
|
|
14051
14051
|
if (status === 200 || status === 206) {
|
|
@@ -14064,19 +14064,19 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
14064
14064
|
const _responseText = xhr.responseText;
|
|
14065
14065
|
let result404 = null;
|
|
14066
14066
|
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14067
|
-
return throwException("Document
|
|
14067
|
+
return throwException("Document Not found, Or Not accessible", status, _responseText, _headers, result404);
|
|
14068
14068
|
}
|
|
14069
14069
|
else if (status === 406) {
|
|
14070
14070
|
const _responseText = xhr.responseText;
|
|
14071
14071
|
let result406 = null;
|
|
14072
14072
|
result406 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14073
|
-
return throwException("
|
|
14073
|
+
return throwException("Document number cannot be changed by this method", status, _responseText, _headers, result406);
|
|
14074
14074
|
}
|
|
14075
14075
|
else if (status === 409) {
|
|
14076
14076
|
const _responseText = xhr.responseText;
|
|
14077
14077
|
let result409 = null;
|
|
14078
14078
|
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14079
|
-
return throwException("Could Not persist the
|
|
14079
|
+
return throwException("Could Not persist the update", status, _responseText, _headers, result409);
|
|
14080
14080
|
}
|
|
14081
14081
|
else if (status === 500) {
|
|
14082
14082
|
const _responseText = xhr.responseText;
|
|
@@ -24719,7 +24719,7 @@ class ProjectToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
24719
24719
|
/**
|
|
24720
24720
|
* Returns programs in which the specified project is listed
|
|
24721
24721
|
* @param projectID Full Project ID
|
|
24722
|
-
* @param programList list of programs
|
|
24722
|
+
* @param programList list of programs by ProgramKey, PgmPjtMapKey or Program ID
|
|
24723
24723
|
*/
|
|
24724
24724
|
removeProjectPrograms(projectID, programList) {
|
|
24725
24725
|
return new Promise((resolve, reject) => {
|