@stackone/utils 0.14.1 → 0.15.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.
@@ -119,6 +119,34 @@ declare const safeParseToDateTimeString: ({
119
119
  format?: string;
120
120
  }) => string | null;
121
121
  //#endregion
122
+ //#region src/shared/sourceTypes/types.d.ts
123
+ declare enum RequestSourceType {
124
+ DASHBOARD = "DASHBOARD",
125
+ ADMIN = "ADMIN",
126
+ OPS = "OPS",
127
+ PROJECT_API = "PROJECT_API",
128
+ DATA_SYNC = "DATA_SYNC",
129
+ BACKGROUND_WORKER = "BACKGROUND_WORKER",
130
+ ASYNC_CALLS_WORKER = "ASYNC_CALLS_WORKER",
131
+ STACKONE_WEBHOOK = "STACKONE_WEBHOOK",
132
+ SYNTHETIC_WEBHOOK = "SYNTHETIC_WEBHOOK",
133
+ API_TRIGGER_WEBHOOK = "API_TRIGGER_WEBHOOK",
134
+ NATIVE_WEBHOOK = "NATIVE_WEBHOOK",
135
+ TOKEN_REFRESH = "TOKEN_REFRESH",
136
+ VALIDATE_CREDENTIALS = "VALIDATE_CREDENTIALS",
137
+ META = "META",
138
+ MONITORING = "MONITORING",
139
+ EXTERNAL_TRIGGER = "EXTERNAL_TRIGGER",
140
+ API_SESSION = "API_SESSION",
141
+ NATIVE_WEBHOOK_SETUP_WORKER = "NATIVE_WEBHOOK_SETUP_WORKER",
142
+ COOKIE_SESSION = "COOKIE_SESSION",
143
+ MCP_TOOL = "MCP_TOOL",
144
+ UNKNOWN = "UNKNOWN",
145
+ }
146
+ //#endregion
147
+ //#region src/shared/sourceTypes/nonBackgroundLogs.d.ts
148
+ declare const NON_BACKGROUND_LOGS_SOURCE_TYPES: RequestSourceType[];
149
+ //#endregion
122
150
  //#region src/shared/timeouts.d.ts
123
151
  declare const delay: (ms: number) => Promise<unknown>;
124
152
  //#endregion
@@ -145,4 +173,4 @@ declare const generateRequestId: (randomUUIDGenerator?: typeof randomUUID) => st
145
173
  declare const generateActionRunId: (randomUUIDGenerator?: typeof randomUUID) => string;
146
174
  declare const generateEventId: (randomUUIDGenerator?: typeof randomUUID) => string;
147
175
  //#endregion
