@transcend-io/sdk 2.1.15 → 2.1.17

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 CHANGED
@@ -40250,7 +40250,7 @@ declare function getComparisonTimeForRecord(mode: ChunkMode, item: PreferenceQue
40250
40250
  * @param logger - Logger for retries
40251
40251
  * @yields Pages of PreferenceQueryResponseItem
40252
40252
  */
40253
- declare function iterateConsentPages(sombra: Got, partition: string, filter: PreferencesQueryFilter, pageSize: number, logger: Logger): AsyncGenerator<PreferenceQueryResponseItem[], void, void>;
40253
+ declare function iterateConsentPages(sombra: Pick<Got, 'post'>, partition: string, filter: PreferencesQueryFilter, pageSize: number, logger: Logger): AsyncGenerator<PreferenceQueryResponseItem[], void, void>;
40254
40254
  //#endregion
40255
40255
  //#region src/preference-management/consentWindowHasAny.d.ts
40256
40256
  /**
@@ -40260,7 +40260,7 @@ declare function iterateConsentPages(sombra: Got, partition: string, filter: Pre
40260
40260
  * @param options - Options
40261
40261
  * @returns True if any records exist in the given window
40262
40262
  */
40263
- declare function consentWindowHasAny(sombra: Got, {
40263
+ declare function consentWindowHasAny(sombra: Pick<Got, 'post'>, {
40264
40264
  partition,
40265
40265
  mode,
40266
40266
  baseFilter,
@@ -40303,7 +40303,7 @@ declare function getBoundsFromConsentFilter(mode: ChunkMode, filterBy: Preferenc
40303
40303
  * @param opts - Options
40304
40304
  * @returns Earliest day with data (UTC start-of-day)
40305
40305
  */
40306
- declare function findEarliestDayWithData(sombra: Got, opts: {
40306
+ declare function findEarliestDayWithData(sombra: Pick<Got, 'post'>, opts: {
40307
40307
  /** Partition */partition: string; /** Chunking mode */
40308
40308
  mode: ChunkMode; /** Base filter */
40309
40309
  baseFilter: PreferencesQueryFilter; /** Optional safety cap in days to avoid unbounded lookback (default ~10 years) */
@@ -40319,7 +40319,7 @@ declare function findEarliestDayWithData(sombra: Got, opts: {
40319
40319
  * @param opts - Options
40320
40320
  * @returns Latest day with data
40321
40321
  */
40322
- declare function findLatestDayWithData(sombra: Got, opts: {
40322
+ declare function findLatestDayWithData(sombra: Pick<Got, 'post'>, opts: {
40323
40323
  /** Partition */partition: string; /** Chunking mode */
40324
40324
  mode: ChunkMode; /** Base filter */
40325
40325
  baseFilter: PreferencesQueryFilter; /** Earliest date */
@@ -40340,7 +40340,7 @@ declare function findLatestDayWithData(sombra: Got, opts: {
40340
40340
  * @param options - Query options
40341
40341
  * @returns All nodes (only when onItems is not provided)
40342
40342
  */
40343
- declare function fetchConsentPreferences(sombra: Got, {
40343
+ declare function fetchConsentPreferences(sombra: Pick<Got, 'post'>, {
40344
40344
  partition,
40345
40345
  filterBy,
40346
40346
  limit,
@@ -40362,7 +40362,7 @@ declare function fetchConsentPreferences(sombra: Got, {
40362
40362
  * @param options - Options
40363
40363
  * @returns Plaintext context information
40364
40364
  */
40365
- declare function getPreferencesForIdentifiers(sombra: Got, {
40365
+ declare function getPreferencesForIdentifiers(sombra: Pick<Got, 'post'>, {
40366
40366
  identifiers,
40367
40367
  partitionKey,
40368
40368
  skipLogging,
@@ -40392,7 +40392,7 @@ declare function getPreferencesForIdentifiers(sombra: Got, {
40392
40392
  * @param options - Options
40393
40393
  * @returns preference items (only if onItems is not provided)
40394
40394
  */
40395
- declare function fetchConsentPreferencesChunked(sombra: Got, {
40395
+ declare function fetchConsentPreferencesChunked(sombra: Pick<Got, 'post'>, {
40396
40396
  partition,
40397
40397
  filterBy,
40398
40398
  limit,
@@ -42927,7 +42927,7 @@ declare function validateSombraVersion(client: GraphQLClient, options?: {
42927
42927
  * @param options - Options
42928
42928
  * @returns List of request identifiers
42929
42929
  */
42930
- declare function fetchAllRequestIdentifiers(client: GraphQLClient, sombra: Got, options: {
42930
+ declare function fetchAllRequestIdentifiers(client: GraphQLClient, sombra: Pick<Got, 'post'>, options: {
42931
42931
  /** Filter options */filterBy: {
42932
42932
  /** ID of request to filter on */requestId: string;
42933
42933
  }; /** Skip the Sombra version check (caller already validated) */
@@ -45485,7 +45485,7 @@ declare function syncCustomFunction(client: GraphQLClient, options: {
45485
45485
  * gateway the function belongs to (see `resolveEffectiveSombraId`).
45486
45486
  * Required unless `dryRun` is set
45487
45487
  */
45488
- sombra?: Got; /** Default Sombra gateway ID when neither the config nor the existing function specify one */
45488
+ sombra?: Pick<Got, 'post'>; /** Default Sombra gateway ID when neither the config nor the existing function specify one */
45489
45489
  defaultSombraId?: string; /** All existing custom functions in the organization (see `fetchAllCustomFunctions`) */
45490
45490
  existing: CustomFunction[]; /** Whether to promote new revisions to active. Defaults to true */
45491
45491
  promote?: boolean; /** When true, report what would happen without mutating anything */
@@ -45660,7 +45660,7 @@ interface SignedCustomFunctionJwts {
45660
45660
  * @param options - Options
45661
45661
  * @returns The signed code and context JWTs to store via the GraphQL API
45662
45662
  */
45663
- declare function signCustomFunctionCode(sombra: Got, payload: CustomFunctionSignPayload, options?: {
45663
+ declare function signCustomFunctionCode(sombra: Pick<Got, 'post'>, payload: CustomFunctionSignPayload, options?: {
45664
45664
  /** Existing custom function ID, forwarded for Sombra log context */customFunctionId?: string;
45665
45665
  }): Promise<SignedCustomFunctionJwts>;
45666
45666
  //#endregion