spitfirepm 23.9600.6 → 23.9600.8

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.
@@ -844,14 +844,6 @@ 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;
855
847
  /**
856
848
  * Deletes the specified document
857
849
  * @param id Document Key
@@ -869,6 +861,14 @@ export declare class DocumentToolsClient extends APIClientBase {
869
861
  private updateDocHeaderWithCallbacks;
870
862
  private processUpdateDocHeaderWithCallbacks;
871
863
  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
@@ -2776,6 +2776,14 @@ export declare class SystemClient extends APIClientBase {
2776
2776
  protected processGetSystemStats(xhr: any): {
2777
2777
  [key: string]: any;
2778
2778
  } | null | null;
2779
+ /**
2780
+ * Creates a case
2781
+ * @param request The request outline
2782
+ */
2783
+ postSupportCase(request: SupportRequest): Promise<SupportRequest | null>;
2784
+ private postSupportCaseWithCallbacks;
2785
+ private processPostSupportCaseWithCallbacks;
2786
+ protected processPostSupportCase(xhr: any): SupportRequest | null | null;
2779
2787
  /**
2780
2788
  * Returns list of active users
2781
2789
  */
@@ -5549,7 +5557,9 @@ export interface ProjectAbstract {
5549
5557
  actionsMenu?: MenuAction[] | undefined;
5550
5558
  /** list of registers (includes link to project setup) */
5551
5559
  registerMenu?: MenuAction[] | undefined;
5552
- /** When true, Always Show Links */
5560
+ /** SOP Links by tool part */
5561
+ SOPMenu?: MenuAction[] | undefined;
5562
+ /** When true, Always Show Links Part and ignore ProjectConfig | ExcludedPart. Set from (undocumented) rule ProjectTypeConfig | LinksPart */
5553
5563
  AlwaysShowLinks?: boolean;
5554
5564
  /** When true, disable Note */
5555
5565
  ExcludeNoteUI?: boolean;
@@ -6942,6 +6952,8 @@ export interface Stream extends MarshalByRefObject {
6942
6952
  ReadTimeout?: number;
6943
6953
  WriteTimeout?: number;
6944
6954
  }
6955
+ export interface StreamContent extends HttpContent {
6956
+ }
6945
6957
  export interface StringWithQualityHeaderValue {
6946
6958
  Value?: string | undefined;
6947
6959
  Quality?: number | undefined;
@@ -6957,6 +6969,34 @@ export interface Suggestion {
6957
6969
  /** eTag */
6958
6970
  ETag?: string | undefined;
6959
6971
  }
6972
+ /** Information about something to attach to the support request, e.g. a log file. */
6973
+ export interface SupportAttachment {
6974
+ /** Typically sflink.log or something. Include the extension! */
6975
+ AttachmentName: string;
6976
+ /** UEEncoded */
6977
+ AttachmentData?: string | undefined;
6978
+ }
6979
+ /** Forwards the request to the SWS endpoint */
6980
+ export interface SupportRequest {
6981
+ /** Freeform topic of the support request, e.g. "Error when trying to save a project" */
6982
+ Topic: string;
6983
+ /** Version of sfPMS eg 2023.0.9753 */
6984
+ Version?: string | undefined;
6985
+ /** Description */
6986
+ Description?: string | undefined;
6987
+ /** Details */
6988
+ Details?: string | undefined;
6989
+ /** Usually a GUID */
6990
+ DataKey?: string | undefined;
6991
+ /** (optional) Contact */
6992
+ ContactEmail?: string | undefined;
6993
+ /** Attachments */
6994
+ Attachments?: SupportAttachment[] | undefined;
6995
+ /** Request Key */
6996
+ RequestKey?: string | undefined;
6997
+ /** eTag */
6998
+ ETag?: string | undefined;
6999
+ }
6960
7000
  /** Legacy Site Authentication */
6961
7001
  export interface TabDisplay {
6962
7002
  /** Primary display of tab */
@@ -16,7 +16,7 @@ class AccountClient extends APIClientBase_1.APIClientBase {
16
16
  jsonParseReviver = undefined;
17
17
  constructor(baseUrl) {
18
18
  super();
19
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
19
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
20
20
  }
21
21
  /**
22
22
  * Authenticates a session and generates a FormsAuthenticationTicket and cookie
@@ -593,7 +593,7 @@ class ActionItemsClient extends APIClientBase_1.APIClientBase {
593
593
  jsonParseReviver = undefined;
594
594
  constructor(baseUrl) {
595
595
  super();
596
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
596
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
597
597
  }
598
598
  /**
599
599
  * Returns action items for specified User
@@ -1042,7 +1042,7 @@ class AlertsClient extends APIClientBase_1.APIClientBase {
1042
1042
  jsonParseReviver = undefined;
1043
1043
  constructor(baseUrl) {
1044
1044
  super();
1045
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
1045
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
1046
1046
  }
1047
1047
  /**
1048
1048
  * Returns alert items for a specified user
@@ -1452,7 +1452,7 @@ class LookupClient extends APIClientBase_1.APIClientBase {
1452
1452
  jsonParseReviver = undefined;
1453
1453
  constructor(baseUrl) {
1454
1454
  super();
1455
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
1455
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
1456
1456
  }
1457
1457
  /**
1458
1458
  * Returns list of alerts that are recorded about the specified source key
@@ -2864,7 +2864,7 @@ class CatalogClient extends APIClientBase_1.APIClientBase {
2864
2864
  jsonParseReviver = undefined;
2865
2865
  constructor(baseUrl) {
2866
2866
  super();
2867
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
2867
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
2868
2868
  }
2869
2869
  /**
2870
2870
  * Releases a resource, usually a PDF of a report or export
@@ -6247,7 +6247,7 @@ class ConfigClient extends APIClientBase_1.APIClientBase {
6247
6247
  jsonParseReviver = undefined;
6248
6248
  constructor(baseUrl) {
6249
6249
  super();
6250
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
6250
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
6251
6251
  }
6252
6252
  /**
6253
6253
  * Updates a flex key by name and segment number. Returns the new definition.
@@ -6711,7 +6711,7 @@ class ContactClient extends APIClientBase_1.APIClientBase {
6711
6711
  jsonParseReviver = undefined;
6712
6712
  constructor(baseUrl) {
6713
6713
  super();
6714
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
6714
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
6715
6715
  }
6716
6716
  /**
6717
6717
  * Adds the contact
@@ -7022,18 +7022,18 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
7022
7022
  jsonParseReviver = undefined;
7023
7023
  constructor(baseUrl) {
7024
7024
  super();
7025
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
7025
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
7026
7026
  }
7027
7027
  /**
7028
- * Returns the header Of the specified document, including a Document Session Key
7028
+ * Deletes the specified document
7029
7029
  * @param id Document Key
7030
7030
  */
7031
- getDocHeader(id) {
7031
+ deleteDocHeader(id) {
7032
7032
  return new Promise((resolve, reject) => {
7033
- this.getDocHeaderWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
7033
+ this.deleteDocHeaderWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
7034
7034
  });
7035
7035
  }
7036
- getDocHeaderWithCallbacks(id, onSuccess, onFail) {
7036
+ deleteDocHeaderWithCallbacks(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: "get",
7045
+ type: "delete",
7046
7046
  dataType: "text",
7047
7047
  headers: {
7048
- "Accept": "application/json"
7048
+ "Accept": "application/octet-stream"
7049
7049
  }
7050
7050
  }).done((_data, _textStatus, xhr) => {
7051
- this.processGetDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
7051
+ this.processDeleteDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
7052
7052
  }).fail((xhr) => {
7053
- this.processGetDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
7053
+ this.processDeleteDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
7054
7054
  });
7055
7055
  }
7056
- processGetDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
7056
+ processDeleteDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
7057
7057
  try {
7058
- let result = this.transformResult(_url, xhr, (xhr) => this.processGetDocHeader(xhr));
7058
+ let result = this.transformResult(_url, xhr, (xhr) => this.processDeleteDocHeader(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
- processGetDocHeader(xhr) {
7067
+ processDeleteDocHeader(xhr) {
7068
7068
  const status = xhr.status;
7069
7069
  let _headers = {};
7070
- if (status === 200) {
7070
+ if (status === 200 || status === 206) {
7071
7071
  const _responseText = xhr.responseText;
7072
7072
  let result200 = null;
7073
7073
  result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
@@ -7083,7 +7083,19 @@ 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 Not found, Or Not accessible", status, _responseText, _headers, result404);
7086
+ return throwException("Document not found, or not accessible", status, _responseText, _headers, result404);
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);
7087
7099
  }
7088
7100
  else if (status === 500) {
7089
7101
  const _responseText = xhr.responseText;
@@ -7098,37 +7110,41 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
7098
7110
  return null;
7099
7111
  }
7100
7112
  /**
7101
- * Deletes the specified document
7113
+ * Updates the header On the specified document
7102
7114
  * @param id Document Key
7115
+ * @param updatedData Replacement data
7103
7116
  */
7104
- deleteDocHeader(id) {
7117
+ updateDocHeader(id, updatedData) {
7105
7118
  return new Promise((resolve, reject) => {
7106
- this.deleteDocHeaderWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
7119
+ this.updateDocHeaderWithCallbacks(id, updatedData, (result) => resolve(result), (exception, _reason) => reject(exception));
7107
7120
  });
7108
7121
  }
7109
- deleteDocHeaderWithCallbacks(id, onSuccess, onFail) {
7122
+ updateDocHeaderWithCallbacks(id, updatedData, onSuccess, onFail) {
7110
7123
  let url_ = this.baseUrl + "/api/document/{id}";
7111
7124
  if (id === undefined || id === null)
7112
7125
  throw new globalThis.Error("The parameter 'id' must be defined.");
7113
7126
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
7114
7127
  url_ = url_.replace(/[?&]$/, "");
7128
+ const content_ = JSON.stringify(updatedData);
7115
7129
  jQuery.ajax({
7116
7130
  url: url_,
7117
7131
  beforeSend: this.beforeSend,
7118
- type: "delete",
7132
+ type: "put",
7133
+ data: content_,
7119
7134
  dataType: "text",
7120
7135
  headers: {
7136
+ "Content-Type": "application/json",
7121
7137
  "Accept": "application/octet-stream"
7122
7138
  }
7123
7139
  }).done((_data, _textStatus, xhr) => {
7124
- this.processDeleteDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
7140
+ this.processUpdateDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
7125
7141
  }).fail((xhr) => {
7126
- this.processDeleteDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
7142
+ this.processUpdateDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
7127
7143
  });
7128
7144
  }
7129
- processDeleteDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
7145
+ processUpdateDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
7130
7146
  try {
7131
- let result = this.transformResult(_url, xhr, (xhr) => this.processDeleteDocHeader(xhr));
7147
+ let result = this.transformResult(_url, xhr, (xhr) => this.processUpdateDocHeader(xhr));
7132
7148
  if (onSuccess !== undefined)
7133
7149
  onSuccess(result);
7134
7150
  }
@@ -7137,7 +7153,7 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
7137
7153
  onFail(e, "http_service_exception");
7138
7154
  }
7139
7155
  }
7140
- processDeleteDocHeader(xhr) {
7156
+ processUpdateDocHeader(xhr) {
7141
7157
  const status = xhr.status;
7142
7158
  let _headers = {};
7143
7159
  if (status === 200 || status === 206) {
@@ -7156,19 +7172,19 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
7156
7172
  const _responseText = xhr.responseText;
7157
7173
  let result404 = null;
7158
7174
  result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
7159
- return throwException("Document not found, or not accessible", status, _responseText, _headers, result404);
7175
+ return throwException("Document Not found, Or Not accessible", status, _responseText, _headers, result404);
7160
7176
  }
7161
7177
  else if (status === 406) {
7162
7178
  const _responseText = xhr.responseText;
7163
7179
  let result406 = null;
7164
7180
  result406 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
7165
- return throwException("Not acceptable", status, _responseText, _headers, result406);
7181
+ return throwException("Document number cannot be changed by this method", status, _responseText, _headers, result406);
7166
7182
  }
7167
7183
  else if (status === 409) {
7168
7184
  const _responseText = xhr.responseText;
7169
7185
  let result409 = null;
7170
7186
  result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
7171
- return throwException("Could Not persist the delete", status, _responseText, _headers, result409);
7187
+ return throwException("Could Not persist the update", status, _responseText, _headers, result409);
7172
7188
  }
7173
7189
  else if (status === 500) {
7174
7190
  const _responseText = xhr.responseText;
@@ -7183,41 +7199,37 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
7183
7199
  return null;
7184
7200
  }
7185
7201
  /**
7186
- * Updates the header On the specified document
7202
+ * Returns the header Of the specified document, including a Document Session Key
7187
7203
  * @param id Document Key
7188
- * @param updatedData Replacement data
7189
7204
  */
7190
- updateDocHeader(id, updatedData) {
7205
+ getDocHeader(id) {
7191
7206
  return new Promise((resolve, reject) => {
7192
- this.updateDocHeaderWithCallbacks(id, updatedData, (result) => resolve(result), (exception, _reason) => reject(exception));
7207
+ this.getDocHeaderWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
7193
7208
  });
7194
7209
  }
7195
- updateDocHeaderWithCallbacks(id, updatedData, onSuccess, onFail) {
7210
+ getDocHeaderWithCallbacks(id, onSuccess, onFail) {
7196
7211
  let url_ = this.baseUrl + "/api/document/{id}";
7197
7212
  if (id === undefined || id === null)
7198
7213
  throw new globalThis.Error("The parameter 'id' must be defined.");
7199
7214
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
7200
7215
  url_ = url_.replace(/[?&]$/, "");
7201
- const content_ = JSON.stringify(updatedData);
7202
7216
  jQuery.ajax({
7203
7217
  url: url_,
7204
7218
  beforeSend: this.beforeSend,
7205
- type: "put",
7206
- data: content_,
7219
+ type: "get",
7207
7220
  dataType: "text",
7208
7221
  headers: {
7209
- "Content-Type": "application/json",
7210
- "Accept": "application/octet-stream"
7222
+ "Accept": "application/json"
7211
7223
  }
7212
7224
  }).done((_data, _textStatus, xhr) => {
7213
- this.processUpdateDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
7225
+ this.processGetDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
7214
7226
  }).fail((xhr) => {
7215
- this.processUpdateDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
7227
+ this.processGetDocHeaderWithCallbacks(url_, xhr, onSuccess, onFail);
7216
7228
  });
7217
7229
  }
7218
- processUpdateDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
7230
+ processGetDocHeaderWithCallbacks(_url, xhr, onSuccess, onFail) {
7219
7231
  try {
7220
- let result = this.transformResult(_url, xhr, (xhr) => this.processUpdateDocHeader(xhr));
7232
+ let result = this.transformResult(_url, xhr, (xhr) => this.processGetDocHeader(xhr));
7221
7233
  if (onSuccess !== undefined)
7222
7234
  onSuccess(result);
7223
7235
  }
@@ -7226,10 +7238,10 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
7226
7238
  onFail(e, "http_service_exception");
7227
7239
  }
7228
7240
  }
7229
- processUpdateDocHeader(xhr) {
7241
+ processGetDocHeader(xhr) {
7230
7242
  const status = xhr.status;
7231
7243
  let _headers = {};
7232
- if (status === 200 || status === 206) {
7244
+ if (status === 200) {
7233
7245
  const _responseText = xhr.responseText;
7234
7246
  let result200 = null;
7235
7247
  result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
@@ -7247,18 +7259,6 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
7247
7259
  result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
7248
7260
  return throwException("Document Not found, Or Not accessible", status, _responseText, _headers, result404);
7249
7261
  }
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;
@@ -15747,7 +15747,7 @@ class ExcelToolsClient extends APIClientBase_1.APIClientBase {
15747
15747
  jsonParseReviver = undefined;
15748
15748
  constructor(baseUrl) {
15749
15749
  super();
15750
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
15750
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
15751
15751
  }
15752
15752
  /**
15753
15753
  * Returns a financial snapshot
@@ -16538,7 +16538,7 @@ class ProjectToolsClient extends APIClientBase_1.APIClientBase {
16538
16538
  jsonParseReviver = undefined;
16539
16539
  constructor(baseUrl) {
16540
16540
  super();
16541
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
16541
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
16542
16542
  }
16543
16543
  /**
16544
16544
  * Removes/clears a Project Budget and optionally the entire Project (if uncommitted)
@@ -18739,7 +18739,7 @@ class ProjectDocListClient extends APIClientBase_1.APIClientBase {
18739
18739
  jsonParseReviver = undefined;
18740
18740
  constructor(baseUrl) {
18741
18741
  super();
18742
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
18742
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
18743
18743
  }
18744
18744
  /**
18745
18745
  * Returns full list of documents on a project that match the requested document type
@@ -19063,7 +19063,7 @@ class ProjectKPIClient extends APIClientBase_1.APIClientBase {
19063
19063
  jsonParseReviver = undefined;
19064
19064
  constructor(baseUrl) {
19065
19065
  super();
19066
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
19066
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
19067
19067
  }
19068
19068
  /**
19069
19069
  * Returns list of KPI facts for the specified project
@@ -19146,7 +19146,7 @@ class ProjectTeamClient extends APIClientBase_1.APIClientBase {
19146
19146
  jsonParseReviver = undefined;
19147
19147
  constructor(baseUrl) {
19148
19148
  super();
19149
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
19149
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
19150
19150
  }
19151
19151
  /**
19152
19152
  * Returns members of the specified project team
@@ -19676,7 +19676,7 @@ class ProjectsClient extends APIClientBase_1.APIClientBase {
19676
19676
  jsonParseReviver = undefined;
19677
19677
  constructor(baseUrl) {
19678
19678
  super();
19679
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
19679
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
19680
19680
  }
19681
19681
  /**
19682
19682
  * Returns projects that match User and hidden filter
@@ -20202,7 +20202,7 @@ class SessionClient extends APIClientBase_1.APIClientBase {
20202
20202
  jsonParseReviver = undefined;
20203
20203
  constructor(baseUrl) {
20204
20204
  super();
20205
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
20205
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
20206
20206
  }
20207
20207
  /**
20208
20208
  * Removes a specific users session; see also api/system/users/idle to auto-prune
@@ -22324,7 +22324,7 @@ class SystemClient extends APIClientBase_1.APIClientBase {
22324
22324
  jsonParseReviver = undefined;
22325
22325
  constructor(baseUrl) {
22326
22326
  super();
22327
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
22327
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
22328
22328
  }
22329
22329
  /**
22330
22330
  * Returns site branding label
@@ -23736,6 +23736,85 @@ class SystemClient extends APIClientBase_1.APIClientBase {
23736
23736
  }
23737
23737
  return null;
23738
23738
  }
23739
+ /**
23740
+ * Creates a case
23741
+ * @param request The request outline
23742
+ */
23743
+ postSupportCase(request) {
23744
+ return new Promise((resolve, reject) => {
23745
+ this.postSupportCaseWithCallbacks(request, (result) => resolve(result), (exception, _reason) => reject(exception));
23746
+ });
23747
+ }
23748
+ postSupportCaseWithCallbacks(request, onSuccess, onFail) {
23749
+ let url_ = this.baseUrl + "/api/system/supportcase";
23750
+ url_ = url_.replace(/[?&]$/, "");
23751
+ const content_ = JSON.stringify(request);
23752
+ jQuery.ajax({
23753
+ url: url_,
23754
+ beforeSend: this.beforeSend,
23755
+ type: "post",
23756
+ data: content_,
23757
+ dataType: "text",
23758
+ headers: {
23759
+ "Content-Type": "application/json",
23760
+ "Accept": "application/json"
23761
+ }
23762
+ }).done((_data, _textStatus, xhr) => {
23763
+ this.processPostSupportCaseWithCallbacks(url_, xhr, onSuccess, onFail);
23764
+ }).fail((xhr) => {
23765
+ this.processPostSupportCaseWithCallbacks(url_, xhr, onSuccess, onFail);
23766
+ });
23767
+ }
23768
+ processPostSupportCaseWithCallbacks(_url, xhr, onSuccess, onFail) {
23769
+ try {
23770
+ let result = this.transformResult(_url, xhr, (xhr) => this.processPostSupportCase(xhr));
23771
+ if (onSuccess !== undefined)
23772
+ onSuccess(result);
23773
+ }
23774
+ catch (e) {
23775
+ if (onFail !== undefined)
23776
+ onFail(e, "http_service_exception");
23777
+ }
23778
+ }
23779
+ processPostSupportCase(xhr) {
23780
+ const status = xhr.status;
23781
+ let _headers = {};
23782
+ if (status === 200) {
23783
+ const _responseText = xhr.responseText;
23784
+ let result200 = null;
23785
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
23786
+ return result200;
23787
+ }
23788
+ else if (status === 400) {
23789
+ const _responseText = xhr.responseText;
23790
+ let result400 = null;
23791
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
23792
+ return throwException("Incorrect site key or email", status, _responseText, _headers, result400);
23793
+ }
23794
+ else if (status === 401) {
23795
+ const _responseText = xhr.responseText;
23796
+ let result401 = null;
23797
+ result401 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
23798
+ return throwException("Site not on maintenance", status, _responseText, _headers, result401);
23799
+ }
23800
+ else if (status === 404) {
23801
+ const _responseText = xhr.responseText;
23802
+ let result404 = null;
23803
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
23804
+ return throwException("not found", status, _responseText, _headers, result404);
23805
+ }
23806
+ else if (status === 500) {
23807
+ const _responseText = xhr.responseText;
23808
+ let result500 = null;
23809
+ result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
23810
+ return throwException("Backend Failure", status, _responseText, _headers, result500);
23811
+ }
23812
+ else if (status !== 200 && status !== 204) {
23813
+ const _responseText = xhr.responseText;
23814
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23815
+ }
23816
+ return null;
23817
+ }
23739
23818
  /**
23740
23819
  * Returns list of active users
23741
23820
  */
@@ -23938,7 +24017,7 @@ class UICFGClient extends APIClientBase_1.APIClientBase {
23938
24017
  jsonParseReviver = undefined;
23939
24018
  constructor(baseUrl) {
23940
24019
  super();
23941
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
24020
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
23942
24021
  }
23943
24022
  /**
23944
24023
  * Returns Live UI CFG data for this user for the requested part
@@ -24407,7 +24486,7 @@ class XTSClient extends APIClientBase_1.APIClientBase {
24407
24486
  jsonParseReviver = undefined;
24408
24487
  constructor(baseUrl) {
24409
24488
  super();
24410
- this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/sfPMS");
24489
+ this.baseUrl = baseUrl ?? this.getBaseUrl("https://dev.spitfirepm.com:8443/SFPMS");
24411
24490
  }
24412
24491
  /**
24413
24492
  * Requests the document be requeued for cloud sync