@infisale-client/api 1.3.60 → 1.3.65

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/api/api.mjs CHANGED
@@ -14,6 +14,35 @@
14
14
  import globalAxios from 'axios';
15
15
  import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from "./common.mjs";
16
16
  import { BASE_PATH, BaseAPI, operationServerMap } from "./base.mjs";
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ export const AiChatPurposeEnum = {
23
+ CONTENT_PLAN_PLANNING: 'content-plan-planning'
24
+ };
25
+ /**
26
+ *
27
+ * @export
28
+ * @enum {string}
29
+ */
30
+ export const AiChatRoleEnum = {
31
+ SYSTEM: 'system',
32
+ USER: 'user',
33
+ ASSISTANT: 'assistant'
34
+ };
35
+ /**
36
+ *
37
+ * @export
38
+ * @enum {string}
39
+ */
40
+ export const AiChatStatusEnum = {
41
+ OPEN: 'open',
42
+ FINALIZED: 'finalized',
43
+ ARCHIVED: 'archived',
44
+ FAILED: 'failed'
45
+ };
17
46
  /**
18
47
  *
19
48
  * @export
@@ -45,6 +74,21 @@ export const CompanyUserStatusEnum = {
45
74
  UNEMPLOYED: 'unemployed',
46
75
  DELETED: 'deleted'
47
76
  };
77
+ /**
78
+ *
79
+ * @export
80
+ * @enum {string}
81
+ */
82
+ export const ContentPlanStatusEnum = {
83
+ PENDING: 'pending',
84
+ GENERATING: 'generating',
85
+ SEO_ANALYZING: 'seo_analyzing',
86
+ REFINING: 'refining',
87
+ PACKAGING: 'packaging',
88
+ TRANSLATING: 'translating',
89
+ COMPLETED: 'completed',
90
+ FAILED: 'failed'
91
+ };
48
92
  /**
49
93
  *
50
94
  * @export
@@ -364,6 +408,10 @@ export const FileTypeEnum = {
364
408
  DOCUMENT: 'document',
365
409
  OTHER: 'other'
366
410
  };
411
+ export const IAiChatCollectionQueryParamsDateFieldEnum = {
412
+ CREATED_AT: 'createdAt',
413
+ UPDATED_AT: 'updatedAt'
414
+ };
367
415
  export const IBrandCollectionQueryParamsDateFieldEnum = {
368
416
  CREATED_AT: 'createdAt',
369
417
  UPDATED_AT: 'updatedAt'
@@ -394,6 +442,17 @@ export const IContactFormCollectionQueryParamsDateFieldEnum = {
394
442
  CREATED_AT: 'createdAt',
395
443
  UPDATED_AT: 'updatedAt'
396
444
  };
445
+ export const IContentPlanAttemptStepEnum = {
446
+ GENERATOR: 'generator',
447
+ CRITIC: 'critic',
448
+ REFINER: 'refiner',
449
+ PACKAGER: 'packager',
450
+ TRANSLATOR: 'translator'
451
+ };
452
+ export const IContentPlanCollectionQueryParamsDateFieldEnum = {
453
+ CREATED_AT: 'createdAt',
454
+ UPDATED_AT: 'updatedAt'
455
+ };
397
456
  export const IFileCollectionQueryParamsDateFieldEnum = {
398
457
  CREATED_AT: 'createdAt',
399
458
  UPDATED_AT: 'updatedAt'
@@ -935,6 +994,468 @@ export class AddressApi extends BaseAPI {
935
994
  return AddressApiFp(this.configuration).getCountryStatesBySlug(requestParameters.slug, options).then((request) => request(this.axios, this.basePath));
936
995
  }
937
996
  }
997
+ /**
998
+ * AiChatApi - axios parameter creator
999
+ * @export
1000
+ */
1001
+ export const AiChatApiAxiosParamCreator = function (configuration) {
1002
+ return {
1003
+ /**
1004
+ *
1005
+ * @param {IAiChatPostRequest} iAiChatPostRequest
1006
+ * @param {*} [options] Override http request option.
1007
+ * @throws {RequiredError}
1008
+ */
1009
+ createAiChat: async (iAiChatPostRequest, options = {}) => {
1010
+ // verify required parameter 'iAiChatPostRequest' is not null or undefined
1011
+ assertParamExists('createAiChat', 'iAiChatPostRequest', iAiChatPostRequest);
1012
+ const localVarPath = `/api/ai-chats`;
1013
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1014
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1015
+ let baseOptions;
1016
+ if (configuration) {
1017
+ baseOptions = configuration.baseOptions;
1018
+ }
1019
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1020
+ const localVarHeaderParameter = {};
1021
+ const localVarQueryParameter = {};
1022
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1023
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1024
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1025
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1026
+ localVarRequestOptions.data = serializeDataIfNeeded(iAiChatPostRequest, localVarRequestOptions, configuration);
1027
+ return {
1028
+ url: toPathString(localVarUrlObj),
1029
+ options: localVarRequestOptions,
1030
+ };
1031
+ },
1032
+ /**
1033
+ *
1034
+ * @param {string} id
1035
+ * @param {*} [options] Override http request option.
1036
+ * @throws {RequiredError}
1037
+ */
1038
+ deleteAiChat: async (id, options = {}) => {
1039
+ // verify required parameter 'id' is not null or undefined
1040
+ assertParamExists('deleteAiChat', 'id', id);
1041
+ const localVarPath = `/api/ai-chats/{id}`
1042
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1043
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1044
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1045
+ let baseOptions;
1046
+ if (configuration) {
1047
+ baseOptions = configuration.baseOptions;
1048
+ }
1049
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
1050
+ const localVarHeaderParameter = {};
1051
+ const localVarQueryParameter = {};
1052
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1053
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1054
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1055
+ return {
1056
+ url: toPathString(localVarUrlObj),
1057
+ options: localVarRequestOptions,
1058
+ };
1059
+ },
1060
+ /**
1061
+ *
1062
+ * @param {string} id
1063
+ * @param {IAiChatFinalizeRequest} iAiChatFinalizeRequest
1064
+ * @param {*} [options] Override http request option.
1065
+ * @throws {RequiredError}
1066
+ */
1067
+ finalizeAiChat: async (id, iAiChatFinalizeRequest, options = {}) => {
1068
+ // verify required parameter 'id' is not null or undefined
1069
+ assertParamExists('finalizeAiChat', 'id', id);
1070
+ // verify required parameter 'iAiChatFinalizeRequest' is not null or undefined
1071
+ assertParamExists('finalizeAiChat', 'iAiChatFinalizeRequest', iAiChatFinalizeRequest);
1072
+ const localVarPath = `/api/ai-chats/{id}/finalize`
1073
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1074
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1075
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1076
+ let baseOptions;
1077
+ if (configuration) {
1078
+ baseOptions = configuration.baseOptions;
1079
+ }
1080
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1081
+ const localVarHeaderParameter = {};
1082
+ const localVarQueryParameter = {};
1083
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1084
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1085
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1086
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1087
+ localVarRequestOptions.data = serializeDataIfNeeded(iAiChatFinalizeRequest, localVarRequestOptions, configuration);
1088
+ return {
1089
+ url: toPathString(localVarUrlObj),
1090
+ options: localVarRequestOptions,
1091
+ };
1092
+ },
1093
+ /**
1094
+ *
1095
+ * @param {string} id
1096
+ * @param {*} [options] Override http request option.
1097
+ * @throws {RequiredError}
1098
+ */
1099
+ getAiChatById: async (id, options = {}) => {
1100
+ // verify required parameter 'id' is not null or undefined
1101
+ assertParamExists('getAiChatById', 'id', id);
1102
+ const localVarPath = `/api/ai-chats/{id}`
1103
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1104
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1105
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1106
+ let baseOptions;
1107
+ if (configuration) {
1108
+ baseOptions = configuration.baseOptions;
1109
+ }
1110
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1111
+ const localVarHeaderParameter = {};
1112
+ const localVarQueryParameter = {};
1113
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1114
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1115
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1116
+ return {
1117
+ url: toPathString(localVarUrlObj),
1118
+ options: localVarRequestOptions,
1119
+ };
1120
+ },
1121
+ /**
1122
+ *
1123
+ * @param {number} [page]
1124
+ * @param {number} [itemsPerPage]
1125
+ * @param {string} [search]
1126
+ * @param {string} [startDate]
1127
+ * @param {string} [endDate]
1128
+ * @param {GetAiChatsDateFieldEnum} [dateField]
1129
+ * @param {OrderEnum} [order]
1130
+ * @param {string} [sort]
1131
+ * @param {string} [companyId]
1132
+ * @param {AiChatPurposeEnum} [purpose]
1133
+ * @param {AiChatStatusEnum} [status]
1134
+ * @param {*} [options] Override http request option.
1135
+ * @throws {RequiredError}
1136
+ */
1137
+ getAiChats: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, purpose, status, options = {}) => {
1138
+ const localVarPath = `/api/ai-chats`;
1139
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1140
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1141
+ let baseOptions;
1142
+ if (configuration) {
1143
+ baseOptions = configuration.baseOptions;
1144
+ }
1145
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1146
+ const localVarHeaderParameter = {};
1147
+ const localVarQueryParameter = {};
1148
+ if (page !== undefined) {
1149
+ localVarQueryParameter['page'] = page;
1150
+ }
1151
+ if (itemsPerPage !== undefined) {
1152
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
1153
+ }
1154
+ if (search !== undefined) {
1155
+ localVarQueryParameter['search'] = search;
1156
+ }
1157
+ if (startDate !== undefined) {
1158
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
1159
+ startDate.toISOString() :
1160
+ startDate;
1161
+ }
1162
+ if (endDate !== undefined) {
1163
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
1164
+ endDate.toISOString() :
1165
+ endDate;
1166
+ }
1167
+ if (dateField !== undefined) {
1168
+ localVarQueryParameter['dateField'] = dateField;
1169
+ }
1170
+ if (order !== undefined) {
1171
+ localVarQueryParameter['order'] = order;
1172
+ }
1173
+ if (sort !== undefined) {
1174
+ localVarQueryParameter['sort'] = sort;
1175
+ }
1176
+ if (companyId !== undefined) {
1177
+ localVarQueryParameter['companyId'] = companyId;
1178
+ }
1179
+ if (purpose !== undefined) {
1180
+ localVarQueryParameter['purpose'] = purpose;
1181
+ }
1182
+ if (status !== undefined) {
1183
+ localVarQueryParameter['status'] = status;
1184
+ }
1185
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1186
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1187
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1188
+ return {
1189
+ url: toPathString(localVarUrlObj),
1190
+ options: localVarRequestOptions,
1191
+ };
1192
+ },
1193
+ /**
1194
+ *
1195
+ * @param {string} id
1196
+ * @param {IAiChatMessagePostRequest} iAiChatMessagePostRequest
1197
+ * @param {*} [options] Override http request option.
1198
+ * @throws {RequiredError}
1199
+ */
1200
+ sendAiChatMessage: async (id, iAiChatMessagePostRequest, options = {}) => {
1201
+ // verify required parameter 'id' is not null or undefined
1202
+ assertParamExists('sendAiChatMessage', 'id', id);
1203
+ // verify required parameter 'iAiChatMessagePostRequest' is not null or undefined
1204
+ assertParamExists('sendAiChatMessage', 'iAiChatMessagePostRequest', iAiChatMessagePostRequest);
1205
+ const localVarPath = `/api/ai-chats/{id}/messages`
1206
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1207
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1208
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1209
+ let baseOptions;
1210
+ if (configuration) {
1211
+ baseOptions = configuration.baseOptions;
1212
+ }
1213
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1214
+ const localVarHeaderParameter = {};
1215
+ const localVarQueryParameter = {};
1216
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1217
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1218
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1219
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1220
+ localVarRequestOptions.data = serializeDataIfNeeded(iAiChatMessagePostRequest, localVarRequestOptions, configuration);
1221
+ return {
1222
+ url: toPathString(localVarUrlObj),
1223
+ options: localVarRequestOptions,
1224
+ };
1225
+ },
1226
+ };
1227
+ };
1228
+ /**
1229
+ * AiChatApi - functional programming interface
1230
+ * @export
1231
+ */
1232
+ export const AiChatApiFp = function (configuration) {
1233
+ const localVarAxiosParamCreator = AiChatApiAxiosParamCreator(configuration);
1234
+ return {
1235
+ /**
1236
+ *
1237
+ * @param {IAiChatPostRequest} iAiChatPostRequest
1238
+ * @param {*} [options] Override http request option.
1239
+ * @throws {RequiredError}
1240
+ */
1241
+ async createAiChat(iAiChatPostRequest, options) {
1242
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAiChat(iAiChatPostRequest, options);
1243
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1244
+ const localVarOperationServerBasePath = operationServerMap['AiChatApi.createAiChat']?.[localVarOperationServerIndex]?.url;
1245
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1246
+ },
1247
+ /**
1248
+ *
1249
+ * @param {string} id
1250
+ * @param {*} [options] Override http request option.
1251
+ * @throws {RequiredError}
1252
+ */
1253
+ async deleteAiChat(id, options) {
1254
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAiChat(id, options);
1255
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1256
+ const localVarOperationServerBasePath = operationServerMap['AiChatApi.deleteAiChat']?.[localVarOperationServerIndex]?.url;
1257
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1258
+ },
1259
+ /**
1260
+ *
1261
+ * @param {string} id
1262
+ * @param {IAiChatFinalizeRequest} iAiChatFinalizeRequest
1263
+ * @param {*} [options] Override http request option.
1264
+ * @throws {RequiredError}
1265
+ */
1266
+ async finalizeAiChat(id, iAiChatFinalizeRequest, options) {
1267
+ const localVarAxiosArgs = await localVarAxiosParamCreator.finalizeAiChat(id, iAiChatFinalizeRequest, options);
1268
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1269
+ const localVarOperationServerBasePath = operationServerMap['AiChatApi.finalizeAiChat']?.[localVarOperationServerIndex]?.url;
1270
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1271
+ },
1272
+ /**
1273
+ *
1274
+ * @param {string} id
1275
+ * @param {*} [options] Override http request option.
1276
+ * @throws {RequiredError}
1277
+ */
1278
+ async getAiChatById(id, options) {
1279
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAiChatById(id, options);
1280
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1281
+ const localVarOperationServerBasePath = operationServerMap['AiChatApi.getAiChatById']?.[localVarOperationServerIndex]?.url;
1282
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1283
+ },
1284
+ /**
1285
+ *
1286
+ * @param {number} [page]
1287
+ * @param {number} [itemsPerPage]
1288
+ * @param {string} [search]
1289
+ * @param {string} [startDate]
1290
+ * @param {string} [endDate]
1291
+ * @param {GetAiChatsDateFieldEnum} [dateField]
1292
+ * @param {OrderEnum} [order]
1293
+ * @param {string} [sort]
1294
+ * @param {string} [companyId]
1295
+ * @param {AiChatPurposeEnum} [purpose]
1296
+ * @param {AiChatStatusEnum} [status]
1297
+ * @param {*} [options] Override http request option.
1298
+ * @throws {RequiredError}
1299
+ */
1300
+ async getAiChats(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, purpose, status, options) {
1301
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAiChats(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, purpose, status, options);
1302
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1303
+ const localVarOperationServerBasePath = operationServerMap['AiChatApi.getAiChats']?.[localVarOperationServerIndex]?.url;
1304
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1305
+ },
1306
+ /**
1307
+ *
1308
+ * @param {string} id
1309
+ * @param {IAiChatMessagePostRequest} iAiChatMessagePostRequest
1310
+ * @param {*} [options] Override http request option.
1311
+ * @throws {RequiredError}
1312
+ */
1313
+ async sendAiChatMessage(id, iAiChatMessagePostRequest, options) {
1314
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendAiChatMessage(id, iAiChatMessagePostRequest, options);
1315
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1316
+ const localVarOperationServerBasePath = operationServerMap['AiChatApi.sendAiChatMessage']?.[localVarOperationServerIndex]?.url;
1317
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1318
+ },
1319
+ };
1320
+ };
1321
+ /**
1322
+ * AiChatApi - factory interface
1323
+ * @export
1324
+ */
1325
+ export const AiChatApiFactory = function (configuration, basePath, axios) {
1326
+ const localVarFp = AiChatApiFp(configuration);
1327
+ return {
1328
+ /**
1329
+ *
1330
+ * @param {AiChatApiCreateAiChatRequest} requestParameters Request parameters.
1331
+ * @param {*} [options] Override http request option.
1332
+ * @throws {RequiredError}
1333
+ */
1334
+ createAiChat(requestParameters, options) {
1335
+ return localVarFp.createAiChat(requestParameters.iAiChatPostRequest, options).then((request) => request(axios, basePath));
1336
+ },
1337
+ /**
1338
+ *
1339
+ * @param {AiChatApiDeleteAiChatRequest} requestParameters Request parameters.
1340
+ * @param {*} [options] Override http request option.
1341
+ * @throws {RequiredError}
1342
+ */
1343
+ deleteAiChat(requestParameters, options) {
1344
+ return localVarFp.deleteAiChat(requestParameters.id, options).then((request) => request(axios, basePath));
1345
+ },
1346
+ /**
1347
+ *
1348
+ * @param {AiChatApiFinalizeAiChatRequest} requestParameters Request parameters.
1349
+ * @param {*} [options] Override http request option.
1350
+ * @throws {RequiredError}
1351
+ */
1352
+ finalizeAiChat(requestParameters, options) {
1353
+ return localVarFp.finalizeAiChat(requestParameters.id, requestParameters.iAiChatFinalizeRequest, options).then((request) => request(axios, basePath));
1354
+ },
1355
+ /**
1356
+ *
1357
+ * @param {AiChatApiGetAiChatByIdRequest} requestParameters Request parameters.
1358
+ * @param {*} [options] Override http request option.
1359
+ * @throws {RequiredError}
1360
+ */
1361
+ getAiChatById(requestParameters, options) {
1362
+ return localVarFp.getAiChatById(requestParameters.id, options).then((request) => request(axios, basePath));
1363
+ },
1364
+ /**
1365
+ *
1366
+ * @param {AiChatApiGetAiChatsRequest} requestParameters Request parameters.
1367
+ * @param {*} [options] Override http request option.
1368
+ * @throws {RequiredError}
1369
+ */
1370
+ getAiChats(requestParameters = {}, options) {
1371
+ return localVarFp.getAiChats(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.purpose, requestParameters.status, options).then((request) => request(axios, basePath));
1372
+ },
1373
+ /**
1374
+ *
1375
+ * @param {AiChatApiSendAiChatMessageRequest} requestParameters Request parameters.
1376
+ * @param {*} [options] Override http request option.
1377
+ * @throws {RequiredError}
1378
+ */
1379
+ sendAiChatMessage(requestParameters, options) {
1380
+ return localVarFp.sendAiChatMessage(requestParameters.id, requestParameters.iAiChatMessagePostRequest, options).then((request) => request(axios, basePath));
1381
+ },
1382
+ };
1383
+ };
1384
+ /**
1385
+ * AiChatApi - object-oriented interface
1386
+ * @export
1387
+ * @class AiChatApi
1388
+ * @extends {BaseAPI}
1389
+ */
1390
+ export class AiChatApi extends BaseAPI {
1391
+ /**
1392
+ *
1393
+ * @param {AiChatApiCreateAiChatRequest} requestParameters Request parameters.
1394
+ * @param {*} [options] Override http request option.
1395
+ * @throws {RequiredError}
1396
+ * @memberof AiChatApi
1397
+ */
1398
+ createAiChat(requestParameters, options) {
1399
+ return AiChatApiFp(this.configuration).createAiChat(requestParameters.iAiChatPostRequest, options).then((request) => request(this.axios, this.basePath));
1400
+ }
1401
+ /**
1402
+ *
1403
+ * @param {AiChatApiDeleteAiChatRequest} requestParameters Request parameters.
1404
+ * @param {*} [options] Override http request option.
1405
+ * @throws {RequiredError}
1406
+ * @memberof AiChatApi
1407
+ */
1408
+ deleteAiChat(requestParameters, options) {
1409
+ return AiChatApiFp(this.configuration).deleteAiChat(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1410
+ }
1411
+ /**
1412
+ *
1413
+ * @param {AiChatApiFinalizeAiChatRequest} requestParameters Request parameters.
1414
+ * @param {*} [options] Override http request option.
1415
+ * @throws {RequiredError}
1416
+ * @memberof AiChatApi
1417
+ */
1418
+ finalizeAiChat(requestParameters, options) {
1419
+ return AiChatApiFp(this.configuration).finalizeAiChat(requestParameters.id, requestParameters.iAiChatFinalizeRequest, options).then((request) => request(this.axios, this.basePath));
1420
+ }
1421
+ /**
1422
+ *
1423
+ * @param {AiChatApiGetAiChatByIdRequest} requestParameters Request parameters.
1424
+ * @param {*} [options] Override http request option.
1425
+ * @throws {RequiredError}
1426
+ * @memberof AiChatApi
1427
+ */
1428
+ getAiChatById(requestParameters, options) {
1429
+ return AiChatApiFp(this.configuration).getAiChatById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1430
+ }
1431
+ /**
1432
+ *
1433
+ * @param {AiChatApiGetAiChatsRequest} requestParameters Request parameters.
1434
+ * @param {*} [options] Override http request option.
1435
+ * @throws {RequiredError}
1436
+ * @memberof AiChatApi
1437
+ */
1438
+ getAiChats(requestParameters = {}, options) {
1439
+ return AiChatApiFp(this.configuration).getAiChats(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.purpose, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
1440
+ }
1441
+ /**
1442
+ *
1443
+ * @param {AiChatApiSendAiChatMessageRequest} requestParameters Request parameters.
1444
+ * @param {*} [options] Override http request option.
1445
+ * @throws {RequiredError}
1446
+ * @memberof AiChatApi
1447
+ */
1448
+ sendAiChatMessage(requestParameters, options) {
1449
+ return AiChatApiFp(this.configuration).sendAiChatMessage(requestParameters.id, requestParameters.iAiChatMessagePostRequest, options).then((request) => request(this.axios, this.basePath));
1450
+ }
1451
+ }
1452
+ /**
1453
+ * @export
1454
+ */
1455
+ export const GetAiChatsDateFieldEnum = {
1456
+ CREATED_AT: 'createdAt',
1457
+ UPDATED_AT: 'updatedAt'
1458
+ };
938
1459
  /**
939
1460
  * AuthApi - axios parameter creator
940
1461
  * @export
@@ -6398,75 +6919,399 @@ export class CompanyApi extends BaseAPI {
6398
6919
  }
6399
6920
  /**
6400
6921
  *
6401
- * @param {CompanyApiUpdateCompanyShippingProvidersRequest} requestParameters Request parameters.
6922
+ * @param {CompanyApiUpdateCompanyShippingProvidersRequest} requestParameters Request parameters.
6923
+ * @param {*} [options] Override http request option.
6924
+ * @throws {RequiredError}
6925
+ * @memberof CompanyApi
6926
+ */
6927
+ updateCompanyShippingProviders(requestParameters, options) {
6928
+ return CompanyApiFp(this.configuration).updateCompanyShippingProviders(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdateShippingProvidersRequest, options).then((request) => request(this.axios, this.basePath));
6929
+ }
6930
+ /**
6931
+ *
6932
+ * @param {CompanyApiUpdateCompanyWarehousesRequest} requestParameters Request parameters.
6933
+ * @param {*} [options] Override http request option.
6934
+ * @throws {RequiredError}
6935
+ * @memberof CompanyApi
6936
+ */
6937
+ updateCompanyWarehouses(requestParameters, options) {
6938
+ return CompanyApiFp(this.configuration).updateCompanyWarehouses(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdateWarehousesRequest, options).then((request) => request(this.axios, this.basePath));
6939
+ }
6940
+ /**
6941
+ *
6942
+ * @param {CompanyApiUpdatePrimaryDomainRequest} requestParameters Request parameters.
6943
+ * @param {*} [options] Override http request option.
6944
+ * @throws {RequiredError}
6945
+ * @memberof CompanyApi
6946
+ */
6947
+ updatePrimaryDomain(requestParameters, options) {
6948
+ return CompanyApiFp(this.configuration).updatePrimaryDomain(requestParameters.id, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
6949
+ }
6950
+ /**
6951
+ *
6952
+ * @param {CompanyApiUpdateUserInCompanyRequest} requestParameters Request parameters.
6953
+ * @param {*} [options] Override http request option.
6954
+ * @throws {RequiredError}
6955
+ * @memberof CompanyApi
6956
+ */
6957
+ updateUserInCompany(requestParameters, options) {
6958
+ return CompanyApiFp(this.configuration).updateUserInCompany(requestParameters.id, requestParameters.userId, requestParameters.iCompanyUpdateUserRequest, options).then((request) => request(this.axios, this.basePath));
6959
+ }
6960
+ }
6961
+ /**
6962
+ * @export
6963
+ */
6964
+ export const GetCompaniesDateFieldEnum = {
6965
+ CREATED_AT: 'createdAt',
6966
+ UPDATED_AT: 'updatedAt'
6967
+ };
6968
+ /**
6969
+ * @export
6970
+ */
6971
+ export const GetCompanyCustomersDateFieldEnum = {
6972
+ CREATED_AT: 'createdAt',
6973
+ UPDATED_AT: 'updatedAt'
6974
+ };
6975
+ /**
6976
+ * ContactFormApi - axios parameter creator
6977
+ * @export
6978
+ */
6979
+ export const ContactFormApiAxiosParamCreator = function (configuration) {
6980
+ return {
6981
+ /**
6982
+ *
6983
+ * @param {IContactFormPostRequest} iContactFormPostRequest
6984
+ * @param {*} [options] Override http request option.
6985
+ * @throws {RequiredError}
6986
+ */
6987
+ createContactForm: async (iContactFormPostRequest, options = {}) => {
6988
+ // verify required parameter 'iContactFormPostRequest' is not null or undefined
6989
+ assertParamExists('createContactForm', 'iContactFormPostRequest', iContactFormPostRequest);
6990
+ const localVarPath = `/api/contact-forms`;
6991
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6992
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6993
+ let baseOptions;
6994
+ if (configuration) {
6995
+ baseOptions = configuration.baseOptions;
6996
+ }
6997
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6998
+ const localVarHeaderParameter = {};
6999
+ const localVarQueryParameter = {};
7000
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7001
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7002
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7003
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7004
+ localVarRequestOptions.data = serializeDataIfNeeded(iContactFormPostRequest, localVarRequestOptions, configuration);
7005
+ return {
7006
+ url: toPathString(localVarUrlObj),
7007
+ options: localVarRequestOptions,
7008
+ };
7009
+ },
7010
+ /**
7011
+ *
7012
+ * @param {string} id
7013
+ * @param {*} [options] Override http request option.
7014
+ * @throws {RequiredError}
7015
+ */
7016
+ deleteContactForm: async (id, options = {}) => {
7017
+ // verify required parameter 'id' is not null or undefined
7018
+ assertParamExists('deleteContactForm', 'id', id);
7019
+ const localVarPath = `/api/contact-forms/{id}`
7020
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7021
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7022
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7023
+ let baseOptions;
7024
+ if (configuration) {
7025
+ baseOptions = configuration.baseOptions;
7026
+ }
7027
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
7028
+ const localVarHeaderParameter = {};
7029
+ const localVarQueryParameter = {};
7030
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7031
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7032
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7033
+ return {
7034
+ url: toPathString(localVarUrlObj),
7035
+ options: localVarRequestOptions,
7036
+ };
7037
+ },
7038
+ /**
7039
+ *
7040
+ * @param {string} id
7041
+ * @param {*} [options] Override http request option.
7042
+ * @throws {RequiredError}
7043
+ */
7044
+ getContactFormById: async (id, options = {}) => {
7045
+ // verify required parameter 'id' is not null or undefined
7046
+ assertParamExists('getContactFormById', 'id', id);
7047
+ const localVarPath = `/api/contact-forms/{id}`
7048
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7049
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7050
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7051
+ let baseOptions;
7052
+ if (configuration) {
7053
+ baseOptions = configuration.baseOptions;
7054
+ }
7055
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
7056
+ const localVarHeaderParameter = {};
7057
+ const localVarQueryParameter = {};
7058
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7059
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7060
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7061
+ return {
7062
+ url: toPathString(localVarUrlObj),
7063
+ options: localVarRequestOptions,
7064
+ };
7065
+ },
7066
+ /**
7067
+ *
7068
+ * @param {string} companyId
7069
+ * @param {number} [page]
7070
+ * @param {number} [itemsPerPage]
7071
+ * @param {string} [search]
7072
+ * @param {string} [startDate]
7073
+ * @param {string} [endDate]
7074
+ * @param {GetContactFormsDateFieldEnum} [dateField]
7075
+ * @param {OrderEnum} [order]
7076
+ * @param {string} [sort]
7077
+ * @param {*} [options] Override http request option.
7078
+ * @throws {RequiredError}
7079
+ */
7080
+ getContactForms: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options = {}) => {
7081
+ // verify required parameter 'companyId' is not null or undefined
7082
+ assertParamExists('getContactForms', 'companyId', companyId);
7083
+ const localVarPath = `/api/contact-forms`;
7084
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7085
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7086
+ let baseOptions;
7087
+ if (configuration) {
7088
+ baseOptions = configuration.baseOptions;
7089
+ }
7090
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
7091
+ const localVarHeaderParameter = {};
7092
+ const localVarQueryParameter = {};
7093
+ if (page !== undefined) {
7094
+ localVarQueryParameter['page'] = page;
7095
+ }
7096
+ if (itemsPerPage !== undefined) {
7097
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
7098
+ }
7099
+ if (search !== undefined) {
7100
+ localVarQueryParameter['search'] = search;
7101
+ }
7102
+ if (startDate !== undefined) {
7103
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
7104
+ startDate.toISOString() :
7105
+ startDate;
7106
+ }
7107
+ if (endDate !== undefined) {
7108
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
7109
+ endDate.toISOString() :
7110
+ endDate;
7111
+ }
7112
+ if (dateField !== undefined) {
7113
+ localVarQueryParameter['dateField'] = dateField;
7114
+ }
7115
+ if (order !== undefined) {
7116
+ localVarQueryParameter['order'] = order;
7117
+ }
7118
+ if (sort !== undefined) {
7119
+ localVarQueryParameter['sort'] = sort;
7120
+ }
7121
+ if (companyId !== undefined) {
7122
+ localVarQueryParameter['companyId'] = companyId;
7123
+ }
7124
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7125
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7126
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7127
+ return {
7128
+ url: toPathString(localVarUrlObj),
7129
+ options: localVarRequestOptions,
7130
+ };
7131
+ },
7132
+ };
7133
+ };
7134
+ /**
7135
+ * ContactFormApi - functional programming interface
7136
+ * @export
7137
+ */
7138
+ export const ContactFormApiFp = function (configuration) {
7139
+ const localVarAxiosParamCreator = ContactFormApiAxiosParamCreator(configuration);
7140
+ return {
7141
+ /**
7142
+ *
7143
+ * @param {IContactFormPostRequest} iContactFormPostRequest
7144
+ * @param {*} [options] Override http request option.
7145
+ * @throws {RequiredError}
7146
+ */
7147
+ async createContactForm(iContactFormPostRequest, options) {
7148
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createContactForm(iContactFormPostRequest, options);
7149
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7150
+ const localVarOperationServerBasePath = operationServerMap['ContactFormApi.createContactForm']?.[localVarOperationServerIndex]?.url;
7151
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7152
+ },
7153
+ /**
7154
+ *
7155
+ * @param {string} id
7156
+ * @param {*} [options] Override http request option.
7157
+ * @throws {RequiredError}
7158
+ */
7159
+ async deleteContactForm(id, options) {
7160
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteContactForm(id, options);
7161
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7162
+ const localVarOperationServerBasePath = operationServerMap['ContactFormApi.deleteContactForm']?.[localVarOperationServerIndex]?.url;
7163
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7164
+ },
7165
+ /**
7166
+ *
7167
+ * @param {string} id
7168
+ * @param {*} [options] Override http request option.
7169
+ * @throws {RequiredError}
7170
+ */
7171
+ async getContactFormById(id, options) {
7172
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getContactFormById(id, options);
7173
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7174
+ const localVarOperationServerBasePath = operationServerMap['ContactFormApi.getContactFormById']?.[localVarOperationServerIndex]?.url;
7175
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7176
+ },
7177
+ /**
7178
+ *
7179
+ * @param {string} companyId
7180
+ * @param {number} [page]
7181
+ * @param {number} [itemsPerPage]
7182
+ * @param {string} [search]
7183
+ * @param {string} [startDate]
7184
+ * @param {string} [endDate]
7185
+ * @param {GetContactFormsDateFieldEnum} [dateField]
7186
+ * @param {OrderEnum} [order]
7187
+ * @param {string} [sort]
7188
+ * @param {*} [options] Override http request option.
7189
+ * @throws {RequiredError}
7190
+ */
7191
+ async getContactForms(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options) {
7192
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getContactForms(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options);
7193
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7194
+ const localVarOperationServerBasePath = operationServerMap['ContactFormApi.getContactForms']?.[localVarOperationServerIndex]?.url;
7195
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7196
+ },
7197
+ };
7198
+ };
7199
+ /**
7200
+ * ContactFormApi - factory interface
7201
+ * @export
7202
+ */
7203
+ export const ContactFormApiFactory = function (configuration, basePath, axios) {
7204
+ const localVarFp = ContactFormApiFp(configuration);
7205
+ return {
7206
+ /**
7207
+ *
7208
+ * @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
7209
+ * @param {*} [options] Override http request option.
7210
+ * @throws {RequiredError}
7211
+ */
7212
+ createContactForm(requestParameters, options) {
7213
+ return localVarFp.createContactForm(requestParameters.iContactFormPostRequest, options).then((request) => request(axios, basePath));
7214
+ },
7215
+ /**
7216
+ *
7217
+ * @param {ContactFormApiDeleteContactFormRequest} requestParameters Request parameters.
7218
+ * @param {*} [options] Override http request option.
7219
+ * @throws {RequiredError}
7220
+ */
7221
+ deleteContactForm(requestParameters, options) {
7222
+ return localVarFp.deleteContactForm(requestParameters.id, options).then((request) => request(axios, basePath));
7223
+ },
7224
+ /**
7225
+ *
7226
+ * @param {ContactFormApiGetContactFormByIdRequest} requestParameters Request parameters.
7227
+ * @param {*} [options] Override http request option.
7228
+ * @throws {RequiredError}
7229
+ */
7230
+ getContactFormById(requestParameters, options) {
7231
+ return localVarFp.getContactFormById(requestParameters.id, options).then((request) => request(axios, basePath));
7232
+ },
7233
+ /**
7234
+ *
7235
+ * @param {ContactFormApiGetContactFormsRequest} requestParameters Request parameters.
7236
+ * @param {*} [options] Override http request option.
7237
+ * @throws {RequiredError}
7238
+ */
7239
+ getContactForms(requestParameters, options) {
7240
+ return localVarFp.getContactForms(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, options).then((request) => request(axios, basePath));
7241
+ },
7242
+ };
7243
+ };
7244
+ /**
7245
+ * ContactFormApi - object-oriented interface
7246
+ * @export
7247
+ * @class ContactFormApi
7248
+ * @extends {BaseAPI}
7249
+ */
7250
+ export class ContactFormApi extends BaseAPI {
7251
+ /**
7252
+ *
7253
+ * @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
6402
7254
  * @param {*} [options] Override http request option.
6403
7255
  * @throws {RequiredError}
6404
- * @memberof CompanyApi
7256
+ * @memberof ContactFormApi
6405
7257
  */
6406
- updateCompanyShippingProviders(requestParameters, options) {
6407
- return CompanyApiFp(this.configuration).updateCompanyShippingProviders(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdateShippingProvidersRequest, options).then((request) => request(this.axios, this.basePath));
7258
+ createContactForm(requestParameters, options) {
7259
+ return ContactFormApiFp(this.configuration).createContactForm(requestParameters.iContactFormPostRequest, options).then((request) => request(this.axios, this.basePath));
6408
7260
  }
6409
7261
  /**
6410
7262
  *
6411
- * @param {CompanyApiUpdateCompanyWarehousesRequest} requestParameters Request parameters.
7263
+ * @param {ContactFormApiDeleteContactFormRequest} requestParameters Request parameters.
6412
7264
  * @param {*} [options] Override http request option.
6413
7265
  * @throws {RequiredError}
6414
- * @memberof CompanyApi
7266
+ * @memberof ContactFormApi
6415
7267
  */
6416
- updateCompanyWarehouses(requestParameters, options) {
6417
- return CompanyApiFp(this.configuration).updateCompanyWarehouses(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdateWarehousesRequest, options).then((request) => request(this.axios, this.basePath));
7268
+ deleteContactForm(requestParameters, options) {
7269
+ return ContactFormApiFp(this.configuration).deleteContactForm(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6418
7270
  }
6419
7271
  /**
6420
7272
  *
6421
- * @param {CompanyApiUpdatePrimaryDomainRequest} requestParameters Request parameters.
7273
+ * @param {ContactFormApiGetContactFormByIdRequest} requestParameters Request parameters.
6422
7274
  * @param {*} [options] Override http request option.
6423
7275
  * @throws {RequiredError}
6424
- * @memberof CompanyApi
7276
+ * @memberof ContactFormApi
6425
7277
  */
6426
- updatePrimaryDomain(requestParameters, options) {
6427
- return CompanyApiFp(this.configuration).updatePrimaryDomain(requestParameters.id, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
7278
+ getContactFormById(requestParameters, options) {
7279
+ return ContactFormApiFp(this.configuration).getContactFormById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6428
7280
  }
6429
7281
  /**
6430
7282
  *
6431
- * @param {CompanyApiUpdateUserInCompanyRequest} requestParameters Request parameters.
7283
+ * @param {ContactFormApiGetContactFormsRequest} requestParameters Request parameters.
6432
7284
  * @param {*} [options] Override http request option.
6433
7285
  * @throws {RequiredError}
6434
- * @memberof CompanyApi
7286
+ * @memberof ContactFormApi
6435
7287
  */
6436
- updateUserInCompany(requestParameters, options) {
6437
- return CompanyApiFp(this.configuration).updateUserInCompany(requestParameters.id, requestParameters.userId, requestParameters.iCompanyUpdateUserRequest, options).then((request) => request(this.axios, this.basePath));
7288
+ getContactForms(requestParameters, options) {
7289
+ return ContactFormApiFp(this.configuration).getContactForms(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));
6438
7290
  }
6439
7291
  }
6440
7292
  /**
6441
7293
  * @export
6442
7294
  */
6443
- export const GetCompaniesDateFieldEnum = {
6444
- CREATED_AT: 'createdAt',
6445
- UPDATED_AT: 'updatedAt'
6446
- };
6447
- /**
6448
- * @export
6449
- */
6450
- export const GetCompanyCustomersDateFieldEnum = {
7295
+ export const GetContactFormsDateFieldEnum = {
6451
7296
  CREATED_AT: 'createdAt',
6452
7297
  UPDATED_AT: 'updatedAt'
6453
7298
  };
6454
7299
  /**
6455
- * ContactFormApi - axios parameter creator
7300
+ * ContentPlanApi - axios parameter creator
6456
7301
  * @export
6457
7302
  */
6458
- export const ContactFormApiAxiosParamCreator = function (configuration) {
7303
+ export const ContentPlanApiAxiosParamCreator = function (configuration) {
6459
7304
  return {
6460
7305
  /**
6461
7306
  *
6462
- * @param {IContactFormPostRequest} iContactFormPostRequest
7307
+ * @param {IContentPlanBulkPostRequest} iContentPlanBulkPostRequest
6463
7308
  * @param {*} [options] Override http request option.
6464
7309
  * @throws {RequiredError}
6465
7310
  */
6466
- createContactForm: async (iContactFormPostRequest, options = {}) => {
6467
- // verify required parameter 'iContactFormPostRequest' is not null or undefined
6468
- assertParamExists('createContactForm', 'iContactFormPostRequest', iContactFormPostRequest);
6469
- const localVarPath = `/api/contact-forms`;
7311
+ createContentPlans: async (iContentPlanBulkPostRequest, options = {}) => {
7312
+ // verify required parameter 'iContentPlanBulkPostRequest' is not null or undefined
7313
+ assertParamExists('createContentPlans', 'iContentPlanBulkPostRequest', iContentPlanBulkPostRequest);
7314
+ const localVarPath = `/api/content-plans`;
6470
7315
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6471
7316
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6472
7317
  let baseOptions;
@@ -6480,7 +7325,7 @@ export const ContactFormApiAxiosParamCreator = function (configuration) {
6480
7325
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6481
7326
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6482
7327
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6483
- localVarRequestOptions.data = serializeDataIfNeeded(iContactFormPostRequest, localVarRequestOptions, configuration);
7328
+ localVarRequestOptions.data = serializeDataIfNeeded(iContentPlanBulkPostRequest, localVarRequestOptions, configuration);
6484
7329
  return {
6485
7330
  url: toPathString(localVarUrlObj),
6486
7331
  options: localVarRequestOptions,
@@ -6492,10 +7337,10 @@ export const ContactFormApiAxiosParamCreator = function (configuration) {
6492
7337
  * @param {*} [options] Override http request option.
6493
7338
  * @throws {RequiredError}
6494
7339
  */
6495
- deleteContactForm: async (id, options = {}) => {
7340
+ deleteContentPlan: async (id, options = {}) => {
6496
7341
  // verify required parameter 'id' is not null or undefined
6497
- assertParamExists('deleteContactForm', 'id', id);
6498
- const localVarPath = `/api/contact-forms/{id}`
7342
+ assertParamExists('deleteContentPlan', 'id', id);
7343
+ const localVarPath = `/api/content-plans/{id}`
6499
7344
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6500
7345
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6501
7346
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6520,10 +7365,10 @@ export const ContactFormApiAxiosParamCreator = function (configuration) {
6520
7365
  * @param {*} [options] Override http request option.
6521
7366
  * @throws {RequiredError}
6522
7367
  */
6523
- getContactFormById: async (id, options = {}) => {
7368
+ getContentPlanById: async (id, options = {}) => {
6524
7369
  // verify required parameter 'id' is not null or undefined
6525
- assertParamExists('getContactFormById', 'id', id);
6526
- const localVarPath = `/api/contact-forms/{id}`
7370
+ assertParamExists('getContentPlanById', 'id', id);
7371
+ const localVarPath = `/api/content-plans/{id}`
6527
7372
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6528
7373
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6529
7374
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6544,22 +7389,24 @@ export const ContactFormApiAxiosParamCreator = function (configuration) {
6544
7389
  },
6545
7390
  /**
6546
7391
  *
6547
- * @param {string} companyId
6548
7392
  * @param {number} [page]
6549
7393
  * @param {number} [itemsPerPage]
6550
7394
  * @param {string} [search]
6551
7395
  * @param {string} [startDate]
6552
7396
  * @param {string} [endDate]
6553
- * @param {GetContactFormsDateFieldEnum} [dateField]
7397
+ * @param {GetContentPlansDateFieldEnum} [dateField]
6554
7398
  * @param {OrderEnum} [order]
6555
7399
  * @param {string} [sort]
7400
+ * @param {string} [companyId]
7401
+ * @param {string} [domain]
7402
+ * @param {ContentPlanStatusEnum} [status]
7403
+ * @param {string} [seriesId]
7404
+ * @param {string} [type]
6556
7405
  * @param {*} [options] Override http request option.
6557
7406
  * @throws {RequiredError}
6558
7407
  */
6559
- getContactForms: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options = {}) => {
6560
- // verify required parameter 'companyId' is not null or undefined
6561
- assertParamExists('getContactForms', 'companyId', companyId);
6562
- const localVarPath = `/api/contact-forms`;
7408
+ getContentPlans: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, seriesId, type, options = {}) => {
7409
+ const localVarPath = `/api/content-plans`;
6563
7410
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6564
7411
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6565
7412
  let baseOptions;
@@ -6600,9 +7447,54 @@ export const ContactFormApiAxiosParamCreator = function (configuration) {
6600
7447
  if (companyId !== undefined) {
6601
7448
  localVarQueryParameter['companyId'] = companyId;
6602
7449
  }
7450
+ if (domain !== undefined) {
7451
+ localVarQueryParameter['domain'] = domain;
7452
+ }
7453
+ if (status !== undefined) {
7454
+ localVarQueryParameter['status'] = status;
7455
+ }
7456
+ if (seriesId !== undefined) {
7457
+ localVarQueryParameter['seriesId'] = seriesId;
7458
+ }
7459
+ if (type !== undefined) {
7460
+ localVarQueryParameter['type'] = type;
7461
+ }
7462
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7463
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7464
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7465
+ return {
7466
+ url: toPathString(localVarUrlObj),
7467
+ options: localVarRequestOptions,
7468
+ };
7469
+ },
7470
+ /**
7471
+ *
7472
+ * @param {string} id
7473
+ * @param {IContentPlanPatchRequest} iContentPlanPatchRequest
7474
+ * @param {*} [options] Override http request option.
7475
+ * @throws {RequiredError}
7476
+ */
7477
+ updateContentPlan: async (id, iContentPlanPatchRequest, options = {}) => {
7478
+ // verify required parameter 'id' is not null or undefined
7479
+ assertParamExists('updateContentPlan', 'id', id);
7480
+ // verify required parameter 'iContentPlanPatchRequest' is not null or undefined
7481
+ assertParamExists('updateContentPlan', 'iContentPlanPatchRequest', iContentPlanPatchRequest);
7482
+ const localVarPath = `/api/content-plans/{id}`
7483
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7484
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7485
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7486
+ let baseOptions;
7487
+ if (configuration) {
7488
+ baseOptions = configuration.baseOptions;
7489
+ }
7490
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
7491
+ const localVarHeaderParameter = {};
7492
+ const localVarQueryParameter = {};
7493
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6603
7494
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6604
7495
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6605
7496
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7497
+ localVarRequestOptions.data = serializeDataIfNeeded(iContentPlanPatchRequest, localVarRequestOptions, configuration);
6606
7498
  return {
6607
7499
  url: toPathString(localVarUrlObj),
6608
7500
  options: localVarRequestOptions,
@@ -6611,22 +7503,22 @@ export const ContactFormApiAxiosParamCreator = function (configuration) {
6611
7503
  };
6612
7504
  };
6613
7505
  /**
6614
- * ContactFormApi - functional programming interface
7506
+ * ContentPlanApi - functional programming interface
6615
7507
  * @export
6616
7508
  */
6617
- export const ContactFormApiFp = function (configuration) {
6618
- const localVarAxiosParamCreator = ContactFormApiAxiosParamCreator(configuration);
7509
+ export const ContentPlanApiFp = function (configuration) {
7510
+ const localVarAxiosParamCreator = ContentPlanApiAxiosParamCreator(configuration);
6619
7511
  return {
6620
7512
  /**
6621
7513
  *
6622
- * @param {IContactFormPostRequest} iContactFormPostRequest
7514
+ * @param {IContentPlanBulkPostRequest} iContentPlanBulkPostRequest
6623
7515
  * @param {*} [options] Override http request option.
6624
7516
  * @throws {RequiredError}
6625
7517
  */
6626
- async createContactForm(iContactFormPostRequest, options) {
6627
- const localVarAxiosArgs = await localVarAxiosParamCreator.createContactForm(iContactFormPostRequest, options);
7518
+ async createContentPlans(iContentPlanBulkPostRequest, options) {
7519
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createContentPlans(iContentPlanBulkPostRequest, options);
6628
7520
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6629
- const localVarOperationServerBasePath = operationServerMap['ContactFormApi.createContactForm']?.[localVarOperationServerIndex]?.url;
7521
+ const localVarOperationServerBasePath = operationServerMap['ContentPlanApi.createContentPlans']?.[localVarOperationServerIndex]?.url;
6630
7522
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6631
7523
  },
6632
7524
  /**
@@ -6635,10 +7527,10 @@ export const ContactFormApiFp = function (configuration) {
6635
7527
  * @param {*} [options] Override http request option.
6636
7528
  * @throws {RequiredError}
6637
7529
  */
6638
- async deleteContactForm(id, options) {
6639
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteContactForm(id, options);
7530
+ async deleteContentPlan(id, options) {
7531
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteContentPlan(id, options);
6640
7532
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6641
- const localVarOperationServerBasePath = operationServerMap['ContactFormApi.deleteContactForm']?.[localVarOperationServerIndex]?.url;
7533
+ const localVarOperationServerBasePath = operationServerMap['ContentPlanApi.deleteContentPlan']?.[localVarOperationServerIndex]?.url;
6642
7534
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6643
7535
  },
6644
7536
  /**
@@ -6647,131 +7539,167 @@ export const ContactFormApiFp = function (configuration) {
6647
7539
  * @param {*} [options] Override http request option.
6648
7540
  * @throws {RequiredError}
6649
7541
  */
6650
- async getContactFormById(id, options) {
6651
- const localVarAxiosArgs = await localVarAxiosParamCreator.getContactFormById(id, options);
7542
+ async getContentPlanById(id, options) {
7543
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getContentPlanById(id, options);
6652
7544
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6653
- const localVarOperationServerBasePath = operationServerMap['ContactFormApi.getContactFormById']?.[localVarOperationServerIndex]?.url;
7545
+ const localVarOperationServerBasePath = operationServerMap['ContentPlanApi.getContentPlanById']?.[localVarOperationServerIndex]?.url;
6654
7546
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6655
7547
  },
6656
7548
  /**
6657
7549
  *
6658
- * @param {string} companyId
6659
7550
  * @param {number} [page]
6660
7551
  * @param {number} [itemsPerPage]
6661
7552
  * @param {string} [search]
6662
7553
  * @param {string} [startDate]
6663
7554
  * @param {string} [endDate]
6664
- * @param {GetContactFormsDateFieldEnum} [dateField]
7555
+ * @param {GetContentPlansDateFieldEnum} [dateField]
6665
7556
  * @param {OrderEnum} [order]
6666
7557
  * @param {string} [sort]
7558
+ * @param {string} [companyId]
7559
+ * @param {string} [domain]
7560
+ * @param {ContentPlanStatusEnum} [status]
7561
+ * @param {string} [seriesId]
7562
+ * @param {string} [type]
6667
7563
  * @param {*} [options] Override http request option.
6668
7564
  * @throws {RequiredError}
6669
7565
  */
6670
- async getContactForms(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options) {
6671
- const localVarAxiosArgs = await localVarAxiosParamCreator.getContactForms(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options);
7566
+ async getContentPlans(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, seriesId, type, options) {
7567
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getContentPlans(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, seriesId, type, options);
6672
7568
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6673
- const localVarOperationServerBasePath = operationServerMap['ContactFormApi.getContactForms']?.[localVarOperationServerIndex]?.url;
7569
+ const localVarOperationServerBasePath = operationServerMap['ContentPlanApi.getContentPlans']?.[localVarOperationServerIndex]?.url;
7570
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7571
+ },
7572
+ /**
7573
+ *
7574
+ * @param {string} id
7575
+ * @param {IContentPlanPatchRequest} iContentPlanPatchRequest
7576
+ * @param {*} [options] Override http request option.
7577
+ * @throws {RequiredError}
7578
+ */
7579
+ async updateContentPlan(id, iContentPlanPatchRequest, options) {
7580
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateContentPlan(id, iContentPlanPatchRequest, options);
7581
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7582
+ const localVarOperationServerBasePath = operationServerMap['ContentPlanApi.updateContentPlan']?.[localVarOperationServerIndex]?.url;
6674
7583
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6675
7584
  },
6676
7585
  };
6677
7586
  };
6678
7587
  /**
6679
- * ContactFormApi - factory interface
7588
+ * ContentPlanApi - factory interface
6680
7589
  * @export
6681
7590
  */
6682
- export const ContactFormApiFactory = function (configuration, basePath, axios) {
6683
- const localVarFp = ContactFormApiFp(configuration);
7591
+ export const ContentPlanApiFactory = function (configuration, basePath, axios) {
7592
+ const localVarFp = ContentPlanApiFp(configuration);
6684
7593
  return {
6685
7594
  /**
6686
7595
  *
6687
- * @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
7596
+ * @param {ContentPlanApiCreateContentPlansRequest} requestParameters Request parameters.
6688
7597
  * @param {*} [options] Override http request option.
6689
7598
  * @throws {RequiredError}
6690
7599
  */
6691
- createContactForm(requestParameters, options) {
6692
- return localVarFp.createContactForm(requestParameters.iContactFormPostRequest, options).then((request) => request(axios, basePath));
7600
+ createContentPlans(requestParameters, options) {
7601
+ return localVarFp.createContentPlans(requestParameters.iContentPlanBulkPostRequest, options).then((request) => request(axios, basePath));
6693
7602
  },
6694
7603
  /**
6695
7604
  *
6696
- * @param {ContactFormApiDeleteContactFormRequest} requestParameters Request parameters.
7605
+ * @param {ContentPlanApiDeleteContentPlanRequest} requestParameters Request parameters.
6697
7606
  * @param {*} [options] Override http request option.
6698
7607
  * @throws {RequiredError}
6699
7608
  */
6700
- deleteContactForm(requestParameters, options) {
6701
- return localVarFp.deleteContactForm(requestParameters.id, options).then((request) => request(axios, basePath));
7609
+ deleteContentPlan(requestParameters, options) {
7610
+ return localVarFp.deleteContentPlan(requestParameters.id, options).then((request) => request(axios, basePath));
6702
7611
  },
6703
7612
  /**
6704
7613
  *
6705
- * @param {ContactFormApiGetContactFormByIdRequest} requestParameters Request parameters.
7614
+ * @param {ContentPlanApiGetContentPlanByIdRequest} requestParameters Request parameters.
6706
7615
  * @param {*} [options] Override http request option.
6707
7616
  * @throws {RequiredError}
6708
7617
  */
6709
- getContactFormById(requestParameters, options) {
6710
- return localVarFp.getContactFormById(requestParameters.id, options).then((request) => request(axios, basePath));
7618
+ getContentPlanById(requestParameters, options) {
7619
+ return localVarFp.getContentPlanById(requestParameters.id, options).then((request) => request(axios, basePath));
6711
7620
  },
6712
7621
  /**
6713
7622
  *
6714
- * @param {ContactFormApiGetContactFormsRequest} requestParameters Request parameters.
7623
+ * @param {ContentPlanApiGetContentPlansRequest} requestParameters Request parameters.
6715
7624
  * @param {*} [options] Override http request option.
6716
7625
  * @throws {RequiredError}
6717
7626
  */
6718
- getContactForms(requestParameters, options) {
6719
- return localVarFp.getContactForms(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, options).then((request) => request(axios, basePath));
7627
+ getContentPlans(requestParameters = {}, options) {
7628
+ return localVarFp.getContentPlans(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, requestParameters.seriesId, requestParameters.type, options).then((request) => request(axios, basePath));
7629
+ },
7630
+ /**
7631
+ *
7632
+ * @param {ContentPlanApiUpdateContentPlanRequest} requestParameters Request parameters.
7633
+ * @param {*} [options] Override http request option.
7634
+ * @throws {RequiredError}
7635
+ */
7636
+ updateContentPlan(requestParameters, options) {
7637
+ return localVarFp.updateContentPlan(requestParameters.id, requestParameters.iContentPlanPatchRequest, options).then((request) => request(axios, basePath));
6720
7638
  },
6721
7639
  };
6722
7640
  };
6723
7641
  /**
6724
- * ContactFormApi - object-oriented interface
7642
+ * ContentPlanApi - object-oriented interface
6725
7643
  * @export
6726
- * @class ContactFormApi
7644
+ * @class ContentPlanApi
6727
7645
  * @extends {BaseAPI}
6728
7646
  */
6729
- export class ContactFormApi extends BaseAPI {
7647
+ export class ContentPlanApi extends BaseAPI {
6730
7648
  /**
6731
7649
  *
6732
- * @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
7650
+ * @param {ContentPlanApiCreateContentPlansRequest} requestParameters Request parameters.
6733
7651
  * @param {*} [options] Override http request option.
6734
7652
  * @throws {RequiredError}
6735
- * @memberof ContactFormApi
7653
+ * @memberof ContentPlanApi
6736
7654
  */
6737
- createContactForm(requestParameters, options) {
6738
- return ContactFormApiFp(this.configuration).createContactForm(requestParameters.iContactFormPostRequest, options).then((request) => request(this.axios, this.basePath));
7655
+ createContentPlans(requestParameters, options) {
7656
+ return ContentPlanApiFp(this.configuration).createContentPlans(requestParameters.iContentPlanBulkPostRequest, options).then((request) => request(this.axios, this.basePath));
6739
7657
  }
6740
7658
  /**
6741
7659
  *
6742
- * @param {ContactFormApiDeleteContactFormRequest} requestParameters Request parameters.
7660
+ * @param {ContentPlanApiDeleteContentPlanRequest} requestParameters Request parameters.
6743
7661
  * @param {*} [options] Override http request option.
6744
7662
  * @throws {RequiredError}
6745
- * @memberof ContactFormApi
7663
+ * @memberof ContentPlanApi
6746
7664
  */
6747
- deleteContactForm(requestParameters, options) {
6748
- return ContactFormApiFp(this.configuration).deleteContactForm(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
7665
+ deleteContentPlan(requestParameters, options) {
7666
+ return ContentPlanApiFp(this.configuration).deleteContentPlan(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6749
7667
  }
6750
7668
  /**
6751
7669
  *
6752
- * @param {ContactFormApiGetContactFormByIdRequest} requestParameters Request parameters.
7670
+ * @param {ContentPlanApiGetContentPlanByIdRequest} requestParameters Request parameters.
6753
7671
  * @param {*} [options] Override http request option.
6754
7672
  * @throws {RequiredError}
6755
- * @memberof ContactFormApi
7673
+ * @memberof ContentPlanApi
6756
7674
  */
6757
- getContactFormById(requestParameters, options) {
6758
- return ContactFormApiFp(this.configuration).getContactFormById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
7675
+ getContentPlanById(requestParameters, options) {
7676
+ return ContentPlanApiFp(this.configuration).getContentPlanById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6759
7677
  }
6760
7678
  /**
6761
7679
  *
6762
- * @param {ContactFormApiGetContactFormsRequest} requestParameters Request parameters.
7680
+ * @param {ContentPlanApiGetContentPlansRequest} requestParameters Request parameters.
6763
7681
  * @param {*} [options] Override http request option.
6764
7682
  * @throws {RequiredError}
6765
- * @memberof ContactFormApi
7683
+ * @memberof ContentPlanApi
6766
7684
  */
6767
- getContactForms(requestParameters, options) {
6768
- return ContactFormApiFp(this.configuration).getContactForms(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));
7685
+ getContentPlans(requestParameters = {}, options) {
7686
+ return ContentPlanApiFp(this.configuration).getContentPlans(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, requestParameters.seriesId, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
7687
+ }
7688
+ /**
7689
+ *
7690
+ * @param {ContentPlanApiUpdateContentPlanRequest} requestParameters Request parameters.
7691
+ * @param {*} [options] Override http request option.
7692
+ * @throws {RequiredError}
7693
+ * @memberof ContentPlanApi
7694
+ */
7695
+ updateContentPlan(requestParameters, options) {
7696
+ return ContentPlanApiFp(this.configuration).updateContentPlan(requestParameters.id, requestParameters.iContentPlanPatchRequest, options).then((request) => request(this.axios, this.basePath));
6769
7697
  }
6770
7698
  }
6771
7699
  /**
6772
7700
  * @export
6773
7701
  */
6774
- export const GetContactFormsDateFieldEnum = {
7702
+ export const GetContentPlansDateFieldEnum = {
6775
7703
  CREATED_AT: 'createdAt',
6776
7704
  UPDATED_AT: 'updatedAt'
6777
7705
  };
@@ -12197,12 +13125,12 @@ export const ThemeApiAxiosParamCreator = function (configuration) {
12197
13125
  *
12198
13126
  * @param {CompanyTypeEnum} [type]
12199
13127
  * @param {string} [companyId]
12200
- * @param {ThemeKeywordEnum} [keyword]
13128
+ * @param {Array<ThemeKeywordEnum>} [keywords]
12201
13129
  * @param {boolean} [active]
12202
13130
  * @param {*} [options] Override http request option.
12203
13131
  * @throws {RequiredError}
12204
13132
  */
12205
- getThemes: async (type, companyId, keyword, active, options = {}) => {
13133
+ getThemes: async (type, companyId, keywords, active, options = {}) => {
12206
13134
  const localVarPath = `/api/themes`;
12207
13135
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12208
13136
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -12219,8 +13147,8 @@ export const ThemeApiAxiosParamCreator = function (configuration) {
12219
13147
  if (companyId !== undefined) {
12220
13148
  localVarQueryParameter['companyId'] = companyId;
12221
13149
  }
12222
- if (keyword !== undefined) {
12223
- localVarQueryParameter['keyword'] = keyword;
13150
+ if (keywords) {
13151
+ localVarQueryParameter['keywords'] = keywords;
12224
13152
  }
12225
13153
  if (active !== undefined) {
12226
13154
  localVarQueryParameter['active'] = active;
@@ -12400,13 +13328,13 @@ export const ThemeApiFp = function (configuration) {
12400
13328
  *
12401
13329
  * @param {CompanyTypeEnum} [type]
12402
13330
  * @param {string} [companyId]
12403
- * @param {ThemeKeywordEnum} [keyword]
13331
+ * @param {Array<ThemeKeywordEnum>} [keywords]
12404
13332
  * @param {boolean} [active]
12405
13333
  * @param {*} [options] Override http request option.
12406
13334
  * @throws {RequiredError}
12407
13335
  */
12408
- async getThemes(type, companyId, keyword, active, options) {
12409
- const localVarAxiosArgs = await localVarAxiosParamCreator.getThemes(type, companyId, keyword, active, options);
13336
+ async getThemes(type, companyId, keywords, active, options) {
13337
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getThemes(type, companyId, keywords, active, options);
12410
13338
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12411
13339
  const localVarOperationServerBasePath = operationServerMap['ThemeApi.getThemes']?.[localVarOperationServerIndex]?.url;
12412
13340
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -12509,7 +13437,7 @@ export const ThemeApiFactory = function (configuration, basePath, axios) {
12509
13437
  * @throws {RequiredError}
12510
13438
  */
12511
13439
  getThemes(requestParameters = {}, options) {
12512
- return localVarFp.getThemes(requestParameters.type, requestParameters.companyId, requestParameters.keyword, requestParameters.active, options).then((request) => request(axios, basePath));
13440
+ return localVarFp.getThemes(requestParameters.type, requestParameters.companyId, requestParameters.keywords, requestParameters.active, options).then((request) => request(axios, basePath));
12513
13441
  },
12514
13442
  /**
12515
13443
  *
@@ -12606,7 +13534,7 @@ export class ThemeApi extends BaseAPI {
12606
13534
  * @memberof ThemeApi
12607
13535
  */
12608
13536
  getThemes(requestParameters = {}, options) {
12609
- return ThemeApiFp(this.configuration).getThemes(requestParameters.type, requestParameters.companyId, requestParameters.keyword, requestParameters.active, options).then((request) => request(this.axios, this.basePath));
13537
+ return ThemeApiFp(this.configuration).getThemes(requestParameters.type, requestParameters.companyId, requestParameters.keywords, requestParameters.active, options).then((request) => request(this.axios, this.basePath));
12610
13538
  }
12611
13539
  /**
12612
13540
  *