@empiricalrun/playwright-utils 0.57.0 → 0.58.1
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 +14 -0
- package/dist/config/index.js +8 -8
- package/dist/generated/api-worker-openapi.d.ts +402 -4
- package/dist/generated/api-worker-openapi.d.ts.map +1 -1
- package/dist/reporter/empirical-reporter.d.ts.map +1 -1
- package/dist/reporter/empirical-reporter.js +3 -3
- package/dist/reporter/uploader.d.ts +2 -2
- package/dist/reporter/uploader.d.ts.map +1 -1
- package/dist/reporter/uploader.js +5 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @empiricalrun/playwright-utils
|
|
2
2
|
|
|
3
|
+
## 0.58.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e0aba62: feat: attachment storage class is based on test results
|
|
8
|
+
- Updated dependencies [e0aba62]
|
|
9
|
+
- @empiricalrun/r2-uploader@0.10.1
|
|
10
|
+
|
|
11
|
+
## 0.58.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 2b65c99: feat: run the incremental blob reporter on every sharded run
|
|
16
|
+
|
|
3
17
|
## 0.57.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/dist/config/index.js
CHANGED
|
@@ -39,7 +39,6 @@ function getReporters() {
|
|
|
39
39
|
if (process.env.HAS_SHARDING && !process.env.SHARD_INDEX) {
|
|
40
40
|
throw new Error("Invalid env variables: HAS_SHARDING needs SHARD_INDEX");
|
|
41
41
|
}
|
|
42
|
-
const useIncrementalReporter = process.env.SPOT_INSTANCE === "true";
|
|
43
42
|
const middle = process.env.HAS_SHARDING
|
|
44
43
|
? [
|
|
45
44
|
[
|
|
@@ -49,6 +48,14 @@ function getReporters() {
|
|
|
49
48
|
fileName: `report-${process.env.SHARD_INDEX}.zip`,
|
|
50
49
|
},
|
|
51
50
|
],
|
|
51
|
+
// Salvage path for a blob report that never gets written: on SIGINT the
|
|
52
|
+
// blob reporter can be cut off mid-run, and this one has already been
|
|
53
|
+
// streaming events to disk. It is only useful where a merge step exists
|
|
54
|
+
// to consume its zip, which is exactly where the blob reporter runs -
|
|
55
|
+
// so it is gated on sharding rather than on the run being on spot.
|
|
56
|
+
[
|
|
57
|
+
"./node_modules/@empiricalrun/playwright-utils/dist/reporter/incremental-blob-reporter.js",
|
|
58
|
+
],
|
|
52
59
|
]
|
|
53
60
|
: [
|
|
54
61
|
["html", { open: "never" }],
|
|
@@ -57,13 +64,6 @@ function getReporters() {
|
|
|
57
64
|
return [
|
|
58
65
|
["list"],
|
|
59
66
|
...middle,
|
|
60
|
-
...(useIncrementalReporter
|
|
61
|
-
? [
|
|
62
|
-
[
|
|
63
|
-
"./node_modules/@empiricalrun/playwright-utils/dist/reporter/incremental-blob-reporter.js",
|
|
64
|
-
],
|
|
65
|
-
]
|
|
66
|
-
: []),
|
|
67
67
|
[
|
|
68
68
|
"./node_modules/@empiricalrun/playwright-utils/dist/reporter/empirical-reporter.js",
|
|
69
69
|
],
|
|
@@ -1434,6 +1434,26 @@ export interface paths {
|
|
|
1434
1434
|
patch?: never;
|
|
1435
1435
|
trace?: never;
|
|
1436
1436
|
};
|
|
1437
|
+
"/api/beta/alerts/events": {
|
|
1438
|
+
parameters: {
|
|
1439
|
+
query?: never;
|
|
1440
|
+
header?: never;
|
|
1441
|
+
path?: never;
|
|
1442
|
+
cookie?: never;
|
|
1443
|
+
};
|
|
1444
|
+
/**
|
|
1445
|
+
* 🧪 List recent alert events
|
|
1446
|
+
* @description Returns the scoped project's alert opened and resolved events, newest first.
|
|
1447
|
+
*/
|
|
1448
|
+
get: operations["listRecentAlertEvents"];
|
|
1449
|
+
put?: never;
|
|
1450
|
+
post?: never;
|
|
1451
|
+
delete?: never;
|
|
1452
|
+
options?: never;
|
|
1453
|
+
head?: never;
|
|
1454
|
+
patch?: never;
|
|
1455
|
+
trace?: never;
|
|
1456
|
+
};
|
|
1437
1457
|
"/api/v1/telemetry/overlay-dismissals": {
|
|
1438
1458
|
parameters: {
|
|
1439
1459
|
query?: never;
|
|
@@ -3549,6 +3569,46 @@ export interface paths {
|
|
|
3549
3569
|
patch?: never;
|
|
3550
3570
|
trace?: never;
|
|
3551
3571
|
};
|
|
3572
|
+
"/api/invoices/org/{id}/razorpay-order": {
|
|
3573
|
+
parameters: {
|
|
3574
|
+
query?: never;
|
|
3575
|
+
header?: never;
|
|
3576
|
+
path?: never;
|
|
3577
|
+
cookie?: never;
|
|
3578
|
+
};
|
|
3579
|
+
get?: never;
|
|
3580
|
+
put?: never;
|
|
3581
|
+
/**
|
|
3582
|
+
* 🛡️ Create a Razorpay order to pay an INR invoice
|
|
3583
|
+
* @description Creates a Razorpay order for the outstanding amount of one of the scoped project's org's sent INR invoices. The browser opens Razorpay Standard Checkout with the returned order and key ids; the resulting payment is confirmed via the razorpay-verify endpoint. Orders are not stored; a new one is created per attempt.
|
|
3584
|
+
*/
|
|
3585
|
+
post: operations["createInvoiceRazorpayOrder"];
|
|
3586
|
+
delete?: never;
|
|
3587
|
+
options?: never;
|
|
3588
|
+
head?: never;
|
|
3589
|
+
patch?: never;
|
|
3590
|
+
trace?: never;
|
|
3591
|
+
};
|
|
3592
|
+
"/api/invoices/org/{id}/razorpay-verify": {
|
|
3593
|
+
parameters: {
|
|
3594
|
+
query?: never;
|
|
3595
|
+
header?: never;
|
|
3596
|
+
path?: never;
|
|
3597
|
+
cookie?: never;
|
|
3598
|
+
};
|
|
3599
|
+
get?: never;
|
|
3600
|
+
put?: never;
|
|
3601
|
+
/**
|
|
3602
|
+
* 🛡️ Verify a Razorpay payment and settle the invoice
|
|
3603
|
+
* @description Verifies the Standard Checkout signature for a payment on one of the scoped project's org's sent invoices, cross-checks the order and payment against Razorpay's API, and mirrors the payment onto the invoice (paid status, paid amount, payment ref). Idempotent per payment: redelivering a settled payment is a no-op.
|
|
3604
|
+
*/
|
|
3605
|
+
post: operations["verifyInvoiceRazorpayPayment"];
|
|
3606
|
+
delete?: never;
|
|
3607
|
+
options?: never;
|
|
3608
|
+
head?: never;
|
|
3609
|
+
patch?: never;
|
|
3610
|
+
trace?: never;
|
|
3611
|
+
};
|
|
3552
3612
|
"/api/invoices/org/{id}/tax-invoice/download": {
|
|
3553
3613
|
parameters: {
|
|
3554
3614
|
query?: never;
|
|
@@ -4685,6 +4745,26 @@ export interface paths {
|
|
|
4685
4745
|
patch?: never;
|
|
4686
4746
|
trace?: never;
|
|
4687
4747
|
};
|
|
4748
|
+
"/api/razorpay/webhook": {
|
|
4749
|
+
parameters: {
|
|
4750
|
+
query?: never;
|
|
4751
|
+
header?: never;
|
|
4752
|
+
path?: never;
|
|
4753
|
+
cookie?: never;
|
|
4754
|
+
};
|
|
4755
|
+
get?: never;
|
|
4756
|
+
put?: never;
|
|
4757
|
+
/**
|
|
4758
|
+
* Razorpay payments webhook
|
|
4759
|
+
* @description Receives signature-verified Razorpay events. payment.captured events whose order notes contain an invoice_id reconcile that payment onto the invoice. Other events are acknowledged and ignored.
|
|
4760
|
+
*/
|
|
4761
|
+
post: operations["razorpayPaymentsWebhook"];
|
|
4762
|
+
delete?: never;
|
|
4763
|
+
options?: never;
|
|
4764
|
+
head?: never;
|
|
4765
|
+
patch?: never;
|
|
4766
|
+
trace?: never;
|
|
4767
|
+
};
|
|
4688
4768
|
"/api/realtime/token": {
|
|
4689
4769
|
parameters: {
|
|
4690
4770
|
query?: never;
|
|
@@ -5292,6 +5372,11 @@ export interface components {
|
|
|
5292
5372
|
has_tax_invoice: boolean;
|
|
5293
5373
|
/** @description Whether this invoice can be paid online (unpaid and in a supported currency). */
|
|
5294
5374
|
payable: boolean;
|
|
5375
|
+
/**
|
|
5376
|
+
* @description Which provider pays this invoice's currency (USD via Dodo checkout sessions, INR via Razorpay Standard Checkout), or null if none does. Drives the Pay button's checkout flow.
|
|
5377
|
+
* @enum {string|null}
|
|
5378
|
+
*/
|
|
5379
|
+
payment_provider: "dodo" | "razorpay" | null;
|
|
5295
5380
|
/** @description Whether an unpaid invoice is past its due date plus the reminder grace period. Always false for paid invoices. */
|
|
5296
5381
|
past_reminder_date: boolean;
|
|
5297
5382
|
};
|
|
@@ -5320,6 +5405,40 @@ export interface components {
|
|
|
5320
5405
|
*/
|
|
5321
5406
|
return_url: string;
|
|
5322
5407
|
};
|
|
5408
|
+
InvoiceRazorpayOrderResponse: {
|
|
5409
|
+
/** @description Response payload. */
|
|
5410
|
+
data: {
|
|
5411
|
+
/** @description Razorpay order ID. */
|
|
5412
|
+
order_id: string;
|
|
5413
|
+
/** @description Order amount in paise (the outstanding amount). */
|
|
5414
|
+
amount: number;
|
|
5415
|
+
/** @description Order currency (INR). */
|
|
5416
|
+
currency: string;
|
|
5417
|
+
/** @description Publishable Razorpay key id the browser passes to Standard Checkout. */
|
|
5418
|
+
key_id: string;
|
|
5419
|
+
/** @description Org billing email, for checkout prefill. */
|
|
5420
|
+
billing_email: string | null;
|
|
5421
|
+
/** @description Org name, for checkout prefill. */
|
|
5422
|
+
org_name: string | null;
|
|
5423
|
+
};
|
|
5424
|
+
};
|
|
5425
|
+
VerifyInvoiceRazorpayPaymentResponse: {
|
|
5426
|
+
/** @description Response payload. */
|
|
5427
|
+
data: {
|
|
5428
|
+
/** @description Invoice paid status after settling. */
|
|
5429
|
+
paid_status: string;
|
|
5430
|
+
/** @description Total settled amount in paise after this payment. */
|
|
5431
|
+
paid_minor: number;
|
|
5432
|
+
};
|
|
5433
|
+
};
|
|
5434
|
+
VerifyInvoiceRazorpayPaymentRequest: {
|
|
5435
|
+
/** @description Order id returned by razorpay-order. */
|
|
5436
|
+
razorpay_order_id: string;
|
|
5437
|
+
/** @description Payment id from the checkout success handler. */
|
|
5438
|
+
razorpay_payment_id: string;
|
|
5439
|
+
/** @description Checkout signature: hex HMAC-SHA256 of `order_id|payment_id`. */
|
|
5440
|
+
razorpay_signature: string;
|
|
5441
|
+
};
|
|
5323
5442
|
InvoiceListResponse: {
|
|
5324
5443
|
/** @description The page of invoices. */
|
|
5325
5444
|
data: {
|
|
@@ -10249,10 +10368,10 @@ export interface components {
|
|
|
10249
10368
|
/** @description Parent test run ID. */
|
|
10250
10369
|
test_run_id: number;
|
|
10251
10370
|
/**
|
|
10252
|
-
* @description Whether the shard runs tests or
|
|
10371
|
+
* @description Whether the shard runs tests, merges reports, or runs setup once.
|
|
10253
10372
|
* @enum {string}
|
|
10254
10373
|
*/
|
|
10255
|
-
job_type: "run_test" | "merge_reports";
|
|
10374
|
+
job_type: "run_test" | "merge_reports" | "run_setup";
|
|
10256
10375
|
/** @description Total number of shards in the run. */
|
|
10257
10376
|
total_shards: number;
|
|
10258
10377
|
/** @description This shard's index. */
|
|
@@ -10421,6 +10540,11 @@ export interface components {
|
|
|
10421
10540
|
StopTaskRequest: {
|
|
10422
10541
|
/** @description Zero-based shard index, when stopping a sharded run. */
|
|
10423
10542
|
shard_index?: number;
|
|
10543
|
+
/**
|
|
10544
|
+
* @description Job type of the shard to stop. merge_reports and run_setup share shard_index 0. Defaults to merge_reports for index 0 (legacy callers), run_test otherwise.
|
|
10545
|
+
* @enum {string}
|
|
10546
|
+
*/
|
|
10547
|
+
job_type?: "run_test" | "merge_reports" | "run_setup";
|
|
10424
10548
|
};
|
|
10425
10549
|
TriggerMergeResponse: {
|
|
10426
10550
|
/** @description Response payload. */
|
|
@@ -10455,7 +10579,7 @@ export interface components {
|
|
|
10455
10579
|
* @description Which job the task is running.
|
|
10456
10580
|
* @enum {string}
|
|
10457
10581
|
*/
|
|
10458
|
-
job_type?: "run_test" | "merge_reports";
|
|
10582
|
+
job_type?: "run_test" | "merge_reports" | "run_setup";
|
|
10459
10583
|
};
|
|
10460
10584
|
RunManifestResponse: {
|
|
10461
10585
|
/** @description Response payload. */
|
|
@@ -11498,6 +11622,20 @@ export interface components {
|
|
|
11498
11622
|
/** @description Test tags. */
|
|
11499
11623
|
tags: string[];
|
|
11500
11624
|
} | null;
|
|
11625
|
+
/** @description The most-recently-seen failure group this alert's test is currently attached to; null when the test is in no group. */
|
|
11626
|
+
failure_group: {
|
|
11627
|
+
/** @description Failure group ID. */
|
|
11628
|
+
id: string;
|
|
11629
|
+
/** @description Human-readable group label. */
|
|
11630
|
+
label: string;
|
|
11631
|
+
/**
|
|
11632
|
+
* @description Group lifecycle status.
|
|
11633
|
+
* @enum {string}
|
|
11634
|
+
*/
|
|
11635
|
+
status: "open" | "resolved";
|
|
11636
|
+
/** @description True when a membership sighting cites a run in the alert's outcome window. */
|
|
11637
|
+
seen_in_window: boolean;
|
|
11638
|
+
} | null;
|
|
11501
11639
|
};
|
|
11502
11640
|
AlertRunOutcome: {
|
|
11503
11641
|
/** @description The evaluated test run. */
|
|
@@ -11508,6 +11646,31 @@ export interface components {
|
|
|
11508
11646
|
*/
|
|
11509
11647
|
status: "pass" | "fail";
|
|
11510
11648
|
};
|
|
11649
|
+
RecentAlertEventListResponse: {
|
|
11650
|
+
data: {
|
|
11651
|
+
events: components["schemas"]["RecentAlertEvent"][];
|
|
11652
|
+
};
|
|
11653
|
+
pagination: components["schemas"]["Pagination"];
|
|
11654
|
+
};
|
|
11655
|
+
RecentAlertEvent: {
|
|
11656
|
+
id: number;
|
|
11657
|
+
alert_id: number;
|
|
11658
|
+
/** @enum {string} */
|
|
11659
|
+
type: "opened" | "resolved";
|
|
11660
|
+
test_run_id: number | null;
|
|
11661
|
+
environment_id: number;
|
|
11662
|
+
pw_test_id: string;
|
|
11663
|
+
created_at: string;
|
|
11664
|
+
test_case: components["schemas"]["AlertTestCase"];
|
|
11665
|
+
};
|
|
11666
|
+
AlertTestCase: {
|
|
11667
|
+
/** @description Human-readable test name. */
|
|
11668
|
+
name: string;
|
|
11669
|
+
/** @description Test file path. */
|
|
11670
|
+
file_path: string;
|
|
11671
|
+
/** @description Test tags. */
|
|
11672
|
+
tags: string[];
|
|
11673
|
+
} | null;
|
|
11511
11674
|
AlertDetailResponse: {
|
|
11512
11675
|
/** @description Response payload. */
|
|
11513
11676
|
data: {
|
|
@@ -11553,8 +11716,24 @@ export interface components {
|
|
|
11553
11716
|
/** @description Test tags. */
|
|
11554
11717
|
tags: string[];
|
|
11555
11718
|
} | null;
|
|
11719
|
+
/** @description The most-recently-seen failure group this alert's test is currently attached to; null when the test is in no group. */
|
|
11720
|
+
failure_group: {
|
|
11721
|
+
/** @description Failure group ID. */
|
|
11722
|
+
id: string;
|
|
11723
|
+
/** @description Human-readable group label. */
|
|
11724
|
+
label: string;
|
|
11725
|
+
/**
|
|
11726
|
+
* @description Group lifecycle status.
|
|
11727
|
+
* @enum {string}
|
|
11728
|
+
*/
|
|
11729
|
+
status: "open" | "resolved";
|
|
11730
|
+
/** @description True when a membership sighting cites a run in the alert's outcome window. */
|
|
11731
|
+
seen_in_window: boolean;
|
|
11732
|
+
} | null;
|
|
11556
11733
|
/** @description The alert's lifecycle events, oldest first. */
|
|
11557
11734
|
events: components["schemas"]["AlertEvent"][];
|
|
11735
|
+
/** @description Failure groups the alerting test is currently attached to, most recently seen first; empty when the test is in no group. */
|
|
11736
|
+
related_failure_groups: components["schemas"]["AlertRelatedFailureGroup"][];
|
|
11558
11737
|
};
|
|
11559
11738
|
AlertEvent: {
|
|
11560
11739
|
/** @description Alert event ID. */
|
|
@@ -11569,6 +11748,26 @@ export interface components {
|
|
|
11569
11748
|
/** @description ISO 8601 timestamp of the event. */
|
|
11570
11749
|
created_at: string;
|
|
11571
11750
|
};
|
|
11751
|
+
AlertRelatedFailureGroup: {
|
|
11752
|
+
/** @description Failure group ID. */
|
|
11753
|
+
id: string;
|
|
11754
|
+
/** @description Human-readable group label. */
|
|
11755
|
+
label: string;
|
|
11756
|
+
/**
|
|
11757
|
+
* @description Failure-mode classification.
|
|
11758
|
+
* @enum {string}
|
|
11759
|
+
*/
|
|
11760
|
+
type: "app" | "test" | "unknown";
|
|
11761
|
+
/**
|
|
11762
|
+
* @description Group lifecycle status.
|
|
11763
|
+
* @enum {string}
|
|
11764
|
+
*/
|
|
11765
|
+
status: "open" | "resolved";
|
|
11766
|
+
/** @description ISO 8601 timestamp the group was last seen. */
|
|
11767
|
+
last_seen_at: string;
|
|
11768
|
+
/** @description True when a membership sighting for this test cites one of the runs in the alert's outcome window (deterministic test × env × run mapping). False = the test is attached to the group in this environment, but not via the runs this alert counted. */
|
|
11769
|
+
seen_in_window: boolean;
|
|
11770
|
+
};
|
|
11572
11771
|
WebhookListResponse: {
|
|
11573
11772
|
/** @description Response payload. */
|
|
11574
11773
|
data: {
|
|
@@ -11684,6 +11883,10 @@ export interface components {
|
|
|
11684
11883
|
/** @description Ack. */
|
|
11685
11884
|
message: string;
|
|
11686
11885
|
};
|
|
11886
|
+
RazorpayWebhookAckResponse: {
|
|
11887
|
+
/** @description Acknowledgement. */
|
|
11888
|
+
message: string;
|
|
11889
|
+
};
|
|
11687
11890
|
HiveModelsResponse: {
|
|
11688
11891
|
/** @description Response payload. */
|
|
11689
11892
|
data: components["schemas"]["HiveModel"][];
|
|
@@ -12624,6 +12827,8 @@ export interface operations {
|
|
|
12624
12827
|
limit?: number;
|
|
12625
12828
|
/** @description Restrict logs to this shard's ECS task and trim to its execution window. */
|
|
12626
12829
|
shardIndex?: number | null;
|
|
12830
|
+
/** @description Job type of the shard at shardIndex. merge_reports and run_setup share index 0; defaults to merge_reports for index 0 (legacy callers), run_test otherwise. */
|
|
12831
|
+
jobType?: "run_test" | "merge_reports" | "run_setup";
|
|
12627
12832
|
/** @description Lower bound (epoch ms) for log events. */
|
|
12628
12833
|
startTime?: number | null;
|
|
12629
12834
|
/** @description Upper bound (epoch ms) for log events. */
|
|
@@ -16029,6 +16234,38 @@ export interface operations {
|
|
|
16029
16234
|
};
|
|
16030
16235
|
};
|
|
16031
16236
|
};
|
|
16237
|
+
listRecentAlertEvents: {
|
|
16238
|
+
parameters: {
|
|
16239
|
+
query?: {
|
|
16240
|
+
page?: number;
|
|
16241
|
+
per_page?: number;
|
|
16242
|
+
};
|
|
16243
|
+
header?: never;
|
|
16244
|
+
path?: never;
|
|
16245
|
+
cookie?: never;
|
|
16246
|
+
};
|
|
16247
|
+
requestBody?: never;
|
|
16248
|
+
responses: {
|
|
16249
|
+
/** @description Paginated alert opened and resolved events. */
|
|
16250
|
+
200: {
|
|
16251
|
+
headers: {
|
|
16252
|
+
[name: string]: unknown;
|
|
16253
|
+
};
|
|
16254
|
+
content: {
|
|
16255
|
+
"application/json": components["schemas"]["RecentAlertEventListResponse"];
|
|
16256
|
+
};
|
|
16257
|
+
};
|
|
16258
|
+
/** @description Invalid request or missing project scope. */
|
|
16259
|
+
400: {
|
|
16260
|
+
headers: {
|
|
16261
|
+
[name: string]: unknown;
|
|
16262
|
+
};
|
|
16263
|
+
content: {
|
|
16264
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
16265
|
+
};
|
|
16266
|
+
};
|
|
16267
|
+
};
|
|
16268
|
+
};
|
|
16032
16269
|
getOverlayDismissalSummary: {
|
|
16033
16270
|
parameters: {
|
|
16034
16271
|
query?: {
|
|
@@ -21612,6 +21849,110 @@ export interface operations {
|
|
|
21612
21849
|
};
|
|
21613
21850
|
};
|
|
21614
21851
|
};
|
|
21852
|
+
createInvoiceRazorpayOrder: {
|
|
21853
|
+
parameters: {
|
|
21854
|
+
query?: never;
|
|
21855
|
+
header?: never;
|
|
21856
|
+
path: {
|
|
21857
|
+
/** @description Invoice ID. */
|
|
21858
|
+
id: string;
|
|
21859
|
+
};
|
|
21860
|
+
cookie?: never;
|
|
21861
|
+
};
|
|
21862
|
+
requestBody?: never;
|
|
21863
|
+
responses: {
|
|
21864
|
+
/** @description The Razorpay order. */
|
|
21865
|
+
200: {
|
|
21866
|
+
headers: {
|
|
21867
|
+
[name: string]: unknown;
|
|
21868
|
+
};
|
|
21869
|
+
content: {
|
|
21870
|
+
"application/json": components["schemas"]["InvoiceRazorpayOrderResponse"];
|
|
21871
|
+
};
|
|
21872
|
+
};
|
|
21873
|
+
/** @description Invalid request, unsupported currency, or Razorpay not configured. */
|
|
21874
|
+
400: {
|
|
21875
|
+
headers: {
|
|
21876
|
+
[name: string]: unknown;
|
|
21877
|
+
};
|
|
21878
|
+
content: {
|
|
21879
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
21880
|
+
};
|
|
21881
|
+
};
|
|
21882
|
+
/** @description Invoice not found. */
|
|
21883
|
+
404: {
|
|
21884
|
+
headers: {
|
|
21885
|
+
[name: string]: unknown;
|
|
21886
|
+
};
|
|
21887
|
+
content: {
|
|
21888
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
21889
|
+
};
|
|
21890
|
+
};
|
|
21891
|
+
/** @description Invoice has no outstanding amount. */
|
|
21892
|
+
409: {
|
|
21893
|
+
headers: {
|
|
21894
|
+
[name: string]: unknown;
|
|
21895
|
+
};
|
|
21896
|
+
content: {
|
|
21897
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
21898
|
+
};
|
|
21899
|
+
};
|
|
21900
|
+
};
|
|
21901
|
+
};
|
|
21902
|
+
verifyInvoiceRazorpayPayment: {
|
|
21903
|
+
parameters: {
|
|
21904
|
+
query?: never;
|
|
21905
|
+
header?: never;
|
|
21906
|
+
path: {
|
|
21907
|
+
/** @description Invoice ID. */
|
|
21908
|
+
id: string;
|
|
21909
|
+
};
|
|
21910
|
+
cookie?: never;
|
|
21911
|
+
};
|
|
21912
|
+
requestBody?: {
|
|
21913
|
+
content: {
|
|
21914
|
+
"application/json": components["schemas"]["VerifyInvoiceRazorpayPaymentRequest"];
|
|
21915
|
+
};
|
|
21916
|
+
};
|
|
21917
|
+
responses: {
|
|
21918
|
+
/** @description The settled payment state. */
|
|
21919
|
+
200: {
|
|
21920
|
+
headers: {
|
|
21921
|
+
[name: string]: unknown;
|
|
21922
|
+
};
|
|
21923
|
+
content: {
|
|
21924
|
+
"application/json": components["schemas"]["VerifyInvoiceRazorpayPaymentResponse"];
|
|
21925
|
+
};
|
|
21926
|
+
};
|
|
21927
|
+
/** @description Invalid request, signature mismatch, order/invoice mismatch, or Razorpay not configured. */
|
|
21928
|
+
400: {
|
|
21929
|
+
headers: {
|
|
21930
|
+
[name: string]: unknown;
|
|
21931
|
+
};
|
|
21932
|
+
content: {
|
|
21933
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
21934
|
+
};
|
|
21935
|
+
};
|
|
21936
|
+
/** @description Invoice not found. */
|
|
21937
|
+
404: {
|
|
21938
|
+
headers: {
|
|
21939
|
+
[name: string]: unknown;
|
|
21940
|
+
};
|
|
21941
|
+
content: {
|
|
21942
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
21943
|
+
};
|
|
21944
|
+
};
|
|
21945
|
+
/** @description Payment not in a settled state. */
|
|
21946
|
+
409: {
|
|
21947
|
+
headers: {
|
|
21948
|
+
[name: string]: unknown;
|
|
21949
|
+
};
|
|
21950
|
+
content: {
|
|
21951
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
21952
|
+
};
|
|
21953
|
+
};
|
|
21954
|
+
};
|
|
21955
|
+
};
|
|
21615
21956
|
downloadOrgInvoiceTaxInvoice: {
|
|
21616
21957
|
parameters: {
|
|
21617
21958
|
query?: never;
|
|
@@ -24520,6 +24861,63 @@ export interface operations {
|
|
|
24520
24861
|
};
|
|
24521
24862
|
};
|
|
24522
24863
|
};
|
|
24864
|
+
razorpayPaymentsWebhook: {
|
|
24865
|
+
parameters: {
|
|
24866
|
+
query?: never;
|
|
24867
|
+
header?: never;
|
|
24868
|
+
path?: never;
|
|
24869
|
+
cookie?: never;
|
|
24870
|
+
};
|
|
24871
|
+
requestBody?: {
|
|
24872
|
+
content: {
|
|
24873
|
+
"application/json": {
|
|
24874
|
+
/** @description Razorpay event type. */
|
|
24875
|
+
event: string;
|
|
24876
|
+
/** @description Razorpay event payload. */
|
|
24877
|
+
payload: {
|
|
24878
|
+
payment?: {
|
|
24879
|
+
entity: {
|
|
24880
|
+
id: string;
|
|
24881
|
+
order_id: string;
|
|
24882
|
+
amount: number;
|
|
24883
|
+
currency: string;
|
|
24884
|
+
status: string;
|
|
24885
|
+
};
|
|
24886
|
+
};
|
|
24887
|
+
};
|
|
24888
|
+
};
|
|
24889
|
+
};
|
|
24890
|
+
};
|
|
24891
|
+
responses: {
|
|
24892
|
+
/** @description Event acknowledged. */
|
|
24893
|
+
200: {
|
|
24894
|
+
headers: {
|
|
24895
|
+
[name: string]: unknown;
|
|
24896
|
+
};
|
|
24897
|
+
content: {
|
|
24898
|
+
"application/json": components["schemas"]["RazorpayWebhookAckResponse"];
|
|
24899
|
+
};
|
|
24900
|
+
};
|
|
24901
|
+
/** @description Missing or invalid webhook signature. */
|
|
24902
|
+
401: {
|
|
24903
|
+
headers: {
|
|
24904
|
+
[name: string]: unknown;
|
|
24905
|
+
};
|
|
24906
|
+
content: {
|
|
24907
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
24908
|
+
};
|
|
24909
|
+
};
|
|
24910
|
+
/** @description Razorpay API credentials are not configured. */
|
|
24911
|
+
500: {
|
|
24912
|
+
headers: {
|
|
24913
|
+
[name: string]: unknown;
|
|
24914
|
+
};
|
|
24915
|
+
content: {
|
|
24916
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
24917
|
+
};
|
|
24918
|
+
};
|
|
24919
|
+
};
|
|
24920
|
+
};
|
|
24523
24921
|
getRealtimeToken: {
|
|
24524
24922
|
parameters: {
|
|
24525
24923
|
query?: never;
|
|
@@ -25294,7 +25692,7 @@ export interface operations {
|
|
|
25294
25692
|
* @description Job type for the shard. Defaults to `run_test`.
|
|
25295
25693
|
* @enum {string}
|
|
25296
25694
|
*/
|
|
25297
|
-
jobType?: "run_test" | "merge_reports";
|
|
25695
|
+
jobType?: "run_test" | "merge_reports" | "run_setup";
|
|
25298
25696
|
};
|
|
25299
25697
|
};
|
|
25300
25698
|
};
|