@transcend-io/sdk 2.1.5 → 2.1.7

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.mjs CHANGED
@@ -4606,6 +4606,7 @@ const DELETE_COOKIES = gql`
4606
4606
  mutation TranscendCliDeleteCookies($input: DeleteCookiesInput!) {
4607
4607
  deleteCookies(input: $input) {
4608
4608
  clientMutationId
4609
+ success
4609
4610
  }
4610
4611
  }
4611
4612
  `;
@@ -4752,6 +4753,7 @@ const DELETE_DATA_FLOWS = gql`
4752
4753
  mutation TranscendCliDeleteDataFlows($input: DeleteDataFlowsInput!) {
4753
4754
  deleteDataFlows(input: $input) {
4754
4755
  clientMutationId
4756
+ success
4755
4757
  }
4756
4758
  }
4757
4759
  `;
@@ -7029,11 +7031,12 @@ const UPDATE_IDENTIFIER = parse(gql`
7029
7031
  */
7030
7032
  async function fetchIdentifiersAndCreateMissing(client, options) {
7031
7033
  const { input, skipPublish = false, logger = NOOP_LOGGER } = options;
7032
- const { enrichers = [], "data-silos": dataSilos = [], identifiers = [] } = input;
7034
+ const { enrichers = [], preflights = [], "data-silos": dataSilos = [], identifiers = [] } = input;
7035
+ const allPreflights = [...preflights, ...enrichers];
7033
7036
  const allIdentifiers = await fetchAllIdentifiers(client, { logger });
7034
7037
  const identifiersByName = keyBy(allIdentifiers, "name");
7035
7038
  const missingIdentifiers = difference(uniq([
7036
- ...flatten(enrichers.map((enricher) => [enricher["input-identifier"], ...enricher["output-identifiers"]])),
7039
+ ...flatten(allPreflights.map((preflight) => [preflight["input-identifier"], ...preflight["output-identifiers"]])),
7037
7040
  ...flatten(dataSilos.map((dataSilo) => dataSilo["identity-keys"])),
7038
7041
  ...identifiers.map(({ name }) => name)
7039
7042
  ]).filter((x) => !!x), allIdentifiers.map(({ name }) => name));