@ttt-productions/q-core 0.1.8 → 0.1.10
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/constants/scheduled-jobs.d.ts +1 -1
- package/dist/constants/scheduled-jobs.d.ts.map +1 -1
- package/dist/constants/scheduled-jobs.js +1 -0
- package/dist/constants/scheduled-jobs.js.map +1 -1
- package/dist/schemas/atoms.d.ts +13 -7
- package/dist/schemas/atoms.d.ts.map +1 -1
- package/dist/schemas/atoms.js +4 -0
- package/dist/schemas/atoms.js.map +1 -1
- package/dist/upload-variables/index.d.ts +2 -0
- package/dist/upload-variables/index.d.ts.map +1 -1
- package/dist/upload-variables/index.js +2 -0
- package/dist/upload-variables/index.js.map +1 -1
- package/dist/upload-variables/sign-hardware-contract-variables.d.ts +7 -0
- package/dist/upload-variables/sign-hardware-contract-variables.d.ts.map +1 -0
- package/dist/upload-variables/sign-hardware-contract-variables.js +9 -0
- package/dist/upload-variables/sign-hardware-contract-variables.js.map +1 -0
- package/dist/upload-variables/sign-waiver-variables.d.ts +32 -0
- package/dist/upload-variables/sign-waiver-variables.d.ts.map +1 -0
- package/dist/upload-variables/sign-waiver-variables.js +21 -0
- package/dist/upload-variables/sign-waiver-variables.js.map +1 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The `sweepState/{sweepName}` document ids: one per scheduled pass that keeps a rolling cursor
|
|
3
3
|
* (`SweepStateSchema`), so each pass owns exactly one document and its cursor is never shared.
|
|
4
4
|
*/
|
|
5
|
-
export declare const SWEEP_STATE_NAMES: readonly ["reconcilePublicUsers", "orphanRegistrationCleanup", "reconcileAccountStatus", "pictureRetirement", "stalePendingMedia"];
|
|
5
|
+
export declare const SWEEP_STATE_NAMES: readonly ["reconcilePublicUsers", "orphanRegistrationCleanup", "reconcileAccountStatus", "pictureRetirement", "stalePendingMedia", "abandonedStaging"];
|
|
6
6
|
export type SweepStateName = (typeof SWEEP_STATE_NAMES)[number];
|
|
7
7
|
/**
|
|
8
8
|
* Most rows one pass holds in its `deferred` set — the rows its cursor moved past without clearing.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled-jobs.d.ts","sourceRoot":"","sources":["../../src/constants/scheduled-jobs.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"scheduled-jobs.d.ts","sourceRoot":"","sources":["../../src/constants/scheduled-jobs.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,wJAOpB,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,uEAAuE;AACvE,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,QAAiB,CAAC;AAE3D,iFAAiF;AACjF,eAAO,MAAM,oCAAoC,iBAAiB,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,yBAAyB,QAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled-jobs.js","sourceRoot":"","sources":["../../src/constants/scheduled-jobs.ts"],"names":[],"mappings":"AAAA,mDAAmD;AAEnD;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,sBAAsB;IACtB,2BAA2B;IAC3B,wBAAwB;IACxB,mBAAmB;IACnB,mBAAmB;
|
|
1
|
+
{"version":3,"file":"scheduled-jobs.js","sourceRoot":"","sources":["../../src/constants/scheduled-jobs.ts"],"names":[],"mappings":"AAAA,mDAAmD;AAEnD;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,sBAAsB;IACtB,2BAA2B;IAC3B,wBAAwB;IACxB,mBAAmB;IACnB,mBAAmB;IACnB,kBAAkB;CACV,CAAC;AAGX;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,CAAC;AAE3C,uEAAuE;AACvE,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,CAAC;AAEpD;;;;GAIG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAE3D,iFAAiF;AACjF,MAAM,CAAC,MAAM,oCAAoC,GAAG,cAAc,CAAC;AAEnE;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC","sourcesContent":["// Scheduled passes that keep a persisted position.\n\n/**\n * The `sweepState/{sweepName}` document ids: one per scheduled pass that keeps a rolling cursor\n * (`SweepStateSchema`), so each pass owns exactly one document and its cursor is never shared.\n */\nexport const SWEEP_STATE_NAMES = [\n 'reconcilePublicUsers',\n 'orphanRegistrationCleanup',\n 'reconcileAccountStatus',\n 'pictureRetirement',\n 'stalePendingMedia',\n 'abandonedStaging',\n] as const;\nexport type SweepStateName = (typeof SWEEP_STATE_NAMES)[number];\n\n/**\n * Most rows one pass holds in its `deferred` set — the rows its cursor moved past without clearing.\n * A row a pass cannot clear is rare, so a full set means something systemic is failing: the signal\n * to stop and report, not to keep growing the list. It also keeps the document a few kilobytes.\n */\nexport const SWEEP_STATE_MAX_DEFERRED = 50;\n\n/** Profiles one `reconcilePublicUsers` pass reads after its cursor. */\nexport const RECONCILE_PUBLIC_USERS_PAGE_SIZE = 200;\n\n/**\n * How long a login may hold no profile after its registration started before the orphan-login\n * cleanup deletes it. A taken name is refused before the login is created, so a registration that\n * does not finish within this window was abandoned.\n */\nexport const ORPHAN_REGISTRATION_GRACE_MS = 30 * 60 * 1000;\n\n/** How often the orphan-login cleanup runs (cron, in the leagues' time zone). */\nexport const ORPHAN_REGISTRATION_CLEANUP_SCHEDULE = '*/15 * * * *';\n\n/**\n * How long a registration-start record lives before its native-TTL policy removes it. Far longer than\n * the grace window, so every abandoned registration is still on the cleanup's work list when it is due.\n */\nexport const REGISTRATION_START_TTL_MS = 24 * 60 * 60 * 1000;\n"]}
|
package/dist/schemas/atoms.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
export { countSchema, epochMsSchema, gameIdSchema, gameRosterPlayerIdSchema, statEventIdSchema, leagueIdSchema, leagueModeSchema, repairReasonSchema, sportKeySchema, textFieldSchema, systemRoleSchema, teamIdSchema, teamIconSchema, teamRoleSchema, teamTypeSchema, userIdSchema, } from '../doc-schemas/atoms.js';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
3
|
+
export declare const actingEntrySchema: z.ZodEnum<{
|
|
4
|
+
admin: "admin";
|
|
5
|
+
member: "member";
|
|
6
|
+
}>;
|
|
7
|
+
export type ActingEntry = z.infer<typeof actingEntrySchema>;
|
|
8
|
+
export declare const teamInvitationIdSchema: z.ZodString;
|
|
9
|
+
export declare const teamJoinRequestIdSchema: z.ZodString;
|
|
10
|
+
export declare const displayNameSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
11
|
+
export declare const teamNameSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
12
|
+
export declare const teamJoinRequestMessageSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
13
|
+
export declare const teamInvitationMessageSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
14
|
+
export declare const contactPhoneSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
9
15
|
//# sourceMappingURL=atoms.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atoms.d.ts","sourceRoot":"","sources":["../../src/schemas/atoms.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"atoms.d.ts","sourceRoot":"","sources":["../../src/schemas/atoms.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,OAAO,EACL,WAAW,EACX,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,cAAc,EACd,YAAY,GACb,MAAM,yBAAyB,CAAC;AAIjC,eAAO,MAAM,iBAAiB;;;EAA8B,CAAC;AAC7D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,sBAAsB,aAA0B,CAAC;AAC9D,eAAO,MAAM,uBAAuB,aAA0B,CAAC;AAI/D,eAAO,MAAM,iBAAiB,wDAA6C,CAAC;AAC5E,eAAO,MAAM,cAAc,wDAA0C,CAAC;AAGtE,eAAO,MAAM,4BAA4B,wDAA0D,CAAC;AAEpG,eAAO,MAAM,2BAA2B,wDAAwD,CAAC;AAEjG,eAAO,MAAM,kBAAkB,wDAA8C,CAAC"}
|
package/dist/schemas/atoms.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
// Atoms for callable wire contracts. Enums, id atoms, the count, and the repair reason are the
|
|
2
2
|
// document atoms — one declaration, re-exported here so a callable schema file imports its atoms from
|
|
3
3
|
// one place.
|
|
4
|
+
import { z } from 'zod';
|
|
4
5
|
import { CONTACT_PHONE_INPUT_FORMAT, DISPLAY_NAME_INPUT_FORMAT, TEAM_INVITATION_MESSAGE_INPUT_FORMAT, TEAM_JOIN_REQUEST_MESSAGE_INPUT_FORMAT, TEAM_NAME_INPUT_FORMAT, } from '../input-formats/index.js';
|
|
5
6
|
import { documentIdSegmentSchema, textFieldSchema } from '../doc-schemas/atoms.js';
|
|
6
7
|
export { countSchema, epochMsSchema, gameIdSchema, gameRosterPlayerIdSchema, statEventIdSchema, leagueIdSchema, leagueModeSchema, repairReasonSchema, sportKeySchema, textFieldSchema, systemRoleSchema, teamIdSchema, teamIconSchema, teamRoleSchema, teamTypeSchema, userIdSchema, } from '../doc-schemas/atoms.js';
|
|
8
|
+
// Which entry of a member/admin twin pair of callables an action calls: the member entry, which
|
|
9
|
+
// re-reads the caller's team membership, or the admin entry, which re-reads the role roster.
|
|
10
|
+
export const actingEntrySchema = z.enum(['member', 'admin']);
|
|
7
11
|
export const teamInvitationIdSchema = documentIdSegmentSchema;
|
|
8
12
|
export const teamJoinRequestIdSchema = documentIdSegmentSchema;
|
|
9
13
|
// A display name and a team name, each built from its field's one declaration, so the form and the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atoms.js","sourceRoot":"","sources":["../../src/schemas/atoms.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,sGAAsG;AACtG,aAAa;AAEb,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,oCAAoC,EACpC,sCAAsC,EACtC,sBAAsB,GACvB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAEnF,OAAO,EACL,WAAW,EACX,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,cAAc,EACd,YAAY,GACb,MAAM,yBAAyB,CAAC;AAEjC,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAuB,CAAC;AAC9D,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAAC;AAE/D,mGAAmG;AACnG,2BAA2B;AAC3B,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACtE,kGAAkG;AAClG,+BAA+B;AAC/B,MAAM,CAAC,MAAM,4BAA4B,GAAG,eAAe,CAAC,sCAAsC,CAAC,CAAC;AACpG,+FAA+F;AAC/F,MAAM,CAAC,MAAM,2BAA2B,GAAG,eAAe,CAAC,oCAAoC,CAAC,CAAC;AACjG,kEAAkE;AAClE,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC,0BAA0B,CAAC,CAAC","sourcesContent":["// Atoms for callable wire contracts. Enums, id atoms, the count, and the repair reason are the\n// document atoms — one declaration, re-exported here so a callable schema file imports its atoms from\n// one place.\n\nimport {\n CONTACT_PHONE_INPUT_FORMAT,\n DISPLAY_NAME_INPUT_FORMAT,\n TEAM_INVITATION_MESSAGE_INPUT_FORMAT,\n TEAM_JOIN_REQUEST_MESSAGE_INPUT_FORMAT,\n TEAM_NAME_INPUT_FORMAT,\n} from '../input-formats/index.js';\n\nimport { documentIdSegmentSchema, textFieldSchema } from '../doc-schemas/atoms.js';\n\nexport {\n countSchema,\n epochMsSchema,\n gameIdSchema,\n gameRosterPlayerIdSchema,\n statEventIdSchema,\n leagueIdSchema,\n leagueModeSchema,\n repairReasonSchema,\n sportKeySchema,\n textFieldSchema,\n systemRoleSchema,\n teamIdSchema,\n teamIconSchema,\n teamRoleSchema,\n teamTypeSchema,\n userIdSchema,\n} from '../doc-schemas/atoms.js';\n\nexport const teamInvitationIdSchema = documentIdSegmentSchema;\nexport const teamJoinRequestIdSchema = documentIdSegmentSchema;\n\n// A display name and a team name, each built from its field's one declaration, so the form and the\n// wire run the same check.\nexport const displayNameSchema = textFieldSchema(DISPLAY_NAME_INPUT_FORMAT);\nexport const teamNameSchema = textFieldSchema(TEAM_NAME_INPUT_FORMAT);\n// A player's message with a join request, built from the field's one declaration, so the form and\n// the wire run the same check.\nexport const teamJoinRequestMessageSchema = textFieldSchema(TEAM_JOIN_REQUEST_MESSAGE_INPUT_FORMAT);\n// A captain's note on an invitation is optional — an empty note is stored as the empty string.\nexport const teamInvitationMessageSchema = textFieldSchema(TEAM_INVITATION_MESSAGE_INPUT_FORMAT);\n// A team's contact phone, built from its field's one declaration.\nexport const contactPhoneSchema = textFieldSchema(CONTACT_PHONE_INPUT_FORMAT);\n"]}
|
|
1
|
+
{"version":3,"file":"atoms.js","sourceRoot":"","sources":["../../src/schemas/atoms.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,sGAAsG;AACtG,aAAa;AAEb,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,oCAAoC,EACpC,sCAAsC,EACtC,sBAAsB,GACvB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAEnF,OAAO,EACL,WAAW,EACX,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,cAAc,EACd,YAAY,GACb,MAAM,yBAAyB,CAAC;AAEjC,gGAAgG;AAChG,6FAA6F;AAC7F,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAG7D,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAuB,CAAC;AAC9D,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAAC;AAE/D,mGAAmG;AACnG,2BAA2B;AAC3B,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACtE,kGAAkG;AAClG,+BAA+B;AAC/B,MAAM,CAAC,MAAM,4BAA4B,GAAG,eAAe,CAAC,sCAAsC,CAAC,CAAC;AACpG,+FAA+F;AAC/F,MAAM,CAAC,MAAM,2BAA2B,GAAG,eAAe,CAAC,oCAAoC,CAAC,CAAC;AACjG,kEAAkE;AAClE,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC,0BAA0B,CAAC,CAAC","sourcesContent":["// Atoms for callable wire contracts. Enums, id atoms, the count, and the repair reason are the\n// document atoms — one declaration, re-exported here so a callable schema file imports its atoms from\n// one place.\n\nimport { z } from 'zod';\nimport {\n CONTACT_PHONE_INPUT_FORMAT,\n DISPLAY_NAME_INPUT_FORMAT,\n TEAM_INVITATION_MESSAGE_INPUT_FORMAT,\n TEAM_JOIN_REQUEST_MESSAGE_INPUT_FORMAT,\n TEAM_NAME_INPUT_FORMAT,\n} from '../input-formats/index.js';\n\nimport { documentIdSegmentSchema, textFieldSchema } from '../doc-schemas/atoms.js';\n\nexport {\n countSchema,\n epochMsSchema,\n gameIdSchema,\n gameRosterPlayerIdSchema,\n statEventIdSchema,\n leagueIdSchema,\n leagueModeSchema,\n repairReasonSchema,\n sportKeySchema,\n textFieldSchema,\n systemRoleSchema,\n teamIdSchema,\n teamIconSchema,\n teamRoleSchema,\n teamTypeSchema,\n userIdSchema,\n} from '../doc-schemas/atoms.js';\n\n// Which entry of a member/admin twin pair of callables an action calls: the member entry, which\n// re-reads the caller's team membership, or the admin entry, which re-reads the role roster.\nexport const actingEntrySchema = z.enum(['member', 'admin']);\nexport type ActingEntry = z.infer<typeof actingEntrySchema>;\n\nexport const teamInvitationIdSchema = documentIdSegmentSchema;\nexport const teamJoinRequestIdSchema = documentIdSegmentSchema;\n\n// A display name and a team name, each built from its field's one declaration, so the form and the\n// wire run the same check.\nexport const displayNameSchema = textFieldSchema(DISPLAY_NAME_INPUT_FORMAT);\nexport const teamNameSchema = textFieldSchema(TEAM_NAME_INPUT_FORMAT);\n// A player's message with a join request, built from the field's one declaration, so the form and\n// the wire run the same check.\nexport const teamJoinRequestMessageSchema = textFieldSchema(TEAM_JOIN_REQUEST_MESSAGE_INPUT_FORMAT);\n// A captain's note on an invitation is optional — an empty note is stored as the empty string.\nexport const teamInvitationMessageSchema = textFieldSchema(TEAM_INVITATION_MESSAGE_INPUT_FORMAT);\n// A team's contact phone, built from its field's one declaration.\nexport const contactPhoneSchema = textFieldSchema(CONTACT_PHONE_INPUT_FORMAT);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/upload-variables/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/upload-variables/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/upload-variables/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC","sourcesContent":["export * from './on-progress.js';\nexport * from './picture-upload-variables.js';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/upload-variables/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC","sourcesContent":["export * from './on-progress.js';\nexport * from './picture-upload-variables.js';\nexport * from './sign-waiver-variables.js';\nexport * from './sign-hardware-contract-variables.js';\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SignHardwareContractVariablesSchema: z.ZodObject<{
|
|
3
|
+
contractId: z.ZodString;
|
|
4
|
+
signature: z.ZodCustom<Blob, Blob>;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
export type SignHardwareContractVariables = z.infer<typeof SignHardwareContractVariablesSchema>;
|
|
7
|
+
//# sourceMappingURL=sign-hardware-contract-variables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-hardware-contract-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/sign-hardware-contract-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,mCAAmC;;;kBAGrC,CAAC;AACZ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { hardwareLoanContractIdSchema } from '../doc-schemas/atoms.js';
|
|
3
|
+
// Variables for the hardware-contract signing mutation hook (MEDIA-005). The signature is the
|
|
4
|
+
// drawing as the canvas exported it.
|
|
5
|
+
export const SignHardwareContractVariablesSchema = z.object({
|
|
6
|
+
contractId: hardwareLoanContractIdSchema,
|
|
7
|
+
signature: z.instanceof(Blob),
|
|
8
|
+
}).strict();
|
|
9
|
+
//# sourceMappingURL=sign-hardware-contract-variables.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-hardware-contract-variables.js","sourceRoot":"","sources":["../../src/upload-variables/sign-hardware-contract-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEvE,8FAA8F;AAC9F,qCAAqC;AACrC,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1D,UAAU,EAAE,4BAA4B;IACxC,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC;CAC9B,CAAC,CAAC,MAAM,EAAE,CAAC","sourcesContent":["import { z } from 'zod';\nimport { hardwareLoanContractIdSchema } from '../doc-schemas/atoms.js';\n\n// Variables for the hardware-contract signing mutation hook (MEDIA-005). The signature is the\n// drawing as the canvas exported it.\nexport const SignHardwareContractVariablesSchema = z.object({\n contractId: hardwareLoanContractIdSchema,\n signature: z.instanceof(Blob),\n}).strict();\nexport type SignHardwareContractVariables = z.infer<typeof SignHardwareContractVariablesSchema>;\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const WaiverSubjectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
kind: z.ZodLiteral<"self">;
|
|
4
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5
|
+
ghostUserId: z.ZodString;
|
|
6
|
+
teamId: z.ZodString;
|
|
7
|
+
kind: z.ZodLiteral<"ghost">;
|
|
8
|
+
entry: z.ZodEnum<{
|
|
9
|
+
admin: "admin";
|
|
10
|
+
member: "member";
|
|
11
|
+
}>;
|
|
12
|
+
}, z.core.$strict>], "kind">;
|
|
13
|
+
export type WaiverSubject = z.infer<typeof WaiverSubjectSchema>;
|
|
14
|
+
export declare const SignWaiverVariablesSchema: z.ZodObject<{
|
|
15
|
+
leagueId: z.ZodString;
|
|
16
|
+
waiverTemplateId: z.ZodString;
|
|
17
|
+
waiverTemplateVersion: z.ZodNumber;
|
|
18
|
+
signature: z.ZodCustom<Blob, Blob>;
|
|
19
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
20
|
+
kind: z.ZodLiteral<"self">;
|
|
21
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
22
|
+
ghostUserId: z.ZodString;
|
|
23
|
+
teamId: z.ZodString;
|
|
24
|
+
kind: z.ZodLiteral<"ghost">;
|
|
25
|
+
entry: z.ZodEnum<{
|
|
26
|
+
admin: "admin";
|
|
27
|
+
member: "member";
|
|
28
|
+
}>;
|
|
29
|
+
}, z.core.$strict>], "kind">;
|
|
30
|
+
}, z.core.$strict>;
|
|
31
|
+
export type SignWaiverVariables = z.infer<typeof SignWaiverVariablesSchema>;
|
|
32
|
+
//# sourceMappingURL=sign-waiver-variables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-waiver-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/sign-waiver-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,mBAAmB;;;;;;;;;;4BAG9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAIhE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;kBAM3B,CAAC;AACZ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { leagueIdSchema } from '../doc-schemas/atoms.js';
|
|
3
|
+
import { waiverTemplateIdSchema, waiverTemplateVersionNumberSchema } from '../doc-schemas/waiver-template.js';
|
|
4
|
+
import { actingEntrySchema } from '../schemas/atoms.js';
|
|
5
|
+
import { ghostWaiverSubjectSchema } from '../schemas/signed-waivers.js';
|
|
6
|
+
// Whose waiver a signing is for: the signer's own, or a ghost's, witnessed through the entry the
|
|
7
|
+
// signer acts at.
|
|
8
|
+
export const WaiverSubjectSchema = z.discriminatedUnion('kind', [
|
|
9
|
+
z.object({ kind: z.literal('self') }).strict(),
|
|
10
|
+
ghostWaiverSubjectSchema.extend({ kind: z.literal('ghost'), entry: actingEntrySchema }).strict(),
|
|
11
|
+
]);
|
|
12
|
+
// Variables for the waiver-signing mutation hook (MEDIA-005). The template id and version are the
|
|
13
|
+
// wording the signing dialog displayed; the signature is the drawing as the canvas exported it.
|
|
14
|
+
export const SignWaiverVariablesSchema = z.object({
|
|
15
|
+
leagueId: leagueIdSchema,
|
|
16
|
+
waiverTemplateId: waiverTemplateIdSchema,
|
|
17
|
+
waiverTemplateVersion: waiverTemplateVersionNumberSchema,
|
|
18
|
+
signature: z.instanceof(Blob),
|
|
19
|
+
subject: WaiverSubjectSchema,
|
|
20
|
+
}).strict();
|
|
21
|
+
//# sourceMappingURL=sign-waiver-variables.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-waiver-variables.js","sourceRoot":"","sources":["../../src/upload-variables/sign-waiver-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;AAC9G,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAExE,iGAAiG;AACjG,kBAAkB;AAClB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC9D,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9C,wBAAwB,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE;CACjG,CAAC,CAAC;AAGH,kGAAkG;AAClG,gGAAgG;AAChG,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,cAAc;IACxB,gBAAgB,EAAE,sBAAsB;IACxC,qBAAqB,EAAE,iCAAiC;IACxD,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC;IAC7B,OAAO,EAAE,mBAAmB;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC","sourcesContent":["import { z } from 'zod';\nimport { leagueIdSchema } from '../doc-schemas/atoms.js';\nimport { waiverTemplateIdSchema, waiverTemplateVersionNumberSchema } from '../doc-schemas/waiver-template.js';\nimport { actingEntrySchema } from '../schemas/atoms.js';\nimport { ghostWaiverSubjectSchema } from '../schemas/signed-waivers.js';\n\n// Whose waiver a signing is for: the signer's own, or a ghost's, witnessed through the entry the\n// signer acts at.\nexport const WaiverSubjectSchema = z.discriminatedUnion('kind', [\n z.object({ kind: z.literal('self') }).strict(),\n ghostWaiverSubjectSchema.extend({ kind: z.literal('ghost'), entry: actingEntrySchema }).strict(),\n]);\nexport type WaiverSubject = z.infer<typeof WaiverSubjectSchema>;\n\n// Variables for the waiver-signing mutation hook (MEDIA-005). The template id and version are the\n// wording the signing dialog displayed; the signature is the drawing as the canvas exported it.\nexport const SignWaiverVariablesSchema = z.object({\n leagueId: leagueIdSchema,\n waiverTemplateId: waiverTemplateIdSchema,\n waiverTemplateVersion: waiverTemplateVersionNumberSchema,\n signature: z.instanceof(Blob),\n subject: WaiverSubjectSchema,\n}).strict();\nexport type SignWaiverVariables = z.infer<typeof SignWaiverVariablesSchema>;\n"]}
|