spitfirepm 23.9600.16 → 23.9600.18
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 -1
- package/dist/SwaggerClients.d.ts +31 -19
- package/dist/SwaggerClients.js +183 -110
- package/dist/SwaggerClients.js.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,7 +25,8 @@ apiResult.then( (a) => {
|
|
|
25
25
|
### Change Log
|
|
26
26
|
|
|
27
27
|
```
|
|
28
|
-
23.9600.
|
|
28
|
+
23.9600.18 - Project Program
|
|
29
|
+
23.9600.17 - Improves Analytics opt out
|
|
29
30
|
23.9600.15 - Improves ConfigController
|
|
30
31
|
23.9600.13 - ARR cleanup
|
|
31
32
|
23.9600.12 - ARR endpoints
|
package/dist/SwaggerClients.d.ts
CHANGED
|
@@ -34,6 +34,14 @@ export declare class AccountClient extends APIClientBase {
|
|
|
34
34
|
private postDownloadSessionWithCallbacks;
|
|
35
35
|
private processPostDownloadSessionWithCallbacks;
|
|
36
36
|
protected processPostDownloadSession(xhr: any): string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Sets the per-account anonymous feature-tracking preference
|
|
39
|
+
* @param enabled True to allow anonymous feature tracking, False to opt out
|
|
40
|
+
*/
|
|
41
|
+
setFeatureTracking(enabled: boolean): Promise<boolean>;
|
|
42
|
+
private setFeatureTrackingWithCallbacks;
|
|
43
|
+
private processSetFeatureTrackingWithCallbacks;
|
|
44
|
+
protected processSetFeatureTracking(xhr: any): boolean | null;
|
|
37
45
|
/**
|
|
38
46
|
* Digest an identity from an Google token
|
|
39
47
|
* @param subId google nonvolatile id
|
|
@@ -1502,6 +1510,14 @@ export declare class DocumentToolsClient extends APIClientBase {
|
|
|
1502
1510
|
beforeSend: any;
|
|
1503
1511
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
1504
1512
|
constructor(baseUrl?: string);
|
|
1513
|
+
/**
|
|
1514
|
+
* Returns the header Of the specified document, including a Document Session Key
|
|
1515
|
+
* @param id Document Key
|
|
1516
|
+
*/
|
|
1517
|
+
getDocHeader(id: string): Promise<DocMasterDetail | null>;
|
|
1518
|
+
private getDocHeaderWithCallbacks;
|
|
1519
|
+
private processGetDocHeaderWithCallbacks;
|
|
1520
|
+
protected processGetDocHeader(xhr: any): DocMasterDetail | null | null;
|
|
1505
1521
|
/**
|
|
1506
1522
|
* Deletes the specified document
|
|
1507
1523
|
* @param id Document Key
|
|
@@ -1519,14 +1535,6 @@ export declare class DocumentToolsClient extends APIClientBase {
|
|
|
1519
1535
|
private updateDocHeaderWithCallbacks;
|
|
1520
1536
|
private processUpdateDocHeaderWithCallbacks;
|
|
1521
1537
|
protected processUpdateDocHeader(xhr: any): any | null;
|
|
1522
|
-
/**
|
|
1523
|
-
* Returns the header Of the specified document, including a Document Session Key
|
|
1524
|
-
* @param id Document Key
|
|
1525
|
-
*/
|
|
1526
|
-
getDocHeader(id: string): Promise<DocMasterDetail | null>;
|
|
1527
|
-
private getDocHeaderWithCallbacks;
|
|
1528
|
-
private processGetDocHeaderWithCallbacks;
|
|
1529
|
-
protected processGetDocHeader(xhr: any): DocMasterDetail | null | null;
|
|
1530
1538
|
/**
|
|
1531
1539
|
* Updates a Single field On the header Of the specified document
|
|
1532
1540
|
* @param id Document Key
|
|
@@ -1908,14 +1916,6 @@ export declare class DocumentToolsClient extends APIClientBase {
|
|
|
1908
1916
|
private addDocDateWithCallbacks;
|
|
1909
1917
|
private processAddDocDateWithCallbacks;
|
|
1910
1918
|
protected processAddDocDate(xhr: any): DocDate | null | null;
|
|
1911
|
-
/**
|
|
1912
|
-
* Returns the dates for the specified document
|
|
1913
|
-
* @param id Document Key
|
|
1914
|
-
*/
|
|
1915
|
-
getDocDates(id: string): Promise<DocDate[] | null>;
|
|
1916
|
-
private getDocDatesWithCallbacks;
|
|
1917
|
-
private processGetDocDatesWithCallbacks;
|
|
1918
|
-
protected processGetDocDates(xhr: any): DocDate[] | null | null;
|
|
1919
1919
|
/**
|
|
1920
1920
|
* Deletes a specific date from the specified document
|
|
1921
1921
|
* @param id Document Key
|
|
@@ -1936,6 +1936,14 @@ export declare class DocumentToolsClient extends APIClientBase {
|
|
|
1936
1936
|
private updateDocDatesWithCallbacks;
|
|
1937
1937
|
private processUpdateDocDatesWithCallbacks;
|
|
1938
1938
|
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;
|
|
1939
1947
|
/**
|
|
1940
1948
|
* Information about actions for the specified document
|
|
1941
1949
|
* @param id Document Key
|
|
@@ -3409,7 +3417,7 @@ export declare class SystemClient extends APIClientBase {
|
|
|
3409
3417
|
protected processObfuscateData(xhr: any): string | null;
|
|
3410
3418
|
/**
|
|
3411
3419
|
* Returns list of active document/process types
|
|
3412
|
-
* @param key Use 00000000-
|
|
3420
|
+
* @param key Use 00000000-0000-0000-0000-000000000000 for all active processes
|
|
3413
3421
|
*/
|
|
3414
3422
|
getProcessList(key: string): Promise<ProcessDocumentType[] | null>;
|
|
3415
3423
|
private getProcessListWithCallbacks;
|
|
@@ -7104,7 +7112,7 @@ export interface ProjectLink {
|
|
|
7104
7112
|
/** eTag */
|
|
7105
7113
|
ETag?: string | undefined;
|
|
7106
7114
|
}
|
|
7107
|
-
/** Describes the link between a project and a program (xsfProgramProjectMap) */
|
|
7115
|
+
/** Describes the link between a project and a program (xsfProgramProjectMap via Project Abstract) */
|
|
7108
7116
|
export interface ProjectPrograms {
|
|
7109
7117
|
/** Key for this entity */
|
|
7110
7118
|
PgmPjtMapKey: string;
|
|
@@ -7112,7 +7120,11 @@ export interface ProjectPrograms {
|
|
|
7112
7120
|
ProgramKey: string;
|
|
7113
7121
|
/** Project Key (xsfProject) */
|
|
7114
7122
|
ProjectKey: string;
|
|
7115
|
-
/**
|
|
7123
|
+
/** Short ID for the Program */
|
|
7124
|
+
ProgramID?: string | undefined;
|
|
7125
|
+
/** Title of the Program */
|
|
7126
|
+
ProgramTitle?: string | undefined;
|
|
7127
|
+
/** When this project was added to this program */
|
|
7116
7128
|
Created: Date;
|
|
7117
7129
|
/** When True, this program is active */
|
|
7118
7130
|
Active?: boolean;
|
package/dist/SwaggerClients.js
CHANGED
|
@@ -290,6 +290,73 @@ class AccountClient extends APIClientBase_1.APIClientBase {
|
|
|
290
290
|
}
|
|
291
291
|
return null;
|
|
292
292
|
}
|
|
293
|
+
/**
|
|
294
|
+
* Sets the per-account anonymous feature-tracking preference
|
|
295
|
+
* @param enabled True to allow anonymous feature tracking, False to opt out
|
|
296
|
+
*/
|
|
297
|
+
setFeatureTracking(enabled) {
|
|
298
|
+
return new Promise((resolve, reject) => {
|
|
299
|
+
this.setFeatureTrackingWithCallbacks(enabled, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
setFeatureTrackingWithCallbacks(enabled, onSuccess, onFail) {
|
|
303
|
+
let url_ = this.baseUrl + "/api/account/featuretracking/{enabled}";
|
|
304
|
+
if (enabled === undefined || enabled === null)
|
|
305
|
+
throw new globalThis.Error("The parameter 'enabled' must be defined.");
|
|
306
|
+
url_ = url_.replace("{enabled}", encodeURIComponent("" + enabled));
|
|
307
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
308
|
+
jQuery.ajax({
|
|
309
|
+
url: url_,
|
|
310
|
+
beforeSend: this.beforeSend,
|
|
311
|
+
type: "post",
|
|
312
|
+
dataType: "text",
|
|
313
|
+
headers: {
|
|
314
|
+
"Accept": "application/json"
|
|
315
|
+
}
|
|
316
|
+
}).done((_data, _textStatus, xhr) => {
|
|
317
|
+
this.processSetFeatureTrackingWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
318
|
+
}).fail((xhr) => {
|
|
319
|
+
this.processSetFeatureTrackingWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
processSetFeatureTrackingWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
323
|
+
try {
|
|
324
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processSetFeatureTracking(xhr));
|
|
325
|
+
if (onSuccess !== undefined)
|
|
326
|
+
onSuccess(result);
|
|
327
|
+
}
|
|
328
|
+
catch (e) {
|
|
329
|
+
if (onFail !== undefined)
|
|
330
|
+
onFail(e, "http_service_exception");
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
processSetFeatureTracking(xhr) {
|
|
334
|
+
const status = xhr.status;
|
|
335
|
+
let _headers = {};
|
|
336
|
+
if (status === 200) {
|
|
337
|
+
const _responseText = xhr.responseText;
|
|
338
|
+
let result200 = null;
|
|
339
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
340
|
+
return result200;
|
|
341
|
+
}
|
|
342
|
+
else if (status === 401) {
|
|
343
|
+
const _responseText = xhr.responseText;
|
|
344
|
+
let result401 = null;
|
|
345
|
+
result401 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
346
|
+
return throwException("Not currently authenticated", status, _responseText, _headers, result401);
|
|
347
|
+
}
|
|
348
|
+
else if (status === 500) {
|
|
349
|
+
const _responseText = xhr.responseText;
|
|
350
|
+
let result500 = null;
|
|
351
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
352
|
+
return throwException("Internal Error", status, _responseText, _headers, result500);
|
|
353
|
+
}
|
|
354
|
+
else if (status !== 200 && status !== 204) {
|
|
355
|
+
const _responseText = xhr.responseText;
|
|
356
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
357
|
+
}
|
|
358
|
+
return null;
|
|
359
|
+
}
|
|
293
360
|
/**
|
|
294
361
|
* Digest an identity from an Google token
|
|
295
362
|
* @param subId google nonvolatile id
|
|
@@ -13777,15 +13844,15 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
13777
13844
|
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
13778
13845
|
}
|
|
13779
13846
|
/**
|
|
13780
|
-
*
|
|
13847
|
+
* Returns the header Of the specified document, including a Document Session Key
|
|
13781
13848
|
* @param id Document Key
|
|
13782
13849
|
*/
|
|
13783
|
-
|
|
13850
|
+
getDocHeader(id) {
|
|
13784
13851
|
return new Promise((resolve, reject) => {
|
|
13785
|
-
this.
|
|
13852
|
+
this.getDocHeaderWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
13786
13853
|
});
|
|
13787
13854
|
}
|
|
13788
|
-
|
|
13855
|
+
getDocHeaderWithCallbacks(id, onSuccess, onFail) {
|
|
13789
13856
|
let url_ = this.baseUrl + "/api/document/{id}";
|
|
13790
13857
|
if (id === undefined || id === null)
|
|
13791
13858
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -13794,20 +13861,20 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
13794
13861
|
jQuery.ajax({
|
|
13795
13862
|
url: url_,
|
|
13796
13863
|
beforeSend: this.beforeSend,
|
|
13797
|
-
type: "
|
|
13864
|
+
type: "get",
|
|
13798
13865
|
dataType: "text",
|
|
13799
13866
|
headers: {
|
|
13800
|
-
"Accept": "application/
|
|
13867
|
+
"Accept": "application/json"
|
|
13801
13868
|
}
|
|
13802
13869
|
}).done((_data, _textStatus, xhr) => {
|
|
13803
|
-
this.
|
|
13870
|
+
this.processGetDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
13804
13871
|
}).fail((xhr) => {
|
|
13805
|
-
this.
|
|
13872
|
+
this.processGetDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
13806
13873
|
});
|
|
13807
13874
|
}
|
|
13808
|
-
|
|
13875
|
+
processGetDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
13809
13876
|
try {
|
|
13810
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.
|
|
13877
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processGetDocHeader(xhr));
|
|
13811
13878
|
if (onSuccess !== undefined)
|
|
13812
13879
|
onSuccess(result);
|
|
13813
13880
|
}
|
|
@@ -13816,10 +13883,10 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
13816
13883
|
onFail(e, "http_service_exception");
|
|
13817
13884
|
}
|
|
13818
13885
|
}
|
|
13819
|
-
|
|
13886
|
+
processGetDocHeader(xhr) {
|
|
13820
13887
|
const status = xhr.status;
|
|
13821
13888
|
let _headers = {};
|
|
13822
|
-
if (status === 200
|
|
13889
|
+
if (status === 200) {
|
|
13823
13890
|
const _responseText = xhr.responseText;
|
|
13824
13891
|
let result200 = null;
|
|
13825
13892
|
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
@@ -13835,19 +13902,7 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
13835
13902
|
const _responseText = xhr.responseText;
|
|
13836
13903
|
let result404 = null;
|
|
13837
13904
|
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13838
|
-
return throwException("Document
|
|
13839
|
-
}
|
|
13840
|
-
else if (status === 406) {
|
|
13841
|
-
const _responseText = xhr.responseText;
|
|
13842
|
-
let result406 = null;
|
|
13843
|
-
result406 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13844
|
-
return throwException("Not acceptable", status, _responseText, _headers, result406);
|
|
13845
|
-
}
|
|
13846
|
-
else if (status === 409) {
|
|
13847
|
-
const _responseText = xhr.responseText;
|
|
13848
|
-
let result409 = null;
|
|
13849
|
-
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13850
|
-
return throwException("Could Not persist the delete", status, _responseText, _headers, result409);
|
|
13905
|
+
return throwException("Document Not found, Or Not accessible", status, _responseText, _headers, result404);
|
|
13851
13906
|
}
|
|
13852
13907
|
else if (status === 500) {
|
|
13853
13908
|
const _responseText = xhr.responseText;
|
|
@@ -13862,41 +13917,37 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
13862
13917
|
return null;
|
|
13863
13918
|
}
|
|
13864
13919
|
/**
|
|
13865
|
-
*
|
|
13920
|
+
* Deletes the specified document
|
|
13866
13921
|
* @param id Document Key
|
|
13867
|
-
* @param updatedData Replacement data
|
|
13868
13922
|
*/
|
|
13869
|
-
|
|
13923
|
+
deleteDocHeader(id) {
|
|
13870
13924
|
return new Promise((resolve, reject) => {
|
|
13871
|
-
this.
|
|
13925
|
+
this.deleteDocHeaderWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
13872
13926
|
});
|
|
13873
13927
|
}
|
|
13874
|
-
|
|
13928
|
+
deleteDocHeaderWithCallbacks(id, onSuccess, onFail) {
|
|
13875
13929
|
let url_ = this.baseUrl + "/api/document/{id}";
|
|
13876
13930
|
if (id === undefined || id === null)
|
|
13877
13931
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
13878
13932
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
13879
13933
|
url_ = url_.replace(/[?&]$/, "");
|
|
13880
|
-
const content_ = JSON.stringify(updatedData);
|
|
13881
13934
|
jQuery.ajax({
|
|
13882
13935
|
url: url_,
|
|
13883
13936
|
beforeSend: this.beforeSend,
|
|
13884
|
-
type: "
|
|
13885
|
-
data: content_,
|
|
13937
|
+
type: "delete",
|
|
13886
13938
|
dataType: "text",
|
|
13887
13939
|
headers: {
|
|
13888
|
-
"Content-Type": "application/json",
|
|
13889
13940
|
"Accept": "application/octet-stream"
|
|
13890
13941
|
}
|
|
13891
13942
|
}).done((_data, _textStatus, xhr) => {
|
|
13892
|
-
this.
|
|
13943
|
+
this.processDeleteDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
13893
13944
|
}).fail((xhr) => {
|
|
13894
|
-
this.
|
|
13945
|
+
this.processDeleteDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
13895
13946
|
});
|
|
13896
13947
|
}
|
|
13897
|
-
|
|
13948
|
+
processDeleteDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
13898
13949
|
try {
|
|
13899
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.
|
|
13950
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processDeleteDocHeader(xhr));
|
|
13900
13951
|
if (onSuccess !== undefined)
|
|
13901
13952
|
onSuccess(result);
|
|
13902
13953
|
}
|
|
@@ -13905,7 +13956,7 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
13905
13956
|
onFail(e, "http_service_exception");
|
|
13906
13957
|
}
|
|
13907
13958
|
}
|
|
13908
|
-
|
|
13959
|
+
processDeleteDocHeader(xhr) {
|
|
13909
13960
|
const status = xhr.status;
|
|
13910
13961
|
let _headers = {};
|
|
13911
13962
|
if (status === 200 || status === 206) {
|
|
@@ -13924,19 +13975,19 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
13924
13975
|
const _responseText = xhr.responseText;
|
|
13925
13976
|
let result404 = null;
|
|
13926
13977
|
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13927
|
-
return throwException("Document
|
|
13978
|
+
return throwException("Document not found, or not accessible", status, _responseText, _headers, result404);
|
|
13928
13979
|
}
|
|
13929
13980
|
else if (status === 406) {
|
|
13930
13981
|
const _responseText = xhr.responseText;
|
|
13931
13982
|
let result406 = null;
|
|
13932
13983
|
result406 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13933
|
-
return throwException("
|
|
13984
|
+
return throwException("Not acceptable", status, _responseText, _headers, result406);
|
|
13934
13985
|
}
|
|
13935
13986
|
else if (status === 409) {
|
|
13936
13987
|
const _responseText = xhr.responseText;
|
|
13937
13988
|
let result409 = null;
|
|
13938
13989
|
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13939
|
-
return throwException("Could Not persist the
|
|
13990
|
+
return throwException("Could Not persist the delete", status, _responseText, _headers, result409);
|
|
13940
13991
|
}
|
|
13941
13992
|
else if (status === 500) {
|
|
13942
13993
|
const _responseText = xhr.responseText;
|
|
@@ -13951,37 +14002,41 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
13951
14002
|
return null;
|
|
13952
14003
|
}
|
|
13953
14004
|
/**
|
|
13954
|
-
*
|
|
14005
|
+
* Updates the header On the specified document
|
|
13955
14006
|
* @param id Document Key
|
|
14007
|
+
* @param updatedData Replacement data
|
|
13956
14008
|
*/
|
|
13957
|
-
|
|
14009
|
+
updateDocHeader(id, updatedData) {
|
|
13958
14010
|
return new Promise((resolve, reject) => {
|
|
13959
|
-
this.
|
|
14011
|
+
this.updateDocHeaderWithCallbacks(id, updatedData, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
13960
14012
|
});
|
|
13961
14013
|
}
|
|
13962
|
-
|
|
14014
|
+
updateDocHeaderWithCallbacks(id, updatedData, onSuccess, onFail) {
|
|
13963
14015
|
let url_ = this.baseUrl + "/api/document/{id}";
|
|
13964
14016
|
if (id === undefined || id === null)
|
|
13965
14017
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
13966
14018
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
13967
14019
|
url_ = url_.replace(/[?&]$/, "");
|
|
14020
|
+
const content_ = JSON.stringify(updatedData);
|
|
13968
14021
|
jQuery.ajax({
|
|
13969
14022
|
url: url_,
|
|
13970
14023
|
beforeSend: this.beforeSend,
|
|
13971
|
-
type: "
|
|
14024
|
+
type: "put",
|
|
14025
|
+
data: content_,
|
|
13972
14026
|
dataType: "text",
|
|
13973
14027
|
headers: {
|
|
13974
|
-
"
|
|
14028
|
+
"Content-Type": "application/json",
|
|
14029
|
+
"Accept": "application/octet-stream"
|
|
13975
14030
|
}
|
|
13976
14031
|
}).done((_data, _textStatus, xhr) => {
|
|
13977
|
-
this.
|
|
14032
|
+
this.processUpdateDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
13978
14033
|
}).fail((xhr) => {
|
|
13979
|
-
this.
|
|
14034
|
+
this.processUpdateDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
13980
14035
|
});
|
|
13981
14036
|
}
|
|
13982
|
-
|
|
14037
|
+
processUpdateDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
13983
14038
|
try {
|
|
13984
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.
|
|
14039
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processUpdateDocHeader(xhr));
|
|
13985
14040
|
if (onSuccess !== undefined)
|
|
13986
14041
|
onSuccess(result);
|
|
13987
14042
|
}
|
|
@@ -13990,10 +14045,10 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
13990
14045
|
onFail(e, "http_service_exception");
|
|
13991
14046
|
}
|
|
13992
14047
|
}
|
|
13993
|
-
|
|
14048
|
+
processUpdateDocHeader(xhr) {
|
|
13994
14049
|
const status = xhr.status;
|
|
13995
14050
|
let _headers = {};
|
|
13996
|
-
if (status === 200) {
|
|
14051
|
+
if (status === 200 || status === 206) {
|
|
13997
14052
|
const _responseText = xhr.responseText;
|
|
13998
14053
|
let result200 = null;
|
|
13999
14054
|
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
@@ -14011,6 +14066,18 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
14011
14066
|
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14012
14067
|
return throwException("Document Not found, Or Not accessible", status, _responseText, _headers, result404);
|
|
14013
14068
|
}
|
|
14069
|
+
else if (status === 406) {
|
|
14070
|
+
const _responseText = xhr.responseText;
|
|
14071
|
+
let result406 = null;
|
|
14072
|
+
result406 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14073
|
+
return throwException("Document number cannot be changed by this method", status, _responseText, _headers, result406);
|
|
14074
|
+
}
|
|
14075
|
+
else if (status === 409) {
|
|
14076
|
+
const _responseText = xhr.responseText;
|
|
14077
|
+
let result409 = null;
|
|
14078
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14079
|
+
return throwException("Could Not persist the update", status, _responseText, _headers, result409);
|
|
14080
|
+
}
|
|
14014
14081
|
else if (status === 500) {
|
|
14015
14082
|
const _responseText = xhr.responseText;
|
|
14016
14083
|
let result500 = null;
|
|
@@ -14264,6 +14331,12 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
14264
14331
|
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14265
14332
|
return result200;
|
|
14266
14333
|
}
|
|
14334
|
+
else if (status === 400) {
|
|
14335
|
+
const _responseText = xhr.responseText;
|
|
14336
|
+
let result400 = null;
|
|
14337
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14338
|
+
return throwException("Missing Required Data", status, _responseText, _headers, result400);
|
|
14339
|
+
}
|
|
14267
14340
|
else if (status === 401) {
|
|
14268
14341
|
const _responseText = xhr.responseText;
|
|
14269
14342
|
let result401 = null;
|
|
@@ -17386,61 +17459,6 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
17386
17459
|
}
|
|
17387
17460
|
return null;
|
|
17388
17461
|
}
|
|
17389
|
-
/**
|
|
17390
|
-
* Returns the dates for the specified document
|
|
17391
|
-
* @param id Document Key
|
|
17392
|
-
*/
|
|
17393
|
-
getDocDates(id) {
|
|
17394
|
-
return new Promise((resolve, reject) => {
|
|
17395
|
-
this.getDocDatesWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
17396
|
-
});
|
|
17397
|
-
}
|
|
17398
|
-
getDocDatesWithCallbacks(id, onSuccess, onFail) {
|
|
17399
|
-
let url_ = this.baseUrl + "/api/document/{id}/dates";
|
|
17400
|
-
if (id === undefined || id === null)
|
|
17401
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
17402
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17403
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
17404
|
-
jQuery.ajax({
|
|
17405
|
-
url: url_,
|
|
17406
|
-
beforeSend: this.beforeSend,
|
|
17407
|
-
type: "get",
|
|
17408
|
-
dataType: "text",
|
|
17409
|
-
headers: {
|
|
17410
|
-
"Accept": "application/json"
|
|
17411
|
-
}
|
|
17412
|
-
}).done((_data, _textStatus, xhr) => {
|
|
17413
|
-
this.processGetDocDatesWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
17414
|
-
}).fail((xhr) => {
|
|
17415
|
-
this.processGetDocDatesWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
17416
|
-
});
|
|
17417
|
-
}
|
|
17418
|
-
processGetDocDatesWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
17419
|
-
try {
|
|
17420
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.processGetDocDates(xhr));
|
|
17421
|
-
if (onSuccess !== undefined)
|
|
17422
|
-
onSuccess(result);
|
|
17423
|
-
}
|
|
17424
|
-
catch (e) {
|
|
17425
|
-
if (onFail !== undefined)
|
|
17426
|
-
onFail(e, "http_service_exception");
|
|
17427
|
-
}
|
|
17428
|
-
}
|
|
17429
|
-
processGetDocDates(xhr) {
|
|
17430
|
-
const status = xhr.status;
|
|
17431
|
-
let _headers = {};
|
|
17432
|
-
if (status === 200) {
|
|
17433
|
-
const _responseText = xhr.responseText;
|
|
17434
|
-
let result200 = null;
|
|
17435
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17436
|
-
return result200;
|
|
17437
|
-
}
|
|
17438
|
-
else if (status !== 200 && status !== 204) {
|
|
17439
|
-
const _responseText = xhr.responseText;
|
|
17440
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
17441
|
-
}
|
|
17442
|
-
return null;
|
|
17443
|
-
}
|
|
17444
17462
|
/**
|
|
17445
17463
|
* Deletes a specific date from the specified document
|
|
17446
17464
|
* @param id Document Key
|
|
@@ -17615,6 +17633,61 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
17615
17633
|
}
|
|
17616
17634
|
return null;
|
|
17617
17635
|
}
|
|
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
|
+
}
|
|
17618
17691
|
/**
|
|
17619
17692
|
* Information about actions for the specified document
|
|
17620
17693
|
* @param id Document Key
|
|
@@ -30300,7 +30373,7 @@ class SystemClient extends APIClientBase_1.APIClientBase {
|
|
|
30300
30373
|
}
|
|
30301
30374
|
/**
|
|
30302
30375
|
* Returns list of active document/process types
|
|
30303
|
-
* @param key Use 00000000-
|
|
30376
|
+
* @param key Use 00000000-0000-0000-0000-000000000000 for all active processes
|
|
30304
30377
|
*/
|
|
30305
30378
|
getProcessList(key) {
|
|
30306
30379
|
return new Promise((resolve, reject) => {
|