@stackone/utils 0.14.0 → 0.15.0
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/edge/index.d.mts +28 -1
- package/dist/edge/index.mjs +7 -7
- package/dist/node/index.cjs +29 -0
- package/dist/node/{index.d.ts → index.d.cts} +28 -1
- package/dist/node/index.d.mts +28 -1
- package/dist/node/index.mjs +7 -7
- package/package.json +4 -7
- package/dist/node/index.js +0 -29
package/dist/edge/index.d.mts
CHANGED
|
@@ -118,6 +118,33 @@ declare const safeParseToDateTimeString: ({
|
|
|
118
118
|
format?: string;
|
|
119
119
|
}) => string | null;
|
|
120
120
|
//#endregion
|
|
121
|
+
//#region src/shared/sourceTypes/types.d.ts
|
|
122
|
+
declare enum RequestSourceType {
|
|
123
|
+
DASHBOARD = "DASHBOARD",
|
|
124
|
+
ADMIN = "ADMIN",
|
|
125
|
+
OPS = "OPS",
|
|
126
|
+
PROJECT_API = "PROJECT_API",
|
|
127
|
+
DATA_SYNC = "DATA_SYNC",
|
|
128
|
+
BACKGROUND_WORKER = "BACKGROUND_WORKER",
|
|
129
|
+
ASYNC_CALLS_WORKER = "ASYNC_CALLS_WORKER",
|
|
130
|
+
STACKONE_WEBHOOK = "STACKONE_WEBHOOK",
|
|
131
|
+
SYNTHETIC_WEBHOOK = "SYNTHETIC_WEBHOOK",
|
|
132
|
+
API_TRIGGER_WEBHOOK = "API_TRIGGER_WEBHOOK",
|
|
133
|
+
NATIVE_WEBHOOK = "NATIVE_WEBHOOK",
|
|
134
|
+
TOKEN_REFRESH = "TOKEN_REFRESH",
|
|
135
|
+
VALIDATE_CREDENTIALS = "VALIDATE_CREDENTIALS",
|
|
136
|
+
META = "META",
|
|
137
|
+
MONITORING = "MONITORING",
|
|
138
|
+
EXTERNAL_TRIGGER = "EXTERNAL_TRIGGER",
|
|
139
|
+
API_SESSION = "API_SESSION",
|
|
140
|
+
NATIVE_WEBHOOK_SETUP_WORKER = "NATIVE_WEBHOOK_SETUP_WORKER",
|
|
141
|
+
COOKIE_SESSION = "COOKIE_SESSION",
|
|
142
|
+
MCP_TOOL = "MCP_TOOL",
|
|
143
|
+
}
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/shared/sourceTypes/nonBackgroundLogs.d.ts
|
|
146
|
+
declare const NON_BACKGROUND_LOGS_SOURCE_TYPES: RequestSourceType[];
|
|
147
|
+
//#endregion
|
|
121
148
|
//#region src/shared/timeouts.d.ts
|
|
122
149
|
declare const delay: (ms: number) => Promise<unknown>;
|
|
123
150
|
//#endregion
|
|
@@ -142,4 +169,4 @@ declare const getContentHash: (content: unknown) => string;
|
|
|
142
169
|
declare const isValidUUID: (uuid: string) => boolean;
|
|
143
170
|
declare const generateRequestId: (randomUUIDGenerator?: () => string) => string;
|
|
144
171
|
//#endregion
|
|
145
|
-
export { NormalizedKeyMap, ZodType, calculateNextAnniversary, calculateYearsElapsed, dateHasPassed, decodeFromBase64, deepCopy, delay, encodeToBase64, exponentialBackoffInMS, 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 };
|
|
172
|
+
export { NON_BACKGROUND_LOGS_SOURCE_TYPES, NormalizedKeyMap, RequestSourceType, ZodType, calculateNextAnniversary, calculateYearsElapsed, dateHasPassed, decodeFromBase64, deepCopy, delay, encodeToBase64, exponentialBackoffInMS, 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 };
|