spitfirepm 23.9600.18 → 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 +2 -0
- package/dist/SwaggerClients.d.ts +30 -12
- package/dist/SwaggerClients.js +147 -57
- package/dist/SwaggerClients.js.map +1 -1
- package/dist/sfRESTClient.d.ts +5 -3
- package/dist/sfRESTClient.js +26 -18
- package/dist/sfRESTClient.js.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,6 +25,8 @@ apiResult.then( (a) => {
|
|
|
25
25
|
### Change Log
|
|
26
26
|
|
|
27
27
|
```
|
|
28
|
+
23.9700.2 - ProcessDocumentType DataModel enriched
|
|
29
|
+
23.9700.1 - GatherDependsOnValues() improved
|
|
28
30
|
23.9600.18 - Project Program
|
|
29
31
|
23.9600.17 - Improves Analytics opt out
|
|
30
32
|
23.9600.15 - Improves ConfigController
|
package/dist/SwaggerClients.d.ts
CHANGED
|
@@ -1916,6 +1916,14 @@ export declare class DocumentToolsClient extends APIClientBase {
|
|
|
1916
1916
|
private addDocDateWithCallbacks;
|
|
1917
1917
|
private processAddDocDateWithCallbacks;
|
|
1918
1918
|
protected processAddDocDate(xhr: any): DocDate | null | null;
|
|
1919
|
+
/**
|
|
1920
|
+
* Returns the dates for the specified document
|
|
1921
|
+
* @param id Document Key
|
|
1922
|
+
*/
|
|
1923
|
+
getDocDates(id: string): Promise<DocDate[] | null>;
|
|
1924
|
+
private getDocDatesWithCallbacks;
|
|
1925
|
+
private processGetDocDatesWithCallbacks;
|
|
1926
|
+
protected processGetDocDates(xhr: any): DocDate[] | null | null;
|
|
1919
1927
|
/**
|
|
1920
1928
|
* Deletes a specific date from the specified document
|
|
1921
1929
|
* @param id Document Key
|
|
@@ -1936,14 +1944,6 @@ export declare class DocumentToolsClient extends APIClientBase {
|
|
|
1936
1944
|
private updateDocDatesWithCallbacks;
|
|
1937
1945
|
private processUpdateDocDatesWithCallbacks;
|
|
1938
1946
|
protected processUpdateDocDates(xhr: any): string | null;
|
|
1939
|
-
/**
|
|
1940
|
-
* Returns the dates for the specified document
|
|
1941
|
-
* @param id Document Key
|
|
1942
|
-
*/
|
|
1943
|
-
getDocDates(id: string): Promise<DocDate[] | null>;
|
|
1944
|
-
private getDocDatesWithCallbacks;
|
|
1945
|
-
private processGetDocDatesWithCallbacks;
|
|
1946
|
-
protected processGetDocDates(xhr: any): DocDate[] | null | null;
|
|
1947
1947
|
/**
|
|
1948
1948
|
* Information about actions for the specified document
|
|
1949
1949
|
* @param id Document Key
|
|
@@ -2363,7 +2363,7 @@ export declare class DocumentToolsClient extends APIClientBase {
|
|
|
2363
2363
|
private processGetDocSessionWithCallbacks;
|
|
2364
2364
|
protected processGetDocSession(xhr: any): string | null | null;
|
|
2365
2365
|
/**
|
|
2366
|
-
* Ends the Document Session
|
|
2366
|
+
* Ends the Document Session (see also EndDocSessionViaPost)
|
|
2367
2367
|
* @param id Document Key
|
|
2368
2368
|
* @param sessionID cache key or session
|
|
2369
2369
|
*/
|
|
@@ -2395,6 +2395,15 @@ export declare class DocumentToolsClient extends APIClientBase {
|
|
|
2395
2395
|
protected processPatchDocData(xhr: any): {
|
|
2396
2396
|
[key: string]: number;
|
|
2397
2397
|
} | null | null;
|
|
2398
|
+
/**
|
|
2399
|
+
* Ends the Document Session (sendBeacon-friendly POST)
|
|
2400
|
+
* @param id Document Key
|
|
2401
|
+
* @param sessionID cache key or session
|
|
2402
|
+
*/
|
|
2403
|
+
endDocSessionViaPost(id: string, sessionID: string | null): Promise<HttpStatusCode>;
|
|
2404
|
+
private endDocSessionViaPostWithCallbacks;
|
|
2405
|
+
private processEndDocSessionViaPostWithCallbacks;
|
|
2406
|
+
protected processEndDocSessionViaPost(xhr: any): HttpStatusCode | null;
|
|
2398
2407
|
/**
|
|
2399
2408
|
* Modifies the current exclusivity of this document session
|
|
2400
2409
|
* @param id Document Key
|
|
@@ -2716,7 +2725,7 @@ export declare class ProjectToolsClient extends APIClientBase {
|
|
|
2716
2725
|
/**
|
|
2717
2726
|
* Returns programs in which the specified project is listed
|
|
2718
2727
|
* @param projectID Full Project ID
|
|
2719
|
-
* @param programList list of programs
|
|
2728
|
+
* @param programList list of programs by ProgramKey, PgmPjtMapKey or Program ID
|
|
2720
2729
|
*/
|
|
2721
2730
|
removeProjectPrograms(projectID: string | null, programList: string[]): Promise<ProjectPrograms[] | null>;
|
|
2722
2731
|
private removeProjectProgramsWithCallbacks;
|
|
@@ -6603,10 +6612,19 @@ export interface ProcessDocumentType {
|
|
|
6603
6612
|
MobileDashboard?: boolean;
|
|
6604
6613
|
/** When True, shown on project dashboards */
|
|
6605
6614
|
ProjectDashboard?: boolean;
|
|
6606
|
-
/** When True,
|
|
6607
|
-
|
|
6615
|
+
/** When True, tracks compliance */
|
|
6616
|
+
CheckCompliance?: boolean;
|
|
6617
|
+
/** When True, can be sync'd to cloud storage (other rules apply) */
|
|
6618
|
+
CloudSync?: boolean;
|
|
6608
6619
|
/** When True, is created from a parent document */
|
|
6609
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;
|
|
6610
6628
|
/** When True, uses an item register */
|
|
6611
6629
|
UseItemRegister?: boolean;
|
|
6612
6630
|
/** When True, is Site Active */
|
package/dist/SwaggerClients.js
CHANGED
|
@@ -17459,6 +17459,61 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
17459
17459
|
}
|
|
17460
17460
|
return null;
|
|
17461
17461
|
}
|
|
17462
|
+
/**
|
|
17463
|
+
* Returns the dates for the specified document
|
|
17464
|
+
* @param id Document Key
|
|
17465
|
+
*/
|
|
17466
|
+
getDocDates(id) {
|
|
17467
|
+
return new Promise((resolve, reject) => {
|
|
17468
|
+
this.getDocDatesWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
17469
|
+
});
|
|
17470
|
+
}
|
|
17471
|
+
getDocDatesWithCallbacks(id, onSuccess, onFail) {
|
|
17472
|
+
let url_ = this.baseUrl + "/api/document/{id}/dates";
|
|
17473
|
+
if (id === undefined || id === null)
|
|
17474
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
17475
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17476
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
17477
|
+
jQuery.ajax({
|
|
17478
|
+
url: url_,
|
|
17479
|
+
beforeSend: this.beforeSend,
|
|
17480
|
+
type: "get",
|
|
17481
|
+
dataType: "text",
|
|
17482
|
+
headers: {
|
|
17483
|
+
"Accept": "application/json"
|
|
17484
|
+
}
|
|
17485
|
+
}).done((_data, _textStatus, xhr) => {
|
|
17486
|
+
this.processGetDocDatesWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
17487
|
+
}).fail((xhr) => {
|
|
17488
|
+
this.processGetDocDatesWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
17489
|
+
});
|
|
17490
|
+
}
|
|
17491
|
+
processGetDocDatesWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
17492
|
+
try {
|
|
17493
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processGetDocDates(xhr));
|
|
17494
|
+
if (onSuccess !== undefined)
|
|
17495
|
+
onSuccess(result);
|
|
17496
|
+
}
|
|
17497
|
+
catch (e) {
|
|
17498
|
+
if (onFail !== undefined)
|
|
17499
|
+
onFail(e, "http_service_exception");
|
|
17500
|
+
}
|
|
17501
|
+
}
|
|
17502
|
+
processGetDocDates(xhr) {
|
|
17503
|
+
const status = xhr.status;
|
|
17504
|
+
let _headers = {};
|
|
17505
|
+
if (status === 200) {
|
|
17506
|
+
const _responseText = xhr.responseText;
|
|
17507
|
+
let result200 = null;
|
|
17508
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17509
|
+
return result200;
|
|
17510
|
+
}
|
|
17511
|
+
else if (status !== 200 && status !== 204) {
|
|
17512
|
+
const _responseText = xhr.responseText;
|
|
17513
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
17514
|
+
}
|
|
17515
|
+
return null;
|
|
17516
|
+
}
|
|
17462
17517
|
/**
|
|
17463
17518
|
* Deletes a specific date from the specified document
|
|
17464
17519
|
* @param id Document Key
|
|
@@ -17633,61 +17688,6 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
17633
17688
|
}
|
|
17634
17689
|
return null;
|
|
17635
17690
|
}
|
|
17636
|
-
/**
|
|
17637
|
-
* Returns the dates for the specified document
|
|
17638
|
-
* @param id Document Key
|
|
17639
|
-
*/
|
|
17640
|
-
getDocDates(id) {
|
|
17641
|
-
return new Promise((resolve, reject) => {
|
|
17642
|
-
this.getDocDatesWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
17643
|
-
});
|
|
17644
|
-
}
|
|
17645
|
-
getDocDatesWithCallbacks(id, onSuccess, onFail) {
|
|
17646
|
-
let url_ = this.baseUrl + "/api/document/{id}/dates";
|
|
17647
|
-
if (id === undefined || id === null)
|
|
17648
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
17649
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17650
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
17651
|
-
jQuery.ajax({
|
|
17652
|
-
url: url_,
|
|
17653
|
-
beforeSend: this.beforeSend,
|
|
17654
|
-
type: "get",
|
|
17655
|
-
dataType: "text",
|
|
17656
|
-
headers: {
|
|
17657
|
-
"Accept": "application/json"
|
|
17658
|
-
}
|
|
17659
|
-
}).done((_data, _textStatus, xhr) => {
|
|
17660
|
-
this.processGetDocDatesWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
17661
|
-
}).fail((xhr) => {
|
|
17662
|
-
this.processGetDocDatesWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
17663
|
-
});
|
|
17664
|
-
}
|
|
17665
|
-
processGetDocDatesWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
17666
|
-
try {
|
|
17667
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.processGetDocDates(xhr));
|
|
17668
|
-
if (onSuccess !== undefined)
|
|
17669
|
-
onSuccess(result);
|
|
17670
|
-
}
|
|
17671
|
-
catch (e) {
|
|
17672
|
-
if (onFail !== undefined)
|
|
17673
|
-
onFail(e, "http_service_exception");
|
|
17674
|
-
}
|
|
17675
|
-
}
|
|
17676
|
-
processGetDocDates(xhr) {
|
|
17677
|
-
const status = xhr.status;
|
|
17678
|
-
let _headers = {};
|
|
17679
|
-
if (status === 200) {
|
|
17680
|
-
const _responseText = xhr.responseText;
|
|
17681
|
-
let result200 = null;
|
|
17682
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17683
|
-
return result200;
|
|
17684
|
-
}
|
|
17685
|
-
else if (status !== 200 && status !== 204) {
|
|
17686
|
-
const _responseText = xhr.responseText;
|
|
17687
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
17688
|
-
}
|
|
17689
|
-
return null;
|
|
17690
|
-
}
|
|
17691
17691
|
/**
|
|
17692
17692
|
* Information about actions for the specified document
|
|
17693
17693
|
* @param id Document Key
|
|
@@ -21645,7 +21645,7 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
21645
21645
|
return null;
|
|
21646
21646
|
}
|
|
21647
21647
|
/**
|
|
21648
|
-
* Ends the Document Session
|
|
21648
|
+
* Ends the Document Session (see also EndDocSessionViaPost)
|
|
21649
21649
|
* @param id Document Key
|
|
21650
21650
|
* @param sessionID cache key or session
|
|
21651
21651
|
*/
|
|
@@ -21932,6 +21932,96 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
21932
21932
|
}
|
|
21933
21933
|
return null;
|
|
21934
21934
|
}
|
|
21935
|
+
/**
|
|
21936
|
+
* Ends the Document Session (sendBeacon-friendly POST)
|
|
21937
|
+
* @param id Document Key
|
|
21938
|
+
* @param sessionID cache key or session
|
|
21939
|
+
*/
|
|
21940
|
+
endDocSessionViaPost(id, sessionID) {
|
|
21941
|
+
return new Promise((resolve, reject) => {
|
|
21942
|
+
this.endDocSessionViaPostWithCallbacks(id, sessionID, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
21943
|
+
});
|
|
21944
|
+
}
|
|
21945
|
+
endDocSessionViaPostWithCallbacks(id, sessionID, onSuccess, onFail) {
|
|
21946
|
+
let url_ = this.baseUrl + "/api/document/{id}/session/end?";
|
|
21947
|
+
if (id === undefined || id === null)
|
|
21948
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21949
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21950
|
+
if (sessionID === undefined)
|
|
21951
|
+
throw new globalThis.Error("The parameter 'sessionID' must be defined.");
|
|
21952
|
+
else if (sessionID !== null)
|
|
21953
|
+
url_ += "sessionID=" + encodeURIComponent("" + sessionID) + "&";
|
|
21954
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
21955
|
+
jQuery.ajax({
|
|
21956
|
+
url: url_,
|
|
21957
|
+
beforeSend: this.beforeSend,
|
|
21958
|
+
type: "post",
|
|
21959
|
+
dataType: "text",
|
|
21960
|
+
headers: {
|
|
21961
|
+
"Accept": "application/json"
|
|
21962
|
+
}
|
|
21963
|
+
}).done((_data, _textStatus, xhr) => {
|
|
21964
|
+
this.processEndDocSessionViaPostWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
21965
|
+
}).fail((xhr) => {
|
|
21966
|
+
this.processEndDocSessionViaPostWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
21967
|
+
});
|
|
21968
|
+
}
|
|
21969
|
+
processEndDocSessionViaPostWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
21970
|
+
try {
|
|
21971
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processEndDocSessionViaPost(xhr));
|
|
21972
|
+
if (onSuccess !== undefined)
|
|
21973
|
+
onSuccess(result);
|
|
21974
|
+
}
|
|
21975
|
+
catch (e) {
|
|
21976
|
+
if (onFail !== undefined)
|
|
21977
|
+
onFail(e, "http_service_exception");
|
|
21978
|
+
}
|
|
21979
|
+
}
|
|
21980
|
+
processEndDocSessionViaPost(xhr) {
|
|
21981
|
+
const status = xhr.status;
|
|
21982
|
+
let _headers = {};
|
|
21983
|
+
if (status === 200) {
|
|
21984
|
+
const _responseText = xhr.responseText;
|
|
21985
|
+
let result200 = null;
|
|
21986
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21987
|
+
return result200;
|
|
21988
|
+
}
|
|
21989
|
+
else if (status === 401) {
|
|
21990
|
+
const _responseText = xhr.responseText;
|
|
21991
|
+
let result401 = null;
|
|
21992
|
+
result401 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21993
|
+
return throwException("Not currently authenticated or lacks authorization", status, _responseText, _headers, result401);
|
|
21994
|
+
}
|
|
21995
|
+
else if (status === 403) {
|
|
21996
|
+
const _responseText = xhr.responseText;
|
|
21997
|
+
let result403 = null;
|
|
21998
|
+
result403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21999
|
+
return throwException("Not currently authenticated or lacks authorization", status, _responseText, _headers, result403);
|
|
22000
|
+
}
|
|
22001
|
+
else if (status === 404) {
|
|
22002
|
+
const _responseText = xhr.responseText;
|
|
22003
|
+
let result404 = null;
|
|
22004
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22005
|
+
return throwException("Document not found, or not accessible", status, _responseText, _headers, result404);
|
|
22006
|
+
}
|
|
22007
|
+
else if (status === 406) {
|
|
22008
|
+
const _responseText = xhr.responseText;
|
|
22009
|
+
let result406 = null;
|
|
22010
|
+
result406 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22011
|
+
return throwException("Not currently authenticated or lacks authorization", status, _responseText, _headers, result406);
|
|
22012
|
+
}
|
|
22013
|
+
else if (status === 500) {
|
|
22014
|
+
const _responseText = xhr.responseText;
|
|
22015
|
+
let result500 = null;
|
|
22016
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22017
|
+
return throwException("Unexpected failure", status, _responseText, _headers, result500);
|
|
22018
|
+
}
|
|
22019
|
+
else if (status !== 200 && status !== 204) {
|
|
22020
|
+
const _responseText = xhr.responseText;
|
|
22021
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22022
|
+
}
|
|
22023
|
+
return null;
|
|
22024
|
+
}
|
|
21935
22025
|
/**
|
|
21936
22026
|
* Modifies the current exclusivity of this document session
|
|
21937
22027
|
* @param id Document Key
|
|
@@ -24629,7 +24719,7 @@ class ProjectToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
24629
24719
|
/**
|
|
24630
24720
|
* Returns programs in which the specified project is listed
|
|
24631
24721
|
* @param projectID Full Project ID
|
|
24632
|
-
* @param programList list of programs
|
|
24722
|
+
* @param programList list of programs by ProgramKey, PgmPjtMapKey or Program ID
|
|
24633
24723
|
*/
|
|
24634
24724
|
removeProjectPrograms(projectID, programList) {
|
|
24635
24725
|
return new Promise((resolve, reject) => {
|