@vendasta/conversation 0.21.0 → 0.22.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 +7 -1
- package/fesm2015/vendasta-conversation.mjs +6 -0
- package/fesm2015/vendasta-conversation.mjs.map +1 -1
- package/fesm2020/vendasta-conversation.mjs +6 -0
- package/fesm2020/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +1 -0
- package/lib/_internal/objects/api.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1581,6 +1581,9 @@ class SendMessageRequest {
|
|
|
1581
1581
|
if (proto.metadata) {
|
|
1582
1582
|
m.metadata = proto.metadata.map(Metadata.fromProto);
|
|
1583
1583
|
}
|
|
1584
|
+
if (proto.originLocation) {
|
|
1585
|
+
m.originLocation = enumStringToValue(PlatformLocation, proto.originLocation);
|
|
1586
|
+
}
|
|
1584
1587
|
return m;
|
|
1585
1588
|
}
|
|
1586
1589
|
toApiJson() {
|
|
@@ -1603,6 +1606,9 @@ class SendMessageRequest {
|
|
|
1603
1606
|
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
1604
1607
|
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
1605
1608
|
}
|
|
1609
|
+
if (typeof this.originLocation !== 'undefined') {
|
|
1610
|
+
toReturn['originLocation'] = this.originLocation;
|
|
1611
|
+
}
|
|
1606
1612
|
return toReturn;
|
|
1607
1613
|
}
|
|
1608
1614
|
}
|