148
- export { NormalizedKeyMap, ZodType, calculateNextAnniversary, calculateYearsElapsed, dateHasPassed, decodeFromBase64, deepCopy, delay, encodeToBase64, exponentialBackoffInMS, generateActionRunId, generateEventId, generateRequestId, getContentHash, getCountryAlpha2CodeByAlpha2Code, getCountryAlpha2CodeByAlpha3Code, getCountryAlpha2CodeByCitizenship, getCountryAlpha2CodeByCountryCode, getCountryAlpha2CodeByCountryName, getCountryAlpha3CodeByAlpha2Code, getCountryAlpha3CodeByAlpha3Code, getCountryAlpha3CodeByCountryCode, getCountryAlpha3CodeByCountryName, getCountryCodeByAlpha2Code, getCountryCodeByAlpha3Code, getCountryCodeByCountryCode, getCountryCodeByCountryName, getCountryNameByAlpha2Code, getCountryNameByAlpha3Code, getCountryNameByCountryCode, getCountryNameByCountryName, getCountrySubDivisionByAlpha2CodeAndName, getCountrySubDivisionCodeBySubDivisionName, getCountrySubDivisionNameBySubDivisionCode, getCountrySubDivisionsByAlpha2Code, getDocumentFileFormatFromExtension, isBoolean, isDate, isFunction, isFutureUnixTimestamp, isIpInRange, isIpInRanges, isMissing, isNumber, isObject, isString, isValidIp, isValidIpRange, isValidIpRanges, isValidUUID, notMissing, safeParseToBoolean, safeParseToDateTime, safeParseToDateTimeString, safeParseToNumber, safeParseToString, z, zStrictObject };
176
+ export { NON_BACKGROUND_LOGS_SOURCE_TYPES, NormalizedKeyMap, RequestSourceType, ZodType, calculateNextAnniversary, calculateYearsElapsed, dateHasPassed, decodeFromBase64, deepCopy, delay, encodeToBase64, exponentialBackoffInMS, generateActionRunId, generateEventId, generateRequestId, getContentHash, getCountryAlpha2CodeByAlpha2Code, getCountryAlpha2CodeByAlpha3Code, getCountryAlpha2CodeByCitizenship, getCountryAlpha2CodeByCountryCode, getCountryAlpha2CodeByCountryName, getCountryAlpha3CodeByAlpha2Code, getCountryAlpha3CodeByAlpha3Code, getCountryAlpha3CodeByCountryCode, getCountryAlpha3CodeByCountryName, getCountryCodeByAlpha2Code, getCountryCodeByAlpha3Code, getCountryCodeByCountryCode, getCountryCodeByCountryName, getCountryNameByAlpha2Code, getCountryNameByAlpha3Code, getCountryNameByCountryCode, getCountryNameByCountryName, getCountrySubDivisionByAlpha2CodeAndName, getCountrySubDivisionCodeBySubDivisionName, getCountrySubDivisionNameBySubDivisionCode, getCountrySubDivisionsByAlpha2Code, getDocumentFileFormatFromExtension, isBoolean, isDate, isFunction, isFutureUnixTimestamp, isIpInRange, isIpInRanges, isMissing, isNumber, isObject, isString, isValidIp, isValidIpRange, isValidIpRanges, isValidUUID, notMissing, safeParseToBoolean, safeParseToDateTime, safeParseToDateTimeString, safeParseToNumber, safeParseToString, z, zStrictObject };
@@ -119,6 +119,34 @@ declare const safeParseToDateTimeString: ({
119
119
  format?: string;
120
120
  }) => string | null;
121
121
  //#endregion
122
+ //#region src/shared/sourceTypes/types.d.ts
123
+ declare enum RequestSourceType {
124
+ DASHBOARD = "DASHBOARD",
125
+ ADMIN = "ADMIN",
126
+ OPS = "OPS",
127
+ PROJECT_API = "PROJECT_API",
128
+ DATA_SYNC = "DATA_SYNC",
129
+ BACKGROUND_WORKER = "BACKGROUND_WORKER",
130
+ ASYNC_CALLS_WORKER = "ASYNC_CALLS_WORKER",
131
+ STACKONE_WEBHOOK = "STACKONE_WEBHOOK",
132
+ SYNTHETIC_WEBHOOK = "SYNTHETIC_WEBHOOK",
133
+ API_TRIGGER_WEBHOOK = "API_TRIGGER_WEBHOOK",
134
+ NATIVE_WEBHOOK = "NATIVE_WEBHOOK",
135
+ TOKEN_REFRESH = "TOKEN_REFRESH",
136
+ VALIDATE_CREDENTIALS = "VALIDATE_CREDENTIALS",
137
+ META = "META",
138
+ MONITORING = "MONITORING",
139
+ EXTERNAL_TRIGGER = "EXTERNAL_TRIGGER",
140
+ API_SESSION = "API_SESSION",
141
+ NATIVE_WEBHOOK_SETUP_WORKER = "NATIVE_WEBHOOK_SETUP_WORKER",
142
+ COOKIE_SESSION = "COOKIE_SESSION",
143
+ MCP_TOOL = "MCP_TOOL",
144
+ UNKNOWN = "UNKNOWN",
145
+ }
146
+ //#endregion
147
+ //#region src/shared/sourceTypes/nonBackgroundLogs.d.ts
148
+ declare const NON_BACKGROUND_LOGS_SOURCE_TYPES: RequestSourceType[];
149
+ //#endregion
122
150
  //#region src/shared/timeouts.d.ts
