@transcend-io/sdk 2.1.4 → 2.1.6
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/index.d.mts +9 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -5360,8 +5360,8 @@ async function fetchAirgapBundleTimeseriesAnalytics(client, input, options = {})
|
|
|
5360
5360
|
//#endregion
|
|
5361
5361
|
//#region src/consent/gqls/purposes.ts
|
|
5362
5362
|
const PURPOSES = gql`
|
|
5363
|
-
query TranscendCliPurposes($first: Int
|
|
5364
|
-
purposes(first: $first) {
|
|
5363
|
+
query TranscendCliPurposes($first: Int!, $offset: Int) {
|
|
5364
|
+
purposes(first: $first, offset: $offset) {
|
|
5365
5365
|
nodes {
|
|
5366
5366
|
id
|
|
5367
5367
|
name
|
|
@@ -7029,11 +7029,12 @@ const UPDATE_IDENTIFIER = parse(gql`
|
|
|
7029
7029
|
*/
|
|
7030
7030
|
async function fetchIdentifiersAndCreateMissing(client, options) {
|
|
7031
7031
|
const { input, skipPublish = false, logger = NOOP_LOGGER } = options;
|
|
7032
|
-
const { enrichers = [], "data-silos": dataSilos = [], identifiers = [] } = input;
|
|
7032
|
+
const { enrichers = [], preflights = [], "data-silos": dataSilos = [], identifiers = [] } = input;
|
|
7033
|
+
const allPreflights = [...preflights, ...enrichers];
|
|
7033
7034
|
const allIdentifiers = await fetchAllIdentifiers(client, { logger });
|
|
7034
7035
|
const identifiersByName = keyBy(allIdentifiers, "name");
|
|
7035
7036
|
const missingIdentifiers = difference(uniq([
|
|
7036
|
-
...flatten(
|
|
7037
|
+
...flatten(allPreflights.map((preflight) => [preflight["input-identifier"], ...preflight["output-identifiers"]])),
|
|
7037
7038
|
...flatten(dataSilos.map((dataSilo) => dataSilo["identity-keys"])),
|
|
7038
7039
|
...identifiers.map(({ name }) => name)
|
|
7039
7040
|
]).filter((x) => !!x), allIdentifiers.map(({ name }) => name));
|