@livechat/developer-studio-api 3.5.0 → 3.5.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/index.d.mts +941 -132
- package/dist/index.d.ts +941 -132
- package/dist/index.js +20 -34
- package/dist/index.mjs +19 -34
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -77,6 +77,7 @@ __export(src_exports, {
|
|
|
77
77
|
BigCommerceWebhookScopes: () => BigCommerceWebhookScopes,
|
|
78
78
|
ConsoleApiError: () => ConsoleApiError,
|
|
79
79
|
DpsApiError: () => DpsApiError,
|
|
80
|
+
GitHubWebhookActions: () => GitHubWebhookActions,
|
|
80
81
|
HelpDeskApiError: () => HelpDeskApiError,
|
|
81
82
|
HelpDeskWebhookEventType: () => HelpDeskWebhookEventType,
|
|
82
83
|
HubSpotWebhookEventTypes: () => HubSpotWebhookEventTypes,
|
|
@@ -2937,6 +2938,13 @@ var BigCommerceWebhookScopes = /* @__PURE__ */ ((BigCommerceWebhookScopes2) => {
|
|
|
2937
2938
|
return BigCommerceWebhookScopes2;
|
|
2938
2939
|
})(BigCommerceWebhookScopes || {});
|
|
2939
2940
|
|
|
2941
|
+
// src/apis/integrations/github/webhooks/_contracts/dtos/webhooks.ts
|
|
2942
|
+
var GitHubWebhookActions = /* @__PURE__ */ ((GitHubWebhookActions2) => {
|
|
2943
|
+
GitHubWebhookActions2["Unknown"] = "unknown";
|
|
2944
|
+
GitHubWebhookActions2["Deleted"] = "deleted";
|
|
2945
|
+
return GitHubWebhookActions2;
|
|
2946
|
+
})(GitHubWebhookActions || {});
|
|
2947
|
+
|
|
2940
2948
|
// src/apis/integrations/hubspot/webhooks/_contracts/dtos/webhooks.ts
|
|
2941
2949
|
var HubSpotWebhookEventTypes = /* @__PURE__ */ ((HubSpotWebhookEventTypes2) => {
|
|
2942
2950
|
HubSpotWebhookEventTypes2["ContactCreation"] = "contact.creation";
|
|
@@ -3413,18 +3421,14 @@ var bigcommerceEventsZods = {
|
|
|
3413
3421
|
get unsubscribe() {
|
|
3414
3422
|
return this.source.and(
|
|
3415
3423
|
import_zod.z.object({
|
|
3416
|
-
event:
|
|
3417
|
-
name: this.eventName
|
|
3418
|
-
})
|
|
3424
|
+
event: this.event
|
|
3419
3425
|
})
|
|
3420
3426
|
);
|
|
3421
3427
|
},
|
|
3422
3428
|
get unsubscribeContent() {
|
|
3423
3429
|
return import_zod.z.object({
|
|
3424
3430
|
provider: this.provider,
|
|
3425
|
-
event:
|
|
3426
|
-
name: this.eventName
|
|
3427
|
-
})
|
|
3431
|
+
event: this.event
|
|
3428
3432
|
});
|
|
3429
3433
|
}
|
|
3430
3434
|
};
|
|
@@ -3477,18 +3481,14 @@ var hubspotEventsZods = {
|
|
|
3477
3481
|
get unsubscribe() {
|
|
3478
3482
|
return this.source.and(
|
|
3479
3483
|
import_zod2.z.object({
|
|
3480
|
-
event:
|
|
3481
|
-
name: this.eventName
|
|
3482
|
-
})
|
|
3484
|
+
event: this.event
|
|
3483
3485
|
})
|
|
3484
3486
|
);
|
|
3485
3487
|
},
|
|
3486
3488
|
get unsubscribeContent() {
|
|
3487
3489
|
return import_zod2.z.object({
|
|
3488
3490
|
provider: this.provider,
|
|
3489
|
-
event:
|
|
3490
|
-
name: this.eventName
|
|
3491
|
-
})
|
|
3491
|
+
event: this.event
|
|
3492
3492
|
});
|
|
3493
3493
|
}
|
|
3494
3494
|
};
|
|
@@ -3553,10 +3553,7 @@ var mailchimpEventsZods = {
|
|
|
3553
3553
|
get unsubscribeContent() {
|
|
3554
3554
|
return import_zod3.z.object({
|
|
3555
3555
|
provider: this.provider,
|
|
3556
|
-
event:
|
|
3557
|
-
listId: import_zod3.z.string(),
|
|
3558
|
-
name: this.eventName
|
|
3559
|
-
})
|
|
3556
|
+
event: this.event
|
|
3560
3557
|
});
|
|
3561
3558
|
}
|
|
3562
3559
|
};
|
|
@@ -3611,9 +3608,7 @@ var shopifyEventsZods = {
|
|
|
3611
3608
|
get unsubscribeContent() {
|
|
3612
3609
|
return import_zod4.z.object({
|
|
3613
3610
|
provider: this.provider,
|
|
3614
|
-
event:
|
|
3615
|
-
name: this.eventName
|
|
3616
|
-
})
|
|
3611
|
+
event: this.event
|
|
3617
3612
|
});
|
|
3618
3613
|
}
|
|
3619
3614
|
};
|
|
@@ -3677,9 +3672,7 @@ var slackEventsZods = {
|
|
|
3677
3672
|
get unsubscribeContent() {
|
|
3678
3673
|
return import_zod5.z.object({
|
|
3679
3674
|
provider: this.provider,
|
|
3680
|
-
event:
|
|
3681
|
-
name: this.eventName
|
|
3682
|
-
})
|
|
3675
|
+
event: this.event
|
|
3683
3676
|
});
|
|
3684
3677
|
}
|
|
3685
3678
|
};
|
|
@@ -3762,18 +3755,14 @@ var textHelpDeskEventsZods = {
|
|
|
3762
3755
|
get unsubscribe() {
|
|
3763
3756
|
return this.source.and(
|
|
3764
3757
|
import_zod6.z.object({
|
|
3765
|
-
event:
|
|
3766
|
-
name: this.eventName
|
|
3767
|
-
})
|
|
3758
|
+
event: this.event
|
|
3768
3759
|
})
|
|
3769
3760
|
);
|
|
3770
3761
|
},
|
|
3771
3762
|
get unsubscribeContent() {
|
|
3772
3763
|
return import_zod6.z.object({
|
|
3773
3764
|
provider: this.provider,
|
|
3774
|
-
event:
|
|
3775
|
-
name: this.eventName
|
|
3776
|
-
})
|
|
3765
|
+
event: this.event
|
|
3777
3766
|
});
|
|
3778
3767
|
}
|
|
3779
3768
|
};
|
|
@@ -3867,18 +3856,14 @@ var textLivechatEventsZods = {
|
|
|
3867
3856
|
get unsubscribe() {
|
|
3868
3857
|
return this.source.and(
|
|
3869
3858
|
import_zod7.z.object({
|
|
3870
|
-
event:
|
|
3871
|
-
name: this.eventName
|
|
3872
|
-
})
|
|
3859
|
+
event: this.event
|
|
3873
3860
|
})
|
|
3874
3861
|
);
|
|
3875
3862
|
},
|
|
3876
3863
|
get unsubscribeContent() {
|
|
3877
3864
|
return import_zod7.z.object({
|
|
3878
3865
|
provider: this.provider,
|
|
3879
|
-
event:
|
|
3880
|
-
name: this.eventName
|
|
3881
|
-
})
|
|
3866
|
+
event: this.event
|
|
3882
3867
|
});
|
|
3883
3868
|
}
|
|
3884
3869
|
};
|
|
@@ -8792,6 +8777,7 @@ function getIntegrationFlowUrl(name, flow, trigger, context, state, config) {
|
|
|
8792
8777
|
BigCommerceWebhookScopes,
|
|
8793
8778
|
ConsoleApiError,
|
|
8794
8779
|
DpsApiError,
|
|
8780
|
+
GitHubWebhookActions,
|
|
8795
8781
|
HelpDeskApiError,
|
|
8796
8782
|
HelpDeskWebhookEventType,
|
|
8797
8783
|
HubSpotWebhookEventTypes,
|
package/dist/index.mjs
CHANGED
|
@@ -2765,6 +2765,13 @@ var BigCommerceWebhookScopes = /* @__PURE__ */ ((BigCommerceWebhookScopes2) => {
|
|
|
2765
2765
|
return BigCommerceWebhookScopes2;
|
|
2766
2766
|
})(BigCommerceWebhookScopes || {});
|
|
2767
2767
|
|
|
2768
|
+
// src/apis/integrations/github/webhooks/_contracts/dtos/webhooks.ts
|
|
2769
|
+
var GitHubWebhookActions = /* @__PURE__ */ ((GitHubWebhookActions2) => {
|
|
2770
|
+
GitHubWebhookActions2["Unknown"] = "unknown";
|
|
2771
|
+
GitHubWebhookActions2["Deleted"] = "deleted";
|
|
2772
|
+
return GitHubWebhookActions2;
|
|
2773
|
+
})(GitHubWebhookActions || {});
|
|
2774
|
+
|
|
2768
2775
|
// src/apis/integrations/hubspot/webhooks/_contracts/dtos/webhooks.ts
|
|
2769
2776
|
var HubSpotWebhookEventTypes = /* @__PURE__ */ ((HubSpotWebhookEventTypes2) => {
|
|
2770
2777
|
HubSpotWebhookEventTypes2["ContactCreation"] = "contact.creation";
|
|
@@ -3241,18 +3248,14 @@ var bigcommerceEventsZods = {
|
|
|
3241
3248
|
get unsubscribe() {
|
|
3242
3249
|
return this.source.and(
|
|
3243
3250
|
z.object({
|
|
3244
|
-
event:
|
|
3245
|
-
name: this.eventName
|
|
3246
|
-
})
|
|
3251
|
+
event: this.event
|
|
3247
3252
|
})
|
|
3248
3253
|
);
|
|
3249
3254
|
},
|
|
3250
3255
|
get unsubscribeContent() {
|
|
3251
3256
|
return z.object({
|
|
3252
3257
|
provider: this.provider,
|
|
3253
|
-
event:
|
|
3254
|
-
name: this.eventName
|
|
3255
|
-
})
|
|
3258
|
+
event: this.event
|
|
3256
3259
|
});
|
|
3257
3260
|
}
|
|
3258
3261
|
};
|
|
@@ -3305,18 +3308,14 @@ var hubspotEventsZods = {
|
|
|
3305
3308
|
get unsubscribe() {
|
|
3306
3309
|
return this.source.and(
|
|
3307
3310
|
z2.object({
|
|
3308
|
-
event:
|
|
3309
|
-
name: this.eventName
|
|
3310
|
-
})
|
|
3311
|
+
event: this.event
|
|
3311
3312
|
})
|
|
3312
3313
|
);
|
|
3313
3314
|
},
|
|
3314
3315
|
get unsubscribeContent() {
|
|
3315
3316
|
return z2.object({
|
|
3316
3317
|
provider: this.provider,
|
|
3317
|
-
event:
|
|
3318
|
-
name: this.eventName
|
|
3319
|
-
})
|
|
3318
|
+
event: this.event
|
|
3320
3319
|
});
|
|
3321
3320
|
}
|
|
3322
3321
|
};
|
|
@@ -3381,10 +3380,7 @@ var mailchimpEventsZods = {
|
|
|
3381
3380
|
get unsubscribeContent() {
|
|
3382
3381
|
return z3.object({
|
|
3383
3382
|
provider: this.provider,
|
|
3384
|
-
event:
|
|
3385
|
-
listId: z3.string(),
|
|
3386
|
-
name: this.eventName
|
|
3387
|
-
})
|
|
3383
|
+
event: this.event
|
|
3388
3384
|
});
|
|
3389
3385
|
}
|
|
3390
3386
|
};
|
|
@@ -3439,9 +3435,7 @@ var shopifyEventsZods = {
|
|
|
3439
3435
|
get unsubscribeContent() {
|
|
3440
3436
|
return z4.object({
|
|
3441
3437
|
provider: this.provider,
|
|
3442
|
-
event:
|
|
3443
|
-
name: this.eventName
|
|
3444
|
-
})
|
|
3438
|
+
event: this.event
|
|
3445
3439
|
});
|
|
3446
3440
|
}
|
|
3447
3441
|
};
|
|
@@ -3505,9 +3499,7 @@ var slackEventsZods = {
|
|
|
3505
3499
|
get unsubscribeContent() {
|
|
3506
3500
|
return z5.object({
|
|
3507
3501
|
provider: this.provider,
|
|
3508
|
-
event:
|
|
3509
|
-
name: this.eventName
|
|
3510
|
-
})
|
|
3502
|
+
event: this.event
|
|
3511
3503
|
});
|
|
3512
3504
|
}
|
|
3513
3505
|
};
|
|
@@ -3590,18 +3582,14 @@ var textHelpDeskEventsZods = {
|
|
|
3590
3582
|
get unsubscribe() {
|
|
3591
3583
|
return this.source.and(
|
|
3592
3584
|
z6.object({
|
|
3593
|
-
event:
|
|
3594
|
-
name: this.eventName
|
|
3595
|
-
})
|
|
3585
|
+
event: this.event
|
|
3596
3586
|
})
|
|
3597
3587
|
);
|
|
3598
3588
|
},
|
|
3599
3589
|
get unsubscribeContent() {
|
|
3600
3590
|
return z6.object({
|
|
3601
3591
|
provider: this.provider,
|
|
3602
|
-
event:
|
|
3603
|
-
name: this.eventName
|
|
3604
|
-
})
|
|
3592
|
+
event: this.event
|
|
3605
3593
|
});
|
|
3606
3594
|
}
|
|
3607
3595
|
};
|
|
@@ -3695,18 +3683,14 @@ var textLivechatEventsZods = {
|
|
|
3695
3683
|
get unsubscribe() {
|
|
3696
3684
|
return this.source.and(
|
|
3697
3685
|
z7.object({
|
|
3698
|
-
event:
|
|
3699
|
-
name: this.eventName
|
|
3700
|
-
})
|
|
3686
|
+
event: this.event
|
|
3701
3687
|
})
|
|
3702
3688
|
);
|
|
3703
3689
|
},
|
|
3704
3690
|
get unsubscribeContent() {
|
|
3705
3691
|
return z7.object({
|
|
3706
3692
|
provider: this.provider,
|
|
3707
|
-
event:
|
|
3708
|
-
name: this.eventName
|
|
3709
|
-
})
|
|
3693
|
+
event: this.event
|
|
3710
3694
|
});
|
|
3711
3695
|
}
|
|
3712
3696
|
};
|
|
@@ -8619,6 +8603,7 @@ export {
|
|
|
8619
8603
|
BigCommerceWebhookScopes,
|
|
8620
8604
|
ConsoleApiError,
|
|
8621
8605
|
DpsApiError,
|
|
8606
|
+
GitHubWebhookActions,
|
|
8622
8607
|
HelpDeskApiError,
|
|
8623
8608
|
HelpDeskWebhookEventType,
|
|
8624
8609
|
HubSpotWebhookEventTypes,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"@types/node": "^17.0.12",
|
|
21
21
|
"tsup": "^7.1.0",
|
|
22
22
|
"typescript": "^5.1.6",
|
|
23
|
-
"utils": "0.0.7",
|
|
24
23
|
"eslint-config-custom": "0.0.11",
|
|
25
|
-
"tsconfig": "0.0.1"
|
|
24
|
+
"tsconfig": "0.0.1",
|
|
25
|
+
"utils": "0.0.7"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsup",
|