123
151
  declare const delay: (ms: number) => Promise<unknown>;
124
152
  //#endregion
@@ -145,4 +173,4 @@ declare const generateRequestId: (randomUUIDGenerator?: typeof randomUUID) => st
145
173
  declare const generateActionRunId: (randomUUIDGenerator?: typeof randomUUID) => string;
146
174
  declare const generateEventId: (randomUUIDGenerator?: typeof randomUUID) => string;
147
175
  //#endregion
148
- export { NormalizedKeyMap, ZodType, calculateNextAnniversary, calculateYearsElapsed, dateHasPassed, decodeFromBase64, deepCopy, delay, encodeToBase64, exponentialBackoffInMS, generateActionRunId, generateEventId, generateRequestId, getContentHash, getCountryAlpha2CodeByAlpha2Code, getCountryAlpha2CodeByAlpha3Code, getCountryAlpha2CodeByCitizenship, getCountryAlpha2CodeByCountryCode, getCountryAlpha2CodeByCountryName, getCountryAlpha3CodeByAlpha2Code, getCountryAlpha3CodeByAlpha3Code, getCountryAlpha3CodeByCountryCode, getCountryAlpha3CodeByCountryName, getCountryCodeByAlpha2Code, getCountryCodeByAlpha3Code, getCountryCodeByCountryCode, getCountryCodeByCountryName, getCountryNameByAlpha2Code, getCountryNameByAlpha3Code, getCountryNameByCountryCode, getCountryNameByCountryName, getCountrySubDivisionByAlpha2CodeAndName, getCountrySubDivisionCodeBySubDivisionName, getCountrySubDivisionNameBySubDivisionCode, getCountrySubDivisionsByAlpha2Code, getDocumentFileFormatFromExtension, isBoolean, isDate, isFunction, isFutureUnixTimestamp, isIpInRange, isIpInRanges, isMissing, isNumber, isObject, isString, isValidIp, isValidIpRange, isValidIpRanges, isValidUUID, notMissing, safeParseToBoolean, safeParseToDateTime, safeParseToDateTimeString, safeParseToNumber, safeParseToString, z, zStrictObject };
176
+ export { NON_BACKGROUND_LOGS_SOURCE_TYPES, NormalizedKeyMap, RequestSourceType, ZodType, calculateNextAnniversary, calculateYearsElapsed, dateHasPassed, decodeFromBase64, deepCopy, delay, encodeToBase64, exponentialBackoffInMS, generateActionRunId, generateEventId, generateRequestId, getContentHash, getCountryAlpha2CodeByAlpha2Code, getCountryAlpha2CodeByAlpha3Code, getCountryAlpha2CodeByCitizenship, getCountryAlpha2CodeByCountryCode, getCountryAlpha2CodeByCountryName, getCountryAlpha3CodeByAlpha2Code, getCountryAlpha3CodeByAlpha3Code, getCountryAlpha3CodeByCountryCode, getCountryAlpha3CodeByCountryName, getCountryCodeByAlpha2Code, getCountryCodeByAlpha3Code, getCountryCodeByCountryCode, getCountryCodeByCountryName, getCountryNameByAlpha2Code, getCountryNameByAlpha3Code, getCountryNameByCountryCode, getCountryNameByCountryName, getCountrySubDivisionByAlpha2CodeAndName, getCountrySubDivisionCodeBySubDivisionName, getCountrySubDivisionNameBySubDivisionCode, getCountrySubDivisionsByAlpha2Code, getDocumentFileFormatFromExtension, isBoolean, isDate, isFunction, isFutureUnixTimestamp, isIpInRange, isIpInRanges, isMissing, isNumber, isObject, isString, isValidIp, isValidIpRange, isValidIpRanges, isValidUUID, notMissing, safeParseToBoolean, safeParseToDateTime, safeParseToDateTimeString, safeParseToNumber, safeParseToString, z, zStrictObject };