@transcend-io/cli 4.108.0 → 4.109.1
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 +103 -3
- package/build/ai/TranscendPromptManager.d.ts +137 -0
- package/build/ai/TranscendPromptManager.d.ts.map +1 -0
- package/build/ai/TranscendPromptManager.js +159 -0
- package/build/ai/TranscendPromptManager.js.map +1 -0
- package/build/ai/index.d.ts +1 -1
- package/build/ai/index.d.ts.map +1 -1
- package/build/ai/index.js +1 -1
- package/build/ai/index.js.map +1 -1
- package/build/codecs.d.ts +95 -1
- package/build/codecs.d.ts.map +1 -1
- package/build/codecs.js +56 -2
- package/build/codecs.js.map +1 -1
- package/build/constants.d.ts.map +1 -1
- package/build/constants.js +8 -0
- package/build/constants.js.map +1 -1
- package/build/enums.d.ts +5 -1
- package/build/enums.d.ts.map +1 -1
- package/build/enums.js +4 -0
- package/build/enums.js.map +1 -1
- package/build/graphql/fetchAllActions.js +1 -1
- package/build/graphql/fetchAllActions.js.map +1 -1
- package/build/graphql/fetchAllAttributeKeys.js +1 -1
- package/build/graphql/fetchAllAttributeKeys.js.map +1 -1
- package/build/graphql/fetchAllBusinessEntities.js +1 -1
- package/build/graphql/fetchAllBusinessEntities.js.map +1 -1
- package/build/graphql/fetchAssessmentTemplates.js +1 -1
- package/build/graphql/fetchAssessmentTemplates.js.map +1 -1
- package/build/graphql/fetchAssessments.js +1 -1
- package/build/graphql/fetchAssessments.js.map +1 -1
- package/build/graphql/fetchIdentifiers.js +1 -1
- package/build/graphql/fetchIdentifiers.js.map +1 -1
- package/build/graphql/fetchPromptGroups.d.ts +22 -0
- package/build/graphql/fetchPromptGroups.d.ts.map +1 -0
- package/build/graphql/fetchPromptGroups.js +32 -0
- package/build/graphql/fetchPromptGroups.js.map +1 -0
- package/build/graphql/fetchPromptPartials.d.ts +17 -0
- package/build/graphql/fetchPromptPartials.d.ts.map +1 -0
- package/build/graphql/fetchPromptPartials.js +32 -0
- package/build/graphql/fetchPromptPartials.js.map +1 -0
- package/build/graphql/fetchPromptTemplates.d.ts +17 -0
- package/build/graphql/fetchPromptTemplates.d.ts.map +1 -0
- package/build/graphql/fetchPromptTemplates.js +32 -0
- package/build/graphql/fetchPromptTemplates.js.map +1 -0
- package/build/graphql/fetchPrompts.d.ts +83 -0
- package/build/graphql/fetchPrompts.d.ts.map +1 -0
- package/build/graphql/fetchPrompts.js +55 -0
- package/build/graphql/fetchPrompts.js.map +1 -0
- package/build/graphql/gqls/RequestDataSilo.js +1 -1
- package/build/graphql/gqls/RequestEnricher.js +1 -1
- package/build/graphql/gqls/RequestIdentifier.js +1 -1
- package/build/graphql/gqls/action.js +1 -1
- package/build/graphql/gqls/apiKey.js +1 -1
- package/build/graphql/gqls/assessment.js +3 -3
- package/build/graphql/gqls/attribute.d.ts.map +1 -1
- package/build/graphql/gqls/attribute.js +2 -3
- package/build/graphql/gqls/attribute.js.map +1 -1
- package/build/graphql/gqls/attributeKey.js +1 -1
- package/build/graphql/gqls/catalog.d.ts.map +1 -1
- package/build/graphql/gqls/catalog.js +1 -2
- package/build/graphql/gqls/catalog.js.map +1 -1
- package/build/graphql/gqls/consentManager.d.ts.map +1 -1
- package/build/graphql/gqls/consentManager.js +1 -2
- package/build/graphql/gqls/consentManager.js.map +1 -1
- package/build/graphql/gqls/dataPoint.js +1 -1
- package/build/graphql/gqls/enricher.js +1 -1
- package/build/graphql/gqls/identifier.js +1 -1
- package/build/graphql/gqls/index.d.ts +1 -0
- package/build/graphql/gqls/index.d.ts.map +1 -1
- package/build/graphql/gqls/index.js +1 -0
- package/build/graphql/gqls/index.js.map +1 -1
- package/build/graphql/gqls/prompt.d.ts +14 -0
- package/build/graphql/gqls/prompt.d.ts.map +1 -0
- package/build/graphql/gqls/prompt.js +183 -0
- package/build/graphql/gqls/prompt.js.map +1 -0
- package/build/graphql/gqls/template.d.ts.map +1 -1
- package/build/graphql/gqls/template.js +8 -4
- package/build/graphql/gqls/template.js.map +1 -1
- package/build/graphql/index.d.ts +5 -0
- package/build/graphql/index.d.ts.map +1 -1
- package/build/graphql/index.js +5 -0
- package/build/graphql/index.js.map +1 -1
- package/build/graphql/pullTranscendConfiguration.d.ts.map +1 -1
- package/build/graphql/pullTranscendConfiguration.js +50 -1
- package/build/graphql/pullTranscendConfiguration.js.map +1 -1
- package/build/graphql/syncConfigurationToTranscend.d.ts.map +1 -1
- package/build/graphql/syncConfigurationToTranscend.js +22 -1
- package/build/graphql/syncConfigurationToTranscend.js.map +1 -1
- package/build/graphql/syncDataSilos.js +2 -2
- package/build/graphql/syncDataSilos.js.map +1 -1
- package/build/graphql/syncEnrichers.js +2 -2
- package/build/graphql/syncEnrichers.js.map +1 -1
- package/build/graphql/syncPromptGroups.d.ts +34 -0
- package/build/graphql/syncPromptGroups.d.ts.map +1 -0
- package/build/graphql/syncPromptGroups.js +126 -0
- package/build/graphql/syncPromptGroups.js.map +1 -0
- package/build/graphql/syncPromptPartials.d.ts +32 -0
- package/build/graphql/syncPromptPartials.d.ts.map +1 -0
- package/build/graphql/syncPromptPartials.js +102 -0
- package/build/graphql/syncPromptPartials.js.map +1 -0
- package/build/graphql/syncPromptTemplates.d.ts +32 -0
- package/build/graphql/syncPromptTemplates.d.ts.map +1 -0
- package/build/graphql/syncPromptTemplates.js +102 -0
- package/build/graphql/syncPromptTemplates.js.map +1 -0
- package/build/graphql/syncPrompts.d.ts +32 -0
- package/build/graphql/syncPrompts.d.ts.map +1 -0
- package/build/graphql/syncPrompts.js +102 -0
- package/build/graphql/syncPrompts.js.map +1 -0
- package/build/tests/TranscendPromptManager.test.d.ts +2 -0
- package/build/tests/TranscendPromptManager.test.d.ts.map +1 -0
- package/build/tests/{TranscendAiPrompt.test.js → TranscendPromptManager.test.js} +25 -13
- package/build/tests/TranscendPromptManager.test.js.map +1 -0
- package/build/tsbuildinfo +1 -1
- package/package.json +2 -2
- package/build/ai/TranscendAiPrompt.d.ts +0 -59
- package/build/ai/TranscendAiPrompt.d.ts.map +0 -1
- package/build/ai/TranscendAiPrompt.js +0 -129
- package/build/ai/TranscendAiPrompt.js.map +0 -1
- package/build/tests/TranscendAiPrompt.test.d.ts +0 -2
- package/build/tests/TranscendAiPrompt.test.d.ts.map +0 -1
- package/build/tests/TranscendAiPrompt.test.js.map +0 -1
package/build/enums.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,qBAAqB;IAC/B,OAAO,YAAY;IACnB,kBAAkB,uBAAuB;IACzC,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,gBAAgB,qBAAqB;IACrC,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,cAAc,mBAAmB;
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,qBAAqB;IAC/B,OAAO,YAAY;IACnB,kBAAkB,uBAAuB;IACzC,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,gBAAgB,qBAAqB;IACrC,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,cAAc,mBAAmB;IACjC,OAAO,YAAY;IACnB,eAAe,oBAAoB;IACnC,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;CAC9B"}
|
package/build/enums.js
CHANGED
|
@@ -20,5 +20,9 @@ var TranscendPullResource;
|
|
|
20
20
|
TranscendPullResource["Identifiers"] = "identifiers";
|
|
21
21
|
TranscendPullResource["Cookies"] = "cookies";
|
|
22
22
|
TranscendPullResource["ConsentManager"] = "consentManager";
|
|
23
|
+
TranscendPullResource["Prompts"] = "prompts";
|
|
24
|
+
TranscendPullResource["PromptTemplates"] = "promptTemplates";
|
|
25
|
+
TranscendPullResource["PromptPartials"] = "promptPartials";
|
|
26
|
+
TranscendPullResource["PromptGroups"] = "promptGroups";
|
|
23
27
|
})(TranscendPullResource = exports.TranscendPullResource || (exports.TranscendPullResource = {}));
|
|
24
28
|
//# sourceMappingURL=enums.js.map
|
package/build/enums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,qBAmBX;AAnBD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,kEAAyC,CAAA;IACzC,kDAAyB,CAAA;IACzB,kDAAyB,CAAA;IACzB,gDAAuB,CAAA;IACvB,gDAAuB,CAAA;IACvB,gDAAuB,CAAA;IACvB,gDAAuB,CAAA;IACvB,8DAAqC,CAAA;IACrC,4CAAmB,CAAA;IACnB,sDAA6B,CAAA;IAC7B,oDAA2B,CAAA;IAC3B,4CAAmB,CAAA;IACnB,0DAAiC,CAAA;IACjC,4CAAmB,CAAA;IACnB,4DAAmC,CAAA;IACnC,0DAAiC,CAAA;IACjC,sDAA6B,CAAA;AAC/B,CAAC,EAnBW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAmBhC"}
|
|
@@ -13,7 +13,7 @@ const PAGE_SIZE = 20;
|
|
|
13
13
|
async function fetchAllActions(client) {
|
|
14
14
|
const actions = [];
|
|
15
15
|
let offset = 0;
|
|
16
|
-
//
|
|
16
|
+
// Whether to continue looping
|
|
17
17
|
let shouldContinue = false;
|
|
18
18
|
do {
|
|
19
19
|
const { actions: { nodes },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchAllActions.js","sourceRoot":"","sources":["../../src/graphql/fetchAllActions.ts"],"names":[],"mappings":";;;AAOA,iCAAiC;AACjC,6DAA0D;AAqB1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,eAAe,CACnC,MAAqB;IAErB,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf
|
|
1
|
+
{"version":3,"file":"fetchAllActions.js","sourceRoot":"","sources":["../../src/graphql/fetchAllActions.ts"],"names":[],"mappings":";;;AAOA,iCAAiC;AACjC,6DAA0D;AAqB1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,eAAe,CACnC,MAAqB;IAErB,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,OAAO,EAAE,EAAE,KAAK,EAAE;QAClB,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,cAAO,EAAE;YAClB,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QACvB,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9D,CAAC;AA5BD,0CA4BC"}
|
|
@@ -13,7 +13,7 @@ const PAGE_SIZE = 20;
|
|
|
13
13
|
async function fetchAllRequestAttributeKeys(client) {
|
|
14
14
|
const attributeKeys = [];
|
|
15
15
|
let offset = 0;
|
|
16
|
-
//
|
|
16
|
+
// Whether to continue looping
|
|
17
17
|
let shouldContinue = false;
|
|
18
18
|
do {
|
|
19
19
|
const { attributeKeys: { nodes },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchAllAttributeKeys.js","sourceRoot":"","sources":["../../src/graphql/fetchAllAttributeKeys.ts"],"names":[],"mappings":";;;AACA,iCAAiD;AACjD,6DAA0D;AAW1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,4BAA4B,CAChD,MAAqB;IAErB,MAAM,aAAa,GAAmB,EAAE,CAAC;IACzC,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf
|
|
1
|
+
{"version":3,"file":"fetchAllAttributeKeys.js","sourceRoot":"","sources":["../../src/graphql/fetchAllAttributeKeys.ts"],"names":[],"mappings":";;;AACA,iCAAiD;AACjD,6DAA0D;AAW1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,4BAA4B,CAChD,MAAqB;IAErB,MAAM,aAAa,GAAmB,EAAE,CAAC;IACzC,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,aAAa,EAAE,EAAE,KAAK,EAAE;QACxB,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,8BAAuB,EAAE;YAClC,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,aAAa,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAC7B,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACpE,CAAC;AA5BD,oEA4BC"}
|
|
@@ -13,7 +13,7 @@ const PAGE_SIZE = 20;
|
|
|
13
13
|
async function fetchAllBusinessEntities(client) {
|
|
14
14
|
const businessEntities = [];
|
|
15
15
|
let offset = 0;
|
|
16
|
-
//
|
|
16
|
+
// Whether to continue looping
|
|
17
17
|
let shouldContinue = false;
|
|
18
18
|
do {
|
|
19
19
|
const { businessEntities: { nodes },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchAllBusinessEntities.js","sourceRoot":"","sources":["../../src/graphql/fetchAllBusinessEntities.ts"],"names":[],"mappings":";;;AACA,iCAA2C;AAC3C,6DAA0D;AAmC1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,wBAAwB,CAC5C,MAAqB;IAErB,MAAM,gBAAgB,GAAqB,EAAE,CAAC;IAC9C,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf
|
|
1
|
+
{"version":3,"file":"fetchAllBusinessEntities.js","sourceRoot":"","sources":["../../src/graphql/fetchAllBusinessEntities.ts"],"names":[],"mappings":";;;AACA,iCAA2C;AAC3C,6DAA0D;AAmC1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,wBAAwB,CAC5C,MAAqB;IAErB,MAAM,gBAAgB,GAAqB,EAAE,CAAC;IAC9C,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,gBAAgB,EAAE,EAAE,KAAK,EAAE;QAC3B,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,wBAAiB,EAAE;YAC5B,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,gBAAgB,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAChC,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AACzE,CAAC;AA5BD,4DA4BC"}
|
|
@@ -13,7 +13,7 @@ const PAGE_SIZE = 20;
|
|
|
13
13
|
async function fetchAllAssessmentTemplates(client) {
|
|
14
14
|
const assessmentTemplates = [];
|
|
15
15
|
let offset = 0;
|
|
16
|
-
//
|
|
16
|
+
// Whether to continue looping
|
|
17
17
|
let shouldContinue = false;
|
|
18
18
|
do {
|
|
19
19
|
const { assessmentTemplates: { nodes },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchAssessmentTemplates.js","sourceRoot":"","sources":["../../src/graphql/fetchAssessmentTemplates.ts"],"names":[],"mappings":";;;AACA,iCAA8C;AAC9C,6DAA0D;AAgB1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,2BAA2B,CAC/C,MAAqB;IAErB,MAAM,mBAAmB,GAAyB,EAAE,CAAC;IACrD,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf
|
|
1
|
+
{"version":3,"file":"fetchAssessmentTemplates.js","sourceRoot":"","sources":["../../src/graphql/fetchAssessmentTemplates.ts"],"names":[],"mappings":";;;AACA,iCAA8C;AAC9C,6DAA0D;AAgB1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,2BAA2B,CAC/C,MAAqB;IAErB,MAAM,mBAAmB,GAAyB,EAAE,CAAC;IACrD,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,mBAAmB,EAAE,EAAE,KAAK,EAAE;QAC9B,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,2BAAoB,EAAE;YAC/B,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,mBAAmB,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QACnC,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AAC5E,CAAC;AA5BD,kEA4BC"}
|
|
@@ -14,7 +14,7 @@ const PAGE_SIZE = 20;
|
|
|
14
14
|
async function fetchAllAssessments(client, { text, } = {}) {
|
|
15
15
|
const assessments = [];
|
|
16
16
|
let offset = 0;
|
|
17
|
-
//
|
|
17
|
+
// Whether to continue looping
|
|
18
18
|
let shouldContinue = false;
|
|
19
19
|
do {
|
|
20
20
|
const { assessments: { nodes },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchAssessments.js","sourceRoot":"","sources":["../../src/graphql/fetchAssessments.ts"],"names":[],"mappings":";;;AACA,iCAAqC;AACrC,6DAA0D;AA6B1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;;GAMG;AACI,KAAK,UAAU,mBAAmB,CACvC,MAAqB,EACrB,EACE,IAAI,MAIF,EAAE;IAEN,MAAM,WAAW,GAAiB,EAAE,CAAC;IACrC,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf
|
|
1
|
+
{"version":3,"file":"fetchAssessments.js","sourceRoot":"","sources":["../../src/graphql/fetchAssessments.ts"],"names":[],"mappings":";;;AACA,iCAAqC;AACrC,6DAA0D;AA6B1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;;GAMG;AACI,KAAK,UAAU,mBAAmB,CACvC,MAAqB,EACrB,EACE,IAAI,MAIF,EAAE;IAEN,MAAM,WAAW,GAAiB,EAAE,CAAC;IACrC,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,WAAW,EAAE,EAAE,KAAK,EAAE;QACtB,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,kBAAW,EAAE;YACtB,KAAK,EAAE,SAAS;YAChB,MAAM;YACN,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACxC,CAAC,CAAC;QACH,WAAW,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAC3B,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AACpE,CAAC;AAnCD,kDAmCC"}
|
|
@@ -23,7 +23,7 @@ const PAGE_SIZE = 20;
|
|
|
23
23
|
async function fetchAllIdentifiers(client) {
|
|
24
24
|
const identifiers = [];
|
|
25
25
|
let offset = 0;
|
|
26
|
-
//
|
|
26
|
+
// Whether to continue looping
|
|
27
27
|
let shouldContinue = false;
|
|
28
28
|
do {
|
|
29
29
|
const { identifiers: { nodes },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchIdentifiers.js","sourceRoot":"","sources":["../../src/graphql/fetchIdentifiers.ts"],"names":[],"mappings":";;;;;;AAEA,iCAA8E;AAC9E,yDAAiC;AACjC,uDAA+B;AAC/B,6DAAqC;AAErC,mEAA2C;AAC3C,sCAAmC;AACnC,oDAA4B;AAC5B,uCAAqC;AACrC,6DAA0D;AAoC1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,mBAAmB,CACvC,MAAqB;IAErB,MAAM,WAAW,GAAiB,EAAE,CAAC;IACrC,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf
|
|
1
|
+
{"version":3,"file":"fetchIdentifiers.js","sourceRoot":"","sources":["../../src/graphql/fetchIdentifiers.ts"],"names":[],"mappings":";;;;;;AAEA,iCAA8E;AAC9E,yDAAiC;AACjC,uDAA+B;AAC/B,6DAAqC;AAErC,mEAA2C;AAC3C,sCAAmC;AACnC,oDAA4B;AAC5B,uCAAqC;AACrC,6DAA0D;AAoC1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,mBAAmB,CACvC,MAAqB;IAErB,MAAM,WAAW,GAAiB,EAAE,CAAC;IACrC,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,WAAW,EAAE,EAAE,KAAK,EAAE;QACtB,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,kBAAW,EAAE;YACtB,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,WAAW,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAC3B,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAA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5
|
+
/** The title of the prompt group. */
|
|
6
|
+
title: string;
|
|
7
|
+
/** The description of the prompt group. */
|
|
8
|
+
description: string;
|
|
9
|
+
/** Prompts in the group */
|
|
10
|
+
prompts: {
|
|
11
|
+
/** Title of prompt */
|
|
12
|
+
title: string;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Fetch all PromptGroups in the organization
|
|
17
|
+
*
|
|
18
|
+
* @param client - GraphQL client
|
|
19
|
+
* @returns All PromptGroups in the organization
|
|
20
|
+
*/
|
|
21
|
+
export declare function fetchAllPromptGroups(client: GraphQLClient): Promise<PromptGroup[]>;
|
|
22
|
+
//# sourceMappingURL=fetchPromptGroups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchPromptGroups.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchPromptGroups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,MAAM,WAAW,WAAW;IAC1B,oBAAoB;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,OAAO,EAAE;QACP,sBAAsB;QACtB,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACL;AAID;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,WAAW,EAAE,CAAC,CA0BxB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchAllPromptGroups = void 0;
|
|
4
|
+
const gqls_1 = require("./gqls");
|
|
5
|
+
const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
6
|
+
const PAGE_SIZE = 20;
|
|
7
|
+
/**
|
|
8
|
+
* Fetch all PromptGroups in the organization
|
|
9
|
+
*
|
|
10
|
+
* @param client - GraphQL client
|
|
11
|
+
* @returns All PromptGroups in the organization
|
|
12
|
+
*/
|
|
13
|
+
async function fetchAllPromptGroups(client) {
|
|
14
|
+
const promptGroups = [];
|
|
15
|
+
let offset = 0;
|
|
16
|
+
// Whether to continue looping
|
|
17
|
+
let shouldContinue = false;
|
|
18
|
+
do {
|
|
19
|
+
const { promptGroups: { nodes },
|
|
20
|
+
// eslint-disable-next-line no-await-in-loop
|
|
21
|
+
} = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.PROMPT_GROUPS, {
|
|
22
|
+
first: PAGE_SIZE,
|
|
23
|
+
offset,
|
|
24
|
+
});
|
|
25
|
+
promptGroups.push(...nodes);
|
|
26
|
+
offset += PAGE_SIZE;
|
|
27
|
+
shouldContinue = nodes.length === PAGE_SIZE;
|
|
28
|
+
} while (shouldContinue);
|
|
29
|
+
return promptGroups.sort((a, b) => a.title.localeCompare(b.title));
|
|
30
|
+
}
|
|
31
|
+
exports.fetchAllPromptGroups = fetchAllPromptGroups;
|
|
32
|
+
//# sourceMappingURL=fetchPromptGroups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchPromptGroups.js","sourceRoot":"","sources":["../../src/graphql/fetchPromptGroups.ts"],"names":[],"mappings":";;;AACA,iCAAuC;AACvC,6DAA0D;AAgB1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,oBAAoB,CACxC,MAAqB;IAErB,MAAM,YAAY,GAAkB,EAAE,CAAC;IACvC,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,YAAY,EAAE,EAAE,KAAK,EAAE;QACvB,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,oBAAa,EAAE;YACxB,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,YAAY,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAC5B,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AACrE,CAAC;AA5BD,oDA4BC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GraphQLClient } from 'graphql-request';
|
|
2
|
+
export interface PromptPartial {
|
|
3
|
+
/** ID of prompts */
|
|
4
|
+
id: string;
|
|
5
|
+
/** The title of the prompt partial. */
|
|
6
|
+
title: string;
|
|
7
|
+
/** The content of the prompt partial. */
|
|
8
|
+
content: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Fetch all PromptPartials in the organization
|
|
12
|
+
*
|
|
13
|
+
* @param client - GraphQL client
|
|
14
|
+
* @returns All PromptPartials in the organization
|
|
15
|
+
*/
|
|
16
|
+
export declare function fetchAllPromptPartials(client: GraphQLClient): Promise<PromptPartial[]>;
|
|
17
|
+
//# sourceMappingURL=fetchPromptPartials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchPromptPartials.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchPromptPartials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,MAAM,WAAW,aAAa;IAC5B,oBAAoB;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,OAAO,EAAE,MAAM,CAAC;CACjB;AAID;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,aAAa,EAAE,CAAC,CA0B1B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchAllPromptPartials = void 0;
|
|
4
|
+
const gqls_1 = require("./gqls");
|
|
5
|
+
const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
6
|
+
const PAGE_SIZE = 20;
|
|
7
|
+
/**
|
|
8
|
+
* Fetch all PromptPartials in the organization
|
|
9
|
+
*
|
|
10
|
+
* @param client - GraphQL client
|
|
11
|
+
* @returns All PromptPartials in the organization
|
|
12
|
+
*/
|
|
13
|
+
async function fetchAllPromptPartials(client) {
|
|
14
|
+
const promptPartials = [];
|
|
15
|
+
let offset = 0;
|
|
16
|
+
// Whether to continue looping
|
|
17
|
+
let shouldContinue = false;
|
|
18
|
+
do {
|
|
19
|
+
const { promptPartials: { nodes },
|
|
20
|
+
// eslint-disable-next-line no-await-in-loop
|
|
21
|
+
} = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.PROMPT_PARTIALS, {
|
|
22
|
+
first: PAGE_SIZE,
|
|
23
|
+
offset,
|
|
24
|
+
});
|
|
25
|
+
promptPartials.push(...nodes);
|
|
26
|
+
offset += PAGE_SIZE;
|
|
27
|
+
shouldContinue = nodes.length === PAGE_SIZE;
|
|
28
|
+
} while (shouldContinue);
|
|
29
|
+
return promptPartials.sort((a, b) => a.title.localeCompare(b.title));
|
|
30
|
+
}
|
|
31
|
+
exports.fetchAllPromptPartials = fetchAllPromptPartials;
|
|
32
|
+
//# sourceMappingURL=fetchPromptPartials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchPromptPartials.js","sourceRoot":"","sources":["../../src/graphql/fetchPromptPartials.ts"],"names":[],"mappings":";;;AACA,iCAAyC;AACzC,6DAA0D;AAW1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,sBAAsB,CAC1C,MAAqB;IAErB,MAAM,cAAc,GAAoB,EAAE,CAAC;IAC3C,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,cAAc,EAAE,EAAE,KAAK,EAAE;QACzB,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,sBAAe,EAAE;YAC1B,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,cAAc,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAC9B,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AACvE,CAAC;AA5BD,wDA4BC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GraphQLClient } from 'graphql-request';
|
|
2
|
+
export interface PromptTemplate {
|
|
3
|
+
/** ID of prompts */
|
|
4
|
+
id: string;
|
|
5
|
+
/** The title of the prompt template. */
|
|
6
|
+
title: string;
|
|
7
|
+
/** The content of the prompt template. */
|
|
8
|
+
content: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Fetch all PromptTemplates in the organization
|
|
12
|
+
*
|
|
13
|
+
* @param client - GraphQL client
|
|
14
|
+
* @returns All PromptTemplates in the organization
|
|
15
|
+
*/
|
|
16
|
+
export declare function fetchAllPromptTemplates(client: GraphQLClient): Promise<PromptTemplate[]>;
|
|
17
|
+
//# sourceMappingURL=fetchPromptTemplates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchPromptTemplates.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchPromptTemplates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,MAAM,WAAW,cAAc;IAC7B,oBAAoB;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,OAAO,EAAE,MAAM,CAAC;CACjB;AAID;;;;;GAKG;AACH,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,cAAc,EAAE,CAAC,CA0B3B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchAllPromptTemplates = void 0;
|
|
4
|
+
const gqls_1 = require("./gqls");
|
|
5
|
+
const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
6
|
+
const PAGE_SIZE = 20;
|
|
7
|
+
/**
|
|
8
|
+
* Fetch all PromptTemplates in the organization
|
|
9
|
+
*
|
|
10
|
+
* @param client - GraphQL client
|
|
11
|
+
* @returns All PromptTemplates in the organization
|
|
12
|
+
*/
|
|
13
|
+
async function fetchAllPromptTemplates(client) {
|
|
14
|
+
const promptTemplates = [];
|
|
15
|
+
let offset = 0;
|
|
16
|
+
// Whether to continue looping
|
|
17
|
+
let shouldContinue = false;
|
|
18
|
+
do {
|
|
19
|
+
const { promptTemplates: { nodes },
|
|
20
|
+
// eslint-disable-next-line no-await-in-loop
|
|
21
|
+
} = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.PROMPT_TEMPLATES, {
|
|
22
|
+
first: PAGE_SIZE,
|
|
23
|
+
offset,
|
|
24
|
+
});
|
|
25
|
+
promptTemplates.push(...nodes);
|
|
26
|
+
offset += PAGE_SIZE;
|
|
27
|
+
shouldContinue = nodes.length === PAGE_SIZE;
|
|
28
|
+
} while (shouldContinue);
|
|
29
|
+
return promptTemplates.sort((a, b) => a.title.localeCompare(b.title));
|
|
30
|
+
}
|
|
31
|
+
exports.fetchAllPromptTemplates = fetchAllPromptTemplates;
|
|
32
|
+
//# sourceMappingURL=fetchPromptTemplates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchPromptTemplates.js","sourceRoot":"","sources":["../../src/graphql/fetchPromptTemplates.ts"],"names":[],"mappings":";;;AACA,iCAA0C;AAC1C,6DAA0D;AAW1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,uBAAuB,CAC3C,MAAqB;IAErB,MAAM,eAAe,GAAqB,EAAE,CAAC;IAC7C,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,eAAe,EAAE,EAAE,KAAK,EAAE;QAC1B,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,uBAAgB,EAAE;YAC3B,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,eAAe,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAC/B,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AACxE,CAAC;AA5BD,0DA4BC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { GraphQLClient } from 'graphql-request';
|
|
2
|
+
import { AssessmentStatus } from '@transcend-io/privacy-types';
|
|
3
|
+
export interface Prompt {
|
|
4
|
+
/** ID of prompt */
|
|
5
|
+
id: string;
|
|
6
|
+
/** The title of the prompt */
|
|
7
|
+
title: string;
|
|
8
|
+
/** The status of the prompt */
|
|
9
|
+
status: AssessmentStatus;
|
|
10
|
+
/** The content of the prompt */
|
|
11
|
+
content: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Fetch all Prompts in the organization
|
|
15
|
+
*
|
|
16
|
+
* @param client - GraphQL client
|
|
17
|
+
* @param options - Options
|
|
18
|
+
* @returns All Prompts in the organization
|
|
19
|
+
*/
|
|
20
|
+
export declare function fetchAllPrompts(client: GraphQLClient, { text, titles, ids, }?: {
|
|
21
|
+
/** Filter by text */
|
|
22
|
+
text?: string;
|
|
23
|
+
/** Filter by ids */
|
|
24
|
+
ids?: string[];
|
|
25
|
+
/** Filter by titles */
|
|
26
|
+
titles?: string[];
|
|
27
|
+
}): Promise<Prompt[]>;
|
|
28
|
+
/**
|
|
29
|
+
* The basic metadata needed to use a prompt at runtime
|
|
30
|
+
*/
|
|
31
|
+
export type TranscendPromptTemplated = {
|
|
32
|
+
/** ID of prompt */
|
|
33
|
+
id: string;
|
|
34
|
+
/** Title of prompt */
|
|
35
|
+
title: string;
|
|
36
|
+
/** Content of prompt */
|
|
37
|
+
content: string;
|
|
38
|
+
/** Status of prompt */
|
|
39
|
+
status: AssessmentStatus;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Calculated variables
|
|
43
|
+
*/
|
|
44
|
+
export type PromptCalculatedVariable = {
|
|
45
|
+
/** JSON stringified data to template */
|
|
46
|
+
data: string | null;
|
|
47
|
+
/** Name of variable */
|
|
48
|
+
name: string;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Runtime variables
|
|
52
|
+
*/
|
|
53
|
+
export type PromptRuntimeVariable = {
|
|
54
|
+
/** Type of variable */
|
|
55
|
+
type: string;
|
|
56
|
+
/** Name of variable */
|
|
57
|
+
name: string;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Metadata useful for filling variables within a prompt
|
|
61
|
+
*/
|
|
62
|
+
export type TranscendPromptsAndVariables = {
|
|
63
|
+
/** Prompts ready to be templated */
|
|
64
|
+
prompts: TranscendPromptTemplated[];
|
|
65
|
+
/** Calculated variables to be templated */
|
|
66
|
+
calculatedVariables: PromptCalculatedVariable[];
|
|
67
|
+
/** Runtime variables to be templated */
|
|
68
|
+
runtimeVariables: PromptRuntimeVariable[];
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Fetch prompts with templated variables
|
|
72
|
+
*
|
|
73
|
+
* @param client - GraphQL client
|
|
74
|
+
* @param options - Options
|
|
75
|
+
* @returns Prompts and template variables
|
|
76
|
+
*/
|
|
77
|
+
export declare function fetchPromptsWithVariables(client: GraphQLClient, { promptTitles, promptIds, }?: {
|
|
78
|
+
/** Filter by prompt ids */
|
|
79
|
+
promptIds?: string[];
|
|
80
|
+
/** Filter by prompt titles */
|
|
81
|
+
promptTitles?: string[];
|
|
82
|
+
}): Promise<TranscendPromptsAndVariables>;
|
|
83
|
+
//# sourceMappingURL=fetchPrompts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchPrompts.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchPrompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,WAAW,MAAM;IACrB,mBAAmB;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,MAAM,EAAE,gBAAgB,CAAC;IACzB,gCAAgC;IAChC,OAAO,EAAE,MAAM,CAAC;CACjB;AAID;;;;;;GAMG;AACH,wBAAsB,e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AY,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,GACL,OAAO,CAAC,4BAA4B,CAAC,CAYvC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchPromptsWithVariables = exports.fetchAllPrompts = void 0;
|
|
4
|
+
const gqls_1 = require("./gqls");
|
|
5
|
+
const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
6
|
+
const PAGE_SIZE = 20;
|
|
7
|
+
/**
|
|
8
|
+
* Fetch all Prompts in the organization
|
|
9
|
+
*
|
|
10
|
+
* @param client - GraphQL client
|
|
11
|
+
* @param options - Options
|
|
12
|
+
* @returns All Prompts in the organization
|
|
13
|
+
*/
|
|
14
|
+
async function fetchAllPrompts(client, { text, titles = [], ids = [], } = {}) {
|
|
15
|
+
const prompts = [];
|
|
16
|
+
let offset = 0;
|
|
17
|
+
// Whether to continue looping
|
|
18
|
+
let shouldContinue = false;
|
|
19
|
+
do {
|
|
20
|
+
const { prompts: { nodes },
|
|
21
|
+
// eslint-disable-next-line no-await-in-loop
|
|
22
|
+
} = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.PROMPTS, {
|
|
23
|
+
first: PAGE_SIZE,
|
|
24
|
+
offset,
|
|
25
|
+
filterBy: {
|
|
26
|
+
...(text ? { text } : {}),
|
|
27
|
+
...(titles.length > 0 ? { title: titles } : {}),
|
|
28
|
+
...(ids.length > 0 ? { id: ids } : {}),
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
prompts.push(...nodes);
|
|
32
|
+
offset += PAGE_SIZE;
|
|
33
|
+
shouldContinue = nodes.length === PAGE_SIZE;
|
|
34
|
+
} while (shouldContinue);
|
|
35
|
+
return prompts.sort((a, b) => a.title.localeCompare(b.title));
|
|
36
|
+
}
|
|
37
|
+
exports.fetchAllPrompts = fetchAllPrompts;
|
|
38
|
+
/**
|
|
39
|
+
* Fetch prompts with templated variables
|
|
40
|
+
*
|
|
41
|
+
* @param client - GraphQL client
|
|
42
|
+
* @param options - Options
|
|
43
|
+
* @returns Prompts and template variables
|
|
44
|
+
*/
|
|
45
|
+
async function fetchPromptsWithVariables(client, { promptTitles = [], promptIds = [], } = {}) {
|
|
46
|
+
const { promptsWithVariables } = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.PROMPTS_WITH_VARIABLES, {
|
|
47
|
+
input: {
|
|
48
|
+
...(promptTitles.length > 0 ? { promptTitles } : {}),
|
|
49
|
+
...(promptIds.length > 0 ? { promptIds } : {}),
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
return promptsWithVariables;
|
|
53
|
+
}
|
|
54
|
+
exports.fetchPromptsWithVariables = fetchPromptsWithVariables;
|
|
55
|
+
//# sourceMappingURL=fetchPrompts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchPrompts.js","sourceRoot":"","sources":["../../src/graphql/fetchPrompts.ts"],"names":[],"mappings":";;;AACA,iCAAyD;AACzD,6DAA0D;AAc1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;;GAMG;AACI,KAAK,UAAU,eAAe,CACnC,MAAqB,EACrB,EACE,IAAI,EACJ,MAAM,GAAG,EAAE,EACX,GAAG,GAAG,EAAE,MAQN,EAAE;IAEN,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,OAAO,EAAE,EAAE,KAAK,EAAE;QAClB,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,cAAO,EAAE;YAClB,KAAK,EAAE,SAAS;YAChB,MAAM;YACN,QAAQ,EAAE;gBACR,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAA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= (0, graphql_request_1.gql) `
|
|
|
14
14
|
offset: $offset
|
|
15
15
|
# TODO: https://transcend.height.app/T-27909 - enable optimizations
|
|
16
16
|
# isExportCsv: true
|
|
17
|
-
|
|
17
|
+
useMaster: false
|
|
18
18
|
orderBy: [
|
|
19
19
|
{ field: createdAt, direction: DESC }
|
|
20
20
|
{ field: title, direction: ASC, model: dataSilo }
|
|
@@ -14,7 +14,7 @@ exports.REQUEST_ENRICHERS = (0, graphql_request_1.gql) `
|
|
|
14
14
|
offset: $offset
|
|
15
15
|
# TODO: https://transcend.height.app/T-27909 - enable optimizations
|
|
16
16
|
# isExportCsv: true
|
|
17
|
-
|
|
17
|
+
useMaster: false
|
|
18
18
|
orderBy: [
|
|
19
19
|
{ field: createdAt, direction: ASC }
|
|
20
20
|
{ field: title, direction: ASC, model: enricher }
|
|
@@ -14,7 +14,7 @@ exports.REQUEST_IDENTIFIERS = (0, graphql_request_1.gql) `
|
|
|
14
14
|
offset: $offset
|
|
15
15
|
# TODO: https://transcend.height.app/T-27909 - enable optimizations
|
|
16
16
|
# isExportCsv: true
|
|
17
|
-
|
|
17
|
+
useMaster: false
|
|
18
18
|
orderBy: [
|
|
19
19
|
{ field: createdAt, direction: ASC }
|
|
20
20
|
{ field: name, direction: ASC }
|
|
@@ -9,7 +9,7 @@ exports.ACTIONS = (0, graphql_request_1.gql) `
|
|
|
9
9
|
offset: $offset
|
|
10
10
|
# TODO: https://transcend.height.app/T-27909 - enable optimizations
|
|
11
11
|
# isExportCsv: true
|
|
12
|
-
|
|
12
|
+
useMaster: false
|
|
13
13
|
# TODO: https://transcend.height.app/T-27909 - order by createdAt
|
|
14
14
|
orderBy: [{ field: type, direction: ASC }]
|
|
15
15
|
) {
|
|
@@ -10,7 +10,7 @@ exports.API_KEYS = (0, graphql_request_1.gql) `
|
|
|
10
10
|
filterBy: { titles: $titles }
|
|
11
11
|
# TODO: https://transcend.height.app/T-27909 - enable optimizations
|
|
12
12
|
# isExportCsv: true
|
|
13
|
-
|
|
13
|
+
useMaster: false
|
|
14
14
|
orderBy: [
|
|
15
15
|
{ field: createdAt, direction: ASC }
|
|
16
16
|
{ field: title, direction: ASC }
|
|
@@ -12,7 +12,7 @@ exports.ASSESSMENTS = (0, graphql_request_1.gql) `
|
|
|
12
12
|
first: $first
|
|
13
13
|
# TODO: https://transcend.height.app/T-27909 - enable optimizations
|
|
14
14
|
# isExportCsv: true
|
|
15
|
-
|
|
15
|
+
useMaster: false
|
|
16
16
|
# TODO: https://transcend.height.app/T-27909 - order by createdAt
|
|
17
17
|
# orderBy: [{ field: title, direction: ASC }]
|
|
18
18
|
offset: $offset
|
|
@@ -51,12 +51,12 @@ exports.CREATE_ASSESSMENT = (0, graphql_request_1.gql) `
|
|
|
51
51
|
}
|
|
52
52
|
`;
|
|
53
53
|
exports.ASSESSMENT_TEMPLATES = (0, graphql_request_1.gql) `
|
|
54
|
-
query
|
|
54
|
+
query TranscendCliAssessmentTemplates($first: Int!, $offset: Int!) {
|
|
55
55
|
assessmentTemplates(
|
|
56
56
|
first: $first
|
|
57
57
|
# TODO: https://transcend.height.app/T-27909 - enable optimizations
|
|
58
58
|
# isExportCsv: true
|
|
59
|
-
|
|
59
|
+
useMaster: false
|
|
60
60
|
# TODO: https://transcend.height.app/T-27909 - order by createdAt
|
|
61
61
|
# orderBy: [{ field: title, direction: ASC }]
|
|
62
62
|
offset: $offset
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribute.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/attribute.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"attribute.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/attribute.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,UAAU,QAatB,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAQnC,CAAC;AAGF,eAAO,MAAM,gBAAgB,QAsB5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAqB5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAmB5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAQnC,CAAC"}
|
|
@@ -19,10 +19,9 @@ const ENABLED_ON_CREATE_INPUT = Object.values(tmp_attribute_key_1.ATTRIBUTE_KEY_
|
|
|
19
19
|
// TODO: https://transcend.height.app/T-27909 - order by createdAt
|
|
20
20
|
// # TODO: https://transcend.height.app/T-27909 - enable optimizations
|
|
21
21
|
// # isExportCsv: true
|
|
22
|
-
// # useMaster: false
|
|
23
22
|
exports.ATTRIBUTES = (0, graphql_request_1.gql) `
|
|
24
23
|
query TranscendCliAttributes($first: Int!, $offset: Int!) {
|
|
25
|
-
attributeKeys(first: $first, offset: $offset) {
|
|
24
|
+
attributeKeys(first: $first, offset: $offset, useMaster: false) {
|
|
26
25
|
nodes {
|
|
27
26
|
id
|
|
28
27
|
isCustom
|
|
@@ -55,7 +54,7 @@ exports.ATTRIBUTE_VALUES = (0, graphql_request_1.gql) `
|
|
|
55
54
|
offset: $offset
|
|
56
55
|
# TODO: https://transcend.height.app/T-27909 - enable optimizations
|
|
57
56
|
# isExportCsv: true
|
|
58
|
-
|
|
57
|
+
useMaster: false
|
|
59
58
|
filterBy: { attributeKeys: [$attributeKeyId] }
|
|
60
59
|
) {
|
|
61
60
|
nodes {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribute.js","sourceRoot":"","sources":["../../../src/graphql/gqls/attribute.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AACtC,+DAAsE;AAEtE,+FAA+F;AAC/F,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,CAAC,+CAA2B,CAAC;KACtE,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,QAAQ,SAAS,WAAW,CAAC;KAChD,IAAI,CAAC,IAAI,CAAC,CAAC;AACd,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,+CAA2B,CAAC;KACnE,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC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AE,CAAC,QAAQ,SAAS,WAAW,CAAC;KAChD,IAAI,CAAC,IAAI,CAAC,CAAC;AAEd,kEAAkE;AAClE,sEAAsE;AACtE,4BAA4B;AACf,QAAA,UAAU,GAAG,IAAA,qBAAG,EAAA;;;;;;;UAOnB,mBAAmB;;;;;;CAM5B,CAAC;AAEW,QAAA,uBAAuB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;CAQzC,CAAC;AAEF,kEAAkE;AACrD,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;CAsBlC,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;EAKjC,uBAAuB;;;;;;;EAOvB,gBAAgB;;;;;;;;;CASjB,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;EAIjC,sBAAsB;;;;;;EAMtB,gBAAgB;;;;;;;;;CASjB,CAAC;AAEW,QAAA,uBAAuB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;CAQzC,CAAC"}
|
|
@@ -9,7 +9,7 @@ exports.ATTRIBUTE_KEYS_REQUESTS = (0, graphql_request_1.gql) `
|
|
|
9
9
|
first: $first
|
|
10
10
|
# TODO: https://transcend.height.app/T-27909 - enable optimizations
|
|
11
11
|
# isExportCsv: true
|
|
12
|
-
|
|
12
|
+
useMaster: false
|
|
13
13
|
# TODO: https://transcend.height.app/T-27909 - order by createdAt
|
|
14
14
|
offset: $offset
|
|
15
15
|
) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/catalog.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/catalog.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ,QAUpB,CAAC"}
|
|
@@ -5,10 +5,9 @@ const graphql_request_1 = require("graphql-request");
|
|
|
5
5
|
// TODO: https://transcend.height.app/T-27909 - order by createdAt
|
|
6
6
|
// # TODO: https://transcend.height.app/T-27909 - enable optimizations
|
|
7
7
|
// # isExportCsv: true
|
|
8
|
-
// # useMaster: false
|
|
9
8
|
exports.CATALOGS = (0, graphql_request_1.gql) `
|
|
10
9
|
query TranscendCliCatalogs($first: Int!, $offset: Int!) {
|
|
11
|
-
catalogs(first: $first, offset: $offset, filterBy: {}) {
|
|
10
|
+
catalogs(first: $first, offset: $offset, filterBy: {}, useMaster: false) {
|
|
12
11
|
nodes {
|
|
13
12
|
integrationName
|
|
14
13
|
title
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../../src/graphql/gqls/catalog.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEtC,kEAAkE;AAClE,sEAAsE;AACtE,4BAA4B;
|
|
1
|
+
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../../src/graphql/gqls/catalog.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEtC,kEAAkE;AAClE,sEAAsE;AACtE,4BAA4B;AACf,QAAA,QAAQ,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;CAU1B,CAAC"}
|