spitfirepm 23.9600.17 → 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 CHANGED
@@ -25,6 +25,7 @@ apiResult.then( (a) => {
25
25
  ### Change Log
26
26
 
27
27
  ```
28
+ 23.9600.18 - Project Program
28
29
  23.9600.17 - Improves Analytics opt out
29
30
  23.9600.15 - Improves ConfigController
30
31
  23.9600.13 - ARR cleanup
@@ -1862,6 +1862,14 @@ export declare class DocumentToolsClient extends APIClientBase {
1862
1862
  private addDocCommentsWithCallbacks;
1863
1863
  private processAddDocCommentsWithCallbacks;
1864
1864
  protected processAddDocComments(xhr: any): Comment | null | null;
1865
+ /**
1866
+ * Returns the compliance for the specified document
1867
+ * @param id Document Key
1868
+ */
1869
+ getDocCompliance(id: string): Promise<DocCompliance[] | null>;
1870
+ private getDocComplianceWithCallbacks;
1871
+ private processGetDocComplianceWithCallbacks;
1872
+ protected processGetDocCompliance(xhr: any): DocCompliance[] | null | null;
1865
1873
  /**
1866
1874
  * Deletes the compliance on the specified document
1867
1875
  * @param id Document Key
@@ -1891,14 +1899,6 @@ export declare class DocumentToolsClient extends APIClientBase {
1891
1899
  private addDocComplianceWithCallbacks;
1892
1900
  private processAddDocComplianceWithCallbacks;
1893
1901
  protected processAddDocCompliance(xhr: any): DocCompliance | null | null;
1894
- /**
1895
- * Returns the compliance for the specified document
1896
- * @param id Document Key
1897
- */
1898
- getDocCompliance(id: string): Promise<DocCompliance[] | null>;
1899
- private getDocComplianceWithCallbacks;
1900
- private processGetDocComplianceWithCallbacks;
1901
- protected processGetDocCompliance(xhr: any): DocCompliance[] | null | null;
1902
1902
  /**
1903
1903
  * Returns the Project Details based on the specified document. Update using PatchDocData
1904
1904
  * @param id Document Key
@@ -1916,14 +1916,6 @@ export declare class DocumentToolsClient extends APIClientBase {
1916
1916
  private addDocDateWithCallbacks;
1917
1917
  private processAddDocDateWithCallbacks;
1918
1918
  protected processAddDocDate(xhr: any): DocDate | null | null;
1919
- /**
1920
- * Returns the dates for the specified document
1921
- * @param id Document Key
1922
- */
1923
- getDocDates(id: string): Promise<DocDate[] | null>;
1924
- private getDocDatesWithCallbacks;
1925
- private processGetDocDatesWithCallbacks;
1926
- protected processGetDocDates(xhr: any): DocDate[] | null | null;
1927
1919
  /**
1928
1920
  * Deletes a specific date from the specified document
1929
1921
  * @param id Document Key
@@ -1944,6 +1936,14 @@ export declare class DocumentToolsClient extends APIClientBase {
1944
1936
  private updateDocDatesWithCallbacks;
1945
1937
  private processUpdateDocDatesWithCallbacks;
1946
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;
1947
1947
  /**
1948
1948
  * Information about actions for the specified document
1949
1949
  * @param id Document Key
@@ -3417,7 +3417,7 @@ export declare class SystemClient extends APIClientBase {
3417
3417
  protected processObfuscateData(xhr: any): string | null;
3418
3418
  /**
3419
3419
  * Returns list of active document/process types
3420
- * @param key Use 00000000-1000-0000-1000-000000000000 for all active processes
3420
+ * @param key Use 00000000-0000-0000-0000-000000000000 for all active processes
3421
3421
  */
3422
3422
  getProcessList(key: string): Promise<ProcessDocumentType[] | null>;
3423
3423
  private getProcessListWithCallbacks;
@@ -7112,7 +7112,7 @@ export interface ProjectLink {
7112
7112
  /** eTag */
7113
7113
  ETag?: string | undefined;
7114
7114
  }
7115
- /** Describes the link between a project and a program (xsfProgramProjectMap) */
7115
+ /** Describes the link between a project and a program (xsfProgramProjectMap via Project Abstract) */
7116
7116
  export interface ProjectPrograms {
7117
7117
  /** Key for this entity */
7118
7118
  PgmPjtMapKey: string;
@@ -7120,7 +7120,11 @@ export interface ProjectPrograms {
7120
7120
  ProgramKey: string;
7121
7121
  /** Project Key (xsfProject) */
7122
7122
  ProjectKey: string;
7123
- /** When */
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 */
7124
7128
  Created: Date;
7125
7129
  /** When True, this program is active */
7126
7130
  Active?: boolean;
@@ -14331,6 +14331,12 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
14331
14331
  result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
14332
14332
  return result200;
14333
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
+ }
14334
14340
  else if (status === 401) {
14335
14341
  const _responseText = xhr.responseText;
14336
14342
  let result401 = null;
@@ -16967,6 +16973,61 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
16967
16973
  }
16968
16974
  return null;
16969
16975
  }
16976
+ /**
16977
+ * Returns the compliance for the specified document
16978
+ * @param id Document Key
16979
+ */
16980
+ getDocCompliance(id) {
16981
+ return new Promise((resolve, reject) => {
16982
+ this.getDocComplianceWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
16983
+ });
16984
+ }
16985
+ getDocComplianceWithCallbacks(id, onSuccess, onFail) {
16986
+ let url_ = this.baseUrl + "/api/document/{id}/compliance";
16987
+ if (id === undefined || id === null)
16988
+ throw new globalThis.Error("The parameter 'id' must be defined.");
16989
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
16990
+ url_ = url_.replace(/[?&]$/, "");
16991
+ jQuery.ajax({
16992
+ url: url_,
16993
+ beforeSend: this.beforeSend,
16994
+ type: "get",
16995
+ dataType: "text",
16996
+ headers: {
16997
+ "Accept": "application/json"
16998
+ }
16999
+ }).done((_data, _textStatus, xhr) => {
17000
+ this.processGetDocComplianceWithCallbacks(url_, xhr, onSuccess, onFail);
17001
+ }).fail((xhr) => {
17002
+ this.processGetDocComplianceWithCallbacks(url_, xhr, onSuccess, onFail);
17003
+ });
17004
+ }
17005
+ processGetDocComplianceWithCallbacks(_url, xhr, onSuccess, onFail) {
17006
+ try {
17007
+ let result = this.transformResult(_url, xhr, (xhr) => this.processGetDocCompliance(xhr));
17008
+ if (onSuccess !== undefined)
17009
+ onSuccess(result);
17010
+ }
17011
+ catch (e) {
17012
+ if (onFail !== undefined)
17013
+ onFail(e, "http_service_exception");
17014
+ }
17015
+ }
17016
+ processGetDocCompliance(xhr) {
17017
+ const status = xhr.status;
17018
+ let _headers = {};
17019
+ if (status === 200) {
17020
+ const _responseText = xhr.responseText;
17021
+ let result200 = null;
17022
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17023
+ return result200;
17024
+ }
17025
+ else if (status !== 200 && status !== 204) {
17026
+ const _responseText = xhr.responseText;
17027
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17028
+ }
17029
+ return null;
17030
+ }
16970
17031
  /**
16971
17032
  * Deletes the compliance on the specified document
16972
17033
  * @param id Document Key
@@ -17230,61 +17291,6 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
17230
17291
  }
17231
17292
  return null;
17232
17293
  }
17233
- /**
17234
- * Returns the compliance for the specified document
17235
- * @param id Document Key
17236
- */
17237
- getDocCompliance(id) {
17238
- return new Promise((resolve, reject) => {
17239
- this.getDocComplianceWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
17240
- });
17241
- }
17242
- getDocComplianceWithCallbacks(id, onSuccess, onFail) {
17243
- let url_ = this.baseUrl + "/api/document/{id}/compliance";
17244
- if (id === undefined || id === null)
17245
- throw new globalThis.Error("The parameter 'id' must be defined.");
17246
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
17247
- url_ = url_.replace(/[?&]$/, "");
17248
- jQuery.ajax({
17249
- url: url_,
17250
- beforeSend: this.beforeSend,
17251
- type: "get",
17252
- dataType: "text",
17253
- headers: {
17254
- "Accept": "application/json"
17255
- }
17256
- }).done((_data, _textStatus, xhr) => {
17257
- this.processGetDocComplianceWithCallbacks(url_, xhr, onSuccess, onFail);
17258
- }).fail((xhr) => {
17259
- this.processGetDocComplianceWithCallbacks(url_, xhr, onSuccess, onFail);
17260
- });
17261
- }
17262
- processGetDocComplianceWithCallbacks(_url, xhr, onSuccess, onFail) {
17263
- try {
17264
- let result = this.transformResult(_url, xhr, (xhr) => this.processGetDocCompliance(xhr));
17265
- if (onSuccess !== undefined)
17266
- onSuccess(result);
17267
- }
17268
- catch (e) {
17269
- if (onFail !== undefined)
17270
- onFail(e, "http_service_exception");
17271
- }
17272
- }
17273
- processGetDocCompliance(xhr) {
17274
- const status = xhr.status;
17275
- let _headers = {};
17276
- if (status === 200) {
17277
- const _responseText = xhr.responseText;
17278
- let result200 = null;
17279
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17280
- return result200;
17281
- }
17282
- else if (status !== 200 && status !== 204) {
17283
- const _responseText = xhr.responseText;
17284
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17285
- }
17286
- return null;
17287
- }
17288
17294
  /**
17289
17295
  * Returns the Project Details based on the specified document. Update using PatchDocData
17290
17296
  * @param id Document Key
@@ -17453,61 +17459,6 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
17453
17459
  }
17454
17460
  return null;
17455
17461
  }
17456
- /**
17457
- * Returns the dates for the specified document
17458
- * @param id Document Key
17459
- */
17460
- getDocDates(id) {
17461
- return new Promise((resolve, reject) => {
17462
- this.getDocDatesWithCallbacks(id, (result) => resolve(result), (exception, _reason) => reject(exception));
17463
- });
17464
- }
17465
- getDocDatesWithCallbacks(id, onSuccess, onFail) {
17466
- let url_ = this.baseUrl + "/api/document/{id}/dates";
17467
- if (id === undefined || id === null)
17468
- throw new globalThis.Error("The parameter 'id' must be defined.");
17469
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
17470
- url_ = url_.replace(/[?&]$/, "");
17471
- jQuery.ajax({
17472
- url: url_,
17473
- beforeSend: this.beforeSend,
17474
- type: "get",
17475
- dataType: "text",
17476
- headers: {
17477
- "Accept": "application/json"
17478
- }
17479
- }).done((_data, _textStatus, xhr) => {
17480
- this.processGetDocDatesWithCallbacks(url_, xhr, onSuccess, onFail);
17481
- }).fail((xhr) => {
17482
- this.processGetDocDatesWithCallbacks(url_, xhr, onSuccess, onFail);
17483
- });
17484
- }
17485
- processGetDocDatesWithCallbacks(_url, xhr, onSuccess, onFail) {
17486
- try {
17487
- let result = this.transformResult(_url, xhr, (xhr) => this.processGetDocDates(xhr));
17488
- if (onSuccess !== undefined)
17489
- onSuccess(result);
17490
- }
17491
- catch (e) {
17492
- if (onFail !== undefined)
17493
- onFail(e, "http_service_exception");
17494
- }
17495
- }
17496
- processGetDocDates(xhr) {
17497
- const status = xhr.status;
17498
- let _headers = {};
17499
- if (status === 200) {
17500
- const _responseText = xhr.responseText;
17501
- let result200 = null;
17502
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17503
- return result200;
17504
- }
17505
- else if (status !== 200 && status !== 204) {
17506
- const _responseText = xhr.responseText;
17507
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17508
- }
17509
- return null;
17510
- }
17511
17462
  /**
17512
17463
  * Deletes a specific date from the specified document
17513
17464
  * @param id Document Key
@@ -17682,6 +17633,61 @@ class DocumentToolsClient extends APIClientBase_1.APIClientBase {
17682
17633
  }
17683
17634
  return null;
17684
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
+ }
17685
17691
  /**
17686
17692
  * Information about actions for the specified document
17687
17693
  * @param id Document Key
@@ -30367,7 +30373,7 @@ class SystemClient extends APIClientBase_1.APIClientBase {
30367
30373
  }
30368
30374
  /**
30369
30375
  * Returns list of active document/process types
30370
- * @param key Use 00000000-1000-0000-1000-000000000000 for all active processes
30376
+ * @param key Use 00000000-0000-0000-0000-000000000000 for all active processes
30371
30377
  */
30372
30378
  getProcessList(key) {
30373
30379
  return new Promise((resolve, reject) => {