@jsb188/mday 1.1.8 → 1.1.11
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/package.json +105 -35
- package/src/constants/agentDoc.ts +12 -0
- package/src/constants/agentMemory.ts +154 -0
- package/src/constants/aiChat.ts +5 -0
- package/src/constants/campaign.ts +127 -0
- package/src/constants/dataTable.ts +48 -0
- package/src/constants/dataTableFieldTypes.generated.ts +63 -0
- package/src/constants/docAccess.ts +32 -0
- package/src/constants/email.ts +44 -0
- package/src/constants/fieldDoc.ts +34 -0
- package/src/constants/graphqlReactivity.ts +113 -0
- package/src/constants/inboundContact.ts +8 -0
- package/src/constants/integration.ts +13 -0
- package/src/constants/log.ts +7 -366
- package/src/constants/logActivityGroupColors.generated.ts +19 -0
- package/src/constants/logTaxonomy.generated.ts +1103 -0
- package/src/constants/noteDoc.ts +77 -0
- package/src/constants/organization.ts +18 -11
- package/src/constants/pageRoute.ts +23 -0
- package/src/constants/schedule.ts +220 -0
- package/src/constants/scheduleRuleTemplateSeed.ts +138 -0
- package/src/constants/scheduleRuleTemplates.generated.ts +145 -0
- package/src/constants/sheet.ts +168 -0
- package/src/constants/sheetRegionSources.generated.ts +578 -0
- package/src/constants/square.ts +16 -0
- package/src/constants/storage.ts +61 -0
- package/src/constants/usage.ts +79 -0
- package/src/schemas/editLogEntry.ts +1017 -738
- package/src/schemas/fieldDocsQuery.ts +12 -0
- package/src/schemas/inboundContact.ts +77 -0
- package/src/schemas/logsQuery.ts +57 -316
- package/src/schemas/organization.ts +53 -213
- package/src/types/account.d.ts +81 -0
- package/src/types/agentDoc.d.ts +64 -0
- package/src/types/agentMemory.d.ts +74 -0
- package/src/types/campaign.d.ts +683 -0
- package/src/types/dataTable.d.ts +366 -0
- package/src/types/docAccess.d.ts +96 -0
- package/src/types/email.d.ts +142 -0
- package/src/types/fieldDoc.d.ts +273 -0
- package/src/types/inboundContact.d.ts +57 -0
- package/src/types/integration.d.ts +42 -0
- package/src/types/log.d.ts +169 -190
- package/src/types/noteDoc.d.ts +86 -0
- package/src/types/organization.d.ts +175 -76
- package/src/types/pageRoute.d.ts +48 -0
- package/src/types/schedule.d.ts +391 -0
- package/src/types/sheet.d.ts +1130 -0
- package/src/types/storage.d.ts +242 -0
- package/src/types/usage.d.ts +106 -0
- package/src/types/workflow.d.ts +305 -0
- package/src/utils/agentDoc.ts +109 -0
- package/src/utils/aiChat.ts +26 -0
- package/src/utils/campaign.ts +741 -0
- package/src/utils/campaignFormEditor.ts +871 -0
- package/src/utils/dataTable.ts +849 -0
- package/src/utils/dataTableFieldTypeRegistry.ts +105 -0
- package/src/utils/dataTableRealtimeAuthority.ts +209 -0
- package/src/utils/dataTableRealtimeSelection.ts +134 -0
- package/src/utils/dataTableRowDocument.ts +508 -0
- package/src/utils/dataTableSource.ts +230 -0
- package/src/utils/docAccess.ts +383 -0
- package/src/utils/documentName.ts +53 -0
- package/src/utils/email.ts +172 -0
- package/src/utils/fieldDoc.ts +113 -0
- package/src/utils/log.ts +173 -778
- package/src/utils/logRegistryValue.ts +90 -0
- package/src/utils/logStoreRead.ts +266 -0
- package/src/utils/logTaxonomy.ts +76 -0
- package/src/utils/logTaxonomyDisplay.ts +439 -0
- package/src/utils/noteDoc.ts +827 -0
- package/src/utils/organization.ts +683 -81
- package/src/utils/pageRoute.ts +71 -0
- package/src/utils/schedule.ts +799 -0
- package/src/utils/scheduleEvaluation.ts +1994 -0
- package/src/utils/scheduleICS.ts +246 -0
- package/src/utils/scheduleRuleTemplates.ts +188 -0
- package/src/utils/sheet.ts +4973 -0
- package/src/utils/sheetAxisMove.ts +830 -0
- package/src/utils/sheetBootstrap.ts +1769 -0
- package/src/utils/sheetCommand.ts +423 -0
- package/src/utils/sheetExport.ts +238 -0
- package/src/utils/sheetFormulaEvaluation.ts +914 -0
- package/src/utils/sheetFormulaEvaluator.ts +852 -0
- package/src/utils/sheetJournal.ts +78 -0
- package/src/utils/sheetNumberFormat.ts +1211 -0
- package/src/utils/sheetRegion.ts +374 -0
- package/src/utils/sheetRegionFilter.ts +1259 -0
- package/src/utils/sheetRegionSourceRegistry.ts +594 -0
- package/src/utils/sheetSequence.ts +148 -0
- package/src/utils/sheetSnapshot.ts +992 -0
- package/src/utils/sheetStructureEdit.ts +1284 -0
- package/src/utils/square.ts +32 -0
- package/src/utils/storage.ts +152 -0
- package/src/utils/table-route.ts +262 -0
- package/src/utils/workflow.ts +380 -0
- package/tests/dataTableFieldTypeRegistry.test.ts +110 -0
- package/tests/docAccess.test.ts +525 -0
- package/tests/editLogEntry.test.ts +112 -0
- package/tests/noteDoc.test.ts +669 -0
- package/tests/schedule.test.ts +693 -0
- package/tests/scheduleEvaluation.test.ts +1970 -0
- package/tests/scheduleICS.test.ts +208 -0
- package/tests/scheduleRuleTemplates.test.ts +176 -0
- package/tests/scheduleSweepInvariants.test.ts +428 -0
- package/tests/sheetAxisMove.test.ts +343 -0
- package/tests/sheetFormulaEvaluator.test.ts +575 -0
- package/tests/sheetRegionFilter.test.ts +1135 -0
- package/tests/sheetSequence.test.ts +41 -0
- package/tests/sheetStructureEdit.test.ts +82 -0
- package/tsconfig.json +12 -0
- package/vitest.config.ts +8 -0
- package/src/constants/log-activityTexts.ts +0 -209
- package/src/constants/product.ts +0 -66
- package/src/constants/report.ts +0 -25
- package/src/schemas/childOrganizationsQuery.ts +0 -44
- package/src/schemas/productsQuery.ts +0 -145
- package/src/schemas/reportsQuery.ts +0 -107
- package/src/types/action.d.ts +0 -42
- package/src/types/product.d.ts +0 -173
- package/src/types/report.d.ts +0 -203
- package/src/utils/product-calEvent.ts +0 -508
- package/src/utils/route-helpers.ts +0 -583
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import {
|
|
2
|
+
parseSheetJournalSeq,
|
|
3
|
+
sheetJournalSeqIsPositive,
|
|
4
|
+
} from './sheetSequence.ts';
|
|
5
|
+
|
|
6
|
+
export const SHEET_CELLS_JOURNAL_VERSION = 3;
|
|
7
|
+
export const SHEET_REGION_JOURNAL_VERSION = 1;
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Return whether optional CELLS journal ordering metadata has the exact
|
|
11
|
+
* hard-NEW v3 shape emitted by the authoritative journal writer.
|
|
12
|
+
*/
|
|
13
|
+
export function isHardNewSheetCellsJournalOrderedTargetGroups(
|
|
14
|
+
value: unknown,
|
|
15
|
+
): boolean {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
if (!Array.isArray(value) || !value.length) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const serverSeqs = new Set<string>();
|
|
24
|
+
for (const groupValue of value) {
|
|
25
|
+
if (
|
|
26
|
+
!groupValue ||
|
|
27
|
+
typeof groupValue !== 'object' ||
|
|
28
|
+
Array.isArray(groupValue)
|
|
29
|
+
) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
const group = groupValue as Record<string, unknown>;
|
|
33
|
+
const normalizedServerSeq =
|
|
34
|
+
typeof group.serverSeq === 'string'
|
|
35
|
+
? parseSheetJournalSeq(group.serverSeq)
|
|
36
|
+
: null;
|
|
37
|
+
if (
|
|
38
|
+
Object.keys(group).length !== 2 ||
|
|
39
|
+
!normalizedServerSeq ||
|
|
40
|
+
!sheetJournalSeqIsPositive(normalizedServerSeq) ||
|
|
41
|
+
serverSeqs.has(normalizedServerSeq) ||
|
|
42
|
+
!Array.isArray(group.targets) ||
|
|
43
|
+
!group.targets.length
|
|
44
|
+
) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
serverSeqs.add(normalizedServerSeq);
|
|
48
|
+
|
|
49
|
+
const coordinates = new Set<string>();
|
|
50
|
+
for (const compactTarget of group.targets) {
|
|
51
|
+
if (!Array.isArray(compactTarget) || compactTarget.length !== 3) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
const [rowIndex, columnIndex, propertyMask] = compactTarget;
|
|
55
|
+
if (
|
|
56
|
+
typeof rowIndex !== 'number' ||
|
|
57
|
+
!Number.isSafeInteger(rowIndex) ||
|
|
58
|
+
rowIndex < 1 ||
|
|
59
|
+
typeof columnIndex !== 'number' ||
|
|
60
|
+
!Number.isSafeInteger(columnIndex) ||
|
|
61
|
+
columnIndex < 1 ||
|
|
62
|
+
typeof propertyMask !== 'number' ||
|
|
63
|
+
!Number.isSafeInteger(propertyMask) ||
|
|
64
|
+
propertyMask < 1 ||
|
|
65
|
+
propertyMask > 15
|
|
66
|
+
) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
const coordinate = `${rowIndex}:${columnIndex}`;
|
|
70
|
+
if (coordinates.has(coordinate)) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
coordinates.add(coordinate);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return true;
|
|
78
|
+
}
|