spitfirepm 1.10.83 → 1.10.87
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 +6516 -6383
- package/dist/SwaggerClients.js +8746 -8213
- package/dist/SwaggerClients.js.map +1 -1
- package/dist/sfRESTClient.d.ts +4 -3
- package/dist/sfRESTClient.js +15 -18
- package/dist/sfRESTClient.js.map +1 -1
- package/package.json +1 -1
package/dist/sfRESTClient.d.ts
CHANGED
|
@@ -203,15 +203,14 @@ export declare class sfRestClient {
|
|
|
203
203
|
/**
|
|
204
204
|
* Returns a View Model constructured for the result rows matching specified lookup context and filters
|
|
205
205
|
* @param lookupName
|
|
206
|
-
* @param
|
|
207
|
-
* @param filterValues default to {}
|
|
206
|
+
* @param filterValues default to {} can include NVPs and zero to 4 dependsOn strings
|
|
208
207
|
* @returns
|
|
209
208
|
*/
|
|
210
209
|
GetLookupResults(lookupName: string,
|
|
211
210
|
/**
|
|
212
211
|
* either a string or string array (up to 4 elements);
|
|
213
212
|
*/
|
|
214
|
-
|
|
213
|
+
filterValues: QueryFilters): Promise<DataModelCollection>;
|
|
215
214
|
/**
|
|
216
215
|
* Get Display Value using DV-Name and key value, with 0 to 4 dependencies.
|
|
217
216
|
* @param displayName the name of a display value rule (eg sfUser, RoleName, etc)
|
|
@@ -415,6 +414,8 @@ export declare class sfRestClient {
|
|
|
415
414
|
*/
|
|
416
415
|
CEFormatStringValue(inputString: string, inputMask: string): string;
|
|
417
416
|
GetPageQueryParameterByName(name: string): string;
|
|
417
|
+
/** Returns the search or hash portion of the page location */
|
|
418
|
+
GetPageQueryContent(): string;
|
|
418
419
|
GetPageProjectKey(pageTypeName?: PageTypeName): string;
|
|
419
420
|
/** display support panel */
|
|
420
421
|
InvokeSupportPanel(): void;
|
package/dist/sfRESTClient.js
CHANGED
|
@@ -7,7 +7,7 @@ const _SwaggerClientExports = require("./SwaggerClients");
|
|
|
7
7
|
const $ = require("jquery");
|
|
8
8
|
const BrowserExtensionChecker_1 = require("./BrowserExtensionChecker");
|
|
9
9
|
//import {dialog} from "jquery-ui";
|
|
10
|
-
const ClientPackageVersion = "1.10.
|
|
10
|
+
const ClientPackageVersion = "1.10.87";
|
|
11
11
|
//export type GUID = string //& { isGuid: true };
|
|
12
12
|
/* eslint-disable prefer-template */
|
|
13
13
|
/* eslint-disable no-extend-native */
|
|
@@ -847,7 +847,7 @@ class sfRestClient {
|
|
|
847
847
|
*/
|
|
848
848
|
dependsOn, limit) {
|
|
849
849
|
var apiResultPromise;
|
|
850
|
-
|
|
850
|
+
var RESTClient = this;
|
|
851
851
|
var api = new SwaggerClients_1.LookupClient(this._SiteURL);
|
|
852
852
|
var DependsOnSet = ["", "", "", "", ""];
|
|
853
853
|
if (Array.isArray(dependsOn)) {
|
|
@@ -861,33 +861,25 @@ class sfRestClient {
|
|
|
861
861
|
SuggestionContext.DependsOn = DependsOnSet;
|
|
862
862
|
SuggestionContext.MatchingSeed = seedValue;
|
|
863
863
|
SuggestionContext.ResultLimit = limit;
|
|
864
|
-
var apiResultPromise = api.getSuggestionsWithContext(lookupName, "
|
|
864
|
+
var apiResultPromise = api.getSuggestionsWithContext(lookupName, RESTClient.GetPageContextValue("dsCacheKey"), SuggestionContext);
|
|
865
865
|
return apiResultPromise;
|
|
866
866
|
}
|
|
867
867
|
/**
|
|
868
868
|
* Returns a View Model constructured for the result rows matching specified lookup context and filters
|
|
869
869
|
* @param lookupName
|
|
870
|
-
* @param
|
|
871
|
-
* @param filterValues default to {}
|
|
870
|
+
* @param filterValues default to {} can include NVPs and zero to 4 dependsOn strings
|
|
872
871
|
* @returns
|
|
873
872
|
*/
|
|
874
873
|
GetLookupResults(lookupName,
|
|
875
874
|
/**
|
|
876
875
|
* either a string or string array (up to 4 elements);
|
|
877
876
|
*/
|
|
878
|
-
|
|
877
|
+
filterValues) {
|
|
879
878
|
var apiResultPromise;
|
|
880
|
-
|
|
879
|
+
var RESTClient = this;
|
|
881
880
|
var api = new SwaggerClients_1.LookupClient(this._SiteURL);
|
|
882
|
-
var DependsOnSet = ["", "", "", "", ""];
|
|
883
|
-
if (Array.isArray(dependsOn)) {
|
|
884
|
-
$.each(dependsOn, function (i, v) { DependsOnSet[i] = v; });
|
|
885
|
-
}
|
|
886
|
-
else if (dependsOn) {
|
|
887
|
-
DependsOnSet[0] = dependsOn;
|
|
888
|
-
}
|
|
889
881
|
var FinalViewModelPromise = new Promise((finalResolve) => {
|
|
890
|
-
apiResultPromise = api.
|
|
882
|
+
apiResultPromise = api.getLookupResultAll(lookupName, RESTClient.GetPageContextValue("dsCacheKey"), filterValues);
|
|
891
883
|
apiResultPromise.then((lookupResultData) => {
|
|
892
884
|
var thisPart = PartStorageData.PartStorageDataLookupFactory(this, lookupName);
|
|
893
885
|
thisPart.CFGLoader().then(() => {
|
|
@@ -1257,7 +1249,7 @@ class sfRestClient {
|
|
|
1257
1249
|
api = new SwaggerClients_1.SessionClient(this._SiteURL);
|
|
1258
1250
|
if (sfRestClient._Options.LogLevel >= LoggingLevels.Debug)
|
|
1259
1251
|
console.log(`LoadWCC(${RESTClient.ThisInstanceID}) Creating getWCC request for HREF hash ${ForPageHash}`);
|
|
1260
|
-
apiResult = api.getWCC();
|
|
1252
|
+
apiResult = api.getWCC(RESTClient.GetPageQueryContent());
|
|
1261
1253
|
sfRestClient._SessionClientGetWCC = new _SessionClientGetWCCShare(apiResult, ForPageHash);
|
|
1262
1254
|
}
|
|
1263
1255
|
if (!apiResult)
|
|
@@ -1948,11 +1940,16 @@ class sfRestClient {
|
|
|
1948
1940
|
}
|
|
1949
1941
|
GetPageQueryParameterByName(name) {
|
|
1950
1942
|
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
|
|
1943
|
+
var QPSource = this.GetPageQueryContent();
|
|
1944
|
+
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(QPSource);
|
|
1945
|
+
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
|
|
1946
|
+
}
|
|
1947
|
+
/** Returns the search or hash portion of the page location */
|
|
1948
|
+
GetPageQueryContent() {
|
|
1951
1949
|
var QPSource = location.search;
|
|
1952
1950
|
if (!QPSource)
|
|
1953
1951
|
QPSource = location.hash;
|
|
1954
|
-
|
|
1955
|
-
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
|
|
1952
|
+
return QPSource;
|
|
1956
1953
|
}
|
|
1957
1954
|
GetPageProjectKey(pageTypeName) {
|
|
1958
1955
|
var Context = location.href;
|