@fantastic.dev/better-stripe 0.91.0 → 0.92.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 +6 -0
- package/README.md +1 -1
- package/dist/client/billing/renewalAttach/internal/configure/actor.d.ts +6 -0
- package/dist/client/billing/renewalAttach/internal/configure/actor.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/configure/actor.js +46 -56
- package/dist/client/billing/renewalAttach/internal/configure/actor.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.d.ts +3 -0
- package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.js +61 -0
- package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/actor.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/observation/actor.js +25 -4
- package/dist/client/billing/renewalAttach/internal/observation/actor.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/observation/capture.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/observation/capture.js +3 -2
- package/dist/client/billing/renewalAttach/internal/observation/capture.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.d.ts +5 -0
- package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.js +11 -0
- package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/types.d.ts +5 -0
- package/dist/client/billing/renewalAttach/internal/observation/types.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/observation/types.js.map +1 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +32 -32
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +32 -32
- package/dist/component/balanceFunding/mutations.d.ts +16 -16
- package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
- package/dist/component/financialObservations/settlementHelpers.d.ts +3 -3
- package/dist/component/payoutRelease/queries.d.ts +2 -2
- package/dist/component/payoutRelease/queries.d.ts.map +1 -1
- package/dist/component/processingCostReconciliation/rollback.d.ts +1 -1
- package/dist/component/usageCredits/accounting.fixtures.d.ts +16 -16
- package/docs/renewal-material-observation.md +32 -11
- package/package.json +1 -1
- package/src/client/billing/renewalAttach/internal/configure/actor.ts +63 -52
- package/src/client/billing/renewalAttach/internal/configure/ownedContinuation.ts +56 -0
- package/src/client/billing/renewalAttach/internal/observation/actor.ts +46 -3
- package/src/client/billing/renewalAttach/internal/observation/capture.ts +3 -2
- package/src/client/billing/renewalAttach/internal/observation/configureAcknowledgement.ts +20 -0
- package/src/client/billing/renewalAttach/internal/observation/observationConfigureACK.integration.test.ts +36 -0
- package/src/client/billing/renewalAttach/internal/observation/observationConfigureACKControls.integration.test.ts +48 -0
- package/src/client/billing/renewalAttach/internal/observation/observationConfigureACKLifecycle.integration.test.ts +44 -0
- package/src/client/billing/renewalAttach/internal/observation/observationConfiguredHistory.integration.test.ts +34 -0
- package/src/client/billing/renewalAttach/internal/observation/types.ts +5 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteAssertions.ts +5 -1
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDeclarations.ts +12 -1
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDelegate.ts +38 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteHistory.ts +8 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteOperation.ts +10 -23
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKAssertions.ts +115 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKDeclarations.ts +141 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleAssertions.ts +74 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleDeclarations.ts +79 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleInstrumentation.ts +207 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleOperation.ts +494 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKOperation.ts +452 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryAssertions.ts +88 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryDeclarations.ts +170 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryNative.ts +99 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryOperation.ts +411 -0
|
@@ -2360,14 +2360,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
2360
2360
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2361
2361
|
requestKey: string;
|
|
2362
2362
|
result?: {
|
|
2363
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2364
|
-
retryable: false;
|
|
2365
|
-
status: "conflict";
|
|
2366
|
-
} | {
|
|
2367
|
-
reason: "policy_invalid";
|
|
2368
|
-
retryable: false;
|
|
2369
|
-
status: "rejected";
|
|
2370
|
-
} | {
|
|
2371
2363
|
operation: {
|
|
2372
2364
|
accountId: string;
|
|
2373
2365
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2378,6 +2370,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
2378
2370
|
} | {
|
|
2379
2371
|
enabled: boolean;
|
|
2380
2372
|
status: "unchanged";
|
|
2373
|
+
} | {
|
|
2374
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2375
|
+
retryable: false;
|
|
2376
|
+
status: "conflict";
|
|
2377
|
+
} | {
|
|
2378
|
+
reason: "policy_invalid";
|
|
2379
|
+
retryable: false;
|
|
2380
|
+
status: "rejected";
|
|
2381
2381
|
} | {
|
|
2382
2382
|
reason: "provider_pending";
|
|
2383
2383
|
retryable: true;
|
|
@@ -2388,14 +2388,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
2388
2388
|
payload: import("convex/values").VString<string, "required">;
|
|
2389
2389
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2390
2390
|
result: import("convex/values").VUnion<{
|
|
2391
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2392
|
-
retryable: false;
|
|
2393
|
-
status: "conflict";
|
|
2394
|
-
} | {
|
|
2395
|
-
reason: "policy_invalid";
|
|
2396
|
-
retryable: false;
|
|
2397
|
-
status: "rejected";
|
|
2398
|
-
} | {
|
|
2399
2391
|
operation: {
|
|
2400
2392
|
accountId: string;
|
|
2401
2393
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2406,6 +2398,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
2406
2398
|
} | {
|
|
2407
2399
|
enabled: boolean;
|
|
2408
2400
|
status: "unchanged";
|
|
2401
|
+
} | {
|
|
2402
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2403
|
+
retryable: false;
|
|
2404
|
+
status: "conflict";
|
|
2405
|
+
} | {
|
|
2406
|
+
reason: "policy_invalid";
|
|
2407
|
+
retryable: false;
|
|
2408
|
+
status: "rejected";
|
|
2409
2409
|
} | {
|
|
2410
2410
|
reason: "provider_pending";
|
|
2411
2411
|
retryable: true;
|
|
@@ -7215,14 +7215,6 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7215
7215
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
7216
7216
|
requestKey: string;
|
|
7217
7217
|
result?: {
|
|
7218
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7219
|
-
retryable: false;
|
|
7220
|
-
status: "conflict";
|
|
7221
|
-
} | {
|
|
7222
|
-
reason: "policy_invalid";
|
|
7223
|
-
retryable: false;
|
|
7224
|
-
status: "rejected";
|
|
7225
|
-
} | {
|
|
7226
7218
|
operation: {
|
|
7227
7219
|
accountId: string;
|
|
7228
7220
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -7233,6 +7225,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7233
7225
|
} | {
|
|
7234
7226
|
enabled: boolean;
|
|
7235
7227
|
status: "unchanged";
|
|
7228
|
+
} | {
|
|
7229
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7230
|
+
retryable: false;
|
|
7231
|
+
status: "conflict";
|
|
7232
|
+
} | {
|
|
7233
|
+
reason: "policy_invalid";
|
|
7234
|
+
retryable: false;
|
|
7235
|
+
status: "rejected";
|
|
7236
7236
|
} | {
|
|
7237
7237
|
reason: "provider_pending";
|
|
7238
7238
|
retryable: true;
|
|
@@ -7243,14 +7243,6 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7243
7243
|
payload: import("convex/values").VString<string, "required">;
|
|
7244
7244
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
7245
7245
|
result: import("convex/values").VUnion<{
|
|
7246
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7247
|
-
retryable: false;
|
|
7248
|
-
status: "conflict";
|
|
7249
|
-
} | {
|
|
7250
|
-
reason: "policy_invalid";
|
|
7251
|
-
retryable: false;
|
|
7252
|
-
status: "rejected";
|
|
7253
|
-
} | {
|
|
7254
7246
|
operation: {
|
|
7255
7247
|
accountId: string;
|
|
7256
7248
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -7261,6 +7253,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7261
7253
|
} | {
|
|
7262
7254
|
enabled: boolean;
|
|
7263
7255
|
status: "unchanged";
|
|
7256
|
+
} | {
|
|
7257
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7258
|
+
retryable: false;
|
|
7259
|
+
status: "conflict";
|
|
7260
|
+
} | {
|
|
7261
|
+
reason: "policy_invalid";
|
|
7262
|
+
retryable: false;
|
|
7263
|
+
status: "rejected";
|
|
7264
7264
|
} | {
|
|
7265
7265
|
reason: "provider_pending";
|
|
7266
7266
|
retryable: true;
|
|
@@ -2351,6 +2351,14 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2351
2351
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2352
2352
|
requestKey: string;
|
|
2353
2353
|
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
|
+
} | {
|
|
2354
2362
|
operation: {
|
|
2355
2363
|
accountId: string;
|
|
2356
2364
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2361,14 +2369,6 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2361
2369
|
} | {
|
|
2362
2370
|
enabled: boolean;
|
|
2363
2371
|
status: "unchanged";
|
|
2364
|
-
} | {
|
|
2365
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2366
|
-
retryable: false;
|
|
2367
|
-
status: "conflict";
|
|
2368
|
-
} | {
|
|
2369
|
-
reason: "policy_invalid";
|
|
2370
|
-
retryable: false;
|
|
2371
|
-
status: "rejected";
|
|
2372
2372
|
} | {
|
|
2373
2373
|
reason: "provider_pending";
|
|
2374
2374
|
retryable: true;
|
|
@@ -2379,6 +2379,14 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2379
2379
|
payload: import("convex/values").VString<string, "required">;
|
|
2380
2380
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2381
2381
|
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
|
+
} | {
|
|
2382
2390
|
operation: {
|
|
2383
2391
|
accountId: string;
|
|
2384
2392
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2389,14 +2397,6 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2389
2397
|
} | {
|
|
2390
2398
|
enabled: boolean;
|
|
2391
2399
|
status: "unchanged";
|
|
2392
|
-
} | {
|
|
2393
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2394
|
-
retryable: false;
|
|
2395
|
-
status: "conflict";
|
|
2396
|
-
} | {
|
|
2397
|
-
reason: "policy_invalid";
|
|
2398
|
-
retryable: false;
|
|
2399
|
-
status: "rejected";
|
|
2400
2400
|
} | {
|
|
2401
2401
|
reason: "provider_pending";
|
|
2402
2402
|
retryable: true;
|
|
@@ -7207,6 +7207,14 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
7207
7207
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
7208
7208
|
requestKey: string;
|
|
7209
7209
|
result?: {
|
|
7210
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7211
|
+
retryable: false;
|
|
7212
|
+
status: "conflict";
|
|
7213
|
+
} | {
|
|
7214
|
+
reason: "policy_invalid";
|
|
7215
|
+
retryable: false;
|
|
7216
|
+
status: "rejected";
|
|
7217
|
+
} | {
|
|
7210
7218
|
operation: {
|
|
7211
7219
|
accountId: string;
|
|
7212
7220
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -7217,14 +7225,6 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
7217
7225
|
} | {
|
|
7218
7226
|
enabled: boolean;
|
|
7219
7227
|
status: "unchanged";
|
|
7220
|
-
} | {
|
|
7221
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7222
|
-
retryable: false;
|
|
7223
|
-
status: "conflict";
|
|
7224
|
-
} | {
|
|
7225
|
-
reason: "policy_invalid";
|
|
7226
|
-
retryable: false;
|
|
7227
|
-
status: "rejected";
|
|
7228
7228
|
} | {
|
|
7229
7229
|
reason: "provider_pending";
|
|
7230
7230
|
retryable: true;
|
|
@@ -7235,6 +7235,14 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
7235
7235
|
payload: import("convex/values").VString<string, "required">;
|
|
7236
7236
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
7237
7237
|
result: import("convex/values").VUnion<{
|
|
7238
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7239
|
+
retryable: false;
|
|
7240
|
+
status: "conflict";
|
|
7241
|
+
} | {
|
|
7242
|
+
reason: "policy_invalid";
|
|
7243
|
+
retryable: false;
|
|
7244
|
+
status: "rejected";
|
|
7245
|
+
} | {
|
|
7238
7246
|
operation: {
|
|
7239
7247
|
accountId: string;
|
|
7240
7248
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -7245,14 +7253,6 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
7245
7253
|
} | {
|
|
7246
7254
|
enabled: boolean;
|
|
7247
7255
|
status: "unchanged";
|
|
7248
|
-
} | {
|
|
7249
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7250
|
-
retryable: false;
|
|
7251
|
-
status: "conflict";
|
|
7252
|
-
} | {
|
|
7253
|
-
reason: "policy_invalid";
|
|
7254
|
-
retryable: false;
|
|
7255
|
-
status: "rejected";
|
|
7256
7256
|
} | {
|
|
7257
7257
|
reason: "provider_pending";
|
|
7258
7258
|
retryable: true;
|
|
@@ -22,14 +22,6 @@ export declare const begin: import("convex/server").RegisteredMutation<"public",
|
|
|
22
22
|
requestKey: string;
|
|
23
23
|
scopeKey: string;
|
|
24
24
|
}, Promise<{
|
|
25
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
26
|
-
retryable: false;
|
|
27
|
-
status: "conflict";
|
|
28
|
-
} | {
|
|
29
|
-
reason: "policy_invalid";
|
|
30
|
-
retryable: false;
|
|
31
|
-
status: "rejected";
|
|
32
|
-
} | {
|
|
33
25
|
operation: {
|
|
34
26
|
accountId: string;
|
|
35
27
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -40,6 +32,14 @@ export declare const begin: import("convex/server").RegisteredMutation<"public",
|
|
|
40
32
|
} | {
|
|
41
33
|
enabled: boolean;
|
|
42
34
|
status: "unchanged";
|
|
35
|
+
} | {
|
|
36
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
37
|
+
retryable: false;
|
|
38
|
+
status: "conflict";
|
|
39
|
+
} | {
|
|
40
|
+
reason: "policy_invalid";
|
|
41
|
+
retryable: false;
|
|
42
|
+
status: "rejected";
|
|
43
43
|
} | {
|
|
44
44
|
reason: "provider_pending";
|
|
45
45
|
retryable: true;
|
|
@@ -395,14 +395,6 @@ export declare const prepare: import("convex/server").RegisteredMutation<"public
|
|
|
395
395
|
requestKey: string;
|
|
396
396
|
scopeKey: string;
|
|
397
397
|
}, Promise<{
|
|
398
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
399
|
-
retryable: false;
|
|
400
|
-
status: "conflict";
|
|
401
|
-
} | {
|
|
402
|
-
reason: "policy_invalid";
|
|
403
|
-
retryable: false;
|
|
404
|
-
status: "rejected";
|
|
405
|
-
} | {
|
|
406
398
|
operation: {
|
|
407
399
|
accountId: string;
|
|
408
400
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -413,6 +405,14 @@ export declare const prepare: import("convex/server").RegisteredMutation<"public
|
|
|
413
405
|
} | {
|
|
414
406
|
enabled: boolean;
|
|
415
407
|
status: "unchanged";
|
|
408
|
+
} | {
|
|
409
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
410
|
+
retryable: false;
|
|
411
|
+
status: "conflict";
|
|
412
|
+
} | {
|
|
413
|
+
reason: "policy_invalid";
|
|
414
|
+
retryable: false;
|
|
415
|
+
status: "rejected";
|
|
416
416
|
} | {
|
|
417
417
|
reason: "provider_pending";
|
|
418
418
|
retryable: true;
|
|
@@ -2,14 +2,6 @@ import type { Infer } from "convex/values";
|
|
|
2
2
|
import type { MutationCtx } from "../_generated/server.js";
|
|
3
3
|
import { prepareArgs, finishPreparationArgs } from "./mutationValidators.js";
|
|
4
4
|
export declare function prepareHandler(ctx: MutationCtx, args: Infer<typeof prepareArgs>): Promise<{
|
|
5
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
6
|
-
retryable: false;
|
|
7
|
-
status: "conflict";
|
|
8
|
-
} | {
|
|
9
|
-
reason: "policy_invalid";
|
|
10
|
-
retryable: false;
|
|
11
|
-
status: "rejected";
|
|
12
|
-
} | {
|
|
13
5
|
operation: {
|
|
14
6
|
accountId: string;
|
|
15
7
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -20,6 +12,14 @@ export declare function prepareHandler(ctx: MutationCtx, args: Infer<typeof prep
|
|
|
20
12
|
} | {
|
|
21
13
|
enabled: boolean;
|
|
22
14
|
status: "unchanged";
|
|
15
|
+
} | {
|
|
16
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
17
|
+
retryable: false;
|
|
18
|
+
status: "conflict";
|
|
19
|
+
} | {
|
|
20
|
+
reason: "policy_invalid";
|
|
21
|
+
retryable: false;
|
|
22
|
+
status: "rejected";
|
|
23
23
|
} | {
|
|
24
24
|
reason: "provider_pending";
|
|
25
25
|
retryable: true;
|
|
@@ -9,9 +9,9 @@ export declare function legOwnership(ctx: MutationCtx, bucketKey: string, prior:
|
|
|
9
9
|
orgId: string | undefined;
|
|
10
10
|
ownershipStatus: "ambiguous";
|
|
11
11
|
} | {
|
|
12
|
-
registrationId?: undefined;
|
|
13
12
|
userId?: undefined;
|
|
14
13
|
orgId?: undefined;
|
|
14
|
+
registrationId?: undefined;
|
|
15
15
|
ownershipStatus: "ambiguous";
|
|
16
16
|
} | {
|
|
17
17
|
registrationId: import("convex/values").GenericId<"financialOwnership">;
|
|
@@ -19,9 +19,9 @@ export declare function legOwnership(ctx: MutationCtx, bucketKey: string, prior:
|
|
|
19
19
|
orgId: string | undefined;
|
|
20
20
|
ownershipStatus: "unknown";
|
|
21
21
|
} | {
|
|
22
|
-
registrationId?: undefined;
|
|
23
22
|
userId?: undefined;
|
|
24
23
|
orgId?: undefined;
|
|
24
|
+
registrationId?: undefined;
|
|
25
25
|
ownershipStatus: "unknown";
|
|
26
26
|
} | {
|
|
27
27
|
registrationId: import("convex/values").GenericId<"financialOwnership">;
|
|
@@ -29,9 +29,9 @@ export declare function legOwnership(ctx: MutationCtx, bucketKey: string, prior:
|
|
|
29
29
|
orgId: string | undefined;
|
|
30
30
|
ownershipStatus: "contradictory";
|
|
31
31
|
} | {
|
|
32
|
-
registrationId?: undefined;
|
|
33
32
|
userId?: undefined;
|
|
34
33
|
orgId?: undefined;
|
|
34
|
+
registrationId?: undefined;
|
|
35
35
|
ownershipStatus: "contradictory";
|
|
36
36
|
} | {
|
|
37
37
|
registrationId: import("convex/values").GenericId<"financialOwnership">;
|
|
@@ -163,10 +163,10 @@ export declare const snapshot: import("convex/server").RegisteredQuery<"public",
|
|
|
163
163
|
accountId: string;
|
|
164
164
|
ownerKey: string;
|
|
165
165
|
}, Promise<{
|
|
166
|
-
status: "held";
|
|
167
|
-
reason: "snapshot_limit";
|
|
168
166
|
transfers?: undefined;
|
|
169
167
|
claims?: undefined;
|
|
168
|
+
status: "held";
|
|
169
|
+
reason: "snapshot_limit";
|
|
170
170
|
} | {
|
|
171
171
|
reason?: undefined;
|
|
172
172
|
status: "ready";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/payoutRelease/queries.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIlB,CAAC;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiBd,CAAC;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BlB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;GAQf,CAAC;AAEH,4FAA4F;AAC5F,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/payoutRelease/queries.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIlB,CAAC;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiBd,CAAC;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BlB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;GAQf,CAAC;AAEH,4FAA4F;AAC5F,eAAO,MAAM,QAAQ;;;;;;YAsBE,MAAM;YAAmB,gBAAgB;;;YAS3C,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAE1B,CAAC"}
|
|
@@ -14,7 +14,7 @@ export declare function checkRollback(ctx: MutationCtx, op: Doc<"processingCostR
|
|
|
14
14
|
readonly bindFunding?: undefined;
|
|
15
15
|
} | {
|
|
16
16
|
reason?: undefined;
|
|
17
|
-
|
|
17
|
+
retryable?: undefined;
|
|
18
18
|
readonly status: "ready";
|
|
19
19
|
readonly bindFunding: boolean;
|
|
20
20
|
}>;
|
|
@@ -2351,6 +2351,14 @@ export declare function setupCredits(): Promise<{
|
|
|
2351
2351
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2352
2352
|
requestKey: string;
|
|
2353
2353
|
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
|
+
} | {
|
|
2354
2362
|
operation: {
|
|
2355
2363
|
accountId: string;
|
|
2356
2364
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2361,14 +2369,6 @@ export declare function setupCredits(): Promise<{
|
|
|
2361
2369
|
} | {
|
|
2362
2370
|
enabled: boolean;
|
|
2363
2371
|
status: "unchanged";
|
|
2364
|
-
} | {
|
|
2365
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2366
|
-
retryable: false;
|
|
2367
|
-
status: "conflict";
|
|
2368
|
-
} | {
|
|
2369
|
-
reason: "policy_invalid";
|
|
2370
|
-
retryable: false;
|
|
2371
|
-
status: "rejected";
|
|
2372
2372
|
} | {
|
|
2373
2373
|
reason: "provider_pending";
|
|
2374
2374
|
retryable: true;
|
|
@@ -2379,6 +2379,14 @@ export declare function setupCredits(): Promise<{
|
|
|
2379
2379
|
payload: import("convex/values").VString<string, "required">;
|
|
2380
2380
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2381
2381
|
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
|
+
} | {
|
|
2382
2390
|
operation: {
|
|
2383
2391
|
accountId: string;
|
|
2384
2392
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2389,14 +2397,6 @@ export declare function setupCredits(): Promise<{
|
|
|
2389
2397
|
} | {
|
|
2390
2398
|
enabled: boolean;
|
|
2391
2399
|
status: "unchanged";
|
|
2392
|
-
} | {
|
|
2393
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2394
|
-
retryable: false;
|
|
2395
|
-
status: "conflict";
|
|
2396
|
-
} | {
|
|
2397
|
-
reason: "policy_invalid";
|
|
2398
|
-
retryable: false;
|
|
2399
|
-
status: "rejected";
|
|
2400
2400
|
} | {
|
|
2401
2401
|
reason: "provider_pending";
|
|
2402
2402
|
retryable: true;
|
|
@@ -123,7 +123,7 @@ a fixed error; safe but insufficient material returns `unknown` or `conflict`
|
|
|
123
123
|
with a fixed reason. No raw provider error is logged or returned. The host remains
|
|
124
124
|
responsible for retaining its immutable request and response data when reads fail.
|
|
125
125
|
|
|
126
|
-
## Internal owned observation
|
|
126
|
+
## Internal owned observation and retained configure acknowledgements
|
|
127
127
|
|
|
128
128
|
`captureOwnedRenewalObservationV2` is internal; each captured handle permits one
|
|
129
129
|
invocation. Its fixed Source must bind the original Owner and origin, original
|
|
@@ -141,21 +141,42 @@ The read order is Schedule, expanded Subscription, target Price, billing Custome
|
|
|
141
141
|
then unique Coupon IDs across the original and current subscription and item
|
|
142
142
|
discounts. Two distinct Coupon IDs give six GETs; the union permits at most 40
|
|
143
143
|
Coupons and 44 GETs. Complete bare response bodies and ordinary unknown fields are
|
|
144
|
-
retained. This invocation makes no POST
|
|
145
|
-
|
|
144
|
+
retained. This invocation makes no POST and appends no C10 events. When both
|
|
145
|
+
configure fields are absent, it calls no configure-receipt constructor. The
|
|
146
|
+
optional branch reconstructs the retained receipt before current reads.
|
|
146
147
|
|
|
147
148
|
`owned_observation_data` contains `observation`, `reads`, the final read's
|
|
148
|
-
`observedAt`, `retainedConfigureAcknowledgement: "absent"` and
|
|
149
|
+
`observedAt`, `retainedConfigureAcknowledgement: "absent" | "present"` and
|
|
149
150
|
`operationalAuthority: false`. The complete pure-helper result is preserved.
|
|
150
151
|
Record, observer input and result each remain within 500000 serialized characters
|
|
151
152
|
and UTF-8 bytes, 10000 nodes counting repeated occurrences, and depth 40. The
|
|
152
153
|
result is detached and frozen before its final Owner check. Owner checks guard
|
|
153
154
|
settled continuations; they do not promise immediate cancellation of pending HTTP.
|
|
154
155
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
156
|
+
The fixed Source can omit both `configureAcknowledgement` and
|
|
157
|
+
`configureOperation`, or supply both. Supplying only one rejects before the
|
|
158
|
+
original projection. With both present, a supported original projection Failure
|
|
159
|
+
still returns unchanged before configure custody checks or reads.
|
|
160
|
+
|
|
161
|
+
The optional branch requires the actual configure operation and the exact
|
|
162
|
+
acknowledgement wrapper returned by its writer under the same original Owner, origin, attachment
|
|
163
|
+
entry and complete retained record. An equal reconstructed object does not
|
|
164
|
+
establish custody. A valid receipt that was constructed but never returned does
|
|
165
|
+
not satisfy this relation. The lookup exposes detached frozen data, including
|
|
166
|
+
the complete original receipt-constructor input, without exposing private history
|
|
167
|
+
or transport capabilities. The observer constructs a fresh receipt from that
|
|
168
|
+
input and checks the entire acknowledgement, including default-setting presence,
|
|
169
|
+
before acquiring current reads. It supplies the full retained input to the
|
|
170
|
+
unchanged public pure helper as `configureReceipt`.
|
|
171
|
+
|
|
172
|
+
The `present` marker describes this process-local returned-receipt association.
|
|
173
|
+
It does not establish durable custody after restart, provider qualification,
|
|
174
|
+
pending or effective state. A retained one-phase response can still produce an
|
|
175
|
+
honest `unknown` result. With complete configured historical material, the branch
|
|
176
|
+
preserves the pure helper's `pending_material_match` or
|
|
177
|
+
`current_target_material_match` comparisons. Those results remain unsigned
|
|
178
|
+
material predicates. The absent branch keeps the helper's existing
|
|
179
|
+
pending/effective classes and invoice-pointer limitation. Historical and terminal
|
|
180
|
+
provider qualification, successor invoice evidence and genuine Source binding
|
|
181
|
+
remain separate requirements. These sequential reads do not atomically exclude other provider
|
|
182
|
+
writers or establish payment, authentication or entitlement.
|
package/package.json
CHANGED