spitfirepm 23.9600.3 → 23.9600.5
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 +13 -9
- package/dist/SwaggerClients.js +61 -55
- package/dist/SwaggerClients.js.map +1 -1
- package/dist/sfRESTClient.d.ts +1 -0
- package/dist/sfRESTClient.js +15 -1
- package/dist/sfRESTClient.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,6 +25,7 @@ apiResult.then( (a) => {
|
|
|
25
25
|
### Change Log
|
|
26
26
|
|
|
27
27
|
```
|
|
28
|
+
23.9600.5 - SignalR monkey unload to pagehide
|
|
28
29
|
23.9600.3 - Adds PresetSearch ShowTree
|
|
29
30
|
23.9600.1 - Constructing a view model of 3000 records and many fields improved
|
|
30
31
|
23.9500.12 - DataModels are now interfaces instead of classes (increases ES2022 compatability)
|
package/dist/SwaggerClients.d.ts
CHANGED
|
@@ -844,6 +844,14 @@ export declare class DocumentToolsClient extends APIClientBase {
|
|
|
844
844
|
beforeSend: any;
|
|
845
845
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
846
846
|
constructor(baseUrl?: string);
|
|
847
|
+
/**
|
|
848
|
+
* Returns the header Of the specified document, including a Document Session Key
|
|
849
|
+
* @param id Document Key
|
|
850
|
+
*/
|
|
851
|
+
getDocHeader(id: string): Promise<DocMasterDetail | null>;
|
|
852
|
+
private getDocHeaderWithCallbacks;
|
|
853
|
+
private processGetDocHeaderWithCallbacks;
|
|
854
|
+
protected processGetDocHeader(xhr: any): DocMasterDetail | null | null;
|
|
847
855
|
/**
|
|
848
856
|
* Deletes the specified document
|
|
849
857
|
* @param id Document Key
|
|
@@ -861,14 +869,6 @@ export declare class DocumentToolsClient extends APIClientBase {
|
|
|
861
869
|
private updateDocHeaderWithCallbacks;
|
|
862
870
|
private processUpdateDocHeaderWithCallbacks;
|
|
863
871
|
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
872
|
/**
|
|
873
873
|
* Updates a Single field On the header Of the specified document
|
|
874
874
|
* @param id Document Key
|
|
@@ -1732,7 +1732,7 @@ export declare class DocumentToolsClient extends APIClientBase {
|
|
|
1732
1732
|
/**
|
|
1733
1733
|
* Modifies the current exclusivity of this document session
|
|
1734
1734
|
* @param id Document Key
|
|
1735
|
-
* @param requestedMode First letter is enough: Default is Doc Session (aka Automatic; D or A), User Session (U), Released (becomes shared, R or 0), Manual (requires permission, M or number of hours)
|
|
1735
|
+
* @param requestedMode First letter is enough: Default is Doc Session (aka Automatic; D or A), User Session (U), Released (becomes shared, R or 0), Manual (requires permission, M or number of hours), Terminated (requires permission)
|
|
1736
1736
|
* @param forHours Duration, required for Manual
|
|
1737
1737
|
*/
|
|
1738
1738
|
patchExclusivity(id: string, requestedMode: string | null, forHours: number): Promise<HttpStatusCode>;
|
|
@@ -5314,6 +5314,8 @@ export interface PDSData extends APIData {
|
|
|
5314
5314
|
Path?: string | undefined;
|
|
5315
5315
|
/** Type of data (boolean,string,decimal) */
|
|
5316
5316
|
Type?: string | undefined;
|
|
5317
|
+
/** Optional prior value of the field, used for change detection and logging. Use DBNULL for null values. */
|
|
5318
|
+
PriorValue?: string | undefined;
|
|
5317
5319
|
/** When TRUE target field can be read only and will be updated in memory */
|
|
5318
5320
|
UpdateReadOnly?: boolean;
|
|
5319
5321
|
}
|
|
@@ -7031,6 +7033,8 @@ export interface TypeSummary {
|
|
|
7031
7033
|
DaysTillDue?: number;
|
|
7032
7034
|
/** User has permission to create */
|
|
7033
7035
|
CanAdd?: boolean;
|
|
7036
|
+
/** URI to SOP Resource for this process type */
|
|
7037
|
+
SOPLink?: string | undefined;
|
|
7034
7038
|
/** eTag */
|
|
7035
7039
|
ETag?: string | undefined;
|
|
7036
7040
|
}
|
package/dist/SwaggerClients.js
CHANGED
|
@@ -7025,15 +7025,15 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7025
7025
|
this.baseUrl = baseUrl ?? this.getBaseUrl("http://stany2023/SFPMS");
|
|
7026
7026
|
}
|
|
7027
7027
|
/**
|
|
7028
|
-
*
|
|
7028
|
+
* Returns the header Of the specified document, including a Document Session Key
|
|
7029
7029
|
* @param id Document Key
|
|
7030
7030
|
*/
|
|
7031
|
-
|
|
7031
|
+
getDocHeader(id) {
|
|
7032
7032
|
return new Promise((resolve, reject) => {
|
|
7033
|
-
this.
|
|
7033
|
+
this.getDocHeaderWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
7034
7034
|
});
|
|
7035
7035
|
}
|
|
7036
|
-
|
|
7036
|
+
getDocHeaderWithCallbacks(id, onSuccess, onFail) {
|
|
7037
7037
|
let url_ = this.baseUrl + "/api/document/{id}";
|
|
7038
7038
|
if (id === undefined || id === null)
|
|
7039
7039
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -7042,20 +7042,20 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7042
7042
|
jQuery.ajax({
|
|
7043
7043
|
url: url_,
|
|
7044
7044
|
beforeSend: this.beforeSend,
|
|
7045
|
-
type: "
|
|
7045
|
+
type: "get",
|
|
7046
7046
|
dataType: "text",
|
|
7047
7047
|
headers: {
|
|
7048
|
-
"Accept": "application/
|
|
7048
|
+
"Accept": "application/json"
|
|
7049
7049
|
}
|
|
7050
7050
|
}).done((_data, _textStatus, xhr) => {
|
|
7051
|
-
this.
|
|
7051
|
+
this.processGetDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
7052
7052
|
}).fail((xhr) => {
|
|
7053
|
-
this.
|
|
7053
|
+
this.processGetDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
7054
7054
|
});
|
|
7055
7055
|
}
|
|
7056
|
-
|
|
7056
|
+
processGetDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
7057
7057
|
try {
|
|
7058
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.
|
|
7058
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processGetDocHeader(xhr));
|
|
7059
7059
|
if (onSuccess !== undefined)
|
|
7060
7060
|
onSuccess(result);
|
|
7061
7061
|
}
|
|
@@ -7064,10 +7064,10 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7064
7064
|
onFail(e, "http_service_exception");
|
|
7065
7065
|
}
|
|
7066
7066
|
}
|
|
7067
|
-
|
|
7067
|
+
processGetDocHeader(xhr) {
|
|
7068
7068
|
const status = xhr.status;
|
|
7069
7069
|
let _headers = {};
|
|
7070
|
-
if (status === 200
|
|
7070
|
+
if (status === 200) {
|
|
7071
7071
|
const _responseText = xhr.responseText;
|
|
7072
7072
|
let result200 = null;
|
|
7073
7073
|
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
@@ -7083,19 +7083,7 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7083
7083
|
const _responseText = xhr.responseText;
|
|
7084
7084
|
let result404 = null;
|
|
7085
7085
|
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);
|
|
7086
|
+
return throwException("Document Not found, Or Not accessible", status, _responseText, _headers, result404);
|
|
7099
7087
|
}
|
|
7100
7088
|
else if (status === 500) {
|
|
7101
7089
|
const _responseText = xhr.responseText;
|
|
@@ -7110,41 +7098,37 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7110
7098
|
return null;
|
|
7111
7099
|
}
|
|
7112
7100
|
/**
|
|
7113
|
-
*
|
|
7101
|
+
* Deletes the specified document
|
|
7114
7102
|
* @param id Document Key
|
|
7115
|
-
* @param updatedData Replacement data
|
|
7116
7103
|
*/
|
|
7117
|
-
|
|
7104
|
+
deleteDocHeader(id) {
|
|
7118
7105
|
return new Promise((resolve, reject) => {
|
|
7119
|
-
this.
|
|
7106
|
+
this.deleteDocHeaderWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
7120
7107
|
});
|
|
7121
7108
|
}
|
|
7122
|
-
|
|
7109
|
+
deleteDocHeaderWithCallbacks(id, onSuccess, onFail) {
|
|
7123
7110
|
let url_ = this.baseUrl + "/api/document/{id}";
|
|
7124
7111
|
if (id === undefined || id === null)
|
|
7125
7112
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7126
7113
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7127
7114
|
url_ = url_.replace(/[?&]$/, "");
|
|
7128
|
-
const content_ = JSON.stringify(updatedData);
|
|
7129
7115
|
jQuery.ajax({
|
|
7130
7116
|
url: url_,
|
|
7131
7117
|
beforeSend: this.beforeSend,
|
|
7132
|
-
type: "
|
|
7133
|
-
data: content_,
|
|
7118
|
+
type: "delete",
|
|
7134
7119
|
dataType: "text",
|
|
7135
7120
|
headers: {
|
|
7136
|
-
"Content-Type": "application/json",
|
|
7137
7121
|
"Accept": "application/octet-stream"
|
|
7138
7122
|
}
|
|
7139
7123
|
}).done((_data, _textStatus, xhr) => {
|
|
7140
|
-
this.
|
|
7124
|
+
this.processDeleteDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
7141
7125
|
}).fail((xhr) => {
|
|
7142
|
-
this.
|
|
7126
|
+
this.processDeleteDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
7143
7127
|
});
|
|
7144
7128
|
}
|
|
7145
|
-
|
|
7129
|
+
processDeleteDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
7146
7130
|
try {
|
|
7147
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.
|
|
7131
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processDeleteDocHeader(xhr));
|
|
7148
7132
|
if (onSuccess !== undefined)
|
|
7149
7133
|
onSuccess(result);
|
|
7150
7134
|
}
|
|
@@ -7153,7 +7137,7 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7153
7137
|
onFail(e, "http_service_exception");
|
|
7154
7138
|
}
|
|
7155
7139
|
}
|
|
7156
|
-
|
|
7140
|
+
processDeleteDocHeader(xhr) {
|
|
7157
7141
|
const status = xhr.status;
|
|
7158
7142
|
let _headers = {};
|
|
7159
7143
|
if (status === 200 || status === 206) {
|
|
@@ -7172,19 +7156,19 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7172
7156
|
const _responseText = xhr.responseText;
|
|
7173
7157
|
let result404 = null;
|
|
7174
7158
|
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7175
|
-
return throwException("Document
|
|
7159
|
+
return throwException("Document not found, or not accessible", status, _responseText, _headers, result404);
|
|
7176
7160
|
}
|
|
7177
7161
|
else if (status === 406) {
|
|
7178
7162
|
const _responseText = xhr.responseText;
|
|
7179
7163
|
let result406 = null;
|
|
7180
7164
|
result406 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7181
|
-
return throwException("
|
|
7165
|
+
return throwException("Not acceptable", status, _responseText, _headers, result406);
|
|
7182
7166
|
}
|
|
7183
7167
|
else if (status === 409) {
|
|
7184
7168
|
const _responseText = xhr.responseText;
|
|
7185
7169
|
let result409 = null;
|
|
7186
7170
|
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7187
|
-
return throwException("Could Not persist the
|
|
7171
|
+
return throwException("Could Not persist the delete", status, _responseText, _headers, result409);
|
|
7188
7172
|
}
|
|
7189
7173
|
else if (status === 500) {
|
|
7190
7174
|
const _responseText = xhr.responseText;
|
|
@@ -7199,37 +7183,41 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7199
7183
|
return null;
|
|
7200
7184
|
}
|
|
7201
7185
|
/**
|
|
7202
|
-
*
|
|
7186
|
+
* Updates the header On the specified document
|
|
7203
7187
|
* @param id Document Key
|
|
7188
|
+
* @param updatedData Replacement data
|
|
7204
7189
|
*/
|
|
7205
|
-
|
|
7190
|
+
updateDocHeader(id, updatedData) {
|
|
7206
7191
|
return new Promise((resolve, reject) => {
|
|
7207
|
-
this.
|
|
7192
|
+
this.updateDocHeaderWithCallbacks(id, updatedData, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
7208
7193
|
});
|
|
7209
7194
|
}
|
|
7210
|
-
|
|
7195
|
+
updateDocHeaderWithCallbacks(id, updatedData, onSuccess, onFail) {
|
|
7211
7196
|
let url_ = this.baseUrl + "/api/document/{id}";
|
|
7212
7197
|
if (id === undefined || id === null)
|
|
7213
7198
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7214
7199
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7215
7200
|
url_ = url_.replace(/[?&]$/, "");
|
|
7201
|
+
const content_ = JSON.stringify(updatedData);
|
|
7216
7202
|
jQuery.ajax({
|
|
7217
7203
|
url: url_,
|
|
7218
7204
|
beforeSend: this.beforeSend,
|
|
7219
|
-
type: "
|
|
7205
|
+
type: "put",
|
|
7206
|
+
data: content_,
|
|
7220
7207
|
dataType: "text",
|
|
7221
7208
|
headers: {
|
|
7222
|
-
"
|
|
7209
|
+
"Content-Type": "application/json",
|
|
7210
|
+
"Accept": "application/octet-stream"
|
|
7223
7211
|
}
|
|
7224
7212
|
}).done((_data, _textStatus, xhr) => {
|
|
7225
|
-
this.
|
|
7213
|
+
this.processUpdateDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
7226
7214
|
}).fail((xhr) => {
|
|
7227
|
-
this.
|
|
7215
|
+
this.processUpdateDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
7228
7216
|
});
|
|
7229
7217
|
}
|
|
7230
|
-
|
|
7218
|
+
processUpdateDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
7231
7219
|
try {
|
|
7232
|
-
let result = this.transformResult(_url, xhr, (xhr) => this.
|
|
7220
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processUpdateDocHeader(xhr));
|
|
7233
7221
|
if (onSuccess !== undefined)
|
|
7234
7222
|
onSuccess(result);
|
|
7235
7223
|
}
|
|
@@ -7238,10 +7226,10 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7238
7226
|
onFail(e, "http_service_exception");
|
|
7239
7227
|
}
|
|
7240
7228
|
}
|
|
7241
|
-
|
|
7229
|
+
processUpdateDocHeader(xhr) {
|
|
7242
7230
|
const status = xhr.status;
|
|
7243
7231
|
let _headers = {};
|
|
7244
|
-
if (status === 200) {
|
|
7232
|
+
if (status === 200 || status === 206) {
|
|
7245
7233
|
const _responseText = xhr.responseText;
|
|
7246
7234
|
let result200 = null;
|
|
7247
7235
|
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
@@ -7259,6 +7247,18 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
7259
7247
|
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7260
7248
|
return throwException("Document Not found, Or Not accessible", status, _responseText, _headers, result404);
|
|
7261
7249
|
}
|
|
7250
|
+
else if (status === 406) {
|
|
7251
|
+
const _responseText = xhr.responseText;
|
|
7252
|
+
let result406 = null;
|
|
7253
|
+
result406 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7254
|
+
return throwException("Document number cannot be changed by this method", status, _responseText, _headers, result406);
|
|
7255
|
+
}
|
|
7256
|
+
else if (status === 409) {
|
|
7257
|
+
const _responseText = xhr.responseText;
|
|
7258
|
+
let result409 = null;
|
|
7259
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7260
|
+
return throwException("Could Not persist the update", status, _responseText, _headers, result409);
|
|
7261
|
+
}
|
|
7262
7262
|
else if (status === 500) {
|
|
7263
7263
|
const _responseText = xhr.responseText;
|
|
7264
7264
|
let result500 = null;
|
|
@@ -15110,7 +15110,7 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
15110
15110
|
/**
|
|
15111
15111
|
* Modifies the current exclusivity of this document session
|
|
15112
15112
|
* @param id Document Key
|
|
15113
|
-
* @param requestedMode First letter is enough: Default is Doc Session (aka Automatic; D or A), User Session (U), Released (becomes shared, R or 0), Manual (requires permission, M or number of hours)
|
|
15113
|
+
* @param requestedMode First letter is enough: Default is Doc Session (aka Automatic; D or A), User Session (U), Released (becomes shared, R or 0), Manual (requires permission, M or number of hours), Terminated (requires permission)
|
|
15114
15114
|
* @param forHours Duration, required for Manual
|
|
15115
15115
|
*/
|
|
15116
15116
|
patchExclusivity(id, requestedMode, forHours) {
|
|
@@ -15165,6 +15165,12 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
15165
15165
|
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15166
15166
|
return result200;
|
|
15167
15167
|
}
|
|
15168
|
+
else if (status === 400) {
|
|
15169
|
+
const _responseText = xhr.responseText;
|
|
15170
|
+
let result400 = null;
|
|
15171
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15172
|
+
return throwException("Specifics of this request are not correct", status, _responseText, _headers, result400);
|
|
15173
|
+
}
|
|
15168
15174
|
else if (status === 403) {
|
|
15169
15175
|
const _responseText = xhr.responseText;
|
|
15170
15176
|
let result403 = null;
|