@infisale-client/api 1.3.61 → 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.d.ts +7150 -5298
- package/dist/api/api.js +2364 -1428
- package/dist/api/api.mjs +1188 -260
- package/package.json +2 -2
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'
|
|
@@ -936,24 +995,21 @@ export class AddressApi extends BaseAPI {
|
|
|
936
995
|
}
|
|
937
996
|
}
|
|
938
997
|
/**
|
|
939
|
-
*
|
|
998
|
+
* AiChatApi - axios parameter creator
|
|
940
999
|
* @export
|
|
941
1000
|
*/
|
|
942
|
-
export const
|
|
1001
|
+
export const AiChatApiAxiosParamCreator = function (configuration) {
|
|
943
1002
|
return {
|
|
944
1003
|
/**
|
|
945
1004
|
*
|
|
946
|
-
* @param {
|
|
947
|
-
* @param {IForgotPasswordRequest} iForgotPasswordRequest
|
|
1005
|
+
* @param {IAiChatPostRequest} iAiChatPostRequest
|
|
948
1006
|
* @param {*} [options] Override http request option.
|
|
949
1007
|
* @throws {RequiredError}
|
|
950
1008
|
*/
|
|
951
|
-
|
|
952
|
-
// verify required parameter '
|
|
953
|
-
assertParamExists('
|
|
954
|
-
|
|
955
|
-
assertParamExists('forgotPassword', 'iForgotPasswordRequest', iForgotPasswordRequest);
|
|
956
|
-
const localVarPath = `/api/auth/forgot-password`;
|
|
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`;
|
|
957
1013
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
958
1014
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
959
1015
|
let baseOptions;
|
|
@@ -963,14 +1019,11 @@ export const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
963
1019
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
964
1020
|
const localVarHeaderParameter = {};
|
|
965
1021
|
const localVarQueryParameter = {};
|
|
966
|
-
if (domain !== undefined) {
|
|
967
|
-
localVarQueryParameter['domain'] = domain;
|
|
968
|
-
}
|
|
969
1022
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
970
1023
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
971
1024
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
972
1025
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
973
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1026
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iAiChatPostRequest, localVarRequestOptions, configuration);
|
|
974
1027
|
return {
|
|
975
1028
|
url: toPathString(localVarUrlObj),
|
|
976
1029
|
options: localVarRequestOptions,
|
|
@@ -978,34 +1031,27 @@ export const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
978
1031
|
},
|
|
979
1032
|
/**
|
|
980
1033
|
*
|
|
981
|
-
* @param {string}
|
|
982
|
-
* @param {ILoginRequest} iLoginRequest
|
|
1034
|
+
* @param {string} id
|
|
983
1035
|
* @param {*} [options] Override http request option.
|
|
984
1036
|
* @throws {RequiredError}
|
|
985
1037
|
*/
|
|
986
|
-
|
|
987
|
-
// verify required parameter '
|
|
988
|
-
assertParamExists('
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
const localVarPath = `/api/auth/login`;
|
|
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)));
|
|
992
1043
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
993
1044
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
994
1045
|
let baseOptions;
|
|
995
1046
|
if (configuration) {
|
|
996
1047
|
baseOptions = configuration.baseOptions;
|
|
997
1048
|
}
|
|
998
|
-
const localVarRequestOptions = { method: '
|
|
1049
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
999
1050
|
const localVarHeaderParameter = {};
|
|
1000
1051
|
const localVarQueryParameter = {};
|
|
1001
|
-
if (domain !== undefined) {
|
|
1002
|
-
localVarQueryParameter['domain'] = domain;
|
|
1003
|
-
}
|
|
1004
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1005
1052
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1006
1053
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1007
1054
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1008
|
-
localVarRequestOptions.data = serializeDataIfNeeded(iLoginRequest, localVarRequestOptions, configuration);
|
|
1009
1055
|
return {
|
|
1010
1056
|
url: toPathString(localVarUrlObj),
|
|
1011
1057
|
options: localVarRequestOptions,
|
|
@@ -1013,14 +1059,18 @@ export const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1013
1059
|
},
|
|
1014
1060
|
/**
|
|
1015
1061
|
*
|
|
1016
|
-
* @param {
|
|
1062
|
+
* @param {string} id
|
|
1063
|
+
* @param {IAiChatFinalizeRequest} iAiChatFinalizeRequest
|
|
1017
1064
|
* @param {*} [options] Override http request option.
|
|
1018
1065
|
* @throws {RequiredError}
|
|
1019
1066
|
*/
|
|
1020
|
-
|
|
1021
|
-
// verify required parameter '
|
|
1022
|
-
assertParamExists('
|
|
1023
|
-
|
|
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)));
|
|
1024
1074
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1025
1075
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1026
1076
|
let baseOptions;
|
|
@@ -1034,7 +1084,7 @@ export const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1034
1084
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1035
1085
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1036
1086
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1037
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1087
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iAiChatFinalizeRequest, localVarRequestOptions, configuration);
|
|
1038
1088
|
return {
|
|
1039
1089
|
url: toPathString(localVarUrlObj),
|
|
1040
1090
|
options: localVarRequestOptions,
|
|
@@ -1042,34 +1092,27 @@ export const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1042
1092
|
},
|
|
1043
1093
|
/**
|
|
1044
1094
|
*
|
|
1045
|
-
* @param {string}
|
|
1046
|
-
* @param {IRegisterRequest} iRegisterRequest
|
|
1095
|
+
* @param {string} id
|
|
1047
1096
|
* @param {*} [options] Override http request option.
|
|
1048
1097
|
* @throws {RequiredError}
|
|
1049
1098
|
*/
|
|
1050
|
-
|
|
1051
|
-
// verify required parameter '
|
|
1052
|
-
assertParamExists('
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
const localVarPath = `/api/auth/register`;
|
|
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)));
|
|
1056
1104
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1057
1105
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1058
1106
|
let baseOptions;
|
|
1059
1107
|
if (configuration) {
|
|
1060
1108
|
baseOptions = configuration.baseOptions;
|
|
1061
1109
|
}
|
|
1062
|
-
const localVarRequestOptions = { method: '
|
|
1110
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1063
1111
|
const localVarHeaderParameter = {};
|
|
1064
1112
|
const localVarQueryParameter = {};
|
|
1065
|
-
if (domain !== undefined) {
|
|
1066
|
-
localVarQueryParameter['domain'] = domain;
|
|
1067
|
-
}
|
|
1068
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1069
1113
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1070
1114
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1071
1115
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1072
|
-
localVarRequestOptions.data = serializeDataIfNeeded(iRegisterRequest, localVarRequestOptions, configuration);
|
|
1073
1116
|
return {
|
|
1074
1117
|
url: toPathString(localVarUrlObj),
|
|
1075
1118
|
options: localVarRequestOptions,
|
|
@@ -1077,104 +1120,71 @@ export const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1077
1120
|
},
|
|
1078
1121
|
/**
|
|
1079
1122
|
*
|
|
1080
|
-
* @param {
|
|
1081
|
-
* @param {
|
|
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]
|
|
1082
1134
|
* @param {*} [options] Override http request option.
|
|
1083
1135
|
* @throws {RequiredError}
|
|
1084
1136
|
*/
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
assertParamExists('resendVerificationEmail', 'domain', domain);
|
|
1088
|
-
// verify required parameter 'iResendVerificationEmailRequest' is not null or undefined
|
|
1089
|
-
assertParamExists('resendVerificationEmail', 'iResendVerificationEmailRequest', iResendVerificationEmailRequest);
|
|
1090
|
-
const localVarPath = `/api/auth/resend-verification-email`;
|
|
1137
|
+
getAiChats: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, purpose, status, options = {}) => {
|
|
1138
|
+
const localVarPath = `/api/ai-chats`;
|
|
1091
1139
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1092
1140
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1093
1141
|
let baseOptions;
|
|
1094
1142
|
if (configuration) {
|
|
1095
1143
|
baseOptions = configuration.baseOptions;
|
|
1096
1144
|
}
|
|
1097
|
-
const localVarRequestOptions = { method: '
|
|
1145
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1098
1146
|
const localVarHeaderParameter = {};
|
|
1099
1147
|
const localVarQueryParameter = {};
|
|
1100
|
-
if (
|
|
1101
|
-
localVarQueryParameter['
|
|
1148
|
+
if (page !== undefined) {
|
|
1149
|
+
localVarQueryParameter['page'] = page;
|
|
1102
1150
|
}
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1106
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1107
|
-
localVarRequestOptions.data = serializeDataIfNeeded(iResendVerificationEmailRequest, localVarRequestOptions, configuration);
|
|
1108
|
-
return {
|
|
1109
|
-
url: toPathString(localVarUrlObj),
|
|
1110
|
-
options: localVarRequestOptions,
|
|
1111
|
-
};
|
|
1112
|
-
},
|
|
1113
|
-
/**
|
|
1114
|
-
*
|
|
1115
|
-
* @param {string} domain
|
|
1116
|
-
* @param {IResetPasswordRequest} iResetPasswordRequest
|
|
1117
|
-
* @param {*} [options] Override http request option.
|
|
1118
|
-
* @throws {RequiredError}
|
|
1119
|
-
*/
|
|
1120
|
-
resetPassword: async (domain, iResetPasswordRequest, options = {}) => {
|
|
1121
|
-
// verify required parameter 'domain' is not null or undefined
|
|
1122
|
-
assertParamExists('resetPassword', 'domain', domain);
|
|
1123
|
-
// verify required parameter 'iResetPasswordRequest' is not null or undefined
|
|
1124
|
-
assertParamExists('resetPassword', 'iResetPasswordRequest', iResetPasswordRequest);
|
|
1125
|
-
const localVarPath = `/api/auth/reset-password`;
|
|
1126
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1127
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1128
|
-
let baseOptions;
|
|
1129
|
-
if (configuration) {
|
|
1130
|
-
baseOptions = configuration.baseOptions;
|
|
1151
|
+
if (itemsPerPage !== undefined) {
|
|
1152
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
1131
1153
|
}
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
const localVarQueryParameter = {};
|
|
1135
|
-
if (domain !== undefined) {
|
|
1136
|
-
localVarQueryParameter['domain'] = domain;
|
|
1154
|
+
if (search !== undefined) {
|
|
1155
|
+
localVarQueryParameter['search'] = search;
|
|
1137
1156
|
}
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
localVarRequestOptions.data = serializeDataIfNeeded(iResetPasswordRequest, localVarRequestOptions, configuration);
|
|
1143
|
-
return {
|
|
1144
|
-
url: toPathString(localVarUrlObj),
|
|
1145
|
-
options: localVarRequestOptions,
|
|
1146
|
-
};
|
|
1147
|
-
},
|
|
1148
|
-
/**
|
|
1149
|
-
*
|
|
1150
|
-
* @param {string} domain
|
|
1151
|
-
* @param {ISocialLoginRequest} iSocialLoginRequest
|
|
1152
|
-
* @param {*} [options] Override http request option.
|
|
1153
|
-
* @throws {RequiredError}
|
|
1154
|
-
*/
|
|
1155
|
-
socialLogin: async (domain, iSocialLoginRequest, options = {}) => {
|
|
1156
|
-
// verify required parameter 'domain' is not null or undefined
|
|
1157
|
-
assertParamExists('socialLogin', 'domain', domain);
|
|
1158
|
-
// verify required parameter 'iSocialLoginRequest' is not null or undefined
|
|
1159
|
-
assertParamExists('socialLogin', 'iSocialLoginRequest', iSocialLoginRequest);
|
|
1160
|
-
const localVarPath = `/api/auth/social-login`;
|
|
1161
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1162
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1163
|
-
let baseOptions;
|
|
1164
|
-
if (configuration) {
|
|
1165
|
-
baseOptions = configuration.baseOptions;
|
|
1157
|
+
if (startDate !== undefined) {
|
|
1158
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
1159
|
+
startDate.toISOString() :
|
|
1160
|
+
startDate;
|
|
1166
1161
|
}
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
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;
|
|
1172
1184
|
}
|
|
1173
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1174
1185
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1175
1186
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1176
1187
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1177
|
-
localVarRequestOptions.data = serializeDataIfNeeded(iSocialLoginRequest, localVarRequestOptions, configuration);
|
|
1178
1188
|
return {
|
|
1179
1189
|
url: toPathString(localVarUrlObj),
|
|
1180
1190
|
options: localVarRequestOptions,
|
|
@@ -1182,27 +1192,32 @@ export const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1182
1192
|
},
|
|
1183
1193
|
/**
|
|
1184
1194
|
*
|
|
1185
|
-
* @param {string}
|
|
1195
|
+
* @param {string} id
|
|
1196
|
+
* @param {IAiChatMessagePostRequest} iAiChatMessagePostRequest
|
|
1186
1197
|
* @param {*} [options] Override http request option.
|
|
1187
1198
|
* @throws {RequiredError}
|
|
1188
1199
|
*/
|
|
1189
|
-
|
|
1190
|
-
// verify required parameter '
|
|
1191
|
-
assertParamExists('
|
|
1192
|
-
|
|
1193
|
-
|
|
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)));
|
|
1194
1207
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1195
1208
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1196
1209
|
let baseOptions;
|
|
1197
1210
|
if (configuration) {
|
|
1198
1211
|
baseOptions = configuration.baseOptions;
|
|
1199
1212
|
}
|
|
1200
|
-
const localVarRequestOptions = { method: '
|
|
1213
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1201
1214
|
const localVarHeaderParameter = {};
|
|
1202
1215
|
const localVarQueryParameter = {};
|
|
1216
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1203
1217
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1204
1218
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1205
1219
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1220
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iAiChatMessagePostRequest, localVarRequestOptions, configuration);
|
|
1206
1221
|
return {
|
|
1207
1222
|
url: toPathString(localVarUrlObj),
|
|
1208
1223
|
options: localVarRequestOptions,
|
|
@@ -1211,72 +1226,578 @@ export const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1211
1226
|
};
|
|
1212
1227
|
};
|
|
1213
1228
|
/**
|
|
1214
|
-
*
|
|
1229
|
+
* AiChatApi - functional programming interface
|
|
1215
1230
|
* @export
|
|
1216
1231
|
*/
|
|
1217
|
-
export const
|
|
1218
|
-
const localVarAxiosParamCreator =
|
|
1232
|
+
export const AiChatApiFp = function (configuration) {
|
|
1233
|
+
const localVarAxiosParamCreator = AiChatApiAxiosParamCreator(configuration);
|
|
1219
1234
|
return {
|
|
1220
1235
|
/**
|
|
1221
1236
|
*
|
|
1222
|
-
* @param {
|
|
1223
|
-
* @param {IForgotPasswordRequest} iForgotPasswordRequest
|
|
1237
|
+
* @param {IAiChatPostRequest} iAiChatPostRequest
|
|
1224
1238
|
* @param {*} [options] Override http request option.
|
|
1225
1239
|
* @throws {RequiredError}
|
|
1226
1240
|
*/
|
|
1227
|
-
async
|
|
1228
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1241
|
+
async createAiChat(iAiChatPostRequest, options) {
|
|
1242
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createAiChat(iAiChatPostRequest, options);
|
|
1229
1243
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1230
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
1244
|
+
const localVarOperationServerBasePath = operationServerMap['AiChatApi.createAiChat']?.[localVarOperationServerIndex]?.url;
|
|
1231
1245
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1232
1246
|
},
|
|
1233
1247
|
/**
|
|
1234
1248
|
*
|
|
1235
|
-
* @param {string}
|
|
1236
|
-
* @param {ILoginRequest} iLoginRequest
|
|
1249
|
+
* @param {string} id
|
|
1237
1250
|
* @param {*} [options] Override http request option.
|
|
1238
1251
|
* @throws {RequiredError}
|
|
1239
1252
|
*/
|
|
1240
|
-
async
|
|
1241
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1253
|
+
async deleteAiChat(id, options) {
|
|
1254
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAiChat(id, options);
|
|
1242
1255
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1243
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
1256
|
+
const localVarOperationServerBasePath = operationServerMap['AiChatApi.deleteAiChat']?.[localVarOperationServerIndex]?.url;
|
|
1244
1257
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1245
1258
|
},
|
|
1246
1259
|
/**
|
|
1247
1260
|
*
|
|
1248
|
-
* @param {
|
|
1261
|
+
* @param {string} id
|
|
1262
|
+
* @param {IAiChatFinalizeRequest} iAiChatFinalizeRequest
|
|
1249
1263
|
* @param {*} [options] Override http request option.
|
|
1250
1264
|
* @throws {RequiredError}
|
|
1251
1265
|
*/
|
|
1252
|
-
async
|
|
1253
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1266
|
+
async finalizeAiChat(id, iAiChatFinalizeRequest, options) {
|
|
1267
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.finalizeAiChat(id, iAiChatFinalizeRequest, options);
|
|
1254
1268
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1255
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
1269
|
+
const localVarOperationServerBasePath = operationServerMap['AiChatApi.finalizeAiChat']?.[localVarOperationServerIndex]?.url;
|
|
1256
1270
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1257
1271
|
},
|
|
1258
1272
|
/**
|
|
1259
1273
|
*
|
|
1260
|
-
* @param {string}
|
|
1261
|
-
* @param {IRegisterRequest} iRegisterRequest
|
|
1274
|
+
* @param {string} id
|
|
1262
1275
|
* @param {*} [options] Override http request option.
|
|
1263
1276
|
* @throws {RequiredError}
|
|
1264
1277
|
*/
|
|
1265
|
-
async
|
|
1266
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1278
|
+
async getAiChatById(id, options) {
|
|
1279
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAiChatById(id, options);
|
|
1267
1280
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1268
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
1281
|
+
const localVarOperationServerBasePath = operationServerMap['AiChatApi.getAiChatById']?.[localVarOperationServerIndex]?.url;
|
|
1269
1282
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1270
1283
|
},
|
|
1271
1284
|
/**
|
|
1272
1285
|
*
|
|
1273
|
-
* @param {
|
|
1274
|
-
* @param {
|
|
1275
|
-
* @param {
|
|
1276
|
-
* @
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
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
|
+
};
|
|
1459
|
+
/**
|
|
1460
|
+
* AuthApi - axios parameter creator
|
|
1461
|
+
* @export
|
|
1462
|
+
*/
|
|
1463
|
+
export const AuthApiAxiosParamCreator = function (configuration) {
|
|
1464
|
+
return {
|
|
1465
|
+
/**
|
|
1466
|
+
*
|
|
1467
|
+
* @param {string} domain
|
|
1468
|
+
* @param {IForgotPasswordRequest} iForgotPasswordRequest
|
|
1469
|
+
* @param {*} [options] Override http request option.
|
|
1470
|
+
* @throws {RequiredError}
|
|
1471
|
+
*/
|
|
1472
|
+
forgotPassword: async (domain, iForgotPasswordRequest, options = {}) => {
|
|
1473
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1474
|
+
assertParamExists('forgotPassword', 'domain', domain);
|
|
1475
|
+
// verify required parameter 'iForgotPasswordRequest' is not null or undefined
|
|
1476
|
+
assertParamExists('forgotPassword', 'iForgotPasswordRequest', iForgotPasswordRequest);
|
|
1477
|
+
const localVarPath = `/api/auth/forgot-password`;
|
|
1478
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1479
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1480
|
+
let baseOptions;
|
|
1481
|
+
if (configuration) {
|
|
1482
|
+
baseOptions = configuration.baseOptions;
|
|
1483
|
+
}
|
|
1484
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1485
|
+
const localVarHeaderParameter = {};
|
|
1486
|
+
const localVarQueryParameter = {};
|
|
1487
|
+
if (domain !== undefined) {
|
|
1488
|
+
localVarQueryParameter['domain'] = domain;
|
|
1489
|
+
}
|
|
1490
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1491
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1492
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1493
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1494
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iForgotPasswordRequest, localVarRequestOptions, configuration);
|
|
1495
|
+
return {
|
|
1496
|
+
url: toPathString(localVarUrlObj),
|
|
1497
|
+
options: localVarRequestOptions,
|
|
1498
|
+
};
|
|
1499
|
+
},
|
|
1500
|
+
/**
|
|
1501
|
+
*
|
|
1502
|
+
* @param {string} domain
|
|
1503
|
+
* @param {ILoginRequest} iLoginRequest
|
|
1504
|
+
* @param {*} [options] Override http request option.
|
|
1505
|
+
* @throws {RequiredError}
|
|
1506
|
+
*/
|
|
1507
|
+
login: async (domain, iLoginRequest, options = {}) => {
|
|
1508
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1509
|
+
assertParamExists('login', 'domain', domain);
|
|
1510
|
+
// verify required parameter 'iLoginRequest' is not null or undefined
|
|
1511
|
+
assertParamExists('login', 'iLoginRequest', iLoginRequest);
|
|
1512
|
+
const localVarPath = `/api/auth/login`;
|
|
1513
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1514
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1515
|
+
let baseOptions;
|
|
1516
|
+
if (configuration) {
|
|
1517
|
+
baseOptions = configuration.baseOptions;
|
|
1518
|
+
}
|
|
1519
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1520
|
+
const localVarHeaderParameter = {};
|
|
1521
|
+
const localVarQueryParameter = {};
|
|
1522
|
+
if (domain !== undefined) {
|
|
1523
|
+
localVarQueryParameter['domain'] = domain;
|
|
1524
|
+
}
|
|
1525
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1526
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1527
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1528
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1529
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iLoginRequest, localVarRequestOptions, configuration);
|
|
1530
|
+
return {
|
|
1531
|
+
url: toPathString(localVarUrlObj),
|
|
1532
|
+
options: localVarRequestOptions,
|
|
1533
|
+
};
|
|
1534
|
+
},
|
|
1535
|
+
/**
|
|
1536
|
+
*
|
|
1537
|
+
* @param {IRefreshTokenRequest} iRefreshTokenRequest
|
|
1538
|
+
* @param {*} [options] Override http request option.
|
|
1539
|
+
* @throws {RequiredError}
|
|
1540
|
+
*/
|
|
1541
|
+
refreshToken: async (iRefreshTokenRequest, options = {}) => {
|
|
1542
|
+
// verify required parameter 'iRefreshTokenRequest' is not null or undefined
|
|
1543
|
+
assertParamExists('refreshToken', 'iRefreshTokenRequest', iRefreshTokenRequest);
|
|
1544
|
+
const localVarPath = `/api/auth/refresh-token`;
|
|
1545
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1546
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1547
|
+
let baseOptions;
|
|
1548
|
+
if (configuration) {
|
|
1549
|
+
baseOptions = configuration.baseOptions;
|
|
1550
|
+
}
|
|
1551
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1552
|
+
const localVarHeaderParameter = {};
|
|
1553
|
+
const localVarQueryParameter = {};
|
|
1554
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1555
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1556
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1557
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1558
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iRefreshTokenRequest, localVarRequestOptions, configuration);
|
|
1559
|
+
return {
|
|
1560
|
+
url: toPathString(localVarUrlObj),
|
|
1561
|
+
options: localVarRequestOptions,
|
|
1562
|
+
};
|
|
1563
|
+
},
|
|
1564
|
+
/**
|
|
1565
|
+
*
|
|
1566
|
+
* @param {string} domain
|
|
1567
|
+
* @param {IRegisterRequest} iRegisterRequest
|
|
1568
|
+
* @param {*} [options] Override http request option.
|
|
1569
|
+
* @throws {RequiredError}
|
|
1570
|
+
*/
|
|
1571
|
+
register: async (domain, iRegisterRequest, options = {}) => {
|
|
1572
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1573
|
+
assertParamExists('register', 'domain', domain);
|
|
1574
|
+
// verify required parameter 'iRegisterRequest' is not null or undefined
|
|
1575
|
+
assertParamExists('register', 'iRegisterRequest', iRegisterRequest);
|
|
1576
|
+
const localVarPath = `/api/auth/register`;
|
|
1577
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1578
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1579
|
+
let baseOptions;
|
|
1580
|
+
if (configuration) {
|
|
1581
|
+
baseOptions = configuration.baseOptions;
|
|
1582
|
+
}
|
|
1583
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1584
|
+
const localVarHeaderParameter = {};
|
|
1585
|
+
const localVarQueryParameter = {};
|
|
1586
|
+
if (domain !== undefined) {
|
|
1587
|
+
localVarQueryParameter['domain'] = domain;
|
|
1588
|
+
}
|
|
1589
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1590
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1591
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1592
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1593
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iRegisterRequest, localVarRequestOptions, configuration);
|
|
1594
|
+
return {
|
|
1595
|
+
url: toPathString(localVarUrlObj),
|
|
1596
|
+
options: localVarRequestOptions,
|
|
1597
|
+
};
|
|
1598
|
+
},
|
|
1599
|
+
/**
|
|
1600
|
+
*
|
|
1601
|
+
* @param {string} domain
|
|
1602
|
+
* @param {IResendVerificationEmailRequest} iResendVerificationEmailRequest
|
|
1603
|
+
* @param {*} [options] Override http request option.
|
|
1604
|
+
* @throws {RequiredError}
|
|
1605
|
+
*/
|
|
1606
|
+
resendVerificationEmail: async (domain, iResendVerificationEmailRequest, options = {}) => {
|
|
1607
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1608
|
+
assertParamExists('resendVerificationEmail', 'domain', domain);
|
|
1609
|
+
// verify required parameter 'iResendVerificationEmailRequest' is not null or undefined
|
|
1610
|
+
assertParamExists('resendVerificationEmail', 'iResendVerificationEmailRequest', iResendVerificationEmailRequest);
|
|
1611
|
+
const localVarPath = `/api/auth/resend-verification-email`;
|
|
1612
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1613
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1614
|
+
let baseOptions;
|
|
1615
|
+
if (configuration) {
|
|
1616
|
+
baseOptions = configuration.baseOptions;
|
|
1617
|
+
}
|
|
1618
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1619
|
+
const localVarHeaderParameter = {};
|
|
1620
|
+
const localVarQueryParameter = {};
|
|
1621
|
+
if (domain !== undefined) {
|
|
1622
|
+
localVarQueryParameter['domain'] = domain;
|
|
1623
|
+
}
|
|
1624
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1625
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1626
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1627
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1628
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iResendVerificationEmailRequest, localVarRequestOptions, configuration);
|
|
1629
|
+
return {
|
|
1630
|
+
url: toPathString(localVarUrlObj),
|
|
1631
|
+
options: localVarRequestOptions,
|
|
1632
|
+
};
|
|
1633
|
+
},
|
|
1634
|
+
/**
|
|
1635
|
+
*
|
|
1636
|
+
* @param {string} domain
|
|
1637
|
+
* @param {IResetPasswordRequest} iResetPasswordRequest
|
|
1638
|
+
* @param {*} [options] Override http request option.
|
|
1639
|
+
* @throws {RequiredError}
|
|
1640
|
+
*/
|
|
1641
|
+
resetPassword: async (domain, iResetPasswordRequest, options = {}) => {
|
|
1642
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1643
|
+
assertParamExists('resetPassword', 'domain', domain);
|
|
1644
|
+
// verify required parameter 'iResetPasswordRequest' is not null or undefined
|
|
1645
|
+
assertParamExists('resetPassword', 'iResetPasswordRequest', iResetPasswordRequest);
|
|
1646
|
+
const localVarPath = `/api/auth/reset-password`;
|
|
1647
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1648
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1649
|
+
let baseOptions;
|
|
1650
|
+
if (configuration) {
|
|
1651
|
+
baseOptions = configuration.baseOptions;
|
|
1652
|
+
}
|
|
1653
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1654
|
+
const localVarHeaderParameter = {};
|
|
1655
|
+
const localVarQueryParameter = {};
|
|
1656
|
+
if (domain !== undefined) {
|
|
1657
|
+
localVarQueryParameter['domain'] = domain;
|
|
1658
|
+
}
|
|
1659
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1660
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1661
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1662
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1663
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iResetPasswordRequest, localVarRequestOptions, configuration);
|
|
1664
|
+
return {
|
|
1665
|
+
url: toPathString(localVarUrlObj),
|
|
1666
|
+
options: localVarRequestOptions,
|
|
1667
|
+
};
|
|
1668
|
+
},
|
|
1669
|
+
/**
|
|
1670
|
+
*
|
|
1671
|
+
* @param {string} domain
|
|
1672
|
+
* @param {ISocialLoginRequest} iSocialLoginRequest
|
|
1673
|
+
* @param {*} [options] Override http request option.
|
|
1674
|
+
* @throws {RequiredError}
|
|
1675
|
+
*/
|
|
1676
|
+
socialLogin: async (domain, iSocialLoginRequest, options = {}) => {
|
|
1677
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1678
|
+
assertParamExists('socialLogin', 'domain', domain);
|
|
1679
|
+
// verify required parameter 'iSocialLoginRequest' is not null or undefined
|
|
1680
|
+
assertParamExists('socialLogin', 'iSocialLoginRequest', iSocialLoginRequest);
|
|
1681
|
+
const localVarPath = `/api/auth/social-login`;
|
|
1682
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1683
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1684
|
+
let baseOptions;
|
|
1685
|
+
if (configuration) {
|
|
1686
|
+
baseOptions = configuration.baseOptions;
|
|
1687
|
+
}
|
|
1688
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1689
|
+
const localVarHeaderParameter = {};
|
|
1690
|
+
const localVarQueryParameter = {};
|
|
1691
|
+
if (domain !== undefined) {
|
|
1692
|
+
localVarQueryParameter['domain'] = domain;
|
|
1693
|
+
}
|
|
1694
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1695
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1696
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1697
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1698
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iSocialLoginRequest, localVarRequestOptions, configuration);
|
|
1699
|
+
return {
|
|
1700
|
+
url: toPathString(localVarUrlObj),
|
|
1701
|
+
options: localVarRequestOptions,
|
|
1702
|
+
};
|
|
1703
|
+
},
|
|
1704
|
+
/**
|
|
1705
|
+
*
|
|
1706
|
+
* @param {string} code
|
|
1707
|
+
* @param {*} [options] Override http request option.
|
|
1708
|
+
* @throws {RequiredError}
|
|
1709
|
+
*/
|
|
1710
|
+
verifyCode: async (code, options = {}) => {
|
|
1711
|
+
// verify required parameter 'code' is not null or undefined
|
|
1712
|
+
assertParamExists('verifyCode', 'code', code);
|
|
1713
|
+
const localVarPath = `/api/auth/verify-code/{code}`
|
|
1714
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
1715
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1716
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1717
|
+
let baseOptions;
|
|
1718
|
+
if (configuration) {
|
|
1719
|
+
baseOptions = configuration.baseOptions;
|
|
1720
|
+
}
|
|
1721
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1722
|
+
const localVarHeaderParameter = {};
|
|
1723
|
+
const localVarQueryParameter = {};
|
|
1724
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1725
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1726
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1727
|
+
return {
|
|
1728
|
+
url: toPathString(localVarUrlObj),
|
|
1729
|
+
options: localVarRequestOptions,
|
|
1730
|
+
};
|
|
1731
|
+
},
|
|
1732
|
+
};
|
|
1733
|
+
};
|
|
1734
|
+
/**
|
|
1735
|
+
* AuthApi - functional programming interface
|
|
1736
|
+
* @export
|
|
1737
|
+
*/
|
|
1738
|
+
export const AuthApiFp = function (configuration) {
|
|
1739
|
+
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
|
|
1740
|
+
return {
|
|
1741
|
+
/**
|
|
1742
|
+
*
|
|
1743
|
+
* @param {string} domain
|
|
1744
|
+
* @param {IForgotPasswordRequest} iForgotPasswordRequest
|
|
1745
|
+
* @param {*} [options] Override http request option.
|
|
1746
|
+
* @throws {RequiredError}
|
|
1747
|
+
*/
|
|
1748
|
+
async forgotPassword(domain, iForgotPasswordRequest, options) {
|
|
1749
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.forgotPassword(domain, iForgotPasswordRequest, options);
|
|
1750
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1751
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.forgotPassword']?.[localVarOperationServerIndex]?.url;
|
|
1752
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1753
|
+
},
|
|
1754
|
+
/**
|
|
1755
|
+
*
|
|
1756
|
+
* @param {string} domain
|
|
1757
|
+
* @param {ILoginRequest} iLoginRequest
|
|
1758
|
+
* @param {*} [options] Override http request option.
|
|
1759
|
+
* @throws {RequiredError}
|
|
1760
|
+
*/
|
|
1761
|
+
async login(domain, iLoginRequest, options) {
|
|
1762
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.login(domain, iLoginRequest, options);
|
|
1763
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1764
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.login']?.[localVarOperationServerIndex]?.url;
|
|
1765
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1766
|
+
},
|
|
1767
|
+
/**
|
|
1768
|
+
*
|
|
1769
|
+
* @param {IRefreshTokenRequest} iRefreshTokenRequest
|
|
1770
|
+
* @param {*} [options] Override http request option.
|
|
1771
|
+
* @throws {RequiredError}
|
|
1772
|
+
*/
|
|
1773
|
+
async refreshToken(iRefreshTokenRequest, options) {
|
|
1774
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshToken(iRefreshTokenRequest, options);
|
|
1775
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1776
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.refreshToken']?.[localVarOperationServerIndex]?.url;
|
|
1777
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1778
|
+
},
|
|
1779
|
+
/**
|
|
1780
|
+
*
|
|
1781
|
+
* @param {string} domain
|
|
1782
|
+
* @param {IRegisterRequest} iRegisterRequest
|
|
1783
|
+
* @param {*} [options] Override http request option.
|
|
1784
|
+
* @throws {RequiredError}
|
|
1785
|
+
*/
|
|
1786
|
+
async register(domain, iRegisterRequest, options) {
|
|
1787
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.register(domain, iRegisterRequest, options);
|
|
1788
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1789
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.register']?.[localVarOperationServerIndex]?.url;
|
|
1790
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1791
|
+
},
|
|
1792
|
+
/**
|
|
1793
|
+
*
|
|
1794
|
+
* @param {string} domain
|
|
1795
|
+
* @param {IResendVerificationEmailRequest} iResendVerificationEmailRequest
|
|
1796
|
+
* @param {*} [options] Override http request option.
|
|
1797
|
+
* @throws {RequiredError}
|
|
1798
|
+
*/
|
|
1799
|
+
async resendVerificationEmail(domain, iResendVerificationEmailRequest, options) {
|
|
1800
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resendVerificationEmail(domain, iResendVerificationEmailRequest, options);
|
|
1280
1801
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1281
1802
|
const localVarOperationServerBasePath = operationServerMap['AuthApi.resendVerificationEmail']?.[localVarOperationServerIndex]?.url;
|
|
1282
1803
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -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
|
|
7256
|
+
* @memberof ContactFormApi
|
|
6405
7257
|
*/
|
|
6406
|
-
|
|
6407
|
-
return
|
|
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 {
|
|
7263
|
+
* @param {ContactFormApiDeleteContactFormRequest} requestParameters Request parameters.
|
|
6412
7264
|
* @param {*} [options] Override http request option.
|
|
6413
7265
|
* @throws {RequiredError}
|
|
6414
|
-
* @memberof
|
|
7266
|
+
* @memberof ContactFormApi
|
|
6415
7267
|
*/
|
|
6416
|
-
|
|
6417
|
-
return
|
|
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 {
|
|
7273
|
+
* @param {ContactFormApiGetContactFormByIdRequest} requestParameters Request parameters.
|
|
6422
7274
|
* @param {*} [options] Override http request option.
|
|
6423
7275
|
* @throws {RequiredError}
|
|
6424
|
-
* @memberof
|
|
7276
|
+
* @memberof ContactFormApi
|
|
6425
7277
|
*/
|
|
6426
|
-
|
|
6427
|
-
return
|
|
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 {
|
|
7283
|
+
* @param {ContactFormApiGetContactFormsRequest} requestParameters Request parameters.
|
|
6432
7284
|
* @param {*} [options] Override http request option.
|
|
6433
7285
|
* @throws {RequiredError}
|
|
6434
|
-
* @memberof
|
|
7286
|
+
* @memberof ContactFormApi
|
|
6435
7287
|
*/
|
|
6436
|
-
|
|
6437
|
-
return
|
|
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
|
|
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
|
-
*
|
|
7300
|
+
* ContentPlanApi - axios parameter creator
|
|
6456
7301
|
* @export
|
|
6457
7302
|
*/
|
|
6458
|
-
export const
|
|
7303
|
+
export const ContentPlanApiAxiosParamCreator = function (configuration) {
|
|
6459
7304
|
return {
|
|
6460
7305
|
/**
|
|
6461
7306
|
*
|
|
6462
|
-
* @param {
|
|
7307
|
+
* @param {IContentPlanBulkPostRequest} iContentPlanBulkPostRequest
|
|
6463
7308
|
* @param {*} [options] Override http request option.
|
|
6464
7309
|
* @throws {RequiredError}
|
|
6465
7310
|
*/
|
|
6466
|
-
|
|
6467
|
-
// verify required parameter '
|
|
6468
|
-
assertParamExists('
|
|
6469
|
-
const localVarPath = `/api/
|
|
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(
|
|
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
|
-
|
|
7340
|
+
deleteContentPlan: async (id, options = {}) => {
|
|
6496
7341
|
// verify required parameter 'id' is not null or undefined
|
|
6497
|
-
assertParamExists('
|
|
6498
|
-
const localVarPath = `/api/
|
|
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
|
-
|
|
7368
|
+
getContentPlanById: async (id, options = {}) => {
|
|
6524
7369
|
// verify required parameter 'id' is not null or undefined
|
|
6525
|
-
assertParamExists('
|
|
6526
|
-
const localVarPath = `/api/
|
|
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 {
|
|
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
|
-
|
|
6560
|
-
|
|
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
|
-
*
|
|
7506
|
+
* ContentPlanApi - functional programming interface
|
|
6615
7507
|
* @export
|
|
6616
7508
|
*/
|
|
6617
|
-
export const
|
|
6618
|
-
const localVarAxiosParamCreator =
|
|
7509
|
+
export const ContentPlanApiFp = function (configuration) {
|
|
7510
|
+
const localVarAxiosParamCreator = ContentPlanApiAxiosParamCreator(configuration);
|
|
6619
7511
|
return {
|
|
6620
7512
|
/**
|
|
6621
7513
|
*
|
|
6622
|
-
* @param {
|
|
7514
|
+
* @param {IContentPlanBulkPostRequest} iContentPlanBulkPostRequest
|
|
6623
7515
|
* @param {*} [options] Override http request option.
|
|
6624
7516
|
* @throws {RequiredError}
|
|
6625
7517
|
*/
|
|
6626
|
-
async
|
|
6627
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
7518
|
+
async createContentPlans(iContentPlanBulkPostRequest, options) {
|
|
7519
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createContentPlans(iContentPlanBulkPostRequest, options);
|
|
6628
7520
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6629
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
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
|
|
6639
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
7530
|
+
async deleteContentPlan(id, options) {
|
|
7531
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteContentPlan(id, options);
|
|
6640
7532
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6641
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
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
|
|
6651
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
7542
|
+
async getContentPlanById(id, options) {
|
|
7543
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getContentPlanById(id, options);
|
|
6652
7544
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6653
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
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 {
|
|
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
|
|
6671
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
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['
|
|
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
|
-
*
|
|
7588
|
+
* ContentPlanApi - factory interface
|
|
6680
7589
|
* @export
|
|
6681
7590
|
*/
|
|
6682
|
-
export const
|
|
6683
|
-
const localVarFp =
|
|
7591
|
+
export const ContentPlanApiFactory = function (configuration, basePath, axios) {
|
|
7592
|
+
const localVarFp = ContentPlanApiFp(configuration);
|
|
6684
7593
|
return {
|
|
6685
7594
|
/**
|
|
6686
7595
|
*
|
|
6687
|
-
* @param {
|
|
7596
|
+
* @param {ContentPlanApiCreateContentPlansRequest} requestParameters Request parameters.
|
|
6688
7597
|
* @param {*} [options] Override http request option.
|
|
6689
7598
|
* @throws {RequiredError}
|
|
6690
7599
|
*/
|
|
6691
|
-
|
|
6692
|
-
return localVarFp.
|
|
7600
|
+
createContentPlans(requestParameters, options) {
|
|
7601
|
+
return localVarFp.createContentPlans(requestParameters.iContentPlanBulkPostRequest, options).then((request) => request(axios, basePath));
|
|
6693
7602
|
},
|
|
6694
7603
|
/**
|
|
6695
7604
|
*
|
|
6696
|
-
* @param {
|
|
7605
|
+
* @param {ContentPlanApiDeleteContentPlanRequest} requestParameters Request parameters.
|
|
6697
7606
|
* @param {*} [options] Override http request option.
|
|
6698
7607
|
* @throws {RequiredError}
|
|
6699
7608
|
*/
|
|
6700
|
-
|
|
6701
|
-
return localVarFp.
|
|
7609
|
+
deleteContentPlan(requestParameters, options) {
|
|
7610
|
+
return localVarFp.deleteContentPlan(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6702
7611
|
},
|
|
6703
7612
|
/**
|
|
6704
7613
|
*
|
|
6705
|
-
* @param {
|
|
7614
|
+
* @param {ContentPlanApiGetContentPlanByIdRequest} requestParameters Request parameters.
|
|
6706
7615
|
* @param {*} [options] Override http request option.
|
|
6707
7616
|
* @throws {RequiredError}
|
|
6708
7617
|
*/
|
|
6709
|
-
|
|
6710
|
-
return localVarFp.
|
|
7618
|
+
getContentPlanById(requestParameters, options) {
|
|
7619
|
+
return localVarFp.getContentPlanById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6711
7620
|
},
|
|
6712
7621
|
/**
|
|
6713
7622
|
*
|
|
6714
|
-
* @param {
|
|
7623
|
+
* @param {ContentPlanApiGetContentPlansRequest} requestParameters Request parameters.
|
|
6715
7624
|
* @param {*} [options] Override http request option.
|
|
6716
7625
|
* @throws {RequiredError}
|
|
6717
7626
|
*/
|
|
6718
|
-
|
|
6719
|
-
return localVarFp.
|
|
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
|
-
*
|
|
7642
|
+
* ContentPlanApi - object-oriented interface
|
|
6725
7643
|
* @export
|
|
6726
|
-
* @class
|
|
7644
|
+
* @class ContentPlanApi
|
|
6727
7645
|
* @extends {BaseAPI}
|
|
6728
7646
|
*/
|
|
6729
|
-
export class
|
|
7647
|
+
export class ContentPlanApi extends BaseAPI {
|
|
6730
7648
|
/**
|
|
6731
7649
|
*
|
|
6732
|
-
* @param {
|
|
7650
|
+
* @param {ContentPlanApiCreateContentPlansRequest} requestParameters Request parameters.
|
|
6733
7651
|
* @param {*} [options] Override http request option.
|
|
6734
7652
|
* @throws {RequiredError}
|
|
6735
|
-
* @memberof
|
|
7653
|
+
* @memberof ContentPlanApi
|
|
6736
7654
|
*/
|
|
6737
|
-
|
|
6738
|
-
return
|
|
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 {
|
|
7660
|
+
* @param {ContentPlanApiDeleteContentPlanRequest} requestParameters Request parameters.
|
|
6743
7661
|
* @param {*} [options] Override http request option.
|
|
6744
7662
|
* @throws {RequiredError}
|
|
6745
|
-
* @memberof
|
|
7663
|
+
* @memberof ContentPlanApi
|
|
6746
7664
|
*/
|
|
6747
|
-
|
|
6748
|
-
return
|
|
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 {
|
|
7670
|
+
* @param {ContentPlanApiGetContentPlanByIdRequest} requestParameters Request parameters.
|
|
6753
7671
|
* @param {*} [options] Override http request option.
|
|
6754
7672
|
* @throws {RequiredError}
|
|
6755
|
-
* @memberof
|
|
7673
|
+
* @memberof ContentPlanApi
|
|
6756
7674
|
*/
|
|
6757
|
-
|
|
6758
|
-
return
|
|
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 {
|
|
7680
|
+
* @param {ContentPlanApiGetContentPlansRequest} requestParameters Request parameters.
|
|
6763
7681
|
* @param {*} [options] Override http request option.
|
|
6764
7682
|
* @throws {RequiredError}
|
|
6765
|
-
* @memberof
|
|
7683
|
+
* @memberof ContentPlanApi
|
|
6766
7684
|
*/
|
|
6767
|
-
|
|
6768
|
-
return
|
|
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
|
|
7702
|
+
export const GetContentPlansDateFieldEnum = {
|
|
6775
7703
|
CREATED_AT: 'createdAt',
|
|
6776
7704
|
UPDATED_AT: 'updatedAt'
|
|
6777
7705
|
};
|