spitfirepm 23.9700.5 → 23.9700.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/SwaggerClients.d.ts +29 -11
- package/dist/SwaggerClients.js +79 -12
- package/dist/SwaggerClients.js.map +1 -1
- package/dist/sfRESTClient.d.ts +26 -4
- package/dist/sfRESTClient.js +26 -4
- package/dist/sfRESTClient.js.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,6 +25,8 @@ apiResult.then( (a) => {
|
|
|
25
25
|
### Change Log
|
|
26
26
|
|
|
27
27
|
```
|
|
28
|
+
23.9700.7 - GetDV method clarifications
|
|
29
|
+
23.9700.6 - Audit History Model enhanced
|
|
28
30
|
23.9700.5 - Lookup Editor Endpoints
|
|
29
31
|
23.9700.2 - ProcessDocumentType DataModel enriched
|
|
30
32
|
23.9700.1 - GatherDependsOnValues() improved
|
package/dist/SwaggerClients.d.ts
CHANGED
|
@@ -240,7 +240,7 @@ export declare class LookupClient extends APIClientBase {
|
|
|
240
240
|
/**
|
|
241
241
|
* Returns list of prior values for this field
|
|
242
242
|
* @param dataMember Name of table
|
|
243
|
-
* @param dataField Name of field
|
|
243
|
+
* @param dataField Name of field; use zero for all fields
|
|
244
244
|
* @param rowKey PK identifier of specific record
|
|
245
245
|
* @param sinceWhen (optional) Optional date since when data should be returned
|
|
246
246
|
*/
|
|
@@ -560,6 +560,14 @@ export declare class CatalogClient extends APIClientBase {
|
|
|
560
560
|
private deleteFileWithCallbacks;
|
|
561
561
|
private processDeleteFileWithCallbacks;
|
|
562
562
|
protected processDeleteFile(xhr: any): any | null;
|
|
563
|
+
/**
|
|
564
|
+
* Returns a site helper script, stylesheet or image held in the catalog
|
|
565
|
+
* @param assetPath Path below /zPublicHTML, eg js/XTSDocHelper.js
|
|
566
|
+
*/
|
|
567
|
+
getPublicAsset(assetPath: string | null): Promise<any>;
|
|
568
|
+
private getPublicAssetWithCallbacks;
|
|
569
|
+
private processGetPublicAssetWithCallbacks;
|
|
570
|
+
protected processGetPublicAsset(xhr: any): any | null;
|
|
563
571
|
/**
|
|
564
572
|
* Returns a background task ID and initiates a task to build a PDF of all documents enumerated in the exportRequest
|
|
565
573
|
* @param exportRequest Specifics for export requested
|
|
@@ -3682,25 +3690,21 @@ export declare class XTSClient extends APIClientBase {
|
|
|
3682
3690
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
3683
3691
|
constructor(baseUrl?: string);
|
|
3684
3692
|
/**
|
|
3685
|
-
* Requests the document be requeued for
|
|
3693
|
+
* Requests the document's cloud folder be requeued for an inbound scan
|
|
3686
3694
|
* @param fileKey (optional)
|
|
3687
|
-
* @return
|
|
3695
|
+
* @return Scan queued - XTSCloudRequeue reported Updated
|
|
3688
3696
|
*/
|
|
3689
3697
|
cloudSyncDocPUT(id: string, fileKey?: string | null | undefined): Promise<string>;
|
|
3690
3698
|
private cloudSyncDocPUTWithCallbacks;
|
|
3691
3699
|
private processCloudSyncDocPUTWithCallbacks;
|
|
3692
3700
|
protected processCloudSyncDocPUT(xhr: any): string | null;
|
|
3693
3701
|
/**
|
|
3694
|
-
*
|
|
3702
|
+
* Returns cloud storage information for a document's published folder
|
|
3695
3703
|
*/
|
|
3696
|
-
cloudSyncDocGET(id: string): Promise<
|
|
3697
|
-
[key: string]: any;
|
|
3698
|
-
} | null>;
|
|
3704
|
+
cloudSyncDocGET(id: string): Promise<CloudFolderInfo | null>;
|
|
3699
3705
|
private cloudSyncDocGETWithCallbacks;
|
|
3700
3706
|
private processCloudSyncDocGETWithCallbacks;
|
|
3701
|
-
protected processCloudSyncDocGET(xhr: any):
|
|
3702
|
-
[key: string]: any;
|
|
3703
|
-
} | null | null;
|
|
3707
|
+
protected processCloudSyncDocGET(xhr: any): CloudFolderInfo | null | null;
|
|
3704
3708
|
/**
|
|
3705
3709
|
* Requests all compliance items that have changed since the last key map update
|
|
3706
3710
|
*/
|
|
@@ -4213,6 +4217,14 @@ export interface CloudChange {
|
|
|
4213
4217
|
removed?: boolean;
|
|
4214
4218
|
WhenModified?: Date;
|
|
4215
4219
|
}
|
|
4220
|
+
export interface CloudFolderInfo {
|
|
4221
|
+
KMK?: string;
|
|
4222
|
+
path?: string | undefined;
|
|
4223
|
+
id?: string | undefined;
|
|
4224
|
+
scanned?: string | undefined;
|
|
4225
|
+
url?: string | undefined;
|
|
4226
|
+
error?: string | undefined;
|
|
4227
|
+
}
|
|
4216
4228
|
/** A single cloud-storage definition. Mirrors the CloudStore table in LVData.xsd; consumed by the System Admin Dashboard Cloud Storage tool. The Have*Secret flags report whether a secret is on file without exposing it. */
|
|
4217
4229
|
export interface CloudStore {
|
|
4218
4230
|
/** Row key (xsfCldStore) */
|
|
@@ -6137,11 +6149,17 @@ export interface FieldAudit {
|
|
|
6137
6149
|
/** when the change was persisted */
|
|
6138
6150
|
ChangeWhen?: Date;
|
|
6139
6151
|
/** string representation of the prior field value */
|
|
6140
|
-
PriorValue?:
|
|
6152
|
+
PriorValue?: string | undefined;
|
|
6141
6153
|
/** string representation of the new field value */
|
|
6142
6154
|
NewValue?: string | undefined;
|
|
6143
6155
|
/** user that made the change */
|
|
6144
6156
|
ByUser?: string | undefined;
|
|
6157
|
+
/** The column that was changed in table.field format */
|
|
6158
|
+
ColName?: string | undefined;
|
|
6159
|
+
/** When true, this entry was inferred by a gap */
|
|
6160
|
+
IsInferred?: boolean;
|
|
6161
|
+
/** When true, this value is a guid */
|
|
6162
|
+
IsGuid?: boolean;
|
|
6145
6163
|
/** eTag */
|
|
6146
6164
|
ETag?: string | undefined;
|
|
6147
6165
|
}
|
package/dist/SwaggerClients.js
CHANGED
|
@@ -1984,7 +1984,7 @@ class LookupClient extends APIClientBase_1.APIClientBase {
|
|
|
1984
1984
|
/**
|
|
1985
1985
|
* Returns list of prior values for this field
|
|
1986
1986
|
* @param dataMember Name of table
|
|
1987
|
-
* @param dataField Name of field
|
|
1987
|
+
* @param dataField Name of field; use zero for all fields
|
|
1988
1988
|
* @param rowKey PK identifier of specific record
|
|
1989
1989
|
* @param sinceWhen (optional) Optional date since when data should be returned
|
|
1990
1990
|
*/
|
|
@@ -4490,6 +4490,79 @@ class CatalogClient extends APIClientBase_1.APIClientBase {
|
|
|
4490
4490
|
}
|
|
4491
4491
|
return null;
|
|
4492
4492
|
}
|
|
4493
|
+
/**
|
|
4494
|
+
* Returns a site helper script, stylesheet or image held in the catalog
|
|
4495
|
+
* @param assetPath Path below /zPublicHTML, eg js/XTSDocHelper.js
|
|
4496
|
+
*/
|
|
4497
|
+
getPublicAsset(assetPath) {
|
|
4498
|
+
return new Promise((resolve, reject) => {
|
|
4499
|
+
this.getPublicAssetWithCallbacks(assetPath, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
4500
|
+
});
|
|
4501
|
+
}
|
|
4502
|
+
getPublicAssetWithCallbacks(assetPath, onSuccess, onFail) {
|
|
4503
|
+
let url_ = this.baseUrl + "/api/catalog/asset/{assetPath}";
|
|
4504
|
+
if (assetPath === undefined || assetPath === null)
|
|
4505
|
+
throw new globalThis.Error("The parameter 'assetPath' must be defined.");
|
|
4506
|
+
url_ = url_.replace("{assetPath}", encodeURIComponent("" + assetPath));
|
|
4507
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4508
|
+
jQuery.ajax({
|
|
4509
|
+
url: url_,
|
|
4510
|
+
beforeSend: this.beforeSend,
|
|
4511
|
+
type: "get",
|
|
4512
|
+
dataType: "text",
|
|
4513
|
+
headers: {
|
|
4514
|
+
"Accept": "application/octet-stream"
|
|
4515
|
+
}
|
|
4516
|
+
}).done((_data, _textStatus, xhr) => {
|
|
4517
|
+
this.processGetPublicAssetWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
4518
|
+
}).fail((xhr) => {
|
|
4519
|
+
this.processGetPublicAssetWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
4520
|
+
});
|
|
4521
|
+
}
|
|
4522
|
+
processGetPublicAssetWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
4523
|
+
try {
|
|
4524
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processGetPublicAsset(xhr));
|
|
4525
|
+
if (onSuccess !== undefined)
|
|
4526
|
+
onSuccess(result);
|
|
4527
|
+
}
|
|
4528
|
+
catch (e) {
|
|
4529
|
+
if (onFail !== undefined)
|
|
4530
|
+
onFail(e, "http_service_exception");
|
|
4531
|
+
}
|
|
4532
|
+
}
|
|
4533
|
+
processGetPublicAsset(xhr) {
|
|
4534
|
+
const status = xhr.status;
|
|
4535
|
+
let _headers = {};
|
|
4536
|
+
if (status === 200 || status === 206) {
|
|
4537
|
+
const _responseText = xhr.responseText;
|
|
4538
|
+
let result200 = null;
|
|
4539
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4540
|
+
return result200;
|
|
4541
|
+
}
|
|
4542
|
+
else if (status === 403) {
|
|
4543
|
+
const _responseText = xhr.responseText;
|
|
4544
|
+
let result403 = null;
|
|
4545
|
+
result403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4546
|
+
return throwException("Not currently authenticated Or lacks authorization", status, _responseText, _headers, result403);
|
|
4547
|
+
}
|
|
4548
|
+
else if (status === 404) {
|
|
4549
|
+
const _responseText = xhr.responseText;
|
|
4550
|
+
let result404 = null;
|
|
4551
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4552
|
+
return throwException("No such file in this site\'s catalog", status, _responseText, _headers, result404);
|
|
4553
|
+
}
|
|
4554
|
+
else if (status === 500) {
|
|
4555
|
+
const _responseText = xhr.responseText;
|
|
4556
|
+
let result500 = null;
|
|
4557
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4558
|
+
return throwException("Unexpected failure", status, _responseText, _headers, result500);
|
|
4559
|
+
}
|
|
4560
|
+
else if (status !== 200 && status !== 204) {
|
|
4561
|
+
const _responseText = xhr.responseText;
|
|
4562
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4563
|
+
}
|
|
4564
|
+
return null;
|
|
4565
|
+
}
|
|
4493
4566
|
/**
|
|
4494
4567
|
* Returns a background task ID and initiates a task to build a PDF of all documents enumerated in the exportRequest
|
|
4495
4568
|
* @param exportRequest Specifics for export requested
|
|
@@ -32621,9 +32694,9 @@ class XTSClient extends APIClientBase_1.APIClientBase {
|
|
|
32621
32694
|
this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
|
|
32622
32695
|
}
|
|
32623
32696
|
/**
|
|
32624
|
-
* Requests the document be requeued for
|
|
32697
|
+
* Requests the document's cloud folder be requeued for an inbound scan
|
|
32625
32698
|
* @param fileKey (optional)
|
|
32626
|
-
* @return
|
|
32699
|
+
* @return Scan queued - XTSCloudRequeue reported Updated
|
|
32627
32700
|
*/
|
|
32628
32701
|
cloudSyncDocPUT(id, fileKey) {
|
|
32629
32702
|
return new Promise((resolve, reject) => {
|
|
@@ -32672,12 +32745,6 @@ class XTSClient extends APIClientBase_1.APIClientBase {
|
|
|
32672
32745
|
result202 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
32673
32746
|
return result202;
|
|
32674
32747
|
}
|
|
32675
|
-
else if (status === 400) {
|
|
32676
|
-
const _responseText = xhr.responseText;
|
|
32677
|
-
let result400 = null;
|
|
32678
|
-
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
32679
|
-
return throwException("Peer and message (body) both required", status, _responseText, _headers, result400);
|
|
32680
|
-
}
|
|
32681
32748
|
else if (status === 401) {
|
|
32682
32749
|
const _responseText = xhr.responseText;
|
|
32683
32750
|
let result401 = null;
|
|
@@ -32688,13 +32755,13 @@ class XTSClient extends APIClientBase_1.APIClientBase {
|
|
|
32688
32755
|
const _responseText = xhr.responseText;
|
|
32689
32756
|
let result403 = null;
|
|
32690
32757
|
result403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
32691
|
-
return throwException("
|
|
32758
|
+
return throwException("Requires DOC | Attachments with Update", status, _responseText, _headers, result403);
|
|
32692
32759
|
}
|
|
32693
32760
|
else if (status === 500) {
|
|
32694
32761
|
const _responseText = xhr.responseText;
|
|
32695
32762
|
let result500 = null;
|
|
32696
32763
|
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
32697
|
-
return throwException("
|
|
32764
|
+
return throwException("No scan was queued - XTSCloudRequeue reported Failed, or an exception occurred", status, _responseText, _headers, result500);
|
|
32698
32765
|
}
|
|
32699
32766
|
else if (status !== 200 && status !== 204) {
|
|
32700
32767
|
const _responseText = xhr.responseText;
|
|
@@ -32703,7 +32770,7 @@ class XTSClient extends APIClientBase_1.APIClientBase {
|
|
|
32703
32770
|
return null;
|
|
32704
32771
|
}
|
|
32705
32772
|
/**
|
|
32706
|
-
*
|
|
32773
|
+
* Returns cloud storage information for a document's published folder
|
|
32707
32774
|
*/
|
|
32708
32775
|
cloudSyncDocGET(id) {
|
|
32709
32776
|
return new Promise((resolve, reject) => {
|