@googlemaps/places 1.3.0 → 1.4.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 +7 -0
- package/build/protos/google/maps/places/v1/place.proto +5 -3
- package/build/protos/google/maps/places/v1/places_service.proto +29 -24
- package/build/protos/protos.d.ts +770 -16
- package/build/protos/protos.js +2993 -299
- package/build/protos/protos.json +348 -16
- package/build/src/v1/places_client.d.ts +26 -22
- package/build/src/v1/places_client.js +10 -7
- package/build/src/v1/places_client.js.map +1 -1
- package/package.json +4 -4
package/build/protos/protos.json
CHANGED
|
@@ -34,6 +34,21 @@
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
+
"Edition": {
|
|
38
|
+
"values": {
|
|
39
|
+
"EDITION_UNKNOWN": 0,
|
|
40
|
+
"EDITION_PROTO2": 998,
|
|
41
|
+
"EDITION_PROTO3": 999,
|
|
42
|
+
"EDITION_2023": 1000,
|
|
43
|
+
"EDITION_2024": 1001,
|
|
44
|
+
"EDITION_1_TEST_ONLY": 1,
|
|
45
|
+
"EDITION_2_TEST_ONLY": 2,
|
|
46
|
+
"EDITION_99997_TEST_ONLY": 99997,
|
|
47
|
+
"EDITION_99998_TEST_ONLY": 99998,
|
|
48
|
+
"EDITION_99999_TEST_ONLY": 99999,
|
|
49
|
+
"EDITION_MAX": 2147483647
|
|
50
|
+
}
|
|
51
|
+
},
|
|
37
52
|
"FileDescriptorProto": {
|
|
38
53
|
"fields": {
|
|
39
54
|
"name": {
|
|
@@ -98,8 +113,8 @@
|
|
|
98
113
|
"id": 12
|
|
99
114
|
},
|
|
100
115
|
"edition": {
|
|
101
|
-
"type": "
|
|
102
|
-
"id":
|
|
116
|
+
"type": "Edition",
|
|
117
|
+
"id": 14
|
|
103
118
|
}
|
|
104
119
|
}
|
|
105
120
|
},
|
|
@@ -191,6 +206,26 @@
|
|
|
191
206
|
"rule": "repeated",
|
|
192
207
|
"type": "UninterpretedOption",
|
|
193
208
|
"id": 999
|
|
209
|
+
},
|
|
210
|
+
"declaration": {
|
|
211
|
+
"rule": "repeated",
|
|
212
|
+
"type": "Declaration",
|
|
213
|
+
"id": 2,
|
|
214
|
+
"options": {
|
|
215
|
+
"retention": "RETENTION_SOURCE"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"features": {
|
|
219
|
+
"type": "FeatureSet",
|
|
220
|
+
"id": 50
|
|
221
|
+
},
|
|
222
|
+
"verification": {
|
|
223
|
+
"type": "VerificationState",
|
|
224
|
+
"id": 3,
|
|
225
|
+
"options": {
|
|
226
|
+
"default": "UNVERIFIED",
|
|
227
|
+
"retention": "RETENTION_SOURCE"
|
|
228
|
+
}
|
|
194
229
|
}
|
|
195
230
|
},
|
|
196
231
|
"extensions": [
|
|
@@ -198,7 +233,45 @@
|
|
|
198
233
|
1000,
|
|
199
234
|
536870911
|
|
200
235
|
]
|
|
201
|
-
]
|
|
236
|
+
],
|
|
237
|
+
"nested": {
|
|
238
|
+
"Declaration": {
|
|
239
|
+
"fields": {
|
|
240
|
+
"number": {
|
|
241
|
+
"type": "int32",
|
|
242
|
+
"id": 1
|
|
243
|
+
},
|
|
244
|
+
"fullName": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"id": 2
|
|
247
|
+
},
|
|
248
|
+
"type": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"id": 3
|
|
251
|
+
},
|
|
252
|
+
"reserved": {
|
|
253
|
+
"type": "bool",
|
|
254
|
+
"id": 5
|
|
255
|
+
},
|
|
256
|
+
"repeated": {
|
|
257
|
+
"type": "bool",
|
|
258
|
+
"id": 6
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"reserved": [
|
|
262
|
+
[
|
|
263
|
+
4,
|
|
264
|
+
4
|
|
265
|
+
]
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
"VerificationState": {
|
|
269
|
+
"values": {
|
|
270
|
+
"DECLARATION": 0,
|
|
271
|
+
"UNVERIFIED": 1
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
202
275
|
},
|
|
203
276
|
"FieldDescriptorProto": {
|
|
204
277
|
"fields": {
|
|
@@ -273,8 +346,8 @@
|
|
|
273
346
|
"Label": {
|
|
274
347
|
"values": {
|
|
275
348
|
"LABEL_OPTIONAL": 1,
|
|
276
|
-
"
|
|
277
|
-
"
|
|
349
|
+
"LABEL_REPEATED": 3,
|
|
350
|
+
"LABEL_REQUIRED": 2
|
|
278
351
|
}
|
|
279
352
|
}
|
|
280
353
|
}
|
|
@@ -462,13 +535,6 @@
|
|
|
462
535
|
"default": false
|
|
463
536
|
}
|
|
464
537
|
},
|
|
465
|
-
"phpGenericServices": {
|
|
466
|
-
"type": "bool",
|
|
467
|
-
"id": 42,
|
|
468
|
-
"options": {
|
|
469
|
-
"default": false
|
|
470
|
-
}
|
|
471
|
-
},
|
|
472
538
|
"deprecated": {
|
|
473
539
|
"type": "bool",
|
|
474
540
|
"id": 23,
|
|
@@ -511,6 +577,10 @@
|
|
|
511
577
|
"type": "string",
|
|
512
578
|
"id": 45
|
|
513
579
|
},
|
|
580
|
+
"features": {
|
|
581
|
+
"type": "FeatureSet",
|
|
582
|
+
"id": 50
|
|
583
|
+
},
|
|
514
584
|
"uninterpretedOption": {
|
|
515
585
|
"rule": "repeated",
|
|
516
586
|
"type": "UninterpretedOption",
|
|
@@ -524,6 +594,10 @@
|
|
|
524
594
|
]
|
|
525
595
|
],
|
|
526
596
|
"reserved": [
|
|
597
|
+
[
|
|
598
|
+
42,
|
|
599
|
+
42
|
|
600
|
+
],
|
|
527
601
|
[
|
|
528
602
|
38,
|
|
529
603
|
38
|
|
@@ -573,6 +647,10 @@
|
|
|
573
647
|
"deprecated": true
|
|
574
648
|
}
|
|
575
649
|
},
|
|
650
|
+
"features": {
|
|
651
|
+
"type": "FeatureSet",
|
|
652
|
+
"id": 12
|
|
653
|
+
},
|
|
576
654
|
"uninterpretedOption": {
|
|
577
655
|
"rule": "repeated",
|
|
578
656
|
"type": "UninterpretedOption",
|
|
@@ -667,9 +745,22 @@
|
|
|
667
745
|
"type": "OptionRetention",
|
|
668
746
|
"id": 17
|
|
669
747
|
},
|
|
670
|
-
"
|
|
748
|
+
"targets": {
|
|
749
|
+
"rule": "repeated",
|
|
671
750
|
"type": "OptionTargetType",
|
|
672
|
-
"id":
|
|
751
|
+
"id": 19,
|
|
752
|
+
"options": {
|
|
753
|
+
"packed": false
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
"editionDefaults": {
|
|
757
|
+
"rule": "repeated",
|
|
758
|
+
"type": "EditionDefault",
|
|
759
|
+
"id": 20
|
|
760
|
+
},
|
|
761
|
+
"features": {
|
|
762
|
+
"type": "FeatureSet",
|
|
763
|
+
"id": 21
|
|
673
764
|
},
|
|
674
765
|
"uninterpretedOption": {
|
|
675
766
|
"rule": "repeated",
|
|
@@ -687,6 +778,10 @@
|
|
|
687
778
|
[
|
|
688
779
|
4,
|
|
689
780
|
4
|
|
781
|
+
],
|
|
782
|
+
[
|
|
783
|
+
18,
|
|
784
|
+
18
|
|
690
785
|
]
|
|
691
786
|
],
|
|
692
787
|
"nested": {
|
|
@@ -724,11 +819,27 @@
|
|
|
724
819
|
"TARGET_TYPE_SERVICE": 8,
|
|
725
820
|
"TARGET_TYPE_METHOD": 9
|
|
726
821
|
}
|
|
822
|
+
},
|
|
823
|
+
"EditionDefault": {
|
|
824
|
+
"fields": {
|
|
825
|
+
"edition": {
|
|
826
|
+
"type": "Edition",
|
|
827
|
+
"id": 3
|
|
828
|
+
},
|
|
829
|
+
"value": {
|
|
830
|
+
"type": "string",
|
|
831
|
+
"id": 2
|
|
832
|
+
}
|
|
833
|
+
}
|
|
727
834
|
}
|
|
728
835
|
}
|
|
729
836
|
},
|
|
730
837
|
"OneofOptions": {
|
|
731
838
|
"fields": {
|
|
839
|
+
"features": {
|
|
840
|
+
"type": "FeatureSet",
|
|
841
|
+
"id": 1
|
|
842
|
+
},
|
|
732
843
|
"uninterpretedOption": {
|
|
733
844
|
"rule": "repeated",
|
|
734
845
|
"type": "UninterpretedOption",
|
|
@@ -762,6 +873,10 @@
|
|
|
762
873
|
"deprecated": true
|
|
763
874
|
}
|
|
764
875
|
},
|
|
876
|
+
"features": {
|
|
877
|
+
"type": "FeatureSet",
|
|
878
|
+
"id": 7
|
|
879
|
+
},
|
|
765
880
|
"uninterpretedOption": {
|
|
766
881
|
"rule": "repeated",
|
|
767
882
|
"type": "UninterpretedOption",
|
|
@@ -790,6 +905,17 @@
|
|
|
790
905
|
"default": false
|
|
791
906
|
}
|
|
792
907
|
},
|
|
908
|
+
"features": {
|
|
909
|
+
"type": "FeatureSet",
|
|
910
|
+
"id": 2
|
|
911
|
+
},
|
|
912
|
+
"debugRedact": {
|
|
913
|
+
"type": "bool",
|
|
914
|
+
"id": 3,
|
|
915
|
+
"options": {
|
|
916
|
+
"default": false
|
|
917
|
+
}
|
|
918
|
+
},
|
|
793
919
|
"uninterpretedOption": {
|
|
794
920
|
"rule": "repeated",
|
|
795
921
|
"type": "UninterpretedOption",
|
|
@@ -805,6 +931,10 @@
|
|
|
805
931
|
},
|
|
806
932
|
"ServiceOptions": {
|
|
807
933
|
"fields": {
|
|
934
|
+
"features": {
|
|
935
|
+
"type": "FeatureSet",
|
|
936
|
+
"id": 34
|
|
937
|
+
},
|
|
808
938
|
"deprecated": {
|
|
809
939
|
"type": "bool",
|
|
810
940
|
"id": 33,
|
|
@@ -841,6 +971,10 @@
|
|
|
841
971
|
"default": "IDEMPOTENCY_UNKNOWN"
|
|
842
972
|
}
|
|
843
973
|
},
|
|
974
|
+
"features": {
|
|
975
|
+
"type": "FeatureSet",
|
|
976
|
+
"id": 35
|
|
977
|
+
},
|
|
844
978
|
"uninterpretedOption": {
|
|
845
979
|
"rule": "repeated",
|
|
846
980
|
"type": "UninterpretedOption",
|
|
@@ -912,6 +1046,166 @@
|
|
|
912
1046
|
}
|
|
913
1047
|
}
|
|
914
1048
|
},
|
|
1049
|
+
"FeatureSet": {
|
|
1050
|
+
"fields": {
|
|
1051
|
+
"fieldPresence": {
|
|
1052
|
+
"type": "FieldPresence",
|
|
1053
|
+
"id": 1,
|
|
1054
|
+
"options": {
|
|
1055
|
+
"retention": "RETENTION_RUNTIME",
|
|
1056
|
+
"targets": "TARGET_TYPE_FILE",
|
|
1057
|
+
"edition_defaults.edition": "EDITION_2023",
|
|
1058
|
+
"edition_defaults.value": "EXPLICIT"
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
"enumType": {
|
|
1062
|
+
"type": "EnumType",
|
|
1063
|
+
"id": 2,
|
|
1064
|
+
"options": {
|
|
1065
|
+
"retention": "RETENTION_RUNTIME",
|
|
1066
|
+
"targets": "TARGET_TYPE_FILE",
|
|
1067
|
+
"edition_defaults.edition": "EDITION_PROTO3",
|
|
1068
|
+
"edition_defaults.value": "OPEN"
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
"repeatedFieldEncoding": {
|
|
1072
|
+
"type": "RepeatedFieldEncoding",
|
|
1073
|
+
"id": 3,
|
|
1074
|
+
"options": {
|
|
1075
|
+
"retention": "RETENTION_RUNTIME",
|
|
1076
|
+
"targets": "TARGET_TYPE_FILE",
|
|
1077
|
+
"edition_defaults.edition": "EDITION_PROTO3",
|
|
1078
|
+
"edition_defaults.value": "PACKED"
|
|
1079
|
+
}
|
|
1080
|
+
},
|
|
1081
|
+
"utf8Validation": {
|
|
1082
|
+
"type": "Utf8Validation",
|
|
1083
|
+
"id": 4,
|
|
1084
|
+
"options": {
|
|
1085
|
+
"retention": "RETENTION_RUNTIME",
|
|
1086
|
+
"targets": "TARGET_TYPE_FILE",
|
|
1087
|
+
"edition_defaults.edition": "EDITION_PROTO3",
|
|
1088
|
+
"edition_defaults.value": "VERIFY"
|
|
1089
|
+
}
|
|
1090
|
+
},
|
|
1091
|
+
"messageEncoding": {
|
|
1092
|
+
"type": "MessageEncoding",
|
|
1093
|
+
"id": 5,
|
|
1094
|
+
"options": {
|
|
1095
|
+
"retention": "RETENTION_RUNTIME",
|
|
1096
|
+
"targets": "TARGET_TYPE_FILE",
|
|
1097
|
+
"edition_defaults.edition": "EDITION_PROTO2",
|
|
1098
|
+
"edition_defaults.value": "LENGTH_PREFIXED"
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
"jsonFormat": {
|
|
1102
|
+
"type": "JsonFormat",
|
|
1103
|
+
"id": 6,
|
|
1104
|
+
"options": {
|
|
1105
|
+
"retention": "RETENTION_RUNTIME",
|
|
1106
|
+
"targets": "TARGET_TYPE_FILE",
|
|
1107
|
+
"edition_defaults.edition": "EDITION_PROTO3",
|
|
1108
|
+
"edition_defaults.value": "ALLOW"
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
},
|
|
1112
|
+
"extensions": [
|
|
1113
|
+
[
|
|
1114
|
+
1000,
|
|
1115
|
+
1000
|
|
1116
|
+
],
|
|
1117
|
+
[
|
|
1118
|
+
1001,
|
|
1119
|
+
1001
|
|
1120
|
+
],
|
|
1121
|
+
[
|
|
1122
|
+
9995,
|
|
1123
|
+
9999
|
|
1124
|
+
]
|
|
1125
|
+
],
|
|
1126
|
+
"reserved": [
|
|
1127
|
+
[
|
|
1128
|
+
999,
|
|
1129
|
+
999
|
|
1130
|
+
]
|
|
1131
|
+
],
|
|
1132
|
+
"nested": {
|
|
1133
|
+
"FieldPresence": {
|
|
1134
|
+
"values": {
|
|
1135
|
+
"FIELD_PRESENCE_UNKNOWN": 0,
|
|
1136
|
+
"EXPLICIT": 1,
|
|
1137
|
+
"IMPLICIT": 2,
|
|
1138
|
+
"LEGACY_REQUIRED": 3
|
|
1139
|
+
}
|
|
1140
|
+
},
|
|
1141
|
+
"EnumType": {
|
|
1142
|
+
"values": {
|
|
1143
|
+
"ENUM_TYPE_UNKNOWN": 0,
|
|
1144
|
+
"OPEN": 1,
|
|
1145
|
+
"CLOSED": 2
|
|
1146
|
+
}
|
|
1147
|
+
},
|
|
1148
|
+
"RepeatedFieldEncoding": {
|
|
1149
|
+
"values": {
|
|
1150
|
+
"REPEATED_FIELD_ENCODING_UNKNOWN": 0,
|
|
1151
|
+
"PACKED": 1,
|
|
1152
|
+
"EXPANDED": 2
|
|
1153
|
+
}
|
|
1154
|
+
},
|
|
1155
|
+
"Utf8Validation": {
|
|
1156
|
+
"values": {
|
|
1157
|
+
"UTF8_VALIDATION_UNKNOWN": 0,
|
|
1158
|
+
"VERIFY": 2,
|
|
1159
|
+
"NONE": 3
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
"MessageEncoding": {
|
|
1163
|
+
"values": {
|
|
1164
|
+
"MESSAGE_ENCODING_UNKNOWN": 0,
|
|
1165
|
+
"LENGTH_PREFIXED": 1,
|
|
1166
|
+
"DELIMITED": 2
|
|
1167
|
+
}
|
|
1168
|
+
},
|
|
1169
|
+
"JsonFormat": {
|
|
1170
|
+
"values": {
|
|
1171
|
+
"JSON_FORMAT_UNKNOWN": 0,
|
|
1172
|
+
"ALLOW": 1,
|
|
1173
|
+
"LEGACY_BEST_EFFORT": 2
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
},
|
|
1178
|
+
"FeatureSetDefaults": {
|
|
1179
|
+
"fields": {
|
|
1180
|
+
"defaults": {
|
|
1181
|
+
"rule": "repeated",
|
|
1182
|
+
"type": "FeatureSetEditionDefault",
|
|
1183
|
+
"id": 1
|
|
1184
|
+
},
|
|
1185
|
+
"minimumEdition": {
|
|
1186
|
+
"type": "Edition",
|
|
1187
|
+
"id": 4
|
|
1188
|
+
},
|
|
1189
|
+
"maximumEdition": {
|
|
1190
|
+
"type": "Edition",
|
|
1191
|
+
"id": 5
|
|
1192
|
+
}
|
|
1193
|
+
},
|
|
1194
|
+
"nested": {
|
|
1195
|
+
"FeatureSetEditionDefault": {
|
|
1196
|
+
"fields": {
|
|
1197
|
+
"edition": {
|
|
1198
|
+
"type": "Edition",
|
|
1199
|
+
"id": 3
|
|
1200
|
+
},
|
|
1201
|
+
"features": {
|
|
1202
|
+
"type": "FeatureSet",
|
|
1203
|
+
"id": 2
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
},
|
|
915
1209
|
"SourceCodeInfo": {
|
|
916
1210
|
"fields": {
|
|
917
1211
|
"location": {
|
|
@@ -2888,7 +3182,8 @@
|
|
|
2888
3182
|
"INPUT_ONLY": 4,
|
|
2889
3183
|
"IMMUTABLE": 5,
|
|
2890
3184
|
"UNORDERED_LIST": 6,
|
|
2891
|
-
"NON_EMPTY_DEFAULT": 7
|
|
3185
|
+
"NON_EMPTY_DEFAULT": 7,
|
|
3186
|
+
"IDENTIFIER": 8
|
|
2892
3187
|
}
|
|
2893
3188
|
},
|
|
2894
3189
|
"resourceReference": {
|
|
@@ -3175,6 +3470,10 @@
|
|
|
3175
3470
|
"rule": "repeated",
|
|
3176
3471
|
"type": "ClientLibrarySettings",
|
|
3177
3472
|
"id": 109
|
|
3473
|
+
},
|
|
3474
|
+
"protoReferenceDocumentationUri": {
|
|
3475
|
+
"type": "string",
|
|
3476
|
+
"id": 110
|
|
3178
3477
|
}
|
|
3179
3478
|
}
|
|
3180
3479
|
},
|
|
@@ -3232,6 +3531,31 @@
|
|
|
3232
3531
|
"common": {
|
|
3233
3532
|
"type": "CommonLanguageSettings",
|
|
3234
3533
|
"id": 1
|
|
3534
|
+
},
|
|
3535
|
+
"renamedServices": {
|
|
3536
|
+
"keyType": "string",
|
|
3537
|
+
"type": "string",
|
|
3538
|
+
"id": 2
|
|
3539
|
+
},
|
|
3540
|
+
"renamedResources": {
|
|
3541
|
+
"keyType": "string",
|
|
3542
|
+
"type": "string",
|
|
3543
|
+
"id": 3
|
|
3544
|
+
},
|
|
3545
|
+
"ignoredResources": {
|
|
3546
|
+
"rule": "repeated",
|
|
3547
|
+
"type": "string",
|
|
3548
|
+
"id": 4
|
|
3549
|
+
},
|
|
3550
|
+
"forcedNamespaceAliases": {
|
|
3551
|
+
"rule": "repeated",
|
|
3552
|
+
"type": "string",
|
|
3553
|
+
"id": 5
|
|
3554
|
+
},
|
|
3555
|
+
"handwrittenSignatures": {
|
|
3556
|
+
"rule": "repeated",
|
|
3557
|
+
"type": "string",
|
|
3558
|
+
"id": 6
|
|
3235
3559
|
}
|
|
3236
3560
|
}
|
|
3237
3561
|
},
|
|
@@ -3260,6 +3584,11 @@
|
|
|
3260
3584
|
"longRunning": {
|
|
3261
3585
|
"type": "LongRunning",
|
|
3262
3586
|
"id": 2
|
|
3587
|
+
},
|
|
3588
|
+
"autoPopulatedFields": {
|
|
3589
|
+
"rule": "repeated",
|
|
3590
|
+
"type": "string",
|
|
3591
|
+
"id": 3
|
|
3263
3592
|
}
|
|
3264
3593
|
},
|
|
3265
3594
|
"nested": {
|
|
@@ -3291,7 +3620,10 @@
|
|
|
3291
3620
|
"CLOUD": 1,
|
|
3292
3621
|
"ADS": 2,
|
|
3293
3622
|
"PHOTOS": 3,
|
|
3294
|
-
"STREET_VIEW": 4
|
|
3623
|
+
"STREET_VIEW": 4,
|
|
3624
|
+
"SHOPPING": 5,
|
|
3625
|
+
"GEO": 6,
|
|
3626
|
+
"GENERATIVE_AI": 7
|
|
3295
3627
|
}
|
|
3296
3628
|
},
|
|
3297
3629
|
"ClientLibraryDestination": {
|
|
@@ -403,21 +403,23 @@ export declare class PlacesClient {
|
|
|
403
403
|
*
|
|
404
404
|
* Note that 3-digit region codes are not currently supported.
|
|
405
405
|
* @param {string} [request.sessionToken]
|
|
406
|
-
* Optional.
|
|
407
|
-
*
|
|
408
|
-
* INVALID_ARGUMENT error is
|
|
406
|
+
* Optional. A string which identifies an Autocomplete session for billing
|
|
407
|
+
* purposes. Must be a URL and filename safe base64 string with at most 36
|
|
408
|
+
* ASCII characters in length. Otherwise an INVALID_ARGUMENT error is
|
|
409
|
+
* returned.
|
|
409
410
|
*
|
|
410
411
|
* The session begins when the user starts typing a query, and concludes when
|
|
411
412
|
* they select a place and a call to Place Details or Address Validation is
|
|
412
|
-
* made. Each session can have multiple queries, followed by one Place
|
|
413
|
-
*
|
|
414
|
-
* belong to the same Google Cloud Console project. Once a
|
|
415
|
-
* concluded, the token is no longer valid; your app must generate
|
|
416
|
-
* token for each session. If the `session_token` parameter is
|
|
417
|
-
* you reuse a session token, the session is charged as if no
|
|
418
|
-
* was provided (each request is billed separately).
|
|
413
|
+
* made. Each session can have multiple queries, followed by one Place Details
|
|
414
|
+
* or Address Validation request. The credentials used for each request within
|
|
415
|
+
* a session must belong to the same Google Cloud Console project. Once a
|
|
416
|
+
* session has concluded, the token is no longer valid; your app must generate
|
|
417
|
+
* a fresh token for each session. If the `session_token` parameter is
|
|
418
|
+
* omitted, or if you reuse a session token, the session is charged as if no
|
|
419
|
+
* session token was provided (each request is billed separately).
|
|
419
420
|
*
|
|
420
421
|
* We recommend the following guidelines:
|
|
422
|
+
*
|
|
421
423
|
* * Use session tokens for all Place Autocomplete calls.
|
|
422
424
|
* * Generate a fresh token for each session. Using a version 4 UUID is
|
|
423
425
|
* recommended.
|
|
@@ -465,8 +467,8 @@ export declare class PlacesClient {
|
|
|
465
467
|
* address will be mapped to an imprecise location and used as a biasing
|
|
466
468
|
* signal.
|
|
467
469
|
* @param {string[]} [request.includedPrimaryTypes]
|
|
468
|
-
* Optional. Included primary Place type (
|
|
469
|
-
* from
|
|
470
|
+
* Optional. Included primary Place type (for example, "restaurant" or
|
|
471
|
+
* "gas_station") from
|
|
470
472
|
* https://developers.google.com/maps/documentation/places/web-service/place-types.
|
|
471
473
|
* A Place is only returned if its primary type is included in this list. Up
|
|
472
474
|
* to 5 values can be specified. If no types are specified, all Place types
|
|
@@ -500,21 +502,23 @@ export declare class PlacesClient {
|
|
|
500
502
|
* Optional. If true, the response will include both Place and query
|
|
501
503
|
* predictions. Otherwise the response will only return Place predictions.
|
|
502
504
|
* @param {string} [request.sessionToken]
|
|
503
|
-
* Optional.
|
|
504
|
-
*
|
|
505
|
-
* INVALID_ARGUMENT error is
|
|
505
|
+
* Optional. A string which identifies an Autocomplete session for billing
|
|
506
|
+
* purposes. Must be a URL and filename safe base64 string with at most 36
|
|
507
|
+
* ASCII characters in length. Otherwise an INVALID_ARGUMENT error is
|
|
508
|
+
* returned.
|
|
506
509
|
*
|
|
507
510
|
* The session begins when the user starts typing a query, and concludes when
|
|
508
511
|
* they select a place and a call to Place Details or Address Validation is
|
|
509
|
-
* made. Each session can have multiple queries, followed by one Place
|
|
510
|
-
*
|
|
511
|
-
* belong to the same Google Cloud Console project. Once a
|
|
512
|
-
* concluded, the token is no longer valid; your app must generate
|
|
513
|
-
* token for each session. If the `session_token` parameter is
|
|
514
|
-
* you reuse a session token, the session is charged as if no
|
|
515
|
-
* was provided (each request is billed separately).
|
|
512
|
+
* made. Each session can have multiple queries, followed by one Place Details
|
|
513
|
+
* or Address Validation request. The credentials used for each request within
|
|
514
|
+
* a session must belong to the same Google Cloud Console project. Once a
|
|
515
|
+
* session has concluded, the token is no longer valid; your app must generate
|
|
516
|
+
* a fresh token for each session. If the `session_token` parameter is
|
|
517
|
+
* omitted, or if you reuse a session token, the session is charged as if no
|
|
518
|
+
* session token was provided (each request is billed separately).
|
|
516
519
|
*
|
|
517
520
|
* We recommend the following guidelines:
|
|
521
|
+
*
|
|
518
522
|
* * Use session tokens for all Place Autocomplete calls.
|
|
519
523
|
* * Generate a fresh token for each session. Using a version 4 UUID is
|
|
520
524
|
* recommended.
|
|
@@ -77,7 +77,7 @@ class PlacesClient {
|
|
|
77
77
|
* ```
|
|
78
78
|
*/
|
|
79
79
|
constructor(opts, gaxInstance) {
|
|
80
|
-
var _a, _b, _c, _d;
|
|
80
|
+
var _a, _b, _c, _d, _e;
|
|
81
81
|
this._terminated = false;
|
|
82
82
|
this.descriptors = {
|
|
83
83
|
page: {},
|
|
@@ -92,14 +92,17 @@ class PlacesClient {
|
|
|
92
92
|
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
|
93
93
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
94
94
|
}
|
|
95
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
|
96
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
|
97
|
+
: undefined;
|
|
95
98
|
this._universeDomain =
|
|
96
|
-
(_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : 'googleapis.com';
|
|
99
|
+
(_c = (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
|
|
97
100
|
this._servicePath = 'places.' + this._universeDomain;
|
|
98
101
|
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
|
99
102
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
|
100
103
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
|
101
|
-
const clientConfig = (
|
|
102
|
-
const fallback = (
|
|
104
|
+
const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
|
|
105
|
+
const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
|
103
106
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
104
107
|
// Request numeric enum values if REST transport is used.
|
|
105
108
|
opts.numericEnums = true;
|
|
@@ -129,7 +132,7 @@ class PlacesClient {
|
|
|
129
132
|
}
|
|
130
133
|
// Determine the client header string.
|
|
131
134
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
|
132
|
-
if (typeof process
|
|
135
|
+
if (typeof process === 'object' && 'versions' in process) {
|
|
133
136
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
|
134
137
|
}
|
|
135
138
|
else {
|
|
@@ -217,7 +220,7 @@ class PlacesClient {
|
|
|
217
220
|
* @returns {string} The DNS address for this service.
|
|
218
221
|
*/
|
|
219
222
|
static get servicePath() {
|
|
220
|
-
if (typeof process
|
|
223
|
+
if (typeof process === 'object' &&
|
|
221
224
|
typeof process.emitWarning === 'function') {
|
|
222
225
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
223
226
|
}
|
|
@@ -229,7 +232,7 @@ class PlacesClient {
|
|
|
229
232
|
* @returns {string} The DNS address for this service.
|
|
230
233
|
*/
|
|
231
234
|
static get apiEndpoint() {
|
|
232
|
-
if (typeof process
|
|
235
|
+
if (typeof process === 'object' &&
|
|
233
236
|
typeof process.emitWarning === 'function') {
|
|
234
237
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
235
238
|
}
|