@vendasta/conversation 0.54.0 → 0.55.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/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +13 -1
- package/fesm2015/vendasta-conversation.mjs +12 -0
- package/fesm2015/vendasta-conversation.mjs.map +1 -1
- package/fesm2020/vendasta-conversation.mjs +12 -0
- package/fesm2020/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +2 -0
- package/lib/_internal/objects/api.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1629,6 +1629,9 @@ class GetAvailableChannelsForConversationResponse {
|
|
|
1629
1629
|
if (proto.channels) {
|
|
1630
1630
|
m.channels = proto.channels.map((v) => enumStringToValue(ConversationChannel, v));
|
|
1631
1631
|
}
|
|
1632
|
+
if (proto.preferredChannel) {
|
|
1633
|
+
m.preferredChannel = enumStringToValue(ConversationChannel, proto.preferredChannel);
|
|
1634
|
+
}
|
|
1632
1635
|
return m;
|
|
1633
1636
|
}
|
|
1634
1637
|
constructor(kwargs) {
|
|
@@ -1642,6 +1645,9 @@ class GetAvailableChannelsForConversationResponse {
|
|
|
1642
1645
|
if (typeof this.channels !== 'undefined') {
|
|
1643
1646
|
toReturn['channels'] = this.channels;
|
|
1644
1647
|
}
|
|
1648
|
+
if (typeof this.preferredChannel !== 'undefined') {
|
|
1649
|
+
toReturn['preferredChannel'] = this.preferredChannel;
|
|
1650
|
+
}
|
|
1645
1651
|
return toReturn;
|
|
1646
1652
|
}
|
|
1647
1653
|
}
|
|
@@ -3293,6 +3299,9 @@ class UpsertConfigurationRequest {
|
|
|
3293
3299
|
if (proto.configuration) {
|
|
3294
3300
|
m.configuration = Configuration.fromProto(proto.configuration);
|
|
3295
3301
|
}
|
|
3302
|
+
if (proto.fieldMask) {
|
|
3303
|
+
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
3304
|
+
}
|
|
3296
3305
|
return m;
|
|
3297
3306
|
}
|
|
3298
3307
|
constructor(kwargs) {
|
|
@@ -3306,6 +3315,9 @@ class UpsertConfigurationRequest {
|
|
|
3306
3315
|
if (typeof this.configuration !== 'undefined' && this.configuration !== null) {
|
|
3307
3316
|
toReturn['configuration'] = 'toApiJson' in this.configuration ? this.configuration.toApiJson() : this.configuration;
|
|
3308
3317
|
}
|
|
3318
|
+
if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
|
|
3319
|
+
toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
|
|
3320
|
+
}
|
|
3309
3321
|
return toReturn;
|
|
3310
3322
|
}
|
|
3311
3323
|
}
|