@surgeapi/node 0.37.0 → 0.38.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 +27 -0
- package/client.d.mts +3 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -3
- package/client.d.ts.map +1 -1
- package/client.js +8 -7
- package/client.js.map +1 -1
- package/client.mjs +8 -7
- package/client.mjs.map +1 -1
- package/internal/tslib.js +22 -22
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +7 -1
- package/resources/blasts.d.mts +3 -2
- package/resources/blasts.d.mts.map +1 -1
- package/resources/blasts.d.ts +3 -2
- package/resources/blasts.d.ts.map +1 -1
- package/resources/campaigns.d.mts +1 -1
- package/resources/campaigns.d.mts.map +1 -1
- package/resources/campaigns.d.ts +1 -1
- package/resources/campaigns.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/phone-numbers.d.mts +4 -0
- package/resources/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers.d.ts +4 -0
- package/resources/phone-numbers.d.ts.map +1 -1
- package/resources/webhooks.d.mts +44 -2
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +44 -2
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +13 -10
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/blasts.ts +3 -2
- package/src/resources/campaigns.ts +1 -1
- package/src/resources/index.ts +1 -0
- package/src/resources/phone-numbers.ts +5 -0
- package/src/resources/webhooks.ts +52 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -699,6 +699,56 @@ export namespace MessageSentWebhookEvent {
|
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
701
|
|
|
702
|
+
export interface PhoneNumberAttachedToCampaignWebhookEvent {
|
|
703
|
+
/**
|
|
704
|
+
* The ID of the account in which this event occurred
|
|
705
|
+
*/
|
|
706
|
+
account_id: string;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* The data associated with the event
|
|
710
|
+
*/
|
|
711
|
+
data: PhoneNumberAttachedToCampaignWebhookEvent.Data;
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* The timestamp when this event occurred, in ISO8601 format
|
|
715
|
+
*/
|
|
716
|
+
timestamp: string;
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* The type of the event. Always `phone_number.attached_to_campaign` for this
|
|
720
|
+
* event.
|
|
721
|
+
*/
|
|
722
|
+
type: 'phone_number.attached_to_campaign';
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
export namespace PhoneNumberAttachedToCampaignWebhookEvent {
|
|
726
|
+
/**
|
|
727
|
+
* The data associated with the event
|
|
728
|
+
*/
|
|
729
|
+
export interface Data {
|
|
730
|
+
/**
|
|
731
|
+
* The unique identifier for the phone number
|
|
732
|
+
*/
|
|
733
|
+
id: string;
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* The unique identifier of the campaign this phone number is attached to
|
|
737
|
+
*/
|
|
738
|
+
campaign_id: string;
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* The phone number in E.164 format
|
|
742
|
+
*/
|
|
743
|
+
number: string;
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* Whether the phone number is local, toll-free, or short code
|
|
747
|
+
*/
|
|
748
|
+
type: 'local' | 'short_code' | 'toll_free';
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
|
|
702
752
|
export interface RecordingCompletedWebhookEvent {
|
|
703
753
|
/**
|
|
704
754
|
* The ID of the account in which this event occurred
|
|
@@ -885,6 +935,7 @@ export type UnwrapWebhookEvent =
|
|
|
885
935
|
| MessageFailedWebhookEvent
|
|
886
936
|
| MessageReceivedWebhookEvent
|
|
887
937
|
| MessageSentWebhookEvent
|
|
938
|
+
| PhoneNumberAttachedToCampaignWebhookEvent
|
|
888
939
|
| RecordingCompletedWebhookEvent
|
|
889
940
|
| VoicemailReceivedWebhookEvent;
|
|
890
941
|
|
|
@@ -900,6 +951,7 @@ export declare namespace Webhooks {
|
|
|
900
951
|
type MessageFailedWebhookEvent as MessageFailedWebhookEvent,
|
|
901
952
|
type MessageReceivedWebhookEvent as MessageReceivedWebhookEvent,
|
|
902
953
|
type MessageSentWebhookEvent as MessageSentWebhookEvent,
|
|
954
|
+
type PhoneNumberAttachedToCampaignWebhookEvent as PhoneNumberAttachedToCampaignWebhookEvent,
|
|
903
955
|
type RecordingCompletedWebhookEvent as RecordingCompletedWebhookEvent,
|
|
904
956
|
type VoicemailReceivedWebhookEvent as VoicemailReceivedWebhookEvent,
|
|
905
957
|
type UnwrapWebhookEvent as UnwrapWebhookEvent,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.38.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.38.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.38.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.38.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|