@ember-home/unbound-ts-client 0.0.43 → 0.0.44

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.mjs CHANGED
@@ -85,6 +85,9 @@ var ConversationStatus = {
85
85
  Open: "OPEN",
86
86
  Closed: "CLOSED"
87
87
  };
88
+ var EmailConversationDataApiConversationTypeEnum = {
89
+ Email: "EMAIL"
90
+ };
88
91
  var ExternalStaffApiStaffTypeEnum = {
89
92
  ExternalStaff: "EXTERNAL_STAFF"
90
93
  };
@@ -2869,6 +2872,146 @@ var ReservationsApi = class extends BaseAPI {
2869
2872
  return ReservationsApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
2870
2873
  }
2871
2874
  };
2875
+ var SuggestedRepliesApiAxiosParamCreator = function(configuration) {
2876
+ return {
2877
+ /**
2878
+ * SuggestedReplies Create
2879
+ * @summary SuggestedReplies Create
2880
+ * @param {object} body
2881
+ * @param {*} [options] Override http request option.
2882
+ * @throws {RequiredError}
2883
+ */
2884
+ suggestedRepliesCreate: async (body, options = {}) => {
2885
+ assertParamExists("suggestedRepliesCreate", "body", body);
2886
+ const localVarPath = `/suggestedReplies`;
2887
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2888
+ let baseOptions;
2889
+ if (configuration) {
2890
+ baseOptions = configuration.baseOptions;
2891
+ }
2892
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
2893
+ const localVarHeaderParameter = {};
2894
+ const localVarQueryParameter = {};
2895
+ localVarHeaderParameter["Content-Type"] = "application/json";
2896
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2897
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2898
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2899
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
2900
+ return {
2901
+ url: toPathString(localVarUrlObj),
2902
+ options: localVarRequestOptions
2903
+ };
2904
+ },
2905
+ /**
2906
+ * List all suggested replies, optionally filtered by conversation_id
2907
+ * @summary SuggestedReplies List
2908
+ * @param {string | null} [conversationId] Filter by conversation ID
2909
+ * @param {*} [options] Override http request option.
2910
+ * @throws {RequiredError}
2911
+ */
2912
+ suggestedRepliesList: async (conversationId, options = {}) => {
2913
+ const localVarPath = `/suggestedReplies`;
2914
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2915
+ let baseOptions;
2916
+ if (configuration) {
2917
+ baseOptions = configuration.baseOptions;
2918
+ }
2919
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2920
+ const localVarHeaderParameter = {};
2921
+ const localVarQueryParameter = {};
2922
+ if (conversationId !== void 0) {
2923
+ localVarQueryParameter["conversationId"] = conversationId;
2924
+ }
2925
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2926
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2927
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2928
+ return {
2929
+ url: toPathString(localVarUrlObj),
2930
+ options: localVarRequestOptions
2931
+ };
2932
+ }
2933
+ };
2934
+ };
2935
+ var SuggestedRepliesApiFp = function(configuration) {
2936
+ const localVarAxiosParamCreator = SuggestedRepliesApiAxiosParamCreator(configuration);
2937
+ return {
2938
+ /**
2939
+ * SuggestedReplies Create
2940
+ * @summary SuggestedReplies Create
2941
+ * @param {object} body
2942
+ * @param {*} [options] Override http request option.
2943
+ * @throws {RequiredError}
2944
+ */
2945
+ async suggestedRepliesCreate(body, options) {
2946
+ const localVarAxiosArgs = await localVarAxiosParamCreator.suggestedRepliesCreate(body, options);
2947
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2948
+ const localVarOperationServerBasePath = operationServerMap["SuggestedRepliesApi.suggestedRepliesCreate"]?.[localVarOperationServerIndex]?.url;
2949
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2950
+ },
2951
+ /**
2952
+ * List all suggested replies, optionally filtered by conversation_id
2953
+ * @summary SuggestedReplies List
2954
+ * @param {string | null} [conversationId] Filter by conversation ID
2955
+ * @param {*} [options] Override http request option.
2956
+ * @throws {RequiredError}
2957
+ */
2958
+ async suggestedRepliesList(conversationId, options) {
2959
+ const localVarAxiosArgs = await localVarAxiosParamCreator.suggestedRepliesList(conversationId, options);
2960
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2961
+ const localVarOperationServerBasePath = operationServerMap["SuggestedRepliesApi.suggestedRepliesList"]?.[localVarOperationServerIndex]?.url;
2962
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2963
+ }
2964
+ };
2965
+ };
2966
+ var SuggestedRepliesApiFactory = function(configuration, basePath, axios) {
2967
+ const localVarFp = SuggestedRepliesApiFp(configuration);
2968
+ return {
2969
+ /**
2970
+ * SuggestedReplies Create
2971
+ * @summary SuggestedReplies Create
2972
+ * @param {object} body
2973
+ * @param {*} [options] Override http request option.
2974
+ * @throws {RequiredError}
2975
+ */
2976
+ suggestedRepliesCreate(body, options) {
2977
+ return localVarFp.suggestedRepliesCreate(body, options).then((request) => request(axios, basePath));
2978
+ },
2979
+ /**
2980
+ * List all suggested replies, optionally filtered by conversation_id
2981
+ * @summary SuggestedReplies List
2982
+ * @param {string | null} [conversationId] Filter by conversation ID
2983
+ * @param {*} [options] Override http request option.
2984
+ * @throws {RequiredError}
2985
+ */
2986
+ suggestedRepliesList(conversationId, options) {
2987
+ return localVarFp.suggestedRepliesList(conversationId, options).then((request) => request(axios, basePath));
2988
+ }
2989
+ };
2990
+ };
2991
+ var SuggestedRepliesApi = class extends BaseAPI {
2992
+ /**
2993
+ * SuggestedReplies Create
2994
+ * @summary SuggestedReplies Create
2995
+ * @param {object} body
2996
+ * @param {*} [options] Override http request option.
2997
+ * @throws {RequiredError}
2998
+ * @memberof SuggestedRepliesApi
2999
+ */
3000
+ suggestedRepliesCreate(body, options) {
3001
+ return SuggestedRepliesApiFp(this.configuration).suggestedRepliesCreate(body, options).then((request) => request(this.axios, this.basePath));
3002
+ }
3003
+ /**
3004
+ * List all suggested replies, optionally filtered by conversation_id
3005
+ * @summary SuggestedReplies List
3006
+ * @param {string | null} [conversationId] Filter by conversation ID
3007
+ * @param {*} [options] Override http request option.
3008
+ * @throws {RequiredError}
3009
+ * @memberof SuggestedRepliesApi
3010
+ */
3011
+ suggestedRepliesList(conversationId, options) {
3012
+ return SuggestedRepliesApiFp(this.configuration).suggestedRepliesList(conversationId, options).then((request) => request(this.axios, this.basePath));
3013
+ }
3014
+ };
2872
3015
  var UnboundApiAxiosParamCreator = function(configuration) {
2873
3016
  return {
2874
3017
  /**
@@ -3987,6 +4130,62 @@ var UnboundApiAxiosParamCreator = function(configuration) {
3987
4130
  options: localVarRequestOptions
3988
4131
  };
3989
4132
  },
4133
+ /**
4134
+ * SuggestedReplies Create
4135
+ * @summary SuggestedReplies Create
4136
+ * @param {object} body
4137
+ * @param {*} [options] Override http request option.
4138
+ * @throws {RequiredError}
4139
+ */
4140
+ suggestedRepliesCreate: async (body, options = {}) => {
4141
+ assertParamExists("suggestedRepliesCreate", "body", body);
4142
+ const localVarPath = `/suggestedReplies`;
4143
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4144
+ let baseOptions;
4145
+ if (configuration) {
4146
+ baseOptions = configuration.baseOptions;
4147
+ }
4148
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
4149
+ const localVarHeaderParameter = {};
4150
+ const localVarQueryParameter = {};
4151
+ localVarHeaderParameter["Content-Type"] = "application/json";
4152
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4153
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4154
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4155
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
4156
+ return {
4157
+ url: toPathString(localVarUrlObj),
4158
+ options: localVarRequestOptions
4159
+ };
4160
+ },
4161
+ /**
4162
+ * List all suggested replies, optionally filtered by conversation_id
4163
+ * @summary SuggestedReplies List
4164
+ * @param {string | null} [conversationId] Filter by conversation ID
4165
+ * @param {*} [options] Override http request option.
4166
+ * @throws {RequiredError}
4167
+ */
4168
+ suggestedRepliesList: async (conversationId, options = {}) => {
4169
+ const localVarPath = `/suggestedReplies`;
4170
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4171
+ let baseOptions;
4172
+ if (configuration) {
4173
+ baseOptions = configuration.baseOptions;
4174
+ }
4175
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
4176
+ const localVarHeaderParameter = {};
4177
+ const localVarQueryParameter = {};
4178
+ if (conversationId !== void 0) {
4179
+ localVarQueryParameter["conversationId"] = conversationId;
4180
+ }
4181
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4182
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4183
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4184
+ return {
4185
+ url: toPathString(localVarUrlObj),
4186
+ options: localVarRequestOptions
4187
+ };
4188
+ },
3990
4189
  /**
3991
4190
  *
3992
4191
  * @summary Unifiedwebhook
@@ -4530,6 +4729,32 @@ var UnboundApiFp = function(configuration) {
4530
4729
  const localVarOperationServerBasePath = operationServerMap["UnboundApi.reservationsList"]?.[localVarOperationServerIndex]?.url;
4531
4730
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4532
4731
  },
4732
+ /**
4733
+ * SuggestedReplies Create
4734
+ * @summary SuggestedReplies Create
4735
+ * @param {object} body
4736
+ * @param {*} [options] Override http request option.
4737
+ * @throws {RequiredError}
4738
+ */
4739
+ async suggestedRepliesCreate(body, options) {
4740
+ const localVarAxiosArgs = await localVarAxiosParamCreator.suggestedRepliesCreate(body, options);
4741
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4742
+ const localVarOperationServerBasePath = operationServerMap["UnboundApi.suggestedRepliesCreate"]?.[localVarOperationServerIndex]?.url;
4743
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4744
+ },
4745
+ /**
4746
+ * List all suggested replies, optionally filtered by conversation_id
4747
+ * @summary SuggestedReplies List
4748
+ * @param {string | null} [conversationId] Filter by conversation ID
4749
+ * @param {*} [options] Override http request option.
4750
+ * @throws {RequiredError}
4751
+ */
4752
+ async suggestedRepliesList(conversationId, options) {
4753
+ const localVarAxiosArgs = await localVarAxiosParamCreator.suggestedRepliesList(conversationId, options);
4754
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4755
+ const localVarOperationServerBasePath = operationServerMap["UnboundApi.suggestedRepliesList"]?.[localVarOperationServerIndex]?.url;
4756
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4757
+ },
4533
4758
  /**
4534
4759
  *
4535
4760
  * @summary Unifiedwebhook
@@ -4949,6 +5174,26 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
4949
5174
  reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
4950
5175
  return localVarFp.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
4951
5176
  },
5177
+ /**
5178
+ * SuggestedReplies Create
5179
+ * @summary SuggestedReplies Create
5180
+ * @param {object} body
5181
+ * @param {*} [options] Override http request option.
5182
+ * @throws {RequiredError}
5183
+ */
5184
+ suggestedRepliesCreate(body, options) {
5185
+ return localVarFp.suggestedRepliesCreate(body, options).then((request) => request(axios, basePath));
5186
+ },
5187
+ /**
5188
+ * List all suggested replies, optionally filtered by conversation_id
5189
+ * @summary SuggestedReplies List
5190
+ * @param {string | null} [conversationId] Filter by conversation ID
5191
+ * @param {*} [options] Override http request option.
5192
+ * @throws {RequiredError}
5193
+ */
5194
+ suggestedRepliesList(conversationId, options) {
5195
+ return localVarFp.suggestedRepliesList(conversationId, options).then((request) => request(axios, basePath));
5196
+ },
4952
5197
  /**
4953
5198
  *
4954
5199
  * @summary Unifiedwebhook
@@ -5399,6 +5644,28 @@ var UnboundApi = class extends BaseAPI {
5399
5644
  reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
5400
5645
  return UnboundApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
5401
5646
  }
5647
+ /**
5648
+ * SuggestedReplies Create
5649
+ * @summary SuggestedReplies Create
5650
+ * @param {object} body
5651
+ * @param {*} [options] Override http request option.
5652
+ * @throws {RequiredError}
5653
+ * @memberof UnboundApi
5654
+ */
5655
+ suggestedRepliesCreate(body, options) {
5656
+ return UnboundApiFp(this.configuration).suggestedRepliesCreate(body, options).then((request) => request(this.axios, this.basePath));
5657
+ }
5658
+ /**
5659
+ * List all suggested replies, optionally filtered by conversation_id
5660
+ * @summary SuggestedReplies List
5661
+ * @param {string | null} [conversationId] Filter by conversation ID
5662
+ * @param {*} [options] Override http request option.
5663
+ * @throws {RequiredError}
5664
+ * @memberof UnboundApi
5665
+ */
5666
+ suggestedRepliesList(conversationId, options) {
5667
+ return UnboundApiFp(this.configuration).suggestedRepliesList(conversationId, options).then((request) => request(this.axios, this.basePath));
5668
+ }
5402
5669
  /**
5403
5670
  *
5404
5671
  * @summary Unifiedwebhook
@@ -5517,6 +5784,7 @@ export {
5517
5784
  ConversationsApiAxiosParamCreator,
5518
5785
  ConversationsApiFactory,
5519
5786
  ConversationsApiFp,
5787
+ EmailConversationDataApiConversationTypeEnum,
5520
5788
  ExternalStaffApiStaffTypeEnum,
5521
5789
  GuestApiParticipantTypeEnum,
5522
5790
  HostawayApi,
@@ -5563,6 +5831,10 @@ export {
5563
5831
  SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy,
5564
5832
  SrcResourceModelsReservationsModelReservationBaseModelSortBy,
5565
5833
  StaffApiParticipantTypeEnum,
5834
+ SuggestedRepliesApi,
5835
+ SuggestedRepliesApiAxiosParamCreator,
5836
+ SuggestedRepliesApiFactory,
5837
+ SuggestedRepliesApiFp,
5566
5838
  TwilioConversationDataApiConversationTypeEnum,
5567
5839
  TwilioInboundSenderTypeDataApiDirectionEnum,
5568
5840
  TwilioOutboundSenderTypeDataApiDirectionEnum,