@transcend-io/sdk 1.2.2 → 1.2.3
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 +75 -9
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +76 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -3793,14 +3793,6 @@ async function fetchConsentManagerExperiences(client, options = {}) {
|
|
|
3793
3793
|
return experiences.sort((a, b) => a.name.localeCompare(b.name));
|
|
3794
3794
|
}
|
|
3795
3795
|
/**
|
|
3796
|
-
* The allowed bin sizes for pulling consent metrics
|
|
3797
|
-
*/
|
|
3798
|
-
let ConsentManagerMetricBin = /* @__PURE__ */ function(ConsentManagerMetricBin) {
|
|
3799
|
-
ConsentManagerMetricBin["Hourly"] = "1h";
|
|
3800
|
-
ConsentManagerMetricBin["Daily"] = "1d";
|
|
3801
|
-
return ConsentManagerMetricBin;
|
|
3802
|
-
}({});
|
|
3803
|
-
/**
|
|
3804
3796
|
* Fetch consent manager analytics data
|
|
3805
3797
|
*
|
|
3806
3798
|
* @param client - GraphQL client
|
|
@@ -4326,6 +4318,81 @@ async function fetchAllProcessingPurposes(client, options = {}) {
|
|
|
4326
4318
|
return processingPurposeSubCategories.sort((a, b) => a.name.localeCompare(b.name));
|
|
4327
4319
|
}
|
|
4328
4320
|
//#endregion
|
|
4321
|
+
//#region src/consent/gqls/airgapBundleAnalytics.ts
|
|
4322
|
+
const AIRGAP_BUNDLE_AGGREGATE_ANALYTICS = gql`
|
|
4323
|
+
query TranscendCliAirgapBundleAggregateAnalytics(
|
|
4324
|
+
$id: ID!
|
|
4325
|
+
$input: AirgapBundleAggregateAnalyticsInput!
|
|
4326
|
+
) {
|
|
4327
|
+
airgapBundleAggregateAnalytics(id: $id, input: $input) {
|
|
4328
|
+
items {
|
|
4329
|
+
measure
|
|
4330
|
+
dimensions {
|
|
4331
|
+
NEW_VALUE
|
|
4332
|
+
REGIME
|
|
4333
|
+
PURPOSE
|
|
4334
|
+
}
|
|
4335
|
+
}
|
|
4336
|
+
}
|
|
4337
|
+
}
|
|
4338
|
+
`;
|
|
4339
|
+
const AIRGAP_BUNDLE_TIMESERIES_ANALYTICS = gql`
|
|
4340
|
+
query TranscendCliAirgapBundleTimeseriesAnalytics(
|
|
4341
|
+
$id: ID!
|
|
4342
|
+
$input: AirgapBundleTimeseriesAnalyticsInput!
|
|
4343
|
+
) {
|
|
4344
|
+
airgapBundleTimeseriesAnalytics(id: $id, input: $input) {
|
|
4345
|
+
items {
|
|
4346
|
+
time
|
|
4347
|
+
metric
|
|
4348
|
+
measure
|
|
4349
|
+
}
|
|
4350
|
+
}
|
|
4351
|
+
}
|
|
4352
|
+
`;
|
|
4353
|
+
//#endregion
|
|
4354
|
+
//#region src/consent/fetchAirgapBundleAnalytics.ts
|
|
4355
|
+
/**
|
|
4356
|
+
* Fetch aggregate consent analytics for an airgap bundle.
|
|
4357
|
+
*
|
|
4358
|
+
* @see https://docs.transcend.io/docs/articles/consent-management/configuration/consent-stats-with-gql-api
|
|
4359
|
+
*/
|
|
4360
|
+
async function fetchAirgapBundleAggregateAnalytics(client, input, options = {}) {
|
|
4361
|
+
const { airgapBundleAggregateAnalytics: { items } } = await makeGraphQLRequest(client, AIRGAP_BUNDLE_AGGREGATE_ANALYTICS, {
|
|
4362
|
+
variables: {
|
|
4363
|
+
id: input.airgapBundleId,
|
|
4364
|
+
input: {
|
|
4365
|
+
metric: input.metric,
|
|
4366
|
+
start: input.start,
|
|
4367
|
+
end: input.end,
|
|
4368
|
+
...input.includeDimensions?.length ? { includeDimensions: input.includeDimensions } : {}
|
|
4369
|
+
}
|
|
4370
|
+
},
|
|
4371
|
+
logger: options.logger
|
|
4372
|
+
});
|
|
4373
|
+
return items;
|
|
4374
|
+
}
|
|
4375
|
+
/**
|
|
4376
|
+
* Fetch timeseries consent analytics for an airgap bundle.
|
|
4377
|
+
*
|
|
4378
|
+
* @see https://docs.transcend.io/docs/articles/consent-management/configuration/consent-stats-with-gql-api
|
|
4379
|
+
*/
|
|
4380
|
+
async function fetchAirgapBundleTimeseriesAnalytics(client, input, options = {}) {
|
|
4381
|
+
const { airgapBundleTimeseriesAnalytics: { items } } = await makeGraphQLRequest(client, AIRGAP_BUNDLE_TIMESERIES_ANALYTICS, {
|
|
4382
|
+
variables: {
|
|
4383
|
+
id: input.airgapBundleId,
|
|
4384
|
+
input: {
|
|
4385
|
+
metric: input.metric,
|
|
4386
|
+
start: input.start,
|
|
4387
|
+
end: input.end,
|
|
4388
|
+
binInterval: input.binInterval
|
|
4389
|
+
}
|
|
4390
|
+
},
|
|
4391
|
+
logger: options.logger
|
|
4392
|
+
});
|
|
4393
|
+
return items;
|
|
4394
|
+
}
|
|
4395
|
+
//#endregion
|
|
4329
4396
|
//#region src/consent/gqls/purposes.ts
|
|
4330
4397
|
const PURPOSES = gql`
|
|
4331
4398
|
query TranscendCliPurposes($first: Int!) {
|
|
@@ -8606,6 +8673,6 @@ function createMonorepoPackageDefinition(name, directory) {
|
|
|
8606
8673
|
};
|
|
8607
8674
|
}
|
|
8608
8675
|
//#endregion
|
|
8609
|
-
export { ASSESSMENTS, ASSESSMENT_SECTION_FIELDS, ATTRIBUTE_KEYS_REQUESTS, ATTRIBUTE_VALUE_FIELDS, AssessmentAction, AssessmentNestedRule, AssessmentRiskLogic, AssessmentRule, AssessmentRuleWithOperands, AssessmentRuleWithoutOperands, BULK_REQUEST_FILES, CHANGE_REQUEST_DATA_SILO_STATUS, CODE_PACKAGES, CONSENT_MANAGER_ANALYTICS_DATA, CONSENT_PARTITIONS, COOKIES, COOKIE_STATS, CREATE_CODE_PACKAGE, CREATE_CONSENT_EXPERIENCE, CREATE_CONSENT_MANAGER, CREATE_CONSENT_PARTITION, CREATE_DATA_FLOWS, CREATE_DATA_SILOS, CREATE_DATA_SUBJECT, CREATE_ENRICHER, CREATE_IDENTIFIER, CREATE_PROCESSING_PURPOSE_SUB_CATEGORY, ColumnIdentifierMap, ColumnMetadataMap, ColumnPurposeMap,
|
|
8676
|
+
export { AIRGAP_BUNDLE_AGGREGATE_ANALYTICS, AIRGAP_BUNDLE_TIMESERIES_ANALYTICS, ASSESSMENTS, ASSESSMENT_SECTION_FIELDS, ATTRIBUTE_KEYS_REQUESTS, ATTRIBUTE_VALUE_FIELDS, AssessmentAction, AssessmentNestedRule, AssessmentRiskLogic, AssessmentRule, AssessmentRuleWithOperands, AssessmentRuleWithoutOperands, BULK_REQUEST_FILES, CHANGE_REQUEST_DATA_SILO_STATUS, CODE_PACKAGES, CONSENT_MANAGER_ANALYTICS_DATA, CONSENT_PARTITIONS, COOKIES, COOKIE_STATS, CREATE_CODE_PACKAGE, CREATE_CONSENT_EXPERIENCE, CREATE_CONSENT_MANAGER, CREATE_CONSENT_PARTITION, CREATE_DATA_FLOWS, CREATE_DATA_SILOS, CREATE_DATA_SUBJECT, CREATE_ENRICHER, CREATE_IDENTIFIER, CREATE_PROCESSING_PURPOSE_SUB_CATEGORY, ColumnIdentifierMap, ColumnMetadataMap, ColumnPurposeMap, ConsentPreferenceResponse, DATAPOINT_EXPORT, DATA_FLOWS, DATA_FLOW_STATS, DATA_POINTS, DATA_POINT_COUNT, DATA_SILOS, DATA_SILOS_ENRICHED, DATA_SILO_EXPORT, DATA_SUBJECTS, DELETE_COOKIES, DELETE_DATA_FLOWS, DEPLOYED_PRIVACY_CENTER_URL, DEPLOY_CONSENT_MANAGER, DeletePreferenceRecordCliCsvRow, DeletePreferenceRecordsInput, DeletePreferenceRecordsResponse, ENRICHERS, EXPERIENCES, FETCH_CONSENT_MANAGER, FETCH_CONSENT_MANAGER_ID, FETCH_CONSENT_MANAGER_THEME, FETCH_PRIVACY_CENTER_ID, FailingPreferenceUpdates, FileFormatState, FileMetadataState, IMPORT_ONE_TRUST_ASSESSMENT_FORMS, INITIALIZER, IdentifierMetadataForPreference, MetadataMapping, NEW_IDENTIFIER_TYPES, NOOP_LOGGER, OWNER_FIELDS, POLICIES, PRIVACY_CENTER, PROCESSING_PURPOSE_SUB_CATEGORIES, PURPOSES, PendingSafePreferenceUpdates, PendingWithConflictPreferenceUpdates, PreferenceState, PreferenceUpdateMap, PurposeRowMapping, REDUCED_REQUESTS_FOR_DATA_SILO_COUNT, REMOVE_REQUEST_IDENTIFIERS, REQUEST_DATA_SILOS, REQUEST_ENRICHERS, REQUEST_FILES, REQUEST_IDENTIFIERS, RETRY_REQUEST_DATA_SILO, RETRY_REQUEST_ENRICHER, RETRY_TRANSIENT_MSGS, RequestIdentifiersResponse, RequestUploadReceipts, SERVICE_FIELDS, SKIP_REQUEST_ENRICHER, SOMBRA_VERSION, SUB_DATA_POINTS, SUB_DATA_POINTS_COUNT, SUB_DATA_POINTS_WITH_GUESSES, SYNC_ATTRIBUTE_TYPES, SkippedPreferenceUpdates, TEAM_FIELDS, TOGGLE_CONSENT_PRECEDENCE, TOGGLE_DATA_SUBJECT, TOGGLE_TELEMETRY_PARTITION_STRATEGY, TOGGLE_UNKNOWN_COOKIE_POLICY, TOGGLE_UNKNOWN_REQUEST_POLICY, TRACKING_PURPOSE_FIELDS, UPDATE_CODE_PACKAGES, UPDATE_CONSENT_EXPERIENCE, UPDATE_CONSENT_MANAGER_DOMAINS, UPDATE_CONSENT_MANAGER_PARTITION, UPDATE_CONSENT_MANAGER_THEME, UPDATE_CONSENT_MANAGER_TO_LATEST, UPDATE_CONSENT_MANAGER_VERSION, UPDATE_DATA_FLOWS, UPDATE_DATA_SILOS, UPDATE_DATA_SUBJECT, UPDATE_ENRICHER, UPDATE_IDENTIFIER, UPDATE_LOAD_OPTIONS, UPDATE_OR_CREATE_COOKIES, UPDATE_OR_CREATE_DATA_POINT, UPDATE_POLICIES, UPDATE_PRIVACY_CENTER, UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES, addMessagesToPromptRun, assumeRole, buildConsentChunks, buildTranscendGraphQLClient, buildTranscendGraphQLClientGeneric, checkIfPendingPreferenceUpdatesAreNoOp, checkIfPendingPreferenceUpdatesCauseConflict, consentWindowHasAny, convertToDataSubjectAllowlist, convertToDataSubjectBlockList, createActionItemCollection, createActionItems, createAgent, createAgentFile, createAgentFunction, createApiKey, createBusinessEntity, createDataCategory, createDataFlows, createDataSubject, createMonorepoPackageDefinition, createPreferenceAccessTokens, createProcessingPurpose, createPrompt, createPromptGroup, createPromptPartial, createRepository, createSoftwareDevelopmentKit, createSombraGotInstance, createTeam, createTranscendConsentGotInstance, createVendor, deleteApiKey, deployConsentManager, fetchActiveSiloDiscoPlugin, fetchAirgapBundleAggregateAnalytics, fetchAirgapBundleTimeseriesAnalytics, fetchAllActionItemCollections, fetchAllActionItems, fetchAllActions, fetchAllAgentFiles, fetchAllAgentFunctions, fetchAllAgents, fetchAllApiKeys, fetchAllAssessments, fetchAllAttributeValues, fetchAllAttributes, fetchAllBusinessEntities, fetchAllCatalogs, fetchAllCodePackages, fetchAllCookies, fetchAllDataCategories, fetchAllDataFlows, fetchAllDataPoints, fetchAllDataSilos, fetchAllDataSubjects, fetchAllEnrichers, fetchAllIdentifiers, fetchAllLargeLanguageModels, fetchAllMessages, fetchAllPolicies, fetchAllPreferenceTopics, fetchAllPrivacyCenters, fetchAllProcessingActivities, fetchAllProcessingPurposes, fetchAllPromptGroups, fetchAllPromptPartials, fetchAllPromptThreads, fetchAllPrompts, fetchAllPurposes, fetchAllPurposesAndPreferences, fetchAllRepositories, fetchAllRequestAttributeKeys, fetchAllRequestEnrichers, fetchAllRequestIdentifierMetadata, fetchAllRequestIdentifiers, fetchAllSiloDiscoveryResults, fetchAllSoftwareDevelopmentKits, fetchAllSubDataPoints, fetchAllTeams, fetchAllTemplates, fetchAllUsers, fetchAllVendors, fetchAndIndexCatalogs, fetchApiKeys, fetchConsentManager, fetchConsentManagerAnalyticsData, fetchConsentManagerExperiences, fetchConsentManagerId, fetchConsentManagerTheme, fetchConsentPreferences, fetchConsentPreferencesChunked, fetchEnrichedDataSilos, fetchIdentifiersAndCreateMissing, fetchParentOrganizationTeams, fetchPartitions, fetchPrivacyCenterId, fetchPrivacyCenterUrl, fetchPromptsWithVariables, fetchRequestDataSilo, fetchRequestDataSilos, fetchRequestDataSilosCount, fetchRequestFilesForRequest, findEarliestDayWithData, findLatestDayWithData, formatAttributeValues, formatRegions, getBoundsFromConsentFilter, getComparisonTimeForRecord, getPreferenceIdentifiersFromRow, getPreferenceMetadataFromRow, getPreferenceUpdatesFromRow, getPreferencesForIdentifiers, getUniquePreferenceIdentifierNamesFromRow, isTransientError, iterateConsentPages, loadReferenceData, loginUser, makeGraphQLRequest, parseAssessmentDisplayLogic, parseAssessmentRiskLogic, pickConsentChunkMode, reportPromptRun, resolveParentTeamIdsByName, retryRequestEnricher, setResourceAttributes, syncAction, syncActionItemCollections, syncActionItems, syncAgentFiles, syncAgentFunctions, syncAgents, syncAttribute, syncBusinessEntities, syncConsentManager, syncConsentManagerExperiences, syncCookies, syncDataCategories, syncDataFlows, syncDataSiloDependencies, syncDataSubject, syncEnricher, syncIdentifier, syncIntlMessages, syncPartitions, syncPolicies, syncPrivacyCenter, syncProcessingActivities, syncProcessingPurposes, syncPromptGroups, syncPromptPartials, syncPrompts, syncRepositories, syncSoftwareDevelopmentKits, syncTeams, syncTemplate, syncVendors, transformPreferenceRecordToCsv, updateActionItem, updateActionItemCollection, updateAgentFiles, updateAgentFunctions, updateAgents, updateBusinessEntities, updateConsentManagerToLatest, updateDataCategories, updateDataFlows, updateIntlMessages, updateOrCreateCookies, updatePolicies, updateProcessingPurposes, updatePromptGroups, updatePromptPartials, updatePrompts, updateRepositories, updateSoftwareDevelopmentKits, updateTeam, updateVendors, uploadSiloDiscoveryResults, validateSombraVersion, withTransientRetry };
|
|
8610
8677
|
|
|
8611
8678
|
//# sourceMappingURL=index.mjs.map
|