devtools-protocol 0.0.1157354 → 0.0.1158625
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.
@@ -2006,6 +2006,36 @@
|
|
2006
2006
|
"type": "string"
|
2007
2007
|
}
|
2008
2008
|
]
|
2009
|
+
},
|
2010
|
+
{
|
2011
|
+
"id": "AddressField",
|
2012
|
+
"type": "object",
|
2013
|
+
"properties": [
|
2014
|
+
{
|
2015
|
+
"name": "name",
|
2016
|
+
"description": "address field name, for example GIVEN_NAME.",
|
2017
|
+
"type": "string"
|
2018
|
+
},
|
2019
|
+
{
|
2020
|
+
"name": "value",
|
2021
|
+
"description": "address field name, for example Jon Doe.",
|
2022
|
+
"type": "string"
|
2023
|
+
}
|
2024
|
+
]
|
2025
|
+
},
|
2026
|
+
{
|
2027
|
+
"id": "Address",
|
2028
|
+
"type": "object",
|
2029
|
+
"properties": [
|
2030
|
+
{
|
2031
|
+
"name": "fields",
|
2032
|
+
"description": "fields and values defining a test address.",
|
2033
|
+
"type": "array",
|
2034
|
+
"items": {
|
2035
|
+
"$ref": "AddressField"
|
2036
|
+
}
|
2037
|
+
}
|
2038
|
+
]
|
2009
2039
|
}
|
2010
2040
|
],
|
2011
2041
|
"commands": [
|
@@ -2030,6 +2060,19 @@
|
|
2030
2060
|
"$ref": "CreditCard"
|
2031
2061
|
}
|
2032
2062
|
]
|
2063
|
+
},
|
2064
|
+
{
|
2065
|
+
"name": "setAddresses",
|
2066
|
+
"description": "Set addresses so that developers can verify their forms implementation.",
|
2067
|
+
"parameters": [
|
2068
|
+
{
|
2069
|
+
"name": "addresses",
|
2070
|
+
"type": "array",
|
2071
|
+
"items": {
|
2072
|
+
"$ref": "Address"
|
2073
|
+
}
|
2074
|
+
}
|
2075
|
+
]
|
2033
2076
|
}
|
2034
2077
|
]
|
2035
2078
|
},
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -992,6 +992,18 @@ experimental domain Autofill
|
|
992
992
|
# 3-digit card verification code.
|
993
993
|
string cvc
|
994
994
|
|
995
|
+
type AddressField extends object
|
996
|
+
properties
|
997
|
+
# address field name, for example GIVEN_NAME.
|
998
|
+
string name
|
999
|
+
# address field name, for example Jon Doe.
|
1000
|
+
string value
|
1001
|
+
|
1002
|
+
type Address extends object
|
1003
|
+
properties
|
1004
|
+
# fields and values defining a test address.
|
1005
|
+
array of AddressField fields
|
1006
|
+
|
995
1007
|
# Trigger autofill on a form identified by the fieldId.
|
996
1008
|
# If the field and related form cannot be autofilled, returns an error.
|
997
1009
|
command trigger
|
@@ -1003,6 +1015,13 @@ experimental domain Autofill
|
|
1003
1015
|
# Credit card information to fill out the form. Credit card data is not saved.
|
1004
1016
|
CreditCard card
|
1005
1017
|
|
1018
|
+
# Set addresses so that developers can verify their forms implementation.
|
1019
|
+
command setAddresses
|
1020
|
+
# Test addresses for the available countries.
|
1021
|
+
parameters
|
1022
|
+
array of Address addresses
|
1023
|
+
|
1024
|
+
|
1006
1025
|
# Defines events for background web platform features.
|
1007
1026
|
experimental domain BackgroundService
|
1008
1027
|
# The Background Service that will be associated with the commands/events.
|
@@ -1475,6 +1475,13 @@ export namespace ProtocolMapping {
|
|
1475
1475
|
paramsType: [Protocol.Autofill.TriggerRequest];
|
1476
1476
|
returnType: void;
|
1477
1477
|
};
|
1478
|
+
/**
|
1479
|
+
* Set addresses so that developers can verify their forms implementation.
|
1480
|
+
*/
|
1481
|
+
'Autofill.setAddresses': {
|
1482
|
+
paramsType: [Protocol.Autofill.SetAddressesRequest];
|
1483
|
+
returnType: void;
|
1484
|
+
};
|
1478
1485
|
/**
|
1479
1486
|
* Enables event updates for the service.
|
1480
1487
|
*/
|
@@ -805,6 +805,11 @@ export namespace ProtocolProxyApi {
|
|
805
805
|
*/
|
806
806
|
trigger(params: Protocol.Autofill.TriggerRequest): Promise<void>;
|
807
807
|
|
808
|
+
/**
|
809
|
+
* Set addresses so that developers can verify their forms implementation.
|
810
|
+
*/
|
811
|
+
setAddresses(params: Protocol.Autofill.SetAddressesRequest): Promise<void>;
|
812
|
+
|
808
813
|
}
|
809
814
|
|
810
815
|
export interface BackgroundServiceApi {
|
package/types/protocol.d.ts
CHANGED
@@ -3710,6 +3710,24 @@ export namespace Protocol {
|
|
3710
3710
|
cvc: string;
|
3711
3711
|
}
|
3712
3712
|
|
3713
|
+
export interface AddressField {
|
3714
|
+
/**
|
3715
|
+
* address field name, for example GIVEN_NAME.
|
3716
|
+
*/
|
3717
|
+
name: string;
|
3718
|
+
/**
|
3719
|
+
* address field name, for example Jon Doe.
|
3720
|
+
*/
|
3721
|
+
value: string;
|
3722
|
+
}
|
3723
|
+
|
3724
|
+
export interface Address {
|
3725
|
+
/**
|
3726
|
+
* fields and values defining a test address.
|
3727
|
+
*/
|
3728
|
+
fields: AddressField[];
|
3729
|
+
}
|
3730
|
+
|
3713
3731
|
export interface TriggerRequest {
|
3714
3732
|
/**
|
3715
3733
|
* Identifies a field that serves as an anchor for autofill.
|
@@ -3724,6 +3742,10 @@ export namespace Protocol {
|
|
3724
3742
|
*/
|
3725
3743
|
card: CreditCard;
|
3726
3744
|
}
|
3745
|
+
|
3746
|
+
export interface SetAddressesRequest {
|
3747
|
+
addresses: Address[];
|
3748
|
+
}
|
3727
3749
|
}
|
3728
3750
|
|
3729
3751
|
/**
|