@azure/communication-chat 1.3.2-beta.3 → 1.3.2

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.js CHANGED
@@ -139,7 +139,7 @@ const mapToReadReceiptSdkModel = (readReceipt) => {
139
139
  const tracingClient = coreTracing.createTracingClient({
140
140
  namespace: "Azure.Communication",
141
141
  packageName: "@azure/communication-chat",
142
- packageVersion: "1.3.2-beta.3"
142
+ packageVersion: "1.3.2"
143
143
  });
144
144
 
145
145
  /*
@@ -579,18 +579,6 @@ const ChatMessageContent = {
579
579
  }
580
580
  }
581
581
  },
582
- attachments: {
583
- serializedName: "attachments",
584
- type: {
585
- name: "Sequence",
586
- element: {
587
- type: {
588
- name: "Composite",
589
- className: "ChatAttachment"
590
- }
591
- }
592
- }
593
- },
594
582
  initiatorCommunicationIdentifier: {
595
583
  serializedName: "initiatorCommunicationIdentifier",
596
584
  type: {
@@ -628,54 +616,6 @@ const ChatParticipant = {
628
616
  }
629
617
  }
630
618
  };
631
- const ChatAttachment = {
632
- type: {
633
- name: "Composite",
634
- className: "ChatAttachment",
635
- modelProperties: {
636
- id: {
637
- serializedName: "id",
638
- required: true,
639
- type: {
640
- name: "String"
641
- }
642
- },
643
- attachmentType: {
644
- serializedName: "attachmentType",
645
- required: true,
646
- type: {
647
- name: "Enum",
648
- allowedValues: ["teamsInlineImage", "teamsImage", "file"]
649
- }
650
- },
651
- contentType: {
652
- serializedName: "contentType",
653
- type: {
654
- name: "String"
655
- }
656
- },
657
- name: {
658
- serializedName: "name",
659
- type: {
660
- name: "String"
661
- }
662
- },
663
- url: {
664
- serializedName: "url",
665
- required: true,
666
- type: {
667
- name: "String"
668
- }
669
- },
670
- previewUrl: {
671
- serializedName: "previewUrl",
672
- type: {
673
- name: "String"
674
- }
675
- }
676
- }
677
- }
678
- };
679
619
  const UpdateChatMessageRequest = {
680
620
  type: {
681
621
  name: "Composite",
@@ -973,7 +913,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
973
913
  ChatMessage: ChatMessage,
974
914
  ChatMessageContent: ChatMessageContent,
975
915
  ChatParticipant: ChatParticipant,
976
- ChatAttachment: ChatAttachment,
977
916
  UpdateChatMessageRequest: UpdateChatMessageRequest,
978
917
  ChatParticipantsCollection: ChatParticipantsCollection,
979
918
  AddChatParticipantsRequest: AddChatParticipantsRequest,
@@ -1047,7 +986,7 @@ const skip = {
1047
986
  const apiVersion = {
1048
987
  parameterPath: "apiVersion",
1049
988
  mapper: {
1050
- defaultValue: "2023-07-01-preview",
989
+ defaultValue: "2021-09-07",
1051
990
  isConstant: true,
1052
991
  serializedName: "api-version",
1053
992
  type: {
@@ -1767,6 +1706,11 @@ const listChatReadReceiptsNextOperationSpec = {
1767
1706
  isError: true
1768
1707
  }
1769
1708
  },
1709
+ queryParameters: [
1710
+ maxPageSize,
1711
+ skip,
1712
+ apiVersion
1713
+ ],
1770
1714
  urlParameters: [
1771
1715
  endpoint,
1772
1716
  chatThreadId,
@@ -1799,6 +1743,11 @@ const listChatMessagesNextOperationSpec = {
1799
1743
  isError: true
1800
1744
  }
1801
1745
  },
1746
+ queryParameters: [
1747
+ maxPageSize,
1748
+ apiVersion,
1749
+ startTime
1750
+ ],
1802
1751
  urlParameters: [
1803
1752
  endpoint,
1804
1753
  chatThreadId,
@@ -1831,6 +1780,11 @@ const listChatParticipantsNextOperationSpec = {
1831
1780
  isError: true
1832
1781
  }
1833
1782
  },
1783
+ queryParameters: [
1784
+ maxPageSize,
1785
+ skip,
1786
+ apiVersion
1787
+ ],
1834
1788
  urlParameters: [
1835
1789
  endpoint,
1836
1790
  chatThreadId,
@@ -2017,6 +1971,11 @@ const listChatThreadsNextOperationSpec = {
2017
1971
  isError: true
2018
1972
  }
2019
1973
  },
1974
+ queryParameters: [
1975
+ maxPageSize,
1976
+ apiVersion,
1977
+ startTime
1978
+ ],
2020
1979
  urlParameters: [endpoint, nextLink],
2021
1980
  headerParameters: [accept],
2022
1981
  serializer
@@ -2047,18 +2006,18 @@ class ChatApiClient extends coreClient__namespace.ServiceClient {
2047
2006
  const defaults = {
2048
2007
  requestContentType: "application/json; charset=utf-8"
2049
2008
  };
2050
- const packageDetails = `azsdk-js-communication-chat/1.3.2-beta.3`;
2009
+ const packageDetails = `azsdk-js-communication-chat/1.3.2`;
2051
2010
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2052
2011
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2053
2012
  : `${packageDetails}`;
2054
2013
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
2055
2014
  userAgentPrefix
2056
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
2015
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
2057
2016
  super(optionsWithDefaults);
2058
2017
  // Parameter assignments
2059
2018
  this.endpoint = endpoint;
2060
2019
  // Assigning values to Constant parameters
2061
- this.apiVersion = options.apiVersion || "2023-07-01-preview";
2020
+ this.apiVersion = options.apiVersion || "2021-09-07";
2062
2021
  this.chatThread = new ChatThreadImpl(this);
2063
2022
  this.chat = new ChatImpl(this);
2064
2023
  this.addCustomApiVersionPolicy(options.apiVersion);
@@ -2505,12 +2464,11 @@ function generateUuid() {
2505
2464
 
2506
2465
  // Copyright (c) Microsoft Corporation.
2507
2466
  const getSignalingClient = (credential, logger, options) => {
2508
- var _a, _b;
2467
+ var _a;
2509
2468
  if (typeof navigator !== "undefined" && navigator.product === "ReactNative") {
2510
2469
  // In React Native
2511
2470
  return new communicationSignaling.CommunicationSignalingClient(credential, logger, {
2512
2471
  environment: (_a = options === null || options === void 0 ? void 0 : options.environment) !== null && _a !== void 0 ? _a : undefined,
2513
- resourceEndpoint: (_b = options === null || options === void 0 ? void 0 : options.resourceEndpoint) !== null && _b !== void 0 ? _b : undefined,
2514
2472
  });
2515
2473
  }
2516
2474
  // In node js
@@ -2544,7 +2502,6 @@ class ChatClient {
2544
2502
  this.client = new ChatApiClient(this.endpoint, Object.assign({ endpoint: this.endpoint }, internalPipelineOptions));
2545
2503
  const authPolicy = createCommunicationTokenCredentialPolicy(this.tokenCredential);
2546
2504
  this.client.pipeline.addPolicy(authPolicy);
2547
- options.signalingClientOptions = Object.assign(Object.assign({}, options.signalingClientOptions), { resourceEndpoint: this.endpoint });
2548
2505
  this.signalingClient = getSignalingClient(credential, logger, options.signalingClientOptions);
2549
2506
  }
2550
2507
  /**