@automate.ax/integration-contracts 0.152.0 → 0.152.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/dist/highlevel/api.js +24 -1
- package/dist/highlevel/openapi-operations.generated.json +177 -38
- package/dist/highlevel/openapi-types.generated.d.ts +81 -24
- package/dist/highlevel/operation-manifest.d.ts +8 -0
- package/dist/highlevel/operation-manifest.js +1 -0
- package/package.json +2 -2
- package/src/highlevel/api.ts +28 -1
- package/src/highlevel/openapi-operations.generated.json +177 -38
- package/src/highlevel/openapi-types.generated.ts +83 -23
- package/src/highlevel/operation-manifest.ts +9 -0
|
@@ -62,6 +62,7 @@ export const HIGH_LEVEL_OPERATION_DEFINITIONS = [
|
|
|
62
62
|
operation("conversations", "get-message", "getMessage", "getHighLevelMessage", "Get HighLevel message", "Retrieves one message by ID.", "safe"),
|
|
63
63
|
operation("conversations", "send-a-new-message", "sendMessage", "sendHighLevelMessage", "Send HighLevel message", "Sends a supported message through a contact conversation.", "unsafe"),
|
|
64
64
|
operation("conversations", "cancel-scheduled-message", "cancelScheduledMessage", "cancelScheduledHighLevelMessage", "Cancel scheduled HighLevel message", "Cancels one scheduled message before delivery.", "safe"),
|
|
65
|
+
operation("conversations", "cancel-scheduled-email-message", "cancelScheduledEmailMessage", "cancelScheduledHighLevelEmailMessage", "Cancel scheduled HighLevel email message", "Cancels one scheduled email before delivery.", "safe"),
|
|
65
66
|
operation("conversations", "get-message-recording", "getMessageRecording", "getHighLevelMessageRecording", "Get HighLevel message recording", "Returns the recording for a voice or call message.", "safe"),
|
|
66
67
|
operation("conversations", "get-message-transcription", "getMessageTranscription", "getHighLevelMessageTranscription", "Get HighLevel message transcription", "Returns the transcription for a supported message.", "safe"),
|
|
67
68
|
operation("locations", "get-location", "getLocation", "getHighLevelLocation", "Get HighLevel location", "Retrieves the connected sub-account's location record.", "safe"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/integration-contracts",
|
|
3
|
-
"version": "0.152.
|
|
3
|
+
"version": "0.152.1",
|
|
4
4
|
"description": "Shared integration payload contracts and provider primitives for Automate.ax.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@anthropic-ai/sdk": "0.123.0",
|
|
75
|
-
"@automate.ax/codec": "0.152.
|
|
75
|
+
"@automate.ax/codec": "0.152.1",
|
|
76
76
|
"@cfworker/json-schema": "^4.1.1",
|
|
77
77
|
"@googleapis/calendar": "^16.0.0",
|
|
78
78
|
"@googleapis/forms": "^6.0.1",
|
package/src/highlevel/api.ts
CHANGED
|
@@ -86,7 +86,12 @@ export function getHighLevelApi(account: HighLevelResolvedAccount) {
|
|
|
86
86
|
pathValues.set(name, inputRecord[name])
|
|
87
87
|
}
|
|
88
88
|
for (const { name } of definition.queryParameters) {
|
|
89
|
-
queryValues.set(
|
|
89
|
+
queryValues.set(
|
|
90
|
+
name,
|
|
91
|
+
inputRecord[name] === undefined
|
|
92
|
+
? queryParameterDefault(definition.inputSchema, name)
|
|
93
|
+
: inputRecord[name],
|
|
94
|
+
)
|
|
90
95
|
}
|
|
91
96
|
for (const name of definition.bodyParameters) {
|
|
92
97
|
if (inputRecord[name] !== undefined)
|
|
@@ -171,6 +176,28 @@ export function getHighLevelApi(account: HighLevelResolvedAccount) {
|
|
|
171
176
|
}
|
|
172
177
|
}
|
|
173
178
|
|
|
179
|
+
/**
|
|
180
|
+
* Reads one documented top-level query default from a generated input schema.
|
|
181
|
+
*
|
|
182
|
+
* @param schema - Generated operation input schema.
|
|
183
|
+
* @param name - Public query parameter name.
|
|
184
|
+
*/
|
|
185
|
+
function queryParameterDefault(schema: Record<string, unknown>, name: string) {
|
|
186
|
+
const properties = schema.properties
|
|
187
|
+
if (!isRecord(properties)) return undefined
|
|
188
|
+
const property = properties[name]
|
|
189
|
+
return isRecord(property) ? property.default : undefined
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Whether one unknown JSON value is an object record.
|
|
194
|
+
*
|
|
195
|
+
* @param value - Candidate value.
|
|
196
|
+
*/
|
|
197
|
+
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
198
|
+
return typeof value === "object" && value !== null && !Array.isArray(value)
|
|
199
|
+
}
|
|
200
|
+
|
|
174
201
|
/**
|
|
175
202
|
* Encodes one required path parameter.
|
|
176
203
|
*
|
|
@@ -330,10 +330,18 @@
|
|
|
330
330
|
},
|
|
331
331
|
"openHours": {
|
|
332
332
|
"description": "This is only to set the standard availability. For custom availability, use the availabilities property",
|
|
333
|
-
"
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
333
|
+
"anyOf": [
|
|
334
|
+
{
|
|
335
|
+
"items": {
|
|
336
|
+
"$ref": "#/$defs/calendars.OpenHour"
|
|
337
|
+
},
|
|
338
|
+
"type": "array"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"additionalProperties": true,
|
|
342
|
+
"type": "object"
|
|
343
|
+
}
|
|
344
|
+
]
|
|
337
345
|
},
|
|
338
346
|
"enableRecurring": {
|
|
339
347
|
"type": "boolean",
|
|
@@ -518,22 +526,22 @@
|
|
|
518
526
|
]
|
|
519
527
|
},
|
|
520
528
|
"startTime": {
|
|
521
|
-
"type": "
|
|
529
|
+
"type": "string",
|
|
522
530
|
"description": "Start Time",
|
|
523
531
|
"example": "2023-09-25T16:00:00+05:30"
|
|
524
532
|
},
|
|
525
533
|
"endTime": {
|
|
526
|
-
"type": "
|
|
534
|
+
"type": "string",
|
|
527
535
|
"description": "End Time",
|
|
528
536
|
"example": "2023-09-25T16:00:00+05:30"
|
|
529
537
|
},
|
|
530
538
|
"dateAdded": {
|
|
531
|
-
"type": "
|
|
539
|
+
"type": "string",
|
|
532
540
|
"description": "Date Added",
|
|
533
541
|
"example": "2023-09-25T16:00:00+05:30"
|
|
534
542
|
},
|
|
535
543
|
"dateUpdated": {
|
|
536
|
-
"type": "
|
|
544
|
+
"type": "string",
|
|
537
545
|
"description": "Date Updated",
|
|
538
546
|
"example": "2023-09-25T16:00:00+05:30"
|
|
539
547
|
},
|
|
@@ -563,11 +571,6 @@
|
|
|
563
571
|
"title",
|
|
564
572
|
"calendarId",
|
|
565
573
|
"locationId",
|
|
566
|
-
"contactId",
|
|
567
|
-
"groupId",
|
|
568
|
-
"appointmentStatus",
|
|
569
|
-
"assignedUserId",
|
|
570
|
-
"users",
|
|
571
574
|
"startTime",
|
|
572
575
|
"endTime",
|
|
573
576
|
"dateAdded",
|
|
@@ -625,15 +628,22 @@
|
|
|
625
628
|
"type": "object",
|
|
626
629
|
"properties": {
|
|
627
630
|
"userId": {
|
|
628
|
-
"
|
|
629
|
-
|
|
631
|
+
"anyOf": [
|
|
632
|
+
{
|
|
633
|
+
"type": "string",
|
|
634
|
+
"description": "The ID of the user who created or updated the appointment"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"type": "null"
|
|
638
|
+
}
|
|
639
|
+
]
|
|
630
640
|
},
|
|
631
641
|
"source": {
|
|
632
642
|
"type": "string",
|
|
633
643
|
"description": "The source of the appointment"
|
|
634
644
|
}
|
|
635
645
|
},
|
|
636
|
-
"required": [
|
|
646
|
+
"required": []
|
|
637
647
|
},
|
|
638
648
|
"calendars.DeleteEventSuccessfulResponseDto": {
|
|
639
649
|
"type": "object",
|
|
@@ -1373,8 +1383,15 @@
|
|
|
1373
1383
|
"example": "JohnDeo@gmail.com"
|
|
1374
1384
|
},
|
|
1375
1385
|
"timezone": {
|
|
1376
|
-
"
|
|
1377
|
-
|
|
1386
|
+
"anyOf": [
|
|
1387
|
+
{
|
|
1388
|
+
"type": "string",
|
|
1389
|
+
"example": "Asia/Calcutta"
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"type": "null"
|
|
1393
|
+
}
|
|
1394
|
+
]
|
|
1378
1395
|
},
|
|
1379
1396
|
"country": {
|
|
1380
1397
|
"type": "string",
|
|
@@ -2450,7 +2467,8 @@
|
|
|
2450
2467
|
"TYPE_TIKTOK_COMMENT",
|
|
2451
2468
|
"TYPE_ACTIVITY_WHATSAPP",
|
|
2452
2469
|
"TYPE_FORM_SUBMISSION",
|
|
2453
|
-
"TYPE_SMS_REACTION"
|
|
2470
|
+
"TYPE_SMS_REACTION",
|
|
2471
|
+
"TYPE_NO_SHOW"
|
|
2454
2472
|
]
|
|
2455
2473
|
},
|
|
2456
2474
|
"type": {
|
|
@@ -2495,7 +2513,6 @@
|
|
|
2495
2513
|
"id",
|
|
2496
2514
|
"contactId",
|
|
2497
2515
|
"locationId",
|
|
2498
|
-
"lastMessageBody",
|
|
2499
2516
|
"lastMessageType",
|
|
2500
2517
|
"type",
|
|
2501
2518
|
"unreadCount",
|
|
@@ -3674,7 +3691,29 @@
|
|
|
3674
3691
|
"stages": {
|
|
3675
3692
|
"type": "array",
|
|
3676
3693
|
"items": {
|
|
3677
|
-
"
|
|
3694
|
+
"additionalProperties": true,
|
|
3695
|
+
"properties": {
|
|
3696
|
+
"id": {
|
|
3697
|
+
"type": "string"
|
|
3698
|
+
},
|
|
3699
|
+
"name": {
|
|
3700
|
+
"type": "string"
|
|
3701
|
+
},
|
|
3702
|
+
"position": {
|
|
3703
|
+
"type": "number"
|
|
3704
|
+
},
|
|
3705
|
+
"showInFunnel": {
|
|
3706
|
+
"type": "boolean"
|
|
3707
|
+
},
|
|
3708
|
+
"showInPieChart": {
|
|
3709
|
+
"type": "boolean"
|
|
3710
|
+
},
|
|
3711
|
+
"stageWinProbability": {
|
|
3712
|
+
"type": "number"
|
|
3713
|
+
}
|
|
3714
|
+
},
|
|
3715
|
+
"required": ["id", "name"],
|
|
3716
|
+
"type": "object"
|
|
3678
3717
|
}
|
|
3679
3718
|
},
|
|
3680
3719
|
"showInFunnel": {
|
|
@@ -3720,12 +3759,29 @@
|
|
|
3720
3759
|
"example": 2
|
|
3721
3760
|
},
|
|
3722
3761
|
"nextPage": {
|
|
3723
|
-
"
|
|
3724
|
-
"
|
|
3762
|
+
"example": 3,
|
|
3763
|
+
"anyOf": [
|
|
3764
|
+
{
|
|
3765
|
+
"type": "number"
|
|
3766
|
+
},
|
|
3767
|
+
{
|
|
3768
|
+
"type": "string"
|
|
3769
|
+
},
|
|
3770
|
+
{
|
|
3771
|
+
"type": "null"
|
|
3772
|
+
}
|
|
3773
|
+
]
|
|
3725
3774
|
},
|
|
3726
3775
|
"prevPage": {
|
|
3727
|
-
"
|
|
3728
|
-
|
|
3776
|
+
"anyOf": [
|
|
3777
|
+
{
|
|
3778
|
+
"type": "number",
|
|
3779
|
+
"example": 1
|
|
3780
|
+
},
|
|
3781
|
+
{
|
|
3782
|
+
"type": "null"
|
|
3783
|
+
}
|
|
3784
|
+
]
|
|
3729
3785
|
}
|
|
3730
3786
|
}
|
|
3731
3787
|
},
|
|
@@ -3741,16 +3797,30 @@
|
|
|
3741
3797
|
"example": "John Deo"
|
|
3742
3798
|
},
|
|
3743
3799
|
"companyName": {
|
|
3744
|
-
"
|
|
3745
|
-
|
|
3800
|
+
"anyOf": [
|
|
3801
|
+
{
|
|
3802
|
+
"type": "string",
|
|
3803
|
+
"example": "Tesla Inc"
|
|
3804
|
+
},
|
|
3805
|
+
{
|
|
3806
|
+
"type": "null"
|
|
3807
|
+
}
|
|
3808
|
+
]
|
|
3746
3809
|
},
|
|
3747
3810
|
"email": {
|
|
3748
3811
|
"type": "string",
|
|
3749
3812
|
"example": "john@deo.com"
|
|
3750
3813
|
},
|
|
3751
3814
|
"phone": {
|
|
3752
|
-
"
|
|
3753
|
-
|
|
3815
|
+
"anyOf": [
|
|
3816
|
+
{
|
|
3817
|
+
"type": "string",
|
|
3818
|
+
"example": "+1202-555-0107"
|
|
3819
|
+
},
|
|
3820
|
+
{
|
|
3821
|
+
"type": "null"
|
|
3822
|
+
}
|
|
3823
|
+
]
|
|
3754
3824
|
},
|
|
3755
3825
|
"tags": {
|
|
3756
3826
|
"type": "array",
|
|
@@ -3784,16 +3854,30 @@
|
|
|
3784
3854
|
"example": "e93ba61a-53b3-45e7-985a-c7732dbcdb69"
|
|
3785
3855
|
},
|
|
3786
3856
|
"assignedTo": {
|
|
3787
|
-
"
|
|
3788
|
-
|
|
3857
|
+
"anyOf": [
|
|
3858
|
+
{
|
|
3859
|
+
"type": "string",
|
|
3860
|
+
"example": "zT46WSCPbudrq4zhWMk6"
|
|
3861
|
+
},
|
|
3862
|
+
{
|
|
3863
|
+
"type": "null"
|
|
3864
|
+
}
|
|
3865
|
+
]
|
|
3789
3866
|
},
|
|
3790
3867
|
"status": {
|
|
3791
3868
|
"type": "string",
|
|
3792
3869
|
"example": "open"
|
|
3793
3870
|
},
|
|
3794
3871
|
"source": {
|
|
3795
|
-
"
|
|
3796
|
-
|
|
3872
|
+
"anyOf": [
|
|
3873
|
+
{
|
|
3874
|
+
"type": "string",
|
|
3875
|
+
"example": ""
|
|
3876
|
+
},
|
|
3877
|
+
{
|
|
3878
|
+
"type": "null"
|
|
3879
|
+
}
|
|
3880
|
+
]
|
|
3797
3881
|
},
|
|
3798
3882
|
"lastStatusChangeAt": {
|
|
3799
3883
|
"type": "string",
|
|
@@ -3849,8 +3933,15 @@
|
|
|
3849
3933
|
}
|
|
3850
3934
|
},
|
|
3851
3935
|
"lostReasonId": {
|
|
3852
|
-
"
|
|
3853
|
-
|
|
3936
|
+
"anyOf": [
|
|
3937
|
+
{
|
|
3938
|
+
"type": "string",
|
|
3939
|
+
"example": "zT46WSCPbudrq4zhWMk6"
|
|
3940
|
+
},
|
|
3941
|
+
{
|
|
3942
|
+
"type": "null"
|
|
3943
|
+
}
|
|
3944
|
+
]
|
|
3854
3945
|
},
|
|
3855
3946
|
"customFields": {
|
|
3856
3947
|
"type": "array",
|
|
@@ -5873,7 +5964,18 @@
|
|
|
5873
5964
|
}
|
|
5874
5965
|
},
|
|
5875
5966
|
"required": ["startTime", "endTime"],
|
|
5876
|
-
"type": "object"
|
|
5967
|
+
"type": "object",
|
|
5968
|
+
"anyOf": [
|
|
5969
|
+
{
|
|
5970
|
+
"required": ["calendarId"]
|
|
5971
|
+
},
|
|
5972
|
+
{
|
|
5973
|
+
"required": ["groupId"]
|
|
5974
|
+
},
|
|
5975
|
+
{
|
|
5976
|
+
"required": ["userId"]
|
|
5977
|
+
}
|
|
5978
|
+
]
|
|
5877
5979
|
},
|
|
5878
5980
|
"locationPlacements": ["query"],
|
|
5879
5981
|
"locationParameterNames": {
|
|
@@ -5974,7 +6076,18 @@
|
|
|
5974
6076
|
}
|
|
5975
6077
|
},
|
|
5976
6078
|
"required": ["startTime", "endTime"],
|
|
5977
|
-
"type": "object"
|
|
6079
|
+
"type": "object",
|
|
6080
|
+
"anyOf": [
|
|
6081
|
+
{
|
|
6082
|
+
"required": ["calendarId"]
|
|
6083
|
+
},
|
|
6084
|
+
{
|
|
6085
|
+
"required": ["groupId"]
|
|
6086
|
+
},
|
|
6087
|
+
{
|
|
6088
|
+
"required": ["userId"]
|
|
6089
|
+
}
|
|
6090
|
+
]
|
|
5978
6091
|
},
|
|
5979
6092
|
"locationPlacements": ["query"],
|
|
5980
6093
|
"locationParameterNames": {
|
|
@@ -8250,6 +8363,32 @@
|
|
|
8250
8363
|
"responseMode": "json",
|
|
8251
8364
|
"requiredScope": "contacts.write"
|
|
8252
8365
|
},
|
|
8366
|
+
"conversations:cancel-scheduled-email-message": {
|
|
8367
|
+
"apiVersion": "2021-07-28",
|
|
8368
|
+
"bodyParameters": [],
|
|
8369
|
+
"inputSchema": {
|
|
8370
|
+
"additionalProperties": false,
|
|
8371
|
+
"properties": {
|
|
8372
|
+
"emailMessageId": {
|
|
8373
|
+
"example": "ve9EPM428h8vShlRW1KT",
|
|
8374
|
+
"type": "string"
|
|
8375
|
+
}
|
|
8376
|
+
},
|
|
8377
|
+
"required": ["emailMessageId"],
|
|
8378
|
+
"type": "object"
|
|
8379
|
+
},
|
|
8380
|
+
"locationPlacements": [],
|
|
8381
|
+
"locationParameterNames": {},
|
|
8382
|
+
"method": "DELETE",
|
|
8383
|
+
"outputSchema": {
|
|
8384
|
+
"$ref": "#/$defs/conversations.CancelScheduledResponseDto"
|
|
8385
|
+
},
|
|
8386
|
+
"path": "/conversations/messages/email/{emailMessageId}/schedule",
|
|
8387
|
+
"pathParameters": ["emailMessageId"],
|
|
8388
|
+
"queryParameters": [],
|
|
8389
|
+
"responseMode": "json",
|
|
8390
|
+
"requiredScope": "conversations/message.write"
|
|
8391
|
+
},
|
|
8253
8392
|
"conversations:cancel-scheduled-message": {
|
|
8254
8393
|
"apiVersion": "2021-04-15",
|
|
8255
8394
|
"bodyParameters": [],
|
|
@@ -9844,7 +9983,7 @@
|
|
|
9844
9983
|
"example": "7915dedc-8f18-44d5-8bc3-77c04e994a10"
|
|
9845
9984
|
},
|
|
9846
9985
|
"monetaryValue": {
|
|
9847
|
-
"type": "
|
|
9986
|
+
"type": "number",
|
|
9848
9987
|
"example": 220
|
|
9849
9988
|
},
|
|
9850
9989
|
"assignedTo": {
|
|
@@ -1274,7 +1274,11 @@ export namespace HighLevelCalendars {
|
|
|
1274
1274
|
* This is only to set the standard availability. For custom
|
|
1275
1275
|
* availability, use the availabilities property
|
|
1276
1276
|
*/
|
|
1277
|
-
openHours?:
|
|
1277
|
+
openHours?:
|
|
1278
|
+
| components["schemas"]["OpenHour"][]
|
|
1279
|
+
| {
|
|
1280
|
+
[key: string]: unknown
|
|
1281
|
+
}
|
|
1278
1282
|
/**
|
|
1279
1283
|
* Enable recurring appointments for the calendars. Please note that
|
|
1280
1284
|
* only one member should be added in the calendar to enable this
|
|
@@ -1391,30 +1395,30 @@ export namespace HighLevelCalendars {
|
|
|
1391
1395
|
* @example
|
|
1392
1396
|
* 9NkT25Vor1v4aQatFsv2
|
|
1393
1397
|
*/
|
|
1394
|
-
contactId
|
|
1398
|
+
contactId?: string
|
|
1395
1399
|
/**
|
|
1396
1400
|
* Group ID
|
|
1397
1401
|
*
|
|
1398
1402
|
* @example
|
|
1399
1403
|
* 9NkT25Vor1v4aQatFsv2
|
|
1400
1404
|
*/
|
|
1401
|
-
groupId
|
|
1405
|
+
groupId?: string
|
|
1402
1406
|
/**
|
|
1403
1407
|
* Appointment Status
|
|
1404
1408
|
*
|
|
1405
1409
|
* @example
|
|
1406
1410
|
* confirmed
|
|
1407
1411
|
*/
|
|
1408
|
-
appointmentStatus
|
|
1412
|
+
appointmentStatus?: string
|
|
1409
1413
|
/**
|
|
1410
1414
|
* AssignedUser - the primary owner of an appointment
|
|
1411
1415
|
*
|
|
1412
1416
|
* @example
|
|
1413
1417
|
* YlWd2wuCAZQzh2cH1fVZ
|
|
1414
1418
|
*/
|
|
1415
|
-
assignedUserId
|
|
1419
|
+
assignedUserId?: string
|
|
1416
1420
|
/** Users - the secondary owners of an appointment. */
|
|
1417
|
-
users
|
|
1421
|
+
users?: string[]
|
|
1418
1422
|
/**
|
|
1419
1423
|
* Notes
|
|
1420
1424
|
*
|
|
@@ -1448,28 +1452,28 @@ export namespace HighLevelCalendars {
|
|
|
1448
1452
|
* @example
|
|
1449
1453
|
* 2023-09-25T16:00:00+05:30
|
|
1450
1454
|
*/
|
|
1451
|
-
startTime:
|
|
1455
|
+
startTime: string
|
|
1452
1456
|
/**
|
|
1453
1457
|
* End Time
|
|
1454
1458
|
*
|
|
1455
1459
|
* @example
|
|
1456
1460
|
* 2023-09-25T16:00:00+05:30
|
|
1457
1461
|
*/
|
|
1458
|
-
endTime:
|
|
1462
|
+
endTime: string
|
|
1459
1463
|
/**
|
|
1460
1464
|
* Date Added
|
|
1461
1465
|
*
|
|
1462
1466
|
* @example
|
|
1463
1467
|
* 2023-09-25T16:00:00+05:30
|
|
1464
1468
|
*/
|
|
1465
|
-
dateAdded:
|
|
1469
|
+
dateAdded: string
|
|
1466
1470
|
/**
|
|
1467
1471
|
* Date Updated
|
|
1468
1472
|
*
|
|
1469
1473
|
* @example
|
|
1470
1474
|
* 2023-09-25T16:00:00+05:30
|
|
1471
1475
|
*/
|
|
1472
|
-
dateUpdated:
|
|
1476
|
+
dateUpdated: string
|
|
1473
1477
|
/** Ids of associated resources rooms and/or equipments */
|
|
1474
1478
|
assignedResources?: string[]
|
|
1475
1479
|
/** Appointment booked by metadata */
|
|
@@ -1729,9 +1733,9 @@ export namespace HighLevelCalendars {
|
|
|
1729
1733
|
}
|
|
1730
1734
|
CreatedOrUpdatedBy: {
|
|
1731
1735
|
/** The ID of the user who created or updated the appointment */
|
|
1732
|
-
userId?: string
|
|
1736
|
+
userId?: string | null
|
|
1733
1737
|
/** The source of the appointment */
|
|
1734
|
-
source
|
|
1738
|
+
source?: string
|
|
1735
1739
|
}
|
|
1736
1740
|
DeleteAppointmentSchema: Record<string, never>
|
|
1737
1741
|
DeleteEventSuccessfulResponseDto: {
|
|
@@ -3211,7 +3215,7 @@ export namespace HighLevelContacts {
|
|
|
3211
3215
|
* @example
|
|
3212
3216
|
* Asia / Calcutta
|
|
3213
3217
|
*/
|
|
3214
|
-
timezone?: string
|
|
3218
|
+
timezone?: string | null
|
|
3215
3219
|
/**
|
|
3216
3220
|
* @example
|
|
3217
3221
|
* DE
|
|
@@ -5152,6 +5156,28 @@ export namespace HighLevelConversations {
|
|
|
5152
5156
|
patch?: never
|
|
5153
5157
|
trace?: never
|
|
5154
5158
|
}
|
|
5159
|
+
"/conversations/messages/email/{emailMessageId}/schedule": {
|
|
5160
|
+
parameters: {
|
|
5161
|
+
query?: never
|
|
5162
|
+
header?: never
|
|
5163
|
+
path?: never
|
|
5164
|
+
cookie?: never
|
|
5165
|
+
}
|
|
5166
|
+
get?: never
|
|
5167
|
+
put?: never
|
|
5168
|
+
post?: never
|
|
5169
|
+
/**
|
|
5170
|
+
* Cancel a scheduled email message.
|
|
5171
|
+
*
|
|
5172
|
+
* Post the messageId for the API to delete a scheduled email message. <br
|
|
5173
|
+
* />
|
|
5174
|
+
*/
|
|
5175
|
+
delete: operations["cancel-scheduled-email-message"]
|
|
5176
|
+
options?: never
|
|
5177
|
+
head?: never
|
|
5178
|
+
patch?: never
|
|
5179
|
+
trace?: never
|
|
5180
|
+
}
|
|
5155
5181
|
"/conversations/messages/{id}": {
|
|
5156
5182
|
parameters: {
|
|
5157
5183
|
query?: never
|
|
@@ -5536,7 +5562,7 @@ export namespace HighLevelConversations {
|
|
|
5536
5562
|
* @example
|
|
5537
5563
|
* This is a sample message body
|
|
5538
5564
|
*/
|
|
5539
|
-
lastMessageBody
|
|
5565
|
+
lastMessageBody?: string
|
|
5540
5566
|
/**
|
|
5541
5567
|
* Channel/type of the most recent message (SMS, Email, Call, etc)
|
|
5542
5568
|
*
|
|
@@ -5588,6 +5614,7 @@ export namespace HighLevelConversations {
|
|
|
5588
5614
|
| "TYPE_ACTIVITY_WHATSAPP"
|
|
5589
5615
|
| "TYPE_FORM_SUBMISSION"
|
|
5590
5616
|
| "TYPE_SMS_REACTION"
|
|
5617
|
+
| "TYPE_NO_SHOW"
|
|
5591
5618
|
/**
|
|
5592
5619
|
* Primary channel/type of the conversation (Phone, Email, etc)
|
|
5593
5620
|
*
|
|
@@ -6644,6 +6671,29 @@ export namespace HighLevelConversations {
|
|
|
6644
6671
|
}
|
|
6645
6672
|
}
|
|
6646
6673
|
}
|
|
6674
|
+
"cancel-scheduled-email-message": {
|
|
6675
|
+
parameters: {
|
|
6676
|
+
query?: never
|
|
6677
|
+
header?: never
|
|
6678
|
+
path: {
|
|
6679
|
+
/** Email Message Id */
|
|
6680
|
+
emailMessageId: string
|
|
6681
|
+
}
|
|
6682
|
+
cookie?: never
|
|
6683
|
+
}
|
|
6684
|
+
requestBody?: never
|
|
6685
|
+
responses: {
|
|
6686
|
+
/** The scheduled email message was cancelled successfully */
|
|
6687
|
+
200: {
|
|
6688
|
+
headers: {
|
|
6689
|
+
[name: string]: unknown
|
|
6690
|
+
}
|
|
6691
|
+
content: {
|
|
6692
|
+
"application/json": components["schemas"]["CancelScheduledResponseDto"]
|
|
6693
|
+
}
|
|
6694
|
+
}
|
|
6695
|
+
}
|
|
6696
|
+
}
|
|
6647
6697
|
"get-message": {
|
|
6648
6698
|
parameters: {
|
|
6649
6699
|
query?: never
|
|
@@ -7825,7 +7875,16 @@ export namespace HighLevelOpportunities {
|
|
|
7825
7875
|
* new pipeline()
|
|
7826
7876
|
*/
|
|
7827
7877
|
name?: string
|
|
7828
|
-
stages?:
|
|
7878
|
+
stages?: ({
|
|
7879
|
+
id: string
|
|
7880
|
+
name: string
|
|
7881
|
+
position?: number
|
|
7882
|
+
showInFunnel?: boolean
|
|
7883
|
+
showInPieChart?: boolean
|
|
7884
|
+
stageWinProbability?: number
|
|
7885
|
+
} & {
|
|
7886
|
+
[key: string]: unknown
|
|
7887
|
+
})[]
|
|
7829
7888
|
/**
|
|
7830
7889
|
* @example
|
|
7831
7890
|
* false
|
|
@@ -7874,12 +7933,12 @@ export namespace HighLevelOpportunities {
|
|
|
7874
7933
|
* @example
|
|
7875
7934
|
* 3
|
|
7876
7935
|
*/
|
|
7877
|
-
nextPage?: number
|
|
7936
|
+
nextPage?: number | string | null
|
|
7878
7937
|
/**
|
|
7879
7938
|
* @example
|
|
7880
7939
|
* 1
|
|
7881
7940
|
*/
|
|
7882
|
-
prevPage?: number
|
|
7941
|
+
prevPage?: number | null
|
|
7883
7942
|
}
|
|
7884
7943
|
SearchOpportunitiesContactResponseSchema: {
|
|
7885
7944
|
/**
|
|
@@ -7896,7 +7955,7 @@ export namespace HighLevelOpportunities {
|
|
|
7896
7955
|
* @example
|
|
7897
7956
|
* Tesla Inc
|
|
7898
7957
|
*/
|
|
7899
|
-
companyName?: string
|
|
7958
|
+
companyName?: string | null
|
|
7900
7959
|
/**
|
|
7901
7960
|
* @example
|
|
7902
7961
|
* john@deo.com
|
|
@@ -7906,7 +7965,7 @@ export namespace HighLevelOpportunities {
|
|
|
7906
7965
|
* @example
|
|
7907
7966
|
* +1202-555-0107
|
|
7908
7967
|
*/
|
|
7909
|
-
phone?: string
|
|
7968
|
+
phone?: string | null
|
|
7910
7969
|
tags?: string[]
|
|
7911
7970
|
}
|
|
7912
7971
|
SearchOpportunitiesResponseSchema: {
|
|
@@ -7939,13 +7998,13 @@ export namespace HighLevelOpportunities {
|
|
|
7939
7998
|
* @example
|
|
7940
7999
|
* zT46WSCPbudrq4zhWMk6
|
|
7941
8000
|
*/
|
|
7942
|
-
assignedTo?: string
|
|
8001
|
+
assignedTo?: string | null
|
|
7943
8002
|
/**
|
|
7944
8003
|
* @example
|
|
7945
8004
|
* open
|
|
7946
8005
|
*/
|
|
7947
8006
|
status?: string
|
|
7948
|
-
source?: string
|
|
8007
|
+
source?: string | null
|
|
7949
8008
|
/**
|
|
7950
8009
|
* @example
|
|
7951
8010
|
* 2021-08-03T04:55:17.355Z
|
|
@@ -7994,7 +8053,7 @@ export namespace HighLevelOpportunities {
|
|
|
7994
8053
|
* @example
|
|
7995
8054
|
* zT46WSCPbudrq4zhWMk6
|
|
7996
8055
|
*/
|
|
7997
|
-
lostReasonId?: string
|
|
8056
|
+
lostReasonId?: string | null
|
|
7998
8057
|
customFields?: components["schemas"]["CustomFieldResponseSchema"][]
|
|
7999
8058
|
followers?: unknown[][]
|
|
8000
8059
|
externalObjectId?: string
|
|
@@ -8115,7 +8174,7 @@ export namespace HighLevelOpportunities {
|
|
|
8115
8174
|
* @example
|
|
8116
8175
|
* 220
|
|
8117
8176
|
*/
|
|
8118
|
-
monetaryValue?:
|
|
8177
|
+
monetaryValue?: number
|
|
8119
8178
|
/**
|
|
8120
8179
|
* @example
|
|
8121
8180
|
* 082goXVW3lIExEQPOnd3
|
|
@@ -9906,6 +9965,7 @@ export interface HighLevelOperationMap {
|
|
|
9906
9965
|
"conversations:get-message": HighLevelConversations.operations["get-message"]
|
|
9907
9966
|
"conversations:send-a-new-message": HighLevelConversations.operations["send-a-new-message"]
|
|
9908
9967
|
"conversations:cancel-scheduled-message": HighLevelConversations.operations["cancel-scheduled-message"]
|
|
9968
|
+
"conversations:cancel-scheduled-email-message": HighLevelConversations.operations["cancel-scheduled-email-message"]
|
|
9909
9969
|
"conversations:get-message-recording": HighLevelConversations.operations["get-message-recording"]
|
|
9910
9970
|
"conversations:get-message-transcription": HighLevelConversations.operations["get-message-transcription"]
|
|
9911
9971
|
"forms:get-forms": HighLevelForms.operations["get-forms"]
|