@sinch/conversation 0.0.2 → 0.0.3
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/README.md +28 -13
- package/dist/models/v1/agent/agent.d.ts +3 -3
- package/dist/models/v1/agent-joined-event/agent-joined-event.d.ts +1 -1
- package/dist/models/v1/agent-left-event/agent-left-event.d.ts +1 -1
- package/dist/models/v1/app-event/app-event.d.ts +44 -1
- package/dist/models/v1/app-message/app-message.d.ts +198 -30
- package/dist/models/v1/app-message-message/app-message-message.d.ts +92 -1
- package/dist/models/v1/choice/choice.d.ts +17 -5
- package/dist/models/v1/comment-reply-event/comment-reply-event.d.ts +1 -1
- package/dist/models/v1/composing-end-event/composing-end-event.d.ts +1 -1
- package/dist/models/v1/composing-event/composing-event.d.ts +1 -1
- package/dist/models/v1/contact-event/contact-event.d.ts +32 -1
- package/dist/models/v1/contact-id/contact-id.d.ts +2 -1
- package/dist/models/v1/contact-info-message/contact-info-message.d.ts +1 -1
- package/dist/models/v1/contact-message/contact-message.d.ts +36 -6
- package/dist/models/v1/conversation-channel-credential/conversation-channel-credential.d.ts +3 -10
- package/dist/models/v1/conversation-channel-credential/index.d.ts +1 -1
- package/dist/models/v1/conversation-event/conversation-event.d.ts +6 -0
- package/dist/models/v1/conversation-message/conversation-message.d.ts +4 -2
- package/dist/models/v1/generic-event/generic-event.d.ts +1 -1
- package/dist/models/v1/get-channel-profile-request/get-channel-profile-request.d.ts +2 -2
- package/dist/models/v1/helper.d.ts +17 -9
- package/dist/models/v1/helper.js +26 -9
- package/dist/models/v1/helper.js.map +1 -1
- package/dist/models/v1/identified-by/identified-by.d.ts +1 -0
- package/dist/models/v1/index.d.ts +2 -3
- package/dist/models/v1/index.js +2 -3
- package/dist/models/v1/index.js.map +1 -1
- package/dist/models/v1/inject-conversation-event-request/inject-conversation-event-request.d.ts +12 -1
- package/dist/models/v1/inject-message-request/inject-message-request.d.ts +4 -2
- package/dist/models/v1/list-message/index.d.ts +1 -1
- package/dist/models/v1/list-message/list-message.d.ts +8 -3
- package/dist/models/v1/list-section/list-section.d.ts +1 -1
- package/dist/models/v1/lookup-capability-request/index.d.ts +1 -0
- package/dist/models/v1/lookup-capability-request/index.js.map +1 -0
- package/dist/models/v1/{lookup-capability/lookup-capability.d.ts → lookup-capability-request/lookup-capability-request.d.ts} +2 -2
- package/dist/models/v1/{query-capability-response/index.js → lookup-capability-request/lookup-capability-request.js} +1 -1
- package/dist/models/v1/lookup-capability-request/lookup-capability-request.js.map +1 -0
- package/dist/models/v1/lookup-capability-response/index.d.ts +1 -0
- package/dist/models/v1/lookup-capability-response/index.js.map +1 -0
- package/dist/models/v1/{query-capability-response/query-capability-response.d.ts → lookup-capability-response/lookup-capability-response.d.ts} +1 -1
- package/dist/models/v1/{lookup-capability/lookup-capability.js → lookup-capability-response/lookup-capability-response.js} +1 -1
- package/dist/models/v1/lookup-capability-response/lookup-capability-response.js.map +1 -0
- package/dist/models/v1/mod-callback-events/capability-event/capability-event.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/channel-event/channel-event.d.ts +4 -15
- package/dist/models/v1/mod-callback-events/contact-create-event/contact-create-event.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/contact-delete-event/contact-delete-event.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/contact-identities-duplication-event/contact-identities-duplication-event.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/contact-merge-event/contact-merge-event.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/contact-update-event/contact-update-event.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/conversation-callback-event/conversation-callback-event.d.ts +13 -0
- package/dist/models/v1/mod-callback-events/conversation-delete-event/conversation-delete-event.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/conversation-start-event/conversation-start-event.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/conversation-stop-event/conversation-stop-event.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/event-delivery/event-delivery.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/event-inbound/event-inbound.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/message-delivery-receipt-event/message-delivery-receipt-event.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/message-inbound-event/message-inbound-event.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/message-inbound-event-item/message-inbound-event-item.d.ts +3 -3
- package/dist/models/v1/mod-callback-events/message-inbound-smart-conversation-redaction-event/message-inbound-smart-conversation-redaction-event.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/message-submit-event/message-submit-event.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/opt-in-event/opt-in-event.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/opt-out-event/opt-out-event.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/record-notification/record-notification.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/smart-conversations-event/smart-conversations-event.d.ts +2 -14
- package/dist/models/v1/mod-callback-events/unsupported-callback-event/unsupported-callback-event.d.ts +2 -14
- package/dist/models/v1/send-event-request/index.d.ts +1 -1
- package/dist/models/v1/send-event-request/send-event-request.d.ts +37 -5
- package/dist/models/v1/send-message-request/index.d.ts +1 -1
- package/dist/models/v1/send-message-request/send-message-request.d.ts +53 -6
- package/dist/models/v1/transcode-message-response/transcode-message-response.d.ts +2 -1
- package/dist/models/v1/v2-template-translation/index.d.ts +1 -1
- package/dist/models/v1/v2-template-translation/v2-template-translation.d.ts +94 -10
- package/dist/rest/v1/capability/capability-api.d.ts +5 -5
- package/dist/rest/v1/capability/capability-api.jest.fixture.d.ts +5 -3
- package/dist/rest/v1/capability/capability-api.jest.fixture.js +1 -1
- package/dist/rest/v1/capability/capability-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/capability/capability-api.js +1 -1
- package/dist/rest/v1/capability/capability-api.js.map +1 -1
- package/dist/rest/v1/contact/contact-api.d.ts +7 -6
- package/dist/rest/v1/contact/contact-api.jest.fixture.d.ts +4 -2
- package/dist/rest/v1/contact/contact-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/contact/contact-api.js +3 -2
- package/dist/rest/v1/contact/contact-api.js.map +1 -1
- package/dist/rest/v1/events/events-api.d.ts +66 -5
- package/dist/rest/v1/events/events-api.jest.fixture.d.ts +39 -3
- package/dist/rest/v1/events/events-api.jest.fixture.js +24 -0
- package/dist/rest/v1/events/events-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/events/events-api.js +56 -3
- package/dist/rest/v1/events/events-api.js.map +1 -1
- package/dist/rest/v1/messages/messages-api.d.ts +96 -5
- package/dist/rest/v1/messages/messages-api.jest.fixture.d.ts +59 -3
- package/dist/rest/v1/messages/messages-api.jest.fixture.js +36 -0
- package/dist/rest/v1/messages/messages-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/messages/messages-api.js +80 -3
- package/dist/rest/v1/messages/messages-api.js.map +1 -1
- package/package.json +2 -2
- package/dist/models/v1/list-message-message-properties/index.d.ts +0 -1
- package/dist/models/v1/list-message-message-properties/index.js.map +0 -1
- package/dist/models/v1/list-message-message-properties/list-message-message-properties.d.ts +0 -9
- package/dist/models/v1/list-message-message-properties/list-message-message-properties.js +0 -3
- package/dist/models/v1/list-message-message-properties/list-message-message-properties.js.map +0 -1
- package/dist/models/v1/lookup-capability/index.d.ts +0 -1
- package/dist/models/v1/lookup-capability/index.js.map +0 -1
- package/dist/models/v1/lookup-capability/lookup-capability.js.map +0 -1
- package/dist/models/v1/query-capability-response/index.d.ts +0 -1
- package/dist/models/v1/query-capability-response/index.js.map +0 -1
- package/dist/models/v1/query-capability-response/query-capability-response.js +0 -3
- package/dist/models/v1/query-capability-response/query-capability-response.js.map +0 -1
- /package/dist/models/v1/{list-message-message-properties → lookup-capability-request}/index.js +0 -0
- /package/dist/models/v1/{lookup-capability → lookup-capability-response}/index.js +0 -0
|
@@ -94,16 +94,69 @@ class EventsApi extends conversation_domain_api_1.ConversationDomainApi {
|
|
|
94
94
|
/**
|
|
95
95
|
* Send an event
|
|
96
96
|
* Sends an event to the referenced contact from the referenced app. Note that this operation enqueues the event in a queue so a successful response only indicates that the event has been queued.
|
|
97
|
-
* @param { SendEventRequestData } data - The data to provide to the API call.
|
|
97
|
+
* @param { SendEventRequestData<Recipient> } data - The data to provide to the API call.
|
|
98
98
|
*/
|
|
99
99
|
async send(data) {
|
|
100
|
+
return this.sendEvent(data, 'SendEvent');
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Send a composing event
|
|
104
|
+
* Sends an event to the referenced contact from the referenced app. Note that this operation enqueues the event in a queue so a successful response only indicates that the event has been queued.
|
|
105
|
+
* @param { SendComposingEventRequestData<Recipient> } data - The data to provide to the API call.
|
|
106
|
+
*/
|
|
107
|
+
async sendComposingEvent(data) {
|
|
108
|
+
return this.sendEvent(data, 'SendComposingEvent');
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Send a composing end event
|
|
112
|
+
* Sends an event to the referenced contact from the referenced app. Note that this operation enqueues the event in a queue so a successful response only indicates that the event has been queued.
|
|
113
|
+
* @param { SendComposingEndEventRequestData<Recipient> } data - The data to provide to the API call.
|
|
114
|
+
*/
|
|
115
|
+
async sendComposingEndEvent(data) {
|
|
116
|
+
return this.sendEvent(data, 'SendComposingEndEvent');
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Send a composing reply event
|
|
120
|
+
* Sends an event to the referenced contact from the referenced app. Note that this operation enqueues the event in a queue so a successful response only indicates that the event has been queued.
|
|
121
|
+
* @param {SendCommentReplyEventRequestData<Recipient>} data - The data to provide to the API call.
|
|
122
|
+
*/
|
|
123
|
+
async sendCommentReplyEvent(data) {
|
|
124
|
+
return this.sendEvent(data, 'SendCommentReplyEvent');
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Send an agent joined event
|
|
128
|
+
* Sends an event to the referenced contact from the referenced app. Note that this operation enqueues the event in a queue so a successful response only indicates that the event has been queued.
|
|
129
|
+
* @param {SendAgentJoinedEventRequestData} data - The data to provide to the API call.
|
|
130
|
+
*/
|
|
131
|
+
async sendAgentJoinedEvent(data) {
|
|
132
|
+
return this.sendEvent(data, 'SendAgentJoinedEvent');
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Send an agent left event
|
|
136
|
+
* Sends an event to the referenced contact from the referenced app. Note that this operation enqueues the event in a queue so a successful response only indicates that the event has been queued.
|
|
137
|
+
* @param {SendAgentLeftEventRequestData<Recipient>} data - The data to provide to the API call.
|
|
138
|
+
*/
|
|
139
|
+
async sendAgentLeftEvent(data) {
|
|
140
|
+
return this.sendEvent(data, 'SendAgentLeftEvent');
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Send a generic event
|
|
144
|
+
* Sends an event to the referenced contact from the referenced app. Note that this operation enqueues the event in a queue so a successful response only indicates that the event has been queued.
|
|
145
|
+
* @param {SendGenericEventRequestData<Recipient>} data - The data to provide to the API call.
|
|
146
|
+
*/
|
|
147
|
+
async sendGenericEvent(data) {
|
|
148
|
+
return this.sendEvent(data, 'SendGenericEvent');
|
|
149
|
+
}
|
|
150
|
+
async sendEvent(data, operationId) {
|
|
100
151
|
this.client = this.getSinchClient();
|
|
101
152
|
const getParams = this.client.extractQueryParams(data, []);
|
|
102
153
|
const headers = {
|
|
103
154
|
'Content-Type': 'application/json',
|
|
104
155
|
'Accept': 'application/json',
|
|
105
156
|
};
|
|
106
|
-
const body = data['sendEventRequestBody']
|
|
157
|
+
const body = data['sendEventRequestBody']
|
|
158
|
+
? JSON.stringify(data['sendEventRequestBody'])
|
|
159
|
+
: '{}';
|
|
107
160
|
const basePathUrl = `${this.client.apiClientOptions.basePath}/v1/projects/${this.client.apiClientOptions.projectId}/events:send`;
|
|
108
161
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined);
|
|
109
162
|
const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
|
|
@@ -111,7 +164,7 @@ class EventsApi extends conversation_domain_api_1.ConversationDomainApi {
|
|
|
111
164
|
url,
|
|
112
165
|
requestOptions,
|
|
113
166
|
apiName: this.apiName,
|
|
114
|
-
operationId
|
|
167
|
+
operationId,
|
|
115
168
|
});
|
|
116
169
|
}
|
|
117
170
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/events/events-api.ts"],"names":[],"mappings":";;;AAAA,kDAQ2B;
|
|
1
|
+
{"version":3,"file":"events-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/events/events-api.ts"],"names":[],"mappings":";;;AAAA,kDAQ2B;AAc3B,wEAAmE;AAiDnE,MAAa,SAAU,SAAQ,+CAAqB;IAElD;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,WAAW,CAAC,CAAC;IAC5C,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,MAAM,CAAC,IAA4B;QAC9C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAyB,IAAI,EAAE,EAAa,CAAC,CAAC;QAC9F,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GAAgB,EAAE,CAAC;QAC7B,MAAM,WAAW,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,gBAAgB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,WAAW,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;QAEhJ,MAAM,cAAc,GAChB,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,CAAC,CAAC;QACnG,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,U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GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,gBAAgB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,cAAc,CAAC;QAEjI,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,CAAC,CAAC;QACpH,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAoB;YAChD,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW;SACZ,CAAC,CAAC;IACL,CAAC;CAEF;AA5MD,8BA4MC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiListPromise, SinchClientParameters } from '@sinch/sdk-client';
|
|
2
|
-
import { ConversationChannel, ConversationMessage, ConversationMessagesView, SendMessageRequest, SendMessageResponse, UpdateMessageRequest } from '../../../models';
|
|
2
|
+
import { ConversationChannel, ConversationMessage, ConversationMessagesView, Recipient, SendCardMessageRequest, SendCarouselMessageRequest, SendChoiceMessageRequest, SendContactInfoMessageRequest, SendListMessageRequest, SendLocationMessageRequest, SendMediaMessageRequest, SendMessageRequest, SendMessageResponse, SendTemplateMessageRequest, SendTextMessageRequest, UpdateMessageRequest } from '../../../models';
|
|
3
3
|
import { ConversationDomainApi } from '../conversation-domain-api';
|
|
4
4
|
import { MessageSource } from '../enums';
|
|
5
5
|
export interface DeleteMessageRequestData {
|
|
@@ -40,9 +40,45 @@ export interface ListMessagesRequestData {
|
|
|
40
40
|
/** Only fetch messages from the `channel`. */
|
|
41
41
|
'channel'?: ConversationChannel;
|
|
42
42
|
}
|
|
43
|
-
export interface SendMessageRequestData {
|
|
43
|
+
export interface SendMessageRequestData<T extends Recipient> {
|
|
44
44
|
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
45
|
-
'sendMessageRequestBody': SendMessageRequest
|
|
45
|
+
'sendMessageRequestBody': SendMessageRequest<T>;
|
|
46
|
+
}
|
|
47
|
+
export interface SendCardMessageRequestData<T extends Recipient> {
|
|
48
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
49
|
+
'sendMessageRequestBody': SendCardMessageRequest<T>;
|
|
50
|
+
}
|
|
51
|
+
export interface SendCarouselMessageRequestData<T extends Recipient> {
|
|
52
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
53
|
+
'sendMessageRequestBody': SendCarouselMessageRequest<T>;
|
|
54
|
+
}
|
|
55
|
+
export interface SendChoiceMessageRequestData<T extends Recipient> {
|
|
56
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
57
|
+
'sendMessageRequestBody': SendChoiceMessageRequest<T>;
|
|
58
|
+
}
|
|
59
|
+
export interface SendContactInfoMessageRequestData<T extends Recipient> {
|
|
60
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
61
|
+
'sendMessageRequestBody': SendContactInfoMessageRequest<T>;
|
|
62
|
+
}
|
|
63
|
+
export interface SendListMessageRequestData<T extends Recipient> {
|
|
64
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
65
|
+
'sendMessageRequestBody': SendListMessageRequest<T>;
|
|
66
|
+
}
|
|
67
|
+
export interface SendLocationMessageRequestData<T extends Recipient> {
|
|
68
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
69
|
+
'sendMessageRequestBody': SendLocationMessageRequest<T>;
|
|
70
|
+
}
|
|
71
|
+
export interface SendMediaMessageRequestData<T extends Recipient> {
|
|
72
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
73
|
+
'sendMessageRequestBody': SendMediaMessageRequest<T>;
|
|
74
|
+
}
|
|
75
|
+
export interface SendTemplateMessageRequestData<T extends Recipient> {
|
|
76
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
77
|
+
'sendMessageRequestBody': SendTemplateMessageRequest<T>;
|
|
78
|
+
}
|
|
79
|
+
export interface SendTextMessageRequestData<T extends Recipient> {
|
|
80
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
81
|
+
'sendMessageRequestBody': SendTextMessageRequest<T>;
|
|
46
82
|
}
|
|
47
83
|
export interface UpdateMessageRequestData {
|
|
48
84
|
/** The unique ID of the message. */
|
|
@@ -81,9 +117,64 @@ export declare class MessagesApi extends ConversationDomainApi {
|
|
|
81
117
|
/**
|
|
82
118
|
* Send a message
|
|
83
119
|
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
84
|
-
* @param {
|
|
120
|
+
* @param { SendCardMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
121
|
+
*/
|
|
122
|
+
send(data: SendMessageRequestData<Recipient>): Promise<SendMessageResponse>;
|
|
123
|
+
/**
|
|
124
|
+
* Send a card message
|
|
125
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
126
|
+
* @param { SendCardMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
127
|
+
*/
|
|
128
|
+
sendCardMessage(data: SendCardMessageRequestData<Recipient>): Promise<SendMessageResponse>;
|
|
129
|
+
/**
|
|
130
|
+
* Send a carousel message
|
|
131
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
132
|
+
* @param { SendCarouselMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
133
|
+
*/
|
|
134
|
+
sendCarouselMessage(data: SendCarouselMessageRequestData<Recipient>): Promise<SendMessageResponse>;
|
|
135
|
+
/**
|
|
136
|
+
* Send a choice message
|
|
137
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
138
|
+
* @param { SendChoiceMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
139
|
+
*/
|
|
140
|
+
sendChoiceMessage(data: SendChoiceMessageRequestData<Recipient>): Promise<SendMessageResponse>;
|
|
141
|
+
/**
|
|
142
|
+
* Send a contact info message
|
|
143
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
144
|
+
* @param { SendContactInfoMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
145
|
+
*/
|
|
146
|
+
sendContactInfoMessage(data: SendContactInfoMessageRequestData<Recipient>): Promise<SendMessageResponse>;
|
|
147
|
+
/**
|
|
148
|
+
* Send a list message
|
|
149
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
150
|
+
* @param { SendListMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
151
|
+
*/
|
|
152
|
+
sendListMessage(data: SendListMessageRequestData<Recipient>): Promise<SendMessageResponse>;
|
|
153
|
+
/**
|
|
154
|
+
* Send a location message
|
|
155
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
156
|
+
* @param { SendLocationMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
157
|
+
*/
|
|
158
|
+
sendLocationMessage(data: SendLocationMessageRequestData<Recipient>): Promise<SendMessageResponse>;
|
|
159
|
+
/**
|
|
160
|
+
* Send a media message
|
|
161
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
162
|
+
* @param { SendCardMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
163
|
+
*/
|
|
164
|
+
sendMediaMessage(data: SendMediaMessageRequestData<Recipient>): Promise<SendMessageResponse>;
|
|
165
|
+
/**
|
|
166
|
+
* Send a template message
|
|
167
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
168
|
+
* @param { SendCardMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
169
|
+
*/
|
|
170
|
+
sendTemplateMessage(data: SendTemplateMessageRequestData<Recipient>): Promise<SendMessageResponse>;
|
|
171
|
+
/**
|
|
172
|
+
* Send a text message
|
|
173
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
174
|
+
* @param { SendTextMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
85
175
|
*/
|
|
86
|
-
|
|
176
|
+
sendTextMessage(data: SendTextMessageRequestData<Recipient>): Promise<SendMessageResponse>;
|
|
177
|
+
private sendMessage;
|
|
87
178
|
/**
|
|
88
179
|
* Update message metadata
|
|
89
180
|
* Update a specific message metadata by its ID.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
|
-
import { ConversationMessage, SendMessageResponse } from '../../../models';
|
|
3
|
-
import { MessagesApi, DeleteMessageRequestData, GetMessageRequestData, ListMessagesRequestData,
|
|
2
|
+
import { ConversationMessage, Recipient, SendMessageResponse } from '../../../models';
|
|
3
|
+
import { MessagesApi, DeleteMessageRequestData, GetMessageRequestData, ListMessagesRequestData, UpdateMessageRequestData, SendCardMessageRequestData, SendTextMessageRequestData, SendCarouselMessageRequestData, SendChoiceMessageRequestData, SendContactInfoMessageRequestData, SendListMessageRequestData, SendLocationMessageRequestData, SendMediaMessageRequestData, SendTemplateMessageRequestData, SendMessageRequestData } from './messages-api';
|
|
4
4
|
import { ApiListPromise } from '@sinch/sdk-client';
|
|
5
5
|
export declare class MessagesApiFixture implements Partial<Readonly<MessagesApi>> {
|
|
6
6
|
/**
|
|
@@ -15,10 +15,66 @@ export declare class MessagesApiFixture implements Partial<Readonly<MessagesApi>
|
|
|
15
15
|
* Fixture associated to function list
|
|
16
16
|
*/
|
|
17
17
|
list: jest.Mock<ApiListPromise<ConversationMessage>, [ListMessagesRequestData]>;
|
|
18
|
+
/**
|
|
19
|
+
* Fixture associated to function sendCardMessage
|
|
20
|
+
*/
|
|
21
|
+
sendCardMessage: jest.Mock<Promise<SendMessageResponse>, [
|
|
22
|
+
SendCardMessageRequestData<Recipient>
|
|
23
|
+
]>;
|
|
24
|
+
/**
|
|
25
|
+
* Fixture associated to function sendTextMessage
|
|
26
|
+
*/
|
|
27
|
+
sendCarouselMessage: jest.Mock<Promise<SendMessageResponse>, [
|
|
28
|
+
SendCarouselMessageRequestData<Recipient>
|
|
29
|
+
]>;
|
|
30
|
+
/**
|
|
31
|
+
* Fixture associated to function sendTextMessage
|
|
32
|
+
*/
|
|
33
|
+
sendChoiceMessage: jest.Mock<Promise<SendMessageResponse>, [
|
|
34
|
+
SendChoiceMessageRequestData<Recipient>
|
|
35
|
+
]>;
|
|
36
|
+
/**
|
|
37
|
+
* Fixture associated to function sendTextMessage
|
|
38
|
+
*/
|
|
39
|
+
sendContactInfoMessage: jest.Mock<Promise<SendMessageResponse>, [
|
|
40
|
+
SendContactInfoMessageRequestData<Recipient>
|
|
41
|
+
]>;
|
|
42
|
+
/**
|
|
43
|
+
* Fixture associated to function sendTextMessage
|
|
44
|
+
*/
|
|
45
|
+
sendListMessage: jest.Mock<Promise<SendMessageResponse>, [
|
|
46
|
+
SendListMessageRequestData<Recipient>
|
|
47
|
+
]>;
|
|
48
|
+
/**
|
|
49
|
+
* Fixture associated to function sendTextMessage
|
|
50
|
+
*/
|
|
51
|
+
sendLocationMessage: jest.Mock<Promise<SendMessageResponse>, [
|
|
52
|
+
SendLocationMessageRequestData<Recipient>
|
|
53
|
+
]>;
|
|
54
|
+
/**
|
|
55
|
+
* Fixture associated to function sendTextMessage
|
|
56
|
+
*/
|
|
57
|
+
sendMediaMessage: jest.Mock<Promise<SendMessageResponse>, [
|
|
58
|
+
SendMediaMessageRequestData<Recipient>
|
|
59
|
+
]>;
|
|
60
|
+
/**
|
|
61
|
+
* Fixture associated to function sendTextMessage
|
|
62
|
+
*/
|
|
63
|
+
sendTemplateMessage: jest.Mock<Promise<SendMessageResponse>, [
|
|
64
|
+
SendTemplateMessageRequestData<Recipient>
|
|
65
|
+
]>;
|
|
66
|
+
/**
|
|
67
|
+
* Fixture associated to function sendTextMessage
|
|
68
|
+
*/
|
|
69
|
+
sendTextMessage: jest.Mock<Promise<SendMessageResponse>, [
|
|
70
|
+
SendTextMessageRequestData<Recipient>
|
|
71
|
+
]>;
|
|
18
72
|
/**
|
|
19
73
|
* Fixture associated to function send
|
|
20
74
|
*/
|
|
21
|
-
send: jest.Mock<Promise<SendMessageResponse>, [
|
|
75
|
+
send: jest.Mock<Promise<SendMessageResponse>, [
|
|
76
|
+
SendMessageRequestData<Recipient>
|
|
77
|
+
]>;
|
|
22
78
|
/**
|
|
23
79
|
* Fixture associated to function update
|
|
24
80
|
*/
|
|
@@ -15,6 +15,42 @@ class MessagesApiFixture {
|
|
|
15
15
|
* Fixture associated to function list
|
|
16
16
|
*/
|
|
17
17
|
this.list = jest.fn();
|
|
18
|
+
/**
|
|
19
|
+
* Fixture associated to function sendCardMessage
|
|
20
|
+
*/
|
|
21
|
+
this.sendCardMessage = jest.fn();
|
|
22
|
+
/**
|
|
23
|
+
* Fixture associated to function sendTextMessage
|
|
24
|
+
*/
|
|
25
|
+
this.sendCarouselMessage = jest.fn();
|
|
26
|
+
/**
|
|
27
|
+
* Fixture associated to function sendTextMessage
|
|
28
|
+
*/
|
|
29
|
+
this.sendChoiceMessage = jest.fn();
|
|
30
|
+
/**
|
|
31
|
+
* Fixture associated to function sendTextMessage
|
|
32
|
+
*/
|
|
33
|
+
this.sendContactInfoMessage = jest.fn();
|
|
34
|
+
/**
|
|
35
|
+
* Fixture associated to function sendTextMessage
|
|
36
|
+
*/
|
|
37
|
+
this.sendListMessage = jest.fn();
|
|
38
|
+
/**
|
|
39
|
+
* Fixture associated to function sendTextMessage
|
|
40
|
+
*/
|
|
41
|
+
this.sendLocationMessage = jest.fn();
|
|
42
|
+
/**
|
|
43
|
+
* Fixture associated to function sendTextMessage
|
|
44
|
+
*/
|
|
45
|
+
this.sendMediaMessage = jest.fn();
|
|
46
|
+
/**
|
|
47
|
+
* Fixture associated to function sendTextMessage
|
|
48
|
+
*/
|
|
49
|
+
this.sendTemplateMessage = jest.fn();
|
|
50
|
+
/**
|
|
51
|
+
* Fixture associated to function sendTextMessage
|
|
52
|
+
*/
|
|
53
|
+
this.sendTextMessage = jest.fn();
|
|
18
54
|
/**
|
|
19
55
|
* Fixture associated to function send
|
|
20
56
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/messages/messages-api.jest.fixture.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"messages-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/messages/messages-api.jest.fixture.ts"],"names":[],"mappings":";;;AAoBA,MAAa,kBAAkB;IAA/B;QAEE;;WAEG;QACI,WAAM,GAAwD,IAAI,CAAC,EAAE,EAAE,CAAC;QAC/E;;WAEG;QACI,QAAG,GAAqE,IAAI,CAAC,EAAE,EAAE,CAAC;QACzF;;WAEG;QACI,SAAI,GAA8E,IAAI,CAAC,EAAE,EAAE,CAAC;QACnG;;WAEG;QACI,oBAAe,GAGlB,IAAI,CAAC,EAAE,EAAE,CAAC;QACd;;WAEG;QACI,wBAAmB,GAGtB,IAAI,CAAC,EAAE,EAAE,CAAC;QACd;;WAEG;QACI,sBAAiB,GAGpB,IAAI,CAAC,EAAE,EAAE,CAAC;QACd;;WAEG;QACI,2BAAsB,GAGzB,IAAI,CAAC,EAAE,EAAE,CAAC;QACd;;WAEG;QACI,oBAAe,GAGlB,IAAI,CAAC,EAAE,EAAE,CAAC;QACd;;WAEG;QACI,wBAAmB,GAGtB,IAAI,CAAC,EAAE,EAAE,CAAC;QACd;;WAEG;QACI,qBAAgB,GAGnB,IAAI,CAAC,EAAE,EAAE,CAAC;QACd;;WAEG;QACI,wBAAmB,GAGtB,IAAI,CAAC,EAAE,EAAE,CAAC;QACd;;WAEG;QACI,oBAAe,GAGlB,IAAI,CAAC,EAAE,EAAE,CAAC;QACd;;WAEG;QACI,SAAI,GAGP,IAAI,CAAC,EAAE,EAAE,CAAC;QACd;;WAEG;QACI,WAAM,GAAwE,IAAI,CAAC,EAAE,EAAE,CAAC;IACjG,CAAC;CAAA;AAxFD,gDAwFC"}
|
|
@@ -105,16 +105,93 @@ class MessagesApi extends conversation_domain_api_1.ConversationDomainApi {
|
|
|
105
105
|
/**
|
|
106
106
|
* Send a message
|
|
107
107
|
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
108
|
-
* @param {
|
|
108
|
+
* @param { SendCardMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
109
109
|
*/
|
|
110
110
|
async send(data) {
|
|
111
|
+
return this.sendMessage(data, 'SendMessage');
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Send a card message
|
|
115
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
116
|
+
* @param { SendCardMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
117
|
+
*/
|
|
118
|
+
async sendCardMessage(data) {
|
|
119
|
+
return this.sendMessage(data, 'SendCardMessage');
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Send a carousel message
|
|
123
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
124
|
+
* @param { SendCarouselMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
125
|
+
*/
|
|
126
|
+
async sendCarouselMessage(data) {
|
|
127
|
+
return this.sendMessage(data, 'SendCarouselMessage');
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Send a choice message
|
|
131
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
132
|
+
* @param { SendChoiceMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
133
|
+
*/
|
|
134
|
+
async sendChoiceMessage(data) {
|
|
135
|
+
return this.sendMessage(data, 'SendChoiceMessage');
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Send a contact info message
|
|
139
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
140
|
+
* @param { SendContactInfoMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
141
|
+
*/
|
|
142
|
+
async sendContactInfoMessage(data) {
|
|
143
|
+
return this.sendMessage(data, 'SendContactInfoMessage');
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Send a list message
|
|
147
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
148
|
+
* @param { SendListMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
149
|
+
*/
|
|
150
|
+
async sendListMessage(data) {
|
|
151
|
+
return this.sendMessage(data, 'SendListMessage');
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Send a location message
|
|
155
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
156
|
+
* @param { SendLocationMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
157
|
+
*/
|
|
158
|
+
async sendLocationMessage(data) {
|
|
159
|
+
return this.sendMessage(data, 'SendLocationMessage');
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Send a media message
|
|
163
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
164
|
+
* @param { SendCardMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
165
|
+
*/
|
|
166
|
+
async sendMediaMessage(data) {
|
|
167
|
+
return this.sendMessage(data, 'SendMediaMessage');
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Send a template message
|
|
171
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
172
|
+
* @param { SendCardMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
173
|
+
*/
|
|
174
|
+
async sendTemplateMessage(data) {
|
|
175
|
+
return this.sendMessage(data, 'SendTemplateMessage');
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Send a text message
|
|
179
|
+
* You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created. The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically. You can find all of your IDs and authentication credentials on the [Sinch Customer Dashboard](https://dashboard.sinch.com/convapi/overview).
|
|
180
|
+
* @param { SendTextMessageRequestData<Recipient> } data - The data to provide to the API call.
|
|
181
|
+
*/
|
|
182
|
+
async sendTextMessage(data) {
|
|
183
|
+
return this.sendMessage(data, 'SendTextMessage');
|
|
184
|
+
}
|
|
185
|
+
async sendMessage(data, operationId) {
|
|
111
186
|
this.client = this.getSinchClient();
|
|
112
187
|
const getParams = this.client.extractQueryParams(data, []);
|
|
113
188
|
const headers = {
|
|
114
189
|
'Content-Type': 'application/json',
|
|
115
190
|
'Accept': 'application/json',
|
|
116
191
|
};
|
|
117
|
-
const body = data['sendMessageRequestBody']
|
|
192
|
+
const body = data['sendMessageRequestBody']
|
|
193
|
+
? JSON.stringify(data['sendMessageRequestBody'])
|
|
194
|
+
: '{}';
|
|
118
195
|
const basePathUrl = `${this.client.apiClientOptions.basePath}/v1/projects/${this.client.apiClientOptions.projectId}/messages:send`;
|
|
119
196
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined);
|
|
120
197
|
const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
|
|
@@ -122,7 +199,7 @@ class MessagesApi extends conversation_domain_api_1.ConversationDomainApi {
|
|
|
122
199
|
url,
|
|
123
200
|
requestOptions,
|
|
124
201
|
apiName: this.apiName,
|
|
125
|
-
operationId
|
|
202
|
+
operationId,
|
|
126
203
|
});
|
|
127
204
|
}
|
|
128
205
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/messages/messages-api.ts"],"names":[],"mappings":";;;AAAA,kDAQ2B;
|
|
1
|
+
{"version":3,"file":"messages-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/messages/messages-api.ts"],"names":[],"mappings":";;;AAAA,kDAQ2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|
"name": "@sinch/conversation",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Sinch Conversation API",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"compile": "tsc -p tsconfig.build.json && tsc -p tsconfig.tests.json && rimraf dist/tests tsconfig.build.tsbuildinfo"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@sinch/sdk-client": "^0.0.
|
|
31
|
+
"@sinch/sdk-client": "^0.0.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {},
|
|
34
34
|
"publishConfig": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { ListMessageMessageProperties } from './list-message-message-properties';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/list-message-message-properties/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Additional properties for the message. Required if sending a product list message.
|
|
3
|
-
*/
|
|
4
|
-
export interface ListMessageMessageProperties {
|
|
5
|
-
/** Required if sending a product list message. The ID of the catalog to which the products belong. */
|
|
6
|
-
catalog_id?: string;
|
|
7
|
-
/** Optional. Sets the text for the menu of a choice list message. */
|
|
8
|
-
menu?: string;
|
|
9
|
-
}
|
package/dist/models/v1/list-message-message-properties/list-message-message-properties.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-message-message-properties.js","sourceRoot":"","sources":["../../../../src/models/v1/list-message-message-properties/list-message-message-properties.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { LookupCapability } from './lookup-capability';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/lookup-capability/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lookup-capability.js","sourceRoot":"","sources":["../../../../src/models/v1/lookup-capability/lookup-capability.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { QueryCapabilityResponse } from './query-capability-response';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/query-capability-response/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query-capability-response.js","sourceRoot":"","sources":["../../../../src/models/v1/query-capability-response/query-capability-response.ts"],"names":[],"mappings":""}
|
/package/dist/models/v1/{list-message-message-properties → lookup-capability-request}/index.js
RENAMED
|
File without changes
|
|
File without changes
|