spitfirepm 1.40.209 → 1.40.210
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/dist/SwaggerClients.d.ts +10 -0
- package/dist/SwaggerClients.js +87 -0
- package/dist/SwaggerClients.js.map +1 -1
- package/dist/sfRESTClient.js +1 -1
- package/package.json +1 -1
package/dist/SwaggerClients.d.ts
CHANGED
|
@@ -60,6 +60,14 @@ export declare class ExcelToolsClient extends APIClientBase {
|
|
|
60
60
|
private getCobraExportWithCallbacks;
|
|
61
61
|
private processGetCobraExportWithCallbacks;
|
|
62
62
|
protected processGetCobraExport(xhr: any): string | null;
|
|
63
|
+
/**
|
|
64
|
+
* Returns a background task ID
|
|
65
|
+
* @param fileKey Catalog File Key
|
|
66
|
+
*/
|
|
67
|
+
postContactImport(fileKey: string): Promise<string>;
|
|
68
|
+
private postContactImportWithCallbacks;
|
|
69
|
+
private processPostContactImportWithCallbacks;
|
|
70
|
+
protected processPostContactImport(xhr: any): string | null;
|
|
63
71
|
}
|
|
64
72
|
export declare class DocumentToolsClient extends APIClientBase {
|
|
65
73
|
baseUrl: string;
|
|
@@ -7871,6 +7879,7 @@ export interface IWarningHeaderValue {
|
|
|
7871
7879
|
}
|
|
7872
7880
|
export declare class XferFilesStatus implements IXferFilesStatus {
|
|
7873
7881
|
name?: string | undefined;
|
|
7882
|
+
key?: string | undefined;
|
|
7874
7883
|
size: number;
|
|
7875
7884
|
progress?: string | undefined;
|
|
7876
7885
|
error?: string | undefined;
|
|
@@ -7882,6 +7891,7 @@ export declare class XferFilesStatus implements IXferFilesStatus {
|
|
|
7882
7891
|
}
|
|
7883
7892
|
export interface IXferFilesStatus {
|
|
7884
7893
|
name?: string | undefined;
|
|
7894
|
+
key?: string | undefined;
|
|
7885
7895
|
size: number;
|
|
7886
7896
|
progress?: string | undefined;
|
|
7887
7897
|
error?: string | undefined;
|
package/dist/SwaggerClients.js
CHANGED
|
@@ -539,6 +539,91 @@ class ExcelToolsClient extends APIClientBase_1.APIClientBase {
|
|
|
539
539
|
}
|
|
540
540
|
return null;
|
|
541
541
|
}
|
|
542
|
+
/**
|
|
543
|
+
* Returns a background task ID
|
|
544
|
+
* @param fileKey Catalog File Key
|
|
545
|
+
*/
|
|
546
|
+
postContactImport(fileKey) {
|
|
547
|
+
return new Promise((resolve, reject) => {
|
|
548
|
+
this.postContactImportWithCallbacks(fileKey, (result) => resolve(result), (exception, _reason) => reject(exception));
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
postContactImportWithCallbacks(fileKey, onSuccess, onFail) {
|
|
552
|
+
let url_ = this.baseUrl + "/api/excel/import/contacts?";
|
|
553
|
+
if (fileKey === undefined || fileKey === null)
|
|
554
|
+
throw new Error("The parameter 'fileKey' must be defined and cannot be null.");
|
|
555
|
+
else
|
|
556
|
+
url_ += "fileKey=" + encodeURIComponent("" + fileKey) + "&";
|
|
557
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
558
|
+
jQuery.ajax({
|
|
559
|
+
url: url_,
|
|
560
|
+
beforeSend: this.beforeSend,
|
|
561
|
+
type: "post",
|
|
562
|
+
dataType: "text",
|
|
563
|
+
headers: {
|
|
564
|
+
"Accept": "application/json"
|
|
565
|
+
}
|
|
566
|
+
}).done((_data, _textStatus, xhr) => {
|
|
567
|
+
this.processPostContactImportWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
568
|
+
}).fail((xhr) => {
|
|
569
|
+
this.processPostContactImportWithCallbacks(url_, xhr, onSuccess, onFail);
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
processPostContactImportWithCallbacks(_url, xhr, onSuccess, onFail) {
|
|
573
|
+
try {
|
|
574
|
+
let result = this.transformResult(_url, xhr, (xhr) => this.processPostContactImport(xhr));
|
|
575
|
+
if (onSuccess !== undefined)
|
|
576
|
+
onSuccess(result);
|
|
577
|
+
}
|
|
578
|
+
catch (e) {
|
|
579
|
+
if (onFail !== undefined)
|
|
580
|
+
onFail(e, "http_service_exception");
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
processPostContactImport(xhr) {
|
|
584
|
+
const status = xhr.status;
|
|
585
|
+
let _headers = {};
|
|
586
|
+
if (status === 403) {
|
|
587
|
+
const _responseText = xhr.responseText;
|
|
588
|
+
let result403 = null;
|
|
589
|
+
let resultData403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
590
|
+
result403 = resultData403 !== undefined ? resultData403 : null;
|
|
591
|
+
return throwException("Not currently authenticated or lacks authorization", status, _responseText, _headers, result403);
|
|
592
|
+
}
|
|
593
|
+
else if (status === 404) {
|
|
594
|
+
const _responseText = xhr.responseText;
|
|
595
|
+
let result404 = null;
|
|
596
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
597
|
+
result404 = resultData404 !== undefined ? resultData404 : null;
|
|
598
|
+
return throwException("id not found, or not accessible", status, _responseText, _headers, result404);
|
|
599
|
+
}
|
|
600
|
+
else if (status === 400) {
|
|
601
|
+
const _responseText = xhr.responseText;
|
|
602
|
+
let result400 = null;
|
|
603
|
+
let resultData400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
604
|
+
result400 = resultData400 !== undefined ? resultData400 : null;
|
|
605
|
+
return throwException("Malformed", status, _responseText, _headers, result400);
|
|
606
|
+
}
|
|
607
|
+
else if (status === 500) {
|
|
608
|
+
const _responseText = xhr.responseText;
|
|
609
|
+
let result500 = null;
|
|
610
|
+
let resultData500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
611
|
+
result500 = resultData500 !== undefined ? resultData500 : null;
|
|
612
|
+
return throwException("Unexpected failure", status, _responseText, _headers, result500);
|
|
613
|
+
}
|
|
614
|
+
else if (status === 200) {
|
|
615
|
+
const _responseText = xhr.responseText;
|
|
616
|
+
let result200 = null;
|
|
617
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
618
|
+
result200 = resultData200 !== undefined ? resultData200 : null;
|
|
619
|
+
return result200;
|
|
620
|
+
}
|
|
621
|
+
else if (status !== 200 && status !== 204) {
|
|
622
|
+
const _responseText = xhr.responseText;
|
|
623
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
624
|
+
}
|
|
625
|
+
return null;
|
|
626
|
+
}
|
|
542
627
|
}
|
|
543
628
|
exports.ExcelToolsClient = ExcelToolsClient;
|
|
544
629
|
class DocumentToolsClient extends APIClientBase_1.APIClientBase {
|
|
@@ -21837,6 +21922,7 @@ class XferFilesStatus {
|
|
|
21837
21922
|
init(_data) {
|
|
21838
21923
|
if (_data) {
|
|
21839
21924
|
this.name = _data["name"];
|
|
21925
|
+
this.key = _data["key"];
|
|
21840
21926
|
this.size = _data["size"];
|
|
21841
21927
|
this.progress = _data["progress"];
|
|
21842
21928
|
this.error = _data["error"];
|
|
@@ -21851,6 +21937,7 @@ class XferFilesStatus {
|
|
|
21851
21937
|
toJSON(data) {
|
|
21852
21938
|
data = typeof data === 'object' ? data : {};
|
|
21853
21939
|
data["name"] = this.name;
|
|
21940
|
+
data["key"] = this.key;
|
|
21854
21941
|
data["size"] = this.size;
|
|
21855
21942
|
data["progress"] = this.progress;
|
|
21856
21943
|
data["error"] = this.error;
|