@fantastic.dev/better-stripe 0.92.0 → 0.94.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/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/client/billing/renewalAttach/internal/operationJournal.d.ts +41 -0
- package/dist/client/billing/renewalAttach/internal/operationJournal.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operationJournal.js +378 -0
- package/dist/client/billing/renewalAttach/internal/operationJournal.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.d.ts +44 -0
- package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js +251 -0
- package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js.map +1 -0
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +562 -0
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +281 -0
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +562 -0
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +281 -0
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/index.d.ts +3 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +16 -3
- package/dist/client/index.js.map +1 -1
- package/dist/component/_generated/api.d.ts +6 -0
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/api.js.map +1 -1
- package/dist/component/_generated/component.d.ts +406 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/balanceFunding/mutations.d.ts +27 -27
- package/dist/component/balanceFunding/queries.d.ts +1 -1
- package/dist/component/balanceFunding/workflowValidators.d.ts +16 -16
- package/dist/component/earnings/triggers.d.ts +294 -0
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/financialObservations/settlementHelpers.d.ts +3 -3
- package/dist/component/renewalOperations/helpers.d.ts +236 -0
- package/dist/component/renewalOperations/helpers.d.ts.map +1 -0
- package/dist/component/renewalOperations/helpers.js +457 -0
- package/dist/component/renewalOperations/helpers.js.map +1 -0
- package/dist/component/renewalOperations/mutations.d.ts +252 -0
- package/dist/component/renewalOperations/mutations.d.ts.map +1 -0
- package/dist/component/renewalOperations/mutations.js +340 -0
- package/dist/component/renewalOperations/mutations.js.map +1 -0
- package/dist/component/renewalOperations/queries.d.ts +163 -0
- package/dist/component/renewalOperations/queries.d.ts.map +1 -0
- package/dist/component/renewalOperations/queries.js +167 -0
- package/dist/component/renewalOperations/queries.js.map +1 -0
- package/dist/component/renewalOperations/schema.d.ts +1988 -0
- package/dist/component/renewalOperations/schema.d.ts.map +1 -0
- package/dist/component/renewalOperations/schema.js +227 -0
- package/dist/component/renewalOperations/schema.js.map +1 -0
- package/dist/component/schema.d.ts +281 -0
- package/dist/component/schema.js +5 -0
- package/dist/component/schema.js.map +1 -1
- package/dist/component/usage/allowance.fixtures.d.ts +281 -0
- package/dist/component/usage/allowance.fixtures.d.ts.map +1 -1
- package/dist/component/usageCredits/accounting.fixtures.d.ts +297 -16
- package/dist/component/usageCredits/accounting.fixtures.d.ts.map +1 -1
- package/dist/shared/renewalOperationJournal.d.ts +43 -0
- package/dist/shared/renewalOperationJournal.d.ts.map +1 -0
- package/dist/shared/renewalOperationJournal.js +294 -0
- package/dist/shared/renewalOperationJournal.js.map +1 -0
- package/docs/renewal-context-reads.md +180 -0
- package/package.json +1 -1
- package/src/client/billing/renewalAttach/internal/operationJournal.acknowledgement.integration.test.ts +500 -0
- package/src/client/billing/renewalAttach/internal/operationJournal.c10.integration.test.ts +560 -0
- package/src/client/billing/renewalAttach/internal/operationJournal.controls.integration.test.ts +356 -0
- package/src/client/billing/renewalAttach/internal/operationJournal.integration.test.ts +560 -0
- package/src/client/billing/renewalAttach/internal/operationJournal.methods.integration.test.ts +534 -0
- package/src/client/billing/renewalAttach/internal/operationJournal.ts +561 -0
- package/src/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.ts +334 -0
- package/src/client/billing/renewalAttach/internal/producer/producerGuards.integration.test.ts +323 -0
- package/src/client/billing/renewalAttach/internal/producer/producerInitial.integration.test.ts +301 -0
- package/src/client/billing/renewalAttach/internal/producer/producerIsolation.integration.test.ts +531 -0
- package/src/client/index.ts +24 -3
- package/src/component/_generated/api.ts +6 -0
- package/src/component/_generated/component.ts +450 -0
- package/src/component/renewalOperations/acknowledgement.fixtures.ts +552 -0
- package/src/component/renewalOperations/acknowledgement.test.ts +573 -0
- package/src/component/renewalOperations/acknowledgementReads.test.ts +442 -0
- package/src/component/renewalOperations/acknowledgementV2.test.ts +493 -0
- package/src/component/renewalOperations/acknowledgementV2Publication.test.ts +373 -0
- package/src/component/renewalOperations/basisBinding.test.ts +567 -0
- package/src/component/renewalOperations/basisLifecycle.test.ts +569 -0
- package/src/component/renewalOperations/boundHistory.test.ts +474 -0
- package/src/component/renewalOperations/helpers.ts +592 -0
- package/src/component/renewalOperations/historyReads.test.ts +595 -0
- package/src/component/renewalOperations/initialBasis.test.ts +578 -0
- package/src/component/renewalOperations/journal.test.ts +567 -0
- package/src/component/renewalOperations/mutations.ts +456 -0
- package/src/component/renewalOperations/payload.test.ts +589 -0
- package/src/component/renewalOperations/payloadEncoding.test.ts +592 -0
- package/src/component/renewalOperations/queries.ts +204 -0
- package/src/component/renewalOperations/schema.ts +268 -0
- package/src/component/renewalOperations/timingPolicy.fixtures.ts +193 -0
- package/src/component/renewalOperations/timingPolicy.test.ts +523 -0
- package/src/component/schema.ts +11 -0
- package/src/shared/renewalOperationJournal.ts +333 -0
|
@@ -1,5 +1,286 @@
|
|
|
1
1
|
export declare function setupCredits(): Promise<{
|
|
2
2
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
3
|
+
renewalOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4
|
+
activeAttemptId?: import("convex/values").GenericId<"renewalOperationAttempts"> | undefined;
|
|
5
|
+
authorizationId: string;
|
|
6
|
+
authorizationRevision: number;
|
|
7
|
+
authorizationScope: string;
|
|
8
|
+
initialBasis?: {
|
|
9
|
+
attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
|
|
10
|
+
basisJSON: string;
|
|
11
|
+
policyJSON: string;
|
|
12
|
+
sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
|
|
13
|
+
stage: "attach";
|
|
14
|
+
version: 1;
|
|
15
|
+
} | undefined;
|
|
16
|
+
knownAcknowledgement?: {
|
|
17
|
+
attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
|
|
18
|
+
dispatchEventId: import("convex/values").GenericId<"renewalOperationEvents">;
|
|
19
|
+
dispatchPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
|
|
20
|
+
receiptBinding: string;
|
|
21
|
+
receiptPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
|
|
22
|
+
responseEventId: import("convex/values").GenericId<"renewalOperationEvents">;
|
|
23
|
+
responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
|
|
24
|
+
schemaVersion: 1;
|
|
25
|
+
sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
|
|
26
|
+
stage: "attach";
|
|
27
|
+
} | undefined;
|
|
28
|
+
logicalOperationId: string;
|
|
29
|
+
payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
|
|
30
|
+
recordVersion?: 2 | undefined;
|
|
31
|
+
requestBinding: string;
|
|
32
|
+
revision: 0 | 1;
|
|
33
|
+
state: "PREPARED" | "RESERVED";
|
|
34
|
+
}, {
|
|
35
|
+
recordVersion: import("convex/values").VLiteral<2 | undefined, "optional">;
|
|
36
|
+
initialBasis: import("convex/values").VObject<{
|
|
37
|
+
attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
|
|
38
|
+
basisJSON: string;
|
|
39
|
+
policyJSON: string;
|
|
40
|
+
sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
|
|
41
|
+
stage: "attach";
|
|
42
|
+
version: 1;
|
|
43
|
+
} | undefined, {
|
|
44
|
+
version: import("convex/values").VLiteral<1, "required">;
|
|
45
|
+
attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
|
|
46
|
+
sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
|
|
47
|
+
stage: import("convex/values").VLiteral<"attach", "required">;
|
|
48
|
+
policyJSON: import("convex/values").VString<string, "required">;
|
|
49
|
+
basisJSON: import("convex/values").VString<string, "required">;
|
|
50
|
+
}, "optional", "attemptId" | "basisJSON" | "policyJSON" | "sourcePayloadId" | "stage" | "version">;
|
|
51
|
+
authorizationScope: import("convex/values").VString<string, "required">;
|
|
52
|
+
authorizationId: import("convex/values").VString<string, "required">;
|
|
53
|
+
authorizationRevision: import("convex/values").VFloat64<number, "required">;
|
|
54
|
+
logicalOperationId: import("convex/values").VString<string, "required">;
|
|
55
|
+
requestBinding: import("convex/values").VString<string, "required">;
|
|
56
|
+
payloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
|
|
57
|
+
revision: import("convex/values").VUnion<0 | 1, [import("convex/values").VLiteral<0, "required">, import("convex/values").VLiteral<1, "required">], "required", never>;
|
|
58
|
+
state: import("convex/values").VUnion<"PREPARED" | "RESERVED", [import("convex/values").VLiteral<"PREPARED", "required">, import("convex/values").VLiteral<"RESERVED", "required">], "required", never>;
|
|
59
|
+
activeAttemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts"> | undefined, "optional">;
|
|
60
|
+
knownAcknowledgement: import("convex/values").VObject<{
|
|
61
|
+
attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
|
|
62
|
+
dispatchEventId: import("convex/values").GenericId<"renewalOperationEvents">;
|
|
63
|
+
dispatchPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
|
|
64
|
+
receiptBinding: string;
|
|
65
|
+
receiptPayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
|
|
66
|
+
responseEventId: import("convex/values").GenericId<"renewalOperationEvents">;
|
|
67
|
+
responsePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
|
|
68
|
+
schemaVersion: 1;
|
|
69
|
+
sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
|
|
70
|
+
stage: "attach";
|
|
71
|
+
} | undefined, {
|
|
72
|
+
schemaVersion: import("convex/values").VLiteral<1, "required">;
|
|
73
|
+
stage: import("convex/values").VLiteral<"attach", "required">;
|
|
74
|
+
attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
|
|
75
|
+
sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
|
|
76
|
+
dispatchEventId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationEvents">, "required">;
|
|
77
|
+
dispatchPayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
|
|
78
|
+
responseEventId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationEvents">, "required">;
|
|
79
|
+
responsePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
|
|
80
|
+
receiptPayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
|
|
81
|
+
receiptBinding: import("convex/values").VString<string, "required">;
|
|
82
|
+
}, "optional", "attemptId" | "dispatchEventId" | "dispatchPayloadId" | "receiptBinding" | "receiptPayloadId" | "responseEventId" | "responsePayloadId" | "schemaVersion" | "sourcePayloadId" | "stage">;
|
|
83
|
+
}, "required", "activeAttemptId" | "authorizationId" | "authorizationRevision" | "authorizationScope" | "initialBasis" | "initialBasis.attemptId" | "initialBasis.basisJSON" | "initialBasis.policyJSON" | "initialBasis.sourcePayloadId" | "initialBasis.stage" | "initialBasis.version" | "knownAcknowledgement" | "knownAcknowledgement.attemptId" | "knownAcknowledgement.dispatchEventId" | "knownAcknowledgement.dispatchPayloadId" | "knownAcknowledgement.receiptBinding" | "knownAcknowledgement.receiptPayloadId" | "knownAcknowledgement.responseEventId" | "knownAcknowledgement.responsePayloadId" | "knownAcknowledgement.schemaVersion" | "knownAcknowledgement.sourcePayloadId" | "knownAcknowledgement.stage" | "logicalOperationId" | "payloadId" | "recordVersion" | "requestBinding" | "revision" | "state">, {
|
|
84
|
+
by_authorizationScope_and_logicalOperationId: ["authorizationScope", "logicalOperationId", "_creationTime"];
|
|
85
|
+
}, {}, {}>;
|
|
86
|
+
renewalOperationAttempts: import("convex/server").TableDefinition<import("convex/values").VUnion<{
|
|
87
|
+
accountJSON: string;
|
|
88
|
+
apiVersion: string;
|
|
89
|
+
authorizationId: string;
|
|
90
|
+
authorizationRevision: number;
|
|
91
|
+
authorizationScope: string;
|
|
92
|
+
basisJSON: string;
|
|
93
|
+
committedRevision: 1;
|
|
94
|
+
firstDispatchedAt: number;
|
|
95
|
+
key: string;
|
|
96
|
+
lastSequence: 0 | 1 | 2 | 3;
|
|
97
|
+
logicalOperationId: string;
|
|
98
|
+
operationId: import("convex/values").GenericId<"renewalOperations">;
|
|
99
|
+
ordinal: 1;
|
|
100
|
+
payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
|
|
101
|
+
preparedRevision: 0;
|
|
102
|
+
requestBinding: string;
|
|
103
|
+
stage: "attach" | "configure";
|
|
104
|
+
} | {
|
|
105
|
+
accountJSON: string;
|
|
106
|
+
apiVersion: string;
|
|
107
|
+
authorizationId: string;
|
|
108
|
+
authorizationRevision: number;
|
|
109
|
+
authorizationScope: string;
|
|
110
|
+
committedRevision: 1;
|
|
111
|
+
firstDispatchedAt: number;
|
|
112
|
+
key: string;
|
|
113
|
+
lastSequence: 0 | 1 | 2 | 3;
|
|
114
|
+
logicalOperationId: string;
|
|
115
|
+
operationId: import("convex/values").GenericId<"renewalOperations">;
|
|
116
|
+
ordinal: 1;
|
|
117
|
+
payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
|
|
118
|
+
preparedRevision: 0;
|
|
119
|
+
recordVersion: 2;
|
|
120
|
+
requestBinding: string;
|
|
121
|
+
stage: "attach";
|
|
122
|
+
timingPolicyJSON: string;
|
|
123
|
+
}, [import("convex/values").VObject<{
|
|
124
|
+
accountJSON: string;
|
|
125
|
+
apiVersion: string;
|
|
126
|
+
authorizationId: string;
|
|
127
|
+
authorizationRevision: number;
|
|
128
|
+
authorizationScope: string;
|
|
129
|
+
basisJSON: string;
|
|
130
|
+
committedRevision: 1;
|
|
131
|
+
firstDispatchedAt: number;
|
|
132
|
+
key: string;
|
|
133
|
+
lastSequence: 0 | 1 | 2 | 3;
|
|
134
|
+
logicalOperationId: string;
|
|
135
|
+
operationId: import("convex/values").GenericId<"renewalOperations">;
|
|
136
|
+
ordinal: 1;
|
|
137
|
+
payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
|
|
138
|
+
preparedRevision: 0;
|
|
139
|
+
requestBinding: string;
|
|
140
|
+
stage: "attach" | "configure";
|
|
141
|
+
}, {
|
|
142
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
|
|
143
|
+
payloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
|
|
144
|
+
authorizationScope: import("convex/values").VString<string, "required">;
|
|
145
|
+
authorizationId: import("convex/values").VString<string, "required">;
|
|
146
|
+
authorizationRevision: import("convex/values").VFloat64<number, "required">;
|
|
147
|
+
logicalOperationId: import("convex/values").VString<string, "required">;
|
|
148
|
+
requestBinding: import("convex/values").VString<string, "required">;
|
|
149
|
+
key: import("convex/values").VString<string, "required">;
|
|
150
|
+
apiVersion: import("convex/values").VString<string, "required">;
|
|
151
|
+
accountJSON: import("convex/values").VString<string, "required">;
|
|
152
|
+
firstDispatchedAt: import("convex/values").VFloat64<number, "required">;
|
|
153
|
+
ordinal: import("convex/values").VLiteral<1, "required">;
|
|
154
|
+
preparedRevision: import("convex/values").VLiteral<0, "required">;
|
|
155
|
+
committedRevision: import("convex/values").VLiteral<1, "required">;
|
|
156
|
+
stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
|
|
157
|
+
basisJSON: import("convex/values").VString<string, "required">;
|
|
158
|
+
lastSequence: import("convex/values").VUnion<0 | 1 | 2 | 3, [import("convex/values").VLiteral<0, "required">, import("convex/values").VUnion<1 | 2 | 3, [import("convex/values").VLiteral<1, "required">, import("convex/values").VLiteral<2, "required">, import("convex/values").VLiteral<3, "required">], "required", never>], "required", never>;
|
|
159
|
+
}, "required", "accountJSON" | "apiVersion" | "authorizationId" | "authorizationRevision" | "authorizationScope" | "basisJSON" | "committedRevision" | "firstDispatchedAt" | "key" | "lastSequence" | "logicalOperationId" | "operationId" | "ordinal" | "payloadId" | "preparedRevision" | "requestBinding" | "stage">, import("convex/values").VObject<{
|
|
160
|
+
accountJSON: string;
|
|
161
|
+
apiVersion: string;
|
|
162
|
+
authorizationId: string;
|
|
163
|
+
authorizationRevision: number;
|
|
164
|
+
authorizationScope: string;
|
|
165
|
+
committedRevision: 1;
|
|
166
|
+
firstDispatchedAt: number;
|
|
167
|
+
key: string;
|
|
168
|
+
lastSequence: 0 | 1 | 2 | 3;
|
|
169
|
+
logicalOperationId: string;
|
|
170
|
+
operationId: import("convex/values").GenericId<"renewalOperations">;
|
|
171
|
+
ordinal: 1;
|
|
172
|
+
payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
|
|
173
|
+
preparedRevision: 0;
|
|
174
|
+
recordVersion: 2;
|
|
175
|
+
requestBinding: string;
|
|
176
|
+
stage: "attach";
|
|
177
|
+
timingPolicyJSON: string;
|
|
178
|
+
}, {
|
|
179
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
|
|
180
|
+
payloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
|
|
181
|
+
authorizationScope: import("convex/values").VString<string, "required">;
|
|
182
|
+
authorizationId: import("convex/values").VString<string, "required">;
|
|
183
|
+
authorizationRevision: import("convex/values").VFloat64<number, "required">;
|
|
184
|
+
logicalOperationId: import("convex/values").VString<string, "required">;
|
|
185
|
+
requestBinding: import("convex/values").VString<string, "required">;
|
|
186
|
+
key: import("convex/values").VString<string, "required">;
|
|
187
|
+
apiVersion: import("convex/values").VString<string, "required">;
|
|
188
|
+
accountJSON: import("convex/values").VString<string, "required">;
|
|
189
|
+
firstDispatchedAt: import("convex/values").VFloat64<number, "required">;
|
|
190
|
+
ordinal: import("convex/values").VLiteral<1, "required">;
|
|
191
|
+
preparedRevision: import("convex/values").VLiteral<0, "required">;
|
|
192
|
+
committedRevision: import("convex/values").VLiteral<1, "required">;
|
|
193
|
+
recordVersion: import("convex/values").VLiteral<2, "required">;
|
|
194
|
+
stage: import("convex/values").VLiteral<"attach", "required">;
|
|
195
|
+
timingPolicyJSON: import("convex/values").VString<string, "required">;
|
|
196
|
+
lastSequence: import("convex/values").VUnion<0 | 1 | 2 | 3, [import("convex/values").VLiteral<0, "required">, import("convex/values").VUnion<1 | 2 | 3, [import("convex/values").VLiteral<1, "required">, import("convex/values").VLiteral<2, "required">, import("convex/values").VLiteral<3, "required">], "required", never>], "required", never>;
|
|
197
|
+
}, "required", "accountJSON" | "apiVersion" | "authorizationId" | "authorizationRevision" | "authorizationScope" | "committedRevision" | "firstDispatchedAt" | "key" | "lastSequence" | "logicalOperationId" | "operationId" | "ordinal" | "payloadId" | "preparedRevision" | "recordVersion" | "requestBinding" | "stage" | "timingPolicyJSON">], "required", "accountJSON" | "apiVersion" | "authorizationId" | "authorizationRevision" | "authorizationScope" | "basisJSON" | "committedRevision" | "firstDispatchedAt" | "key" | "lastSequence" | "logicalOperationId" | "operationId" | "ordinal" | "payloadId" | "preparedRevision" | "recordVersion" | "requestBinding" | "stage" | "timingPolicyJSON">, {
|
|
198
|
+
by_operationId: ["operationId", "_creationTime"];
|
|
199
|
+
}, {}, {}>;
|
|
200
|
+
renewalOperationEvents: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
201
|
+
attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
|
|
202
|
+
binding: string;
|
|
203
|
+
operationId: import("convex/values").GenericId<"renewalOperations">;
|
|
204
|
+
payloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
|
|
205
|
+
sequence: 1 | 2 | 3;
|
|
206
|
+
sourcePayloadId: import("convex/values").GenericId<"renewalOperationPayloads">;
|
|
207
|
+
stage: "attach" | "configure";
|
|
208
|
+
}, {
|
|
209
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
|
|
210
|
+
attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
|
|
211
|
+
stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
|
|
212
|
+
sourcePayloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
|
|
213
|
+
sequence: import("convex/values").VUnion<1 | 2 | 3, [import("convex/values").VLiteral<1, "required">, import("convex/values").VLiteral<2, "required">, import("convex/values").VLiteral<3, "required">], "required", never>;
|
|
214
|
+
binding: import("convex/values").VString<string, "required">;
|
|
215
|
+
payloadId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationPayloads">, "required">;
|
|
216
|
+
}, "required", "attemptId" | "binding" | "operationId" | "payloadId" | "sequence" | "sourcePayloadId" | "stage">, {
|
|
217
|
+
by_attemptId_and_sequence: ["attemptId", "sequence", "_creationTime"];
|
|
218
|
+
}, {}, {}>;
|
|
219
|
+
renewalOperationPayloads: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
220
|
+
codecVersion: 1;
|
|
221
|
+
json: string;
|
|
222
|
+
owner?: {
|
|
223
|
+
kind: "operation";
|
|
224
|
+
operationId: import("convex/values").GenericId<"renewalOperations">;
|
|
225
|
+
} | {
|
|
226
|
+
attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
|
|
227
|
+
kind: "event";
|
|
228
|
+
operationId: import("convex/values").GenericId<"renewalOperations">;
|
|
229
|
+
sequence: 1 | 2 | 3;
|
|
230
|
+
stage: "attach" | "configure";
|
|
231
|
+
} | {
|
|
232
|
+
attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
|
|
233
|
+
kind: "receipt";
|
|
234
|
+
operationId: import("convex/values").GenericId<"renewalOperations">;
|
|
235
|
+
stage: "attach" | "configure";
|
|
236
|
+
} | undefined;
|
|
237
|
+
}, {
|
|
238
|
+
codecVersion: import("convex/values").VLiteral<1, "required">;
|
|
239
|
+
json: import("convex/values").VString<string, "required">;
|
|
240
|
+
owner: import("convex/values").VUnion<{
|
|
241
|
+
kind: "operation";
|
|
242
|
+
operationId: import("convex/values").GenericId<"renewalOperations">;
|
|
243
|
+
} | {
|
|
244
|
+
attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
|
|
245
|
+
kind: "event";
|
|
246
|
+
operationId: import("convex/values").GenericId<"renewalOperations">;
|
|
247
|
+
sequence: 1 | 2 | 3;
|
|
248
|
+
stage: "attach" | "configure";
|
|
249
|
+
} | {
|
|
250
|
+
attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
|
|
251
|
+
kind: "receipt";
|
|
252
|
+
operationId: import("convex/values").GenericId<"renewalOperations">;
|
|
253
|
+
stage: "attach" | "configure";
|
|
254
|
+
} | undefined, [import("convex/values").VObject<{
|
|
255
|
+
kind: "operation";
|
|
256
|
+
operationId: import("convex/values").GenericId<"renewalOperations">;
|
|
257
|
+
}, {
|
|
258
|
+
kind: import("convex/values").VLiteral<"operation", "required">;
|
|
259
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
|
|
260
|
+
}, "required", "kind" | "operationId">, import("convex/values").VObject<{
|
|
261
|
+
attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
|
|
262
|
+
kind: "event";
|
|
263
|
+
operationId: import("convex/values").GenericId<"renewalOperations">;
|
|
264
|
+
sequence: 1 | 2 | 3;
|
|
265
|
+
stage: "attach" | "configure";
|
|
266
|
+
}, {
|
|
267
|
+
kind: import("convex/values").VLiteral<"event", "required">;
|
|
268
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
|
|
269
|
+
attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
|
|
270
|
+
stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
|
|
271
|
+
sequence: import("convex/values").VUnion<1 | 2 | 3, [import("convex/values").VLiteral<1, "required">, import("convex/values").VLiteral<2, "required">, import("convex/values").VLiteral<3, "required">], "required", never>;
|
|
272
|
+
}, "required", "attemptId" | "kind" | "operationId" | "sequence" | "stage">, import("convex/values").VObject<{
|
|
273
|
+
attemptId: import("convex/values").GenericId<"renewalOperationAttempts">;
|
|
274
|
+
kind: "receipt";
|
|
275
|
+
operationId: import("convex/values").GenericId<"renewalOperations">;
|
|
276
|
+
stage: "attach" | "configure";
|
|
277
|
+
}, {
|
|
278
|
+
kind: import("convex/values").VLiteral<"receipt", "required">;
|
|
279
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperations">, "required">;
|
|
280
|
+
attemptId: import("convex/values").VId<import("convex/values").GenericId<"renewalOperationAttempts">, "required">;
|
|
281
|
+
stage: import("convex/values").VUnion<"attach" | "configure", [import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"configure", "required">], "required", never>;
|
|
282
|
+
}, "required", "attemptId" | "kind" | "operationId" | "stage">], "optional", "attemptId" | "kind" | "operationId" | "sequence" | "stage">;
|
|
283
|
+
}, "required", "codecVersion" | "json" | "owner" | "owner.attemptId" | "owner.kind" | "owner.operationId" | "owner.sequence" | "owner.stage">, {}, {}, {}>;
|
|
3
284
|
reversalObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4
285
|
deleted: boolean;
|
|
5
286
|
fingerprint: string;
|
|
@@ -2351,14 +2632,6 @@ export declare function setupCredits(): Promise<{
|
|
|
2351
2632
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2352
2633
|
requestKey: string;
|
|
2353
2634
|
result?: {
|
|
2354
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2355
|
-
retryable: false;
|
|
2356
|
-
status: "conflict";
|
|
2357
|
-
} | {
|
|
2358
|
-
reason: "policy_invalid";
|
|
2359
|
-
retryable: false;
|
|
2360
|
-
status: "rejected";
|
|
2361
|
-
} | {
|
|
2362
2635
|
operation: {
|
|
2363
2636
|
accountId: string;
|
|
2364
2637
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2369,6 +2642,14 @@ export declare function setupCredits(): Promise<{
|
|
|
2369
2642
|
} | {
|
|
2370
2643
|
enabled: boolean;
|
|
2371
2644
|
status: "unchanged";
|
|
2645
|
+
} | {
|
|
2646
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2647
|
+
retryable: false;
|
|
2648
|
+
status: "conflict";
|
|
2649
|
+
} | {
|
|
2650
|
+
reason: "policy_invalid";
|
|
2651
|
+
retryable: false;
|
|
2652
|
+
status: "rejected";
|
|
2372
2653
|
} | {
|
|
2373
2654
|
reason: "provider_pending";
|
|
2374
2655
|
retryable: true;
|
|
@@ -2379,14 +2660,6 @@ export declare function setupCredits(): Promise<{
|
|
|
2379
2660
|
payload: import("convex/values").VString<string, "required">;
|
|
2380
2661
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2381
2662
|
result: import("convex/values").VUnion<{
|
|
2382
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2383
|
-
retryable: false;
|
|
2384
|
-
status: "conflict";
|
|
2385
|
-
} | {
|
|
2386
|
-
reason: "policy_invalid";
|
|
2387
|
-
retryable: false;
|
|
2388
|
-
status: "rejected";
|
|
2389
|
-
} | {
|
|
2390
2663
|
operation: {
|
|
2391
2664
|
accountId: string;
|
|
2392
2665
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2397,6 +2670,14 @@ export declare function setupCredits(): Promise<{
|
|
|
2397
2670
|
} | {
|
|
2398
2671
|
enabled: boolean;
|
|
2399
2672
|
status: "unchanged";
|
|
2673
|
+
} | {
|
|
2674
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2675
|
+
retryable: false;
|
|
2676
|
+
status: "conflict";
|
|
2677
|
+
} | {
|
|
2678
|
+
reason: "policy_invalid";
|
|
2679
|
+
retryable: false;
|
|
2680
|
+
status: "rejected";
|
|
2400
2681
|
} | {
|
|
2401
2682
|
reason: "provider_pending";
|
|
2402
2683
|
retryable: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounting.fixtures.d.ts","sourceRoot":"","sources":["../../../src/component/usageCredits/accounting.fixtures.ts"],"names":[],"mappings":"AAgBA,wBAAsB,YAAY
|
|
1
|
+
{"version":3,"file":"accounting.fixtures.d.ts","sourceRoot":"","sources":["../../../src/component/usageCredits/accounting.fixtures.ts"],"names":[],"mappings":"AAgBA,wBAAsB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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export declare function canonicalJournalRecord(raw: string): Readonly<{
|
|
4
|
+
json: string;
|
|
5
|
+
authorizationScope: string;
|
|
6
|
+
authorizationId: string;
|
|
7
|
+
authorizationRevision: number;
|
|
8
|
+
logicalOperationId: string;
|
|
9
|
+
requestBinding: string;
|
|
10
|
+
}>;
|
|
11
|
+
/** Complete immutable reservation DATA. This does not validate a live Owner. */
|
|
12
|
+
export declare function journalReservationMaterial(full: ReturnType<typeof canonicalJournalRecord>): Readonly<{
|
|
13
|
+
key: string;
|
|
14
|
+
apiVersion: string;
|
|
15
|
+
firstDispatchedAt: number;
|
|
16
|
+
accountJSON: string;
|
|
17
|
+
stage: "attach";
|
|
18
|
+
recordVersion: 2;
|
|
19
|
+
timingPolicyJSON: string;
|
|
20
|
+
}> | Readonly<{
|
|
21
|
+
stage: "attach" | "configure";
|
|
22
|
+
key: string;
|
|
23
|
+
apiVersion: string;
|
|
24
|
+
firstDispatchedAt: number;
|
|
25
|
+
accountJSON: string;
|
|
26
|
+
basisJSON: string;
|
|
27
|
+
}>;
|
|
28
|
+
/** Canonical six-field basis DATA and exact original-policy projection only. */
|
|
29
|
+
export declare function canonicalInitialBasis(policyJSON: string, basisJSON: string): Readonly<{
|
|
30
|
+
policyJSON: string;
|
|
31
|
+
basisJSON: string;
|
|
32
|
+
}>;
|
|
33
|
+
/** Existing C10 hash domain and whole budgets, for DATA consistency only. */
|
|
34
|
+
export declare function canonicalJournalEvent(sequence: number, raw: string): Promise<Readonly<{
|
|
35
|
+
sequence: 1 | 2 | 3;
|
|
36
|
+
binding: string;
|
|
37
|
+
json: string;
|
|
38
|
+
}>>;
|
|
39
|
+
/** Journal receiver boundary: exactly 1 MiB fits; strictly greater refuses. */
|
|
40
|
+
export declare function admitJournalValue(value: Value): void;
|
|
41
|
+
/** Admit extracted database strings without changing the retained JSON model. */
|
|
42
|
+
export declare function admitJournalStrings(values: readonly string[]): void;
|
|
43
|
+
//# sourceMappingURL=renewalOperationJournal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renewalOperationJournal.d.ts","sourceRoot":"","sources":["../../src/shared/renewalOperationJournal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AA4E1D,mFAAmF;AACnF,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM;;;;;;;GAwCjD;AAED,gFAAgF;AAChF,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC;;;;;WA0CpC,QAAQ;mBACA,CAAC;;;;;;;;;GAQrB;AAED,gFAAgF;AAChF,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;;;GA4F1E;AAED,6EAA6E;AAC7E,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;;;;IAoCxE;AAED,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAMpD;AAED,iFAAiF;AACjF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAcnE"}
|