onehook-api-client 1.0.40 → 1.0.41
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/dist-cjs/protocols/Aws_restJson1.js +48 -14
- package/dist-es/protocols/Aws_restJson1.js +48 -14
- package/dist-types/commands/GetChatProfileCommand.d.ts +0 -5
- package/dist-types/commands/GetInternalProfileCommand.d.ts +1 -1
- package/dist-types/commands/GetMatchingProfileCommand.d.ts +7 -0
- package/dist-types/commands/GetMyProfileCommand.d.ts +7 -5
- package/dist-types/commands/GetPlaceCommand.d.ts +3 -2
- package/dist-types/commands/SearchPlacesCommand.d.ts +3 -2
- package/dist-types/commands/UpsertChatProfileCommand.d.ts +0 -5
- package/dist-types/commands/UpsertMatchingProfileCommand.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +53 -35
- package/package.json +1 -1
|
@@ -1352,7 +1352,7 @@ const se_UpsertChatProfileCommand = async (input, context) => {
|
|
|
1352
1352
|
let body;
|
|
1353
1353
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1354
1354
|
'avatarKey': [],
|
|
1355
|
-
'birthDetails': _ =>
|
|
1355
|
+
'birthDetails': _ => (0, smithy_client_1._json)(_),
|
|
1356
1356
|
'displayName': [],
|
|
1357
1357
|
}));
|
|
1358
1358
|
b.m("PUT")
|
|
@@ -1371,6 +1371,7 @@ const se_UpsertMatchingProfileCommand = async (input, context) => {
|
|
|
1371
1371
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1372
1372
|
'audioPrompt': [],
|
|
1373
1373
|
'bio': [],
|
|
1374
|
+
'birthTimePlace': _ => se_BirthTimePlace(_, context),
|
|
1374
1375
|
'cannabisStatus': [],
|
|
1375
1376
|
'causes': _ => (0, smithy_client_1._json)(_),
|
|
1376
1377
|
'communities': _ => (0, smithy_client_1._json)(_),
|
|
@@ -3130,7 +3131,7 @@ const de_GetChatProfileCommand = async (output, context) => {
|
|
|
3130
3131
|
'age': smithy_client_1.expectInt32,
|
|
3131
3132
|
'avatarKey': smithy_client_1.expectString,
|
|
3132
3133
|
'birthDateOnFile': smithy_client_1.expectBoolean,
|
|
3133
|
-
'birthDetails':
|
|
3134
|
+
'birthDetails': smithy_client_1._json,
|
|
3134
3135
|
'displayName': smithy_client_1.expectString,
|
|
3135
3136
|
'fieldModerationStatus': smithy_client_1._json,
|
|
3136
3137
|
'moderationStatus': smithy_client_1.expectString,
|
|
@@ -3222,6 +3223,7 @@ const de_GetMatchingProfileCommand = async (output, context) => {
|
|
|
3222
3223
|
'age': smithy_client_1.expectInt32,
|
|
3223
3224
|
'audioPrompt': smithy_client_1.expectString,
|
|
3224
3225
|
'bio': smithy_client_1.expectString,
|
|
3226
|
+
'birthTimePlace': _ => de_BirthTimePlace(_, context),
|
|
3225
3227
|
'cannabisStatus': smithy_client_1.expectString,
|
|
3226
3228
|
'causes': smithy_client_1._json,
|
|
3227
3229
|
'communities': smithy_client_1._json,
|
|
@@ -3292,8 +3294,8 @@ const de_GetMyProfileCommand = async (output, context) => {
|
|
|
3292
3294
|
});
|
|
3293
3295
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
3294
3296
|
const doc = (0, smithy_client_1.take)(data, {
|
|
3295
|
-
'chat':
|
|
3296
|
-
'matching':
|
|
3297
|
+
'chat': smithy_client_1._json,
|
|
3298
|
+
'matching': _ => de_MatchingProfile(_, context),
|
|
3297
3299
|
});
|
|
3298
3300
|
Object.assign(contents, doc);
|
|
3299
3301
|
return contents;
|
|
@@ -4182,13 +4184,11 @@ const se_VariantOverrides = (input, context) => {
|
|
|
4182
4184
|
return acc;
|
|
4183
4185
|
}, {});
|
|
4184
4186
|
};
|
|
4185
|
-
const
|
|
4187
|
+
const se_BirthTimePlace = (input, context) => {
|
|
4186
4188
|
return (0, smithy_client_1.take)(input, {
|
|
4187
|
-
'date': [],
|
|
4188
4189
|
'latitude': smithy_client_1.serializeFloat,
|
|
4189
4190
|
'longitude': smithy_client_1.serializeFloat,
|
|
4190
4191
|
'placeName': [],
|
|
4191
|
-
'provisional': [],
|
|
4192
4192
|
'time': [],
|
|
4193
4193
|
'timeZone': [],
|
|
4194
4194
|
});
|
|
@@ -4333,27 +4333,61 @@ const de_CandidateList = (output, context) => {
|
|
|
4333
4333
|
});
|
|
4334
4334
|
return retVal;
|
|
4335
4335
|
};
|
|
4336
|
-
const
|
|
4336
|
+
const de_BirthTimePlace = (output, context) => {
|
|
4337
4337
|
return (0, smithy_client_1.take)(output, {
|
|
4338
|
-
'date': smithy_client_1.expectString,
|
|
4339
4338
|
'latitude': smithy_client_1.limitedParseDouble,
|
|
4340
4339
|
'longitude': smithy_client_1.limitedParseDouble,
|
|
4341
4340
|
'placeName': smithy_client_1.expectString,
|
|
4342
|
-
'provisional': smithy_client_1.expectBoolean,
|
|
4343
4341
|
'time': smithy_client_1.expectString,
|
|
4344
4342
|
'timeZone': smithy_client_1.expectString,
|
|
4345
4343
|
});
|
|
4346
4344
|
};
|
|
4347
|
-
const
|
|
4345
|
+
const de_MatchingProfile = (output, context) => {
|
|
4348
4346
|
return (0, smithy_client_1.take)(output, {
|
|
4349
4347
|
'age': smithy_client_1.expectInt32,
|
|
4350
|
-
'
|
|
4351
|
-
'
|
|
4352
|
-
'
|
|
4348
|
+
'audioPrompt': smithy_client_1.expectString,
|
|
4349
|
+
'bio': smithy_client_1.expectString,
|
|
4350
|
+
'birthTimePlace': (_) => de_BirthTimePlace(_, context),
|
|
4351
|
+
'cannabisStatus': smithy_client_1.expectString,
|
|
4352
|
+
'causes': smithy_client_1._json,
|
|
4353
|
+
'communities': smithy_client_1._json,
|
|
4354
|
+
'currentLocation': smithy_client_1.expectString,
|
|
4353
4355
|
'displayName': smithy_client_1.expectString,
|
|
4356
|
+
'draftExpiresAt': smithy_client_1.expectLong,
|
|
4357
|
+
'drinkingStatus': smithy_client_1.expectString,
|
|
4358
|
+
'drugsStatus': smithy_client_1.expectString,
|
|
4359
|
+
'education': smithy_client_1.expectString,
|
|
4360
|
+
'educationLevel': smithy_client_1.expectString,
|
|
4361
|
+
'exercise': smithy_client_1.expectString,
|
|
4362
|
+
'familyPlans': smithy_client_1.expectString,
|
|
4354
4363
|
'fieldModerationStatus': smithy_client_1._json,
|
|
4364
|
+
'gender': smithy_client_1.expectString,
|
|
4365
|
+
'generation': smithy_client_1.expectLong,
|
|
4366
|
+
'height': smithy_client_1.expectInt32,
|
|
4367
|
+
'hometown': smithy_client_1.expectString,
|
|
4368
|
+
'interestedIn': smithy_client_1._json,
|
|
4369
|
+
'interests': smithy_client_1._json,
|
|
4370
|
+
'languages': smithy_client_1._json,
|
|
4371
|
+
'lastEditedAt': smithy_client_1.expectLong,
|
|
4355
4372
|
'moderationStatus': smithy_client_1.expectString,
|
|
4373
|
+
'openers': smithy_client_1._json,
|
|
4374
|
+
'pictureTransforms': smithy_client_1._json,
|
|
4375
|
+
'pictures': smithy_client_1._json,
|
|
4376
|
+
'politicalView': smithy_client_1.expectString,
|
|
4377
|
+
'prompts': smithy_client_1._json,
|
|
4378
|
+
'qualities': smithy_client_1._json,
|
|
4379
|
+
'relationshipType': smithy_client_1.expectString,
|
|
4380
|
+
'religion': smithy_client_1.expectString,
|
|
4381
|
+
'smokingStatus': smithy_client_1.expectString,
|
|
4382
|
+
'socialLinks': smithy_client_1._json,
|
|
4383
|
+
'starSign': smithy_client_1.expectString,
|
|
4384
|
+
'status': smithy_client_1.expectString,
|
|
4385
|
+
'subscriptionTier': smithy_client_1.expectString,
|
|
4356
4386
|
'userId': smithy_client_1.expectString,
|
|
4387
|
+
'verified': smithy_client_1.expectBoolean,
|
|
4388
|
+
'videos': smithy_client_1._json,
|
|
4389
|
+
'wantsKids': smithy_client_1.expectString,
|
|
4390
|
+
'work': smithy_client_1.expectString,
|
|
4357
4391
|
});
|
|
4358
4392
|
};
|
|
4359
4393
|
const deserializeMetadata = (output) => ({
|
|
@@ -1258,7 +1258,7 @@ export const se_UpsertChatProfileCommand = async (input, context) => {
|
|
|
1258
1258
|
let body;
|
|
1259
1259
|
body = JSON.stringify(take(input, {
|
|
1260
1260
|
'avatarKey': [],
|
|
1261
|
-
'birthDetails': _ =>
|
|
1261
|
+
'birthDetails': _ => _json(_),
|
|
1262
1262
|
'displayName': [],
|
|
1263
1263
|
}));
|
|
1264
1264
|
b.m("PUT")
|
|
@@ -1276,6 +1276,7 @@ export const se_UpsertMatchingProfileCommand = async (input, context) => {
|
|
|
1276
1276
|
body = JSON.stringify(take(input, {
|
|
1277
1277
|
'audioPrompt': [],
|
|
1278
1278
|
'bio': [],
|
|
1279
|
+
'birthTimePlace': _ => se_BirthTimePlace(_, context),
|
|
1279
1280
|
'cannabisStatus': [],
|
|
1280
1281
|
'causes': _ => _json(_),
|
|
1281
1282
|
'communities': _ => _json(_),
|
|
@@ -2930,7 +2931,7 @@ export const de_GetChatProfileCommand = async (output, context) => {
|
|
|
2930
2931
|
'age': __expectInt32,
|
|
2931
2932
|
'avatarKey': __expectString,
|
|
2932
2933
|
'birthDateOnFile': __expectBoolean,
|
|
2933
|
-
'birthDetails':
|
|
2934
|
+
'birthDetails': _json,
|
|
2934
2935
|
'displayName': __expectString,
|
|
2935
2936
|
'fieldModerationStatus': _json,
|
|
2936
2937
|
'moderationStatus': __expectString,
|
|
@@ -3019,6 +3020,7 @@ export const de_GetMatchingProfileCommand = async (output, context) => {
|
|
|
3019
3020
|
'age': __expectInt32,
|
|
3020
3021
|
'audioPrompt': __expectString,
|
|
3021
3022
|
'bio': __expectString,
|
|
3023
|
+
'birthTimePlace': _ => de_BirthTimePlace(_, context),
|
|
3022
3024
|
'cannabisStatus': __expectString,
|
|
3023
3025
|
'causes': _json,
|
|
3024
3026
|
'communities': _json,
|
|
@@ -3087,8 +3089,8 @@ export const de_GetMyProfileCommand = async (output, context) => {
|
|
|
3087
3089
|
});
|
|
3088
3090
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
3089
3091
|
const doc = take(data, {
|
|
3090
|
-
'chat':
|
|
3091
|
-
'matching':
|
|
3092
|
+
'chat': _json,
|
|
3093
|
+
'matching': _ => de_MatchingProfile(_, context),
|
|
3092
3094
|
});
|
|
3093
3095
|
Object.assign(contents, doc);
|
|
3094
3096
|
return contents;
|
|
@@ -3945,13 +3947,11 @@ const se_VariantOverrides = (input, context) => {
|
|
|
3945
3947
|
return acc;
|
|
3946
3948
|
}, {});
|
|
3947
3949
|
};
|
|
3948
|
-
const
|
|
3950
|
+
const se_BirthTimePlace = (input, context) => {
|
|
3949
3951
|
return take(input, {
|
|
3950
|
-
'date': [],
|
|
3951
3952
|
'latitude': __serializeFloat,
|
|
3952
3953
|
'longitude': __serializeFloat,
|
|
3953
3954
|
'placeName': [],
|
|
3954
|
-
'provisional': [],
|
|
3955
3955
|
'time': [],
|
|
3956
3956
|
'timeZone': [],
|
|
3957
3957
|
});
|
|
@@ -4096,27 +4096,61 @@ const de_CandidateList = (output, context) => {
|
|
|
4096
4096
|
});
|
|
4097
4097
|
return retVal;
|
|
4098
4098
|
};
|
|
4099
|
-
const
|
|
4099
|
+
const de_BirthTimePlace = (output, context) => {
|
|
4100
4100
|
return take(output, {
|
|
4101
|
-
'date': __expectString,
|
|
4102
4101
|
'latitude': __limitedParseDouble,
|
|
4103
4102
|
'longitude': __limitedParseDouble,
|
|
4104
4103
|
'placeName': __expectString,
|
|
4105
|
-
'provisional': __expectBoolean,
|
|
4106
4104
|
'time': __expectString,
|
|
4107
4105
|
'timeZone': __expectString,
|
|
4108
4106
|
});
|
|
4109
4107
|
};
|
|
4110
|
-
const
|
|
4108
|
+
const de_MatchingProfile = (output, context) => {
|
|
4111
4109
|
return take(output, {
|
|
4112
4110
|
'age': __expectInt32,
|
|
4113
|
-
'
|
|
4114
|
-
'
|
|
4115
|
-
'
|
|
4111
|
+
'audioPrompt': __expectString,
|
|
4112
|
+
'bio': __expectString,
|
|
4113
|
+
'birthTimePlace': (_) => de_BirthTimePlace(_, context),
|
|
4114
|
+
'cannabisStatus': __expectString,
|
|
4115
|
+
'causes': _json,
|
|
4116
|
+
'communities': _json,
|
|
4117
|
+
'currentLocation': __expectString,
|
|
4116
4118
|
'displayName': __expectString,
|
|
4119
|
+
'draftExpiresAt': __expectLong,
|
|
4120
|
+
'drinkingStatus': __expectString,
|
|
4121
|
+
'drugsStatus': __expectString,
|
|
4122
|
+
'education': __expectString,
|
|
4123
|
+
'educationLevel': __expectString,
|
|
4124
|
+
'exercise': __expectString,
|
|
4125
|
+
'familyPlans': __expectString,
|
|
4117
4126
|
'fieldModerationStatus': _json,
|
|
4127
|
+
'gender': __expectString,
|
|
4128
|
+
'generation': __expectLong,
|
|
4129
|
+
'height': __expectInt32,
|
|
4130
|
+
'hometown': __expectString,
|
|
4131
|
+
'interestedIn': _json,
|
|
4132
|
+
'interests': _json,
|
|
4133
|
+
'languages': _json,
|
|
4134
|
+
'lastEditedAt': __expectLong,
|
|
4118
4135
|
'moderationStatus': __expectString,
|
|
4136
|
+
'openers': _json,
|
|
4137
|
+
'pictureTransforms': _json,
|
|
4138
|
+
'pictures': _json,
|
|
4139
|
+
'politicalView': __expectString,
|
|
4140
|
+
'prompts': _json,
|
|
4141
|
+
'qualities': _json,
|
|
4142
|
+
'relationshipType': __expectString,
|
|
4143
|
+
'religion': __expectString,
|
|
4144
|
+
'smokingStatus': __expectString,
|
|
4145
|
+
'socialLinks': _json,
|
|
4146
|
+
'starSign': __expectString,
|
|
4147
|
+
'status': __expectString,
|
|
4148
|
+
'subscriptionTier': __expectString,
|
|
4119
4149
|
'userId': __expectString,
|
|
4150
|
+
'verified': __expectBoolean,
|
|
4151
|
+
'videos': _json,
|
|
4152
|
+
'wantsKids': __expectString,
|
|
4153
|
+
'work': __expectString,
|
|
4120
4154
|
});
|
|
4121
4155
|
};
|
|
4122
4156
|
const deserializeMetadata = (output) => ({
|
|
@@ -49,11 +49,6 @@ declare const GetChatProfileCommand_base: {
|
|
|
49
49
|
* // age: Number("int"),
|
|
50
50
|
* // birthDetails: { // BirthDetails
|
|
51
51
|
* // date: "STRING_VALUE",
|
|
52
|
-
* // time: "STRING_VALUE",
|
|
53
|
-
* // timeZone: "STRING_VALUE",
|
|
54
|
-
* // latitude: Number("double"),
|
|
55
|
-
* // longitude: Number("double"),
|
|
56
|
-
* // placeName: "STRING_VALUE",
|
|
57
52
|
* // provisional: true || false,
|
|
58
53
|
* // },
|
|
59
54
|
* // birthDateOnFile: true || false,
|
|
@@ -31,7 +31,7 @@ declare const GetInternalProfileCommand_base: {
|
|
|
31
31
|
* State's AI-context projection). The matching fields and `matchingStatus: ACTIVE` are present only
|
|
32
32
|
* while the matching profile is ACTIVE; `userId`, the chat `displayName`, `age` and `birthDateOnFile`
|
|
33
33
|
* are always there. Owner-only fields (`status`, `generation`, `lastEditedAt`, `draftExpiresAt`,
|
|
34
|
-
* `birthDetails`) are never included. 404 without a saved chat profile, or while it is being deleted.
|
|
34
|
+
* `birthDetails`, `birthTimePlace`) are never included. 404 without a saved chat profile, or while it is being deleted.
|
|
35
35
|
* @example
|
|
36
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
37
37
|
* ```javascript
|
|
@@ -48,6 +48,13 @@ declare const GetMatchingProfileCommand_base: {
|
|
|
48
48
|
* // generation: Number("long"),
|
|
49
49
|
* // lastEditedAt: Number("long"),
|
|
50
50
|
* // draftExpiresAt: Number("long"),
|
|
51
|
+
* // birthTimePlace: { // BirthTimePlace
|
|
52
|
+
* // time: "STRING_VALUE",
|
|
53
|
+
* // timeZone: "STRING_VALUE",
|
|
54
|
+
* // latitude: Number("double"),
|
|
55
|
+
* // longitude: Number("double"),
|
|
56
|
+
* // placeName: "STRING_VALUE",
|
|
57
|
+
* // },
|
|
51
58
|
* // displayName: "STRING_VALUE",
|
|
52
59
|
* // bio: "STRING_VALUE",
|
|
53
60
|
* // age: Number("int"),
|
|
@@ -46,11 +46,6 @@ declare const GetMyProfileCommand_base: {
|
|
|
46
46
|
* // age: Number("int"),
|
|
47
47
|
* // birthDetails: { // BirthDetails
|
|
48
48
|
* // date: "STRING_VALUE",
|
|
49
|
-
* // time: "STRING_VALUE",
|
|
50
|
-
* // timeZone: "STRING_VALUE",
|
|
51
|
-
* // latitude: Number("double"),
|
|
52
|
-
* // longitude: Number("double"),
|
|
53
|
-
* // placeName: "STRING_VALUE",
|
|
54
49
|
* // provisional: true || false,
|
|
55
50
|
* // },
|
|
56
51
|
* // birthDateOnFile: true || false,
|
|
@@ -65,6 +60,13 @@ declare const GetMyProfileCommand_base: {
|
|
|
65
60
|
* // generation: Number("long"),
|
|
66
61
|
* // lastEditedAt: Number("long"),
|
|
67
62
|
* // draftExpiresAt: Number("long"),
|
|
63
|
+
* // birthTimePlace: { // BirthTimePlace
|
|
64
|
+
* // time: "STRING_VALUE",
|
|
65
|
+
* // timeZone: "STRING_VALUE",
|
|
66
|
+
* // latitude: Number("double"),
|
|
67
|
+
* // longitude: Number("double"),
|
|
68
|
+
* // placeName: "STRING_VALUE",
|
|
69
|
+
* // },
|
|
68
70
|
* // displayName: "STRING_VALUE",
|
|
69
71
|
* // bio: "STRING_VALUE",
|
|
70
72
|
* // age: Number("int"),
|
|
@@ -27,8 +27,9 @@ declare const GetPlaceCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Resolves a `placeId` from SearchPlaces to coordinates and the IANA time zone
|
|
31
|
-
* sends as `
|
|
30
|
+
* Resolves a `placeId` from SearchPlaces to coordinates and the IANA time zone for the matching profile's
|
|
31
|
+
* birthplace field. The client sends the result as `birthTimePlace.latitude`, `longitude`, `timeZone` and
|
|
32
|
+
* `placeName` on `PUT /profile/matching`.
|
|
32
33
|
* @example
|
|
33
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
35
|
* ```javascript
|
|
@@ -27,8 +27,9 @@ declare const SearchPlacesCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Birthplace search for the
|
|
31
|
-
* Backed by Amazon Location Service; results carry only a display label and an
|
|
30
|
+
* Birthplace search for the matching profile's optional birthplace field: cities and towns matching `q`
|
|
31
|
+
* (at least 2 characters). Backed by Amazon Location Service; results carry only a display label and an
|
|
32
|
+
* opaque `placeId`.
|
|
32
33
|
* @example
|
|
33
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
35
|
* ```javascript
|
|
@@ -40,11 +40,6 @@ declare const UpsertChatProfileCommand_base: {
|
|
|
40
40
|
* avatarKey: "STRING_VALUE",
|
|
41
41
|
* birthDetails: { // BirthDetails
|
|
42
42
|
* date: "STRING_VALUE",
|
|
43
|
-
* time: "STRING_VALUE",
|
|
44
|
-
* timeZone: "STRING_VALUE",
|
|
45
|
-
* latitude: Number("double"),
|
|
46
|
-
* longitude: Number("double"),
|
|
47
|
-
* placeName: "STRING_VALUE",
|
|
48
43
|
* provisional: true || false,
|
|
49
44
|
* },
|
|
50
45
|
* };
|
|
@@ -37,6 +37,13 @@ declare const UpsertMatchingProfileCommand_base: {
|
|
|
37
37
|
* // const { OneHookClient, UpsertMatchingProfileCommand } = require("onehook-api-client"); // CommonJS import
|
|
38
38
|
* const client = new OneHookClient(config);
|
|
39
39
|
* const input = { // MatchingProfileUpdateRequest
|
|
40
|
+
* birthTimePlace: { // BirthTimePlace
|
|
41
|
+
* time: "STRING_VALUE",
|
|
42
|
+
* timeZone: "STRING_VALUE",
|
|
43
|
+
* latitude: Number("double"),
|
|
44
|
+
* longitude: Number("double"),
|
|
45
|
+
* placeName: "STRING_VALUE",
|
|
46
|
+
* },
|
|
40
47
|
* bio: "STRING_VALUE",
|
|
41
48
|
* gender: "STRING_VALUE",
|
|
42
49
|
* interestedIn: [ // StringList
|
|
@@ -3169,43 +3169,16 @@ export interface GetBirthDateStatusResponse {
|
|
|
3169
3169
|
lastCorrectedBy?: string | undefined;
|
|
3170
3170
|
}
|
|
3171
3171
|
/**
|
|
3172
|
-
*
|
|
3173
|
-
* (`time` + `timeZone`: Moon nakshatra, hour pillar, Zi Wei palaces; `latitude` + `longitude`:
|
|
3174
|
-
* Ascendant, Arabic Parts, Hellenistic sect). Never shown to other members.
|
|
3172
|
+
* The chat profile's birth date. Age is derived from it. Never shown to other members.
|
|
3175
3173
|
* @public
|
|
3176
3174
|
*/
|
|
3177
3175
|
export interface BirthDetails {
|
|
3178
3176
|
/**
|
|
3179
3177
|
* Local birth date (day, month and year), `yyyy-MM-dd`. Must give an age of 18 to 120.
|
|
3180
|
-
*
|
|
3178
|
+
* Required when the chat profile is created; immutable afterwards.
|
|
3181
3179
|
* @public
|
|
3182
3180
|
*/
|
|
3183
3181
|
date?: string | undefined;
|
|
3184
|
-
/**
|
|
3185
|
-
* Local birth time, `HH:mm` (24h). Requires `timeZone`.
|
|
3186
|
-
* @public
|
|
3187
|
-
*/
|
|
3188
|
-
time?: string | undefined;
|
|
3189
|
-
/**
|
|
3190
|
-
* IANA time zone of the birthplace, e.g. `Asia/Kolkata`.
|
|
3191
|
-
* @public
|
|
3192
|
-
*/
|
|
3193
|
-
timeZone?: string | undefined;
|
|
3194
|
-
/**
|
|
3195
|
-
* Birthplace latitude in degrees (north positive). Send together with `longitude`.
|
|
3196
|
-
* @public
|
|
3197
|
-
*/
|
|
3198
|
-
latitude?: number | undefined;
|
|
3199
|
-
/**
|
|
3200
|
-
* Birthplace longitude in degrees (east positive). Send together with `latitude`.
|
|
3201
|
-
* @public
|
|
3202
|
-
*/
|
|
3203
|
-
longitude?: number | undefined;
|
|
3204
|
-
/**
|
|
3205
|
-
* Display label of the chosen birthplace (from `GET /profile/places`). Needs latitude/longitude.
|
|
3206
|
-
* @public
|
|
3207
|
-
*/
|
|
3208
|
-
placeName?: string | undefined;
|
|
3209
3182
|
/**
|
|
3210
3183
|
* Server-set, ignored on input. True when `date` is a placeholder added for a profile created
|
|
3211
3184
|
* before the birth date was compulsory. The member may replace a provisional date ONCE with
|
|
@@ -3232,9 +3205,7 @@ export interface ChatProfile {
|
|
|
3232
3205
|
*/
|
|
3233
3206
|
age?: number | undefined;
|
|
3234
3207
|
/**
|
|
3235
|
-
*
|
|
3236
|
-
* (`time` + `timeZone`: Moon nakshatra, hour pillar, Zi Wei palaces; `latitude` + `longitude`:
|
|
3237
|
-
* Ascendant, Arabic Parts, Hellenistic sect). Never shown to other members.
|
|
3208
|
+
* The chat profile's birth date. Age is derived from it. Never shown to other members.
|
|
3238
3209
|
* @public
|
|
3239
3210
|
*/
|
|
3240
3211
|
birthDetails?: BirthDetails | undefined;
|
|
@@ -3373,9 +3344,44 @@ export interface LivenessStatusResponse {
|
|
|
3373
3344
|
*/
|
|
3374
3345
|
status: string | undefined;
|
|
3375
3346
|
}
|
|
3347
|
+
/**
|
|
3348
|
+
* The matching profile's optional birth time and place. They only refine traditional compatibility:
|
|
3349
|
+
* `time` + `timeZone` unlock the Moon nakshatra, hour pillar and Zi Wei palaces; `latitude` +
|
|
3350
|
+
* `longitude` unlock the Ascendant, Arabic Parts and Hellenistic sect. Never shown to other members.
|
|
3351
|
+
* Erased with the matching profile (matching turned off, draft expiry, account deletion).
|
|
3352
|
+
* @public
|
|
3353
|
+
*/
|
|
3354
|
+
export interface BirthTimePlace {
|
|
3355
|
+
/**
|
|
3356
|
+
* Local birth time, `HH:mm` (24h). Requires `timeZone`.
|
|
3357
|
+
* @public
|
|
3358
|
+
*/
|
|
3359
|
+
time?: string | undefined;
|
|
3360
|
+
/**
|
|
3361
|
+
* IANA time zone of the birthplace, e.g. `Asia/Kolkata`.
|
|
3362
|
+
* @public
|
|
3363
|
+
*/
|
|
3364
|
+
timeZone?: string | undefined;
|
|
3365
|
+
/**
|
|
3366
|
+
* Birthplace latitude in degrees (north positive). Send together with `longitude`. Rounded to 2 decimals.
|
|
3367
|
+
* @public
|
|
3368
|
+
*/
|
|
3369
|
+
latitude?: number | undefined;
|
|
3370
|
+
/**
|
|
3371
|
+
* Birthplace longitude in degrees (east positive). Send together with `latitude`. Rounded to 2 decimals.
|
|
3372
|
+
* @public
|
|
3373
|
+
*/
|
|
3374
|
+
longitude?: number | undefined;
|
|
3375
|
+
/**
|
|
3376
|
+
* Display label of the chosen birthplace (from GetPlace). Needs latitude/longitude; truncated to 200
|
|
3377
|
+
* characters.
|
|
3378
|
+
* @public
|
|
3379
|
+
*/
|
|
3380
|
+
placeName?: string | undefined;
|
|
3381
|
+
}
|
|
3376
3382
|
/**
|
|
3377
3383
|
* A matching profile. Another member's view also carries their `displayName` and `age` from the
|
|
3378
|
-
* chat profile, and never `
|
|
3384
|
+
* chat profile, and never `birthTimePlace`.
|
|
3379
3385
|
* @public
|
|
3380
3386
|
*/
|
|
3381
3387
|
export interface MatchingProfile {
|
|
@@ -3400,6 +3406,11 @@ export interface MatchingProfile {
|
|
|
3400
3406
|
* @public
|
|
3401
3407
|
*/
|
|
3402
3408
|
draftExpiresAt?: number | undefined;
|
|
3409
|
+
/**
|
|
3410
|
+
* Owner only: the optional birth time and place. Absent when none is stored.
|
|
3411
|
+
* @public
|
|
3412
|
+
*/
|
|
3413
|
+
birthTimePlace?: BirthTimePlace | undefined;
|
|
3403
3414
|
displayName?: string | undefined;
|
|
3404
3415
|
bio?: string | undefined;
|
|
3405
3416
|
/**
|
|
@@ -3578,8 +3589,8 @@ export interface ChatProfileUpdateRequest {
|
|
|
3578
3589
|
*/
|
|
3579
3590
|
avatarKey?: string | undefined;
|
|
3580
3591
|
/**
|
|
3581
|
-
*
|
|
3582
|
-
* NEVER be changed afterwards.
|
|
3592
|
+
* The birth date. `date` is REQUIRED when the chat profile is first created (18 or over) and can
|
|
3593
|
+
* NEVER be changed afterwards. Birth time and place belong to the matching profile (`birthTimePlace`).
|
|
3583
3594
|
* @public
|
|
3584
3595
|
*/
|
|
3585
3596
|
birthDetails?: BirthDetails | undefined;
|
|
@@ -3589,6 +3600,13 @@ export interface ChatProfileUpdateRequest {
|
|
|
3589
3600
|
* @public
|
|
3590
3601
|
*/
|
|
3591
3602
|
export interface MatchingProfileUpdateRequest {
|
|
3603
|
+
/**
|
|
3604
|
+
* Optional birth time and place for traditional compatibility. Omitted (null): keep what is stored.
|
|
3605
|
+
* Sent: replaces the stored value as a whole (never field-merged). Sent with every field empty
|
|
3606
|
+
* (`\{\}`): clears it. Validation errors are 400 with messages prefixed `birthTimePlace.`.
|
|
3607
|
+
* @public
|
|
3608
|
+
*/
|
|
3609
|
+
birthTimePlace?: BirthTimePlace | undefined;
|
|
3592
3610
|
bio?: string | undefined;
|
|
3593
3611
|
gender?: string | undefined;
|
|
3594
3612
|
interestedIn?: (string)[] | undefined;
|
package/package.json
CHANGED