@insurup/sdk 0.1.13 → 0.1.14
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/README.md +55 -58
- package/dist/client/client.d.ts +153 -0
- package/dist/client/client.d.ts.map +1 -0
- package/dist/client/graphql.d.ts +51 -0
- package/dist/client/graphql.d.ts.map +1 -0
- package/dist/client/http.d.ts +173 -0
- package/dist/client/http.d.ts.map +1 -0
- package/dist/clients/agent.d.ts +121 -0
- package/dist/clients/agent.d.ts.map +1 -0
- package/dist/clients/agentBranch.d.ts +61 -0
- package/dist/clients/agentBranch.d.ts.map +1 -0
- package/dist/clients/agentRole.d.ts +60 -0
- package/dist/clients/agentRole.d.ts.map +1 -0
- package/dist/clients/agentSetup.d.ts +34 -0
- package/dist/clients/agentSetup.d.ts.map +1 -0
- package/dist/clients/agentUser.d.ts +176 -0
- package/dist/clients/agentUser.d.ts.map +1 -0
- package/dist/clients/case.d.ts +232 -0
- package/dist/clients/case.d.ts.map +1 -0
- package/dist/clients/coverage.d.ts +98 -0
- package/dist/clients/coverage.d.ts.map +1 -0
- package/dist/clients/customer.d.ts +216 -0
- package/dist/clients/customer.d.ts.map +1 -0
- package/dist/clients/file.d.ts +30 -0
- package/dist/clients/file.d.ts.map +1 -0
- package/dist/clients/insurance.d.ts +105 -0
- package/dist/clients/insurance.d.ts.map +1 -0
- package/dist/clients/language.d.ts +27 -0
- package/dist/clients/language.d.ts.map +1 -0
- package/dist/clients/policy.d.ts +251 -0
- package/dist/clients/policy.d.ts.map +1 -0
- package/dist/clients/property.d.ts +163 -0
- package/dist/clients/property.d.ts.map +1 -0
- package/dist/clients/proposal.d.ts +232 -0
- package/dist/clients/proposal.d.ts.map +1 -0
- package/dist/clients/template.d.ts +73 -0
- package/dist/clients/template.d.ts.map +1 -0
- package/dist/clients/vehicle.d.ts +112 -0
- package/dist/clients/vehicle.d.ts.map +1 -0
- package/dist/clients/webhook.d.ts +106 -0
- package/dist/clients/webhook.d.ts.map +1 -0
- package/dist/core/config.d.ts +38 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/endpoints.d.ts +1331 -0
- package/dist/core/endpoints.d.ts.map +1 -0
- package/dist/core/error-types.d.ts +66 -0
- package/dist/core/error-types.d.ts.map +1 -0
- package/dist/core/errors.d.ts +42 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/options.d.ts +221 -0
- package/dist/core/options.d.ts.map +1 -0
- package/dist/core/result.d.ts +183 -0
- package/dist/core/result.d.ts.map +1 -0
- package/dist/core/retry.d.ts +15 -0
- package/dist/core/retry.d.ts.map +1 -0
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +144 -506
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +31 -4225
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +144 -506
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +10 -0
- package/dist/version.d.ts.map +1 -0
- package/package.json +16 -13
- package/dist/index.d.cts +0 -4226
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var __export = (target, all) => {
|
|
|
7
7
|
// package.json
|
|
8
8
|
var package_default = {
|
|
9
9
|
name: "@insurup/sdk",
|
|
10
|
-
version: "0.1.
|
|
10
|
+
version: "0.1.14",
|
|
11
11
|
description: "Type-safe TypeScript SDK for the InsurUp insurance platform with GraphQL support. Tree-shakeable, works everywhere.",
|
|
12
12
|
keywords: [
|
|
13
13
|
"insurup",
|
|
@@ -57,32 +57,35 @@ var package_default = {
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
scripts: {
|
|
60
|
-
build: "tsup",
|
|
61
|
-
"build:tsc": "tsc",
|
|
60
|
+
build: "tsup && tsc -p tsconfig.build.json",
|
|
62
61
|
"check-types": "tsc --noEmit",
|
|
63
62
|
dev: "tsup --watch",
|
|
64
63
|
docs: "typedoc",
|
|
65
64
|
lint: "eslint src test --max-warnings 0",
|
|
66
65
|
test: "vitest run",
|
|
66
|
+
"test:unit": "vitest run test/unit",
|
|
67
|
+
"test:integration": "vitest run test/integration",
|
|
67
68
|
"test:watch": "vitest",
|
|
68
|
-
"test:coverage": "vitest run --coverage"
|
|
69
|
+
"test:coverage": "vitest run --coverage",
|
|
70
|
+
"test:coverage:unit": "vitest run test/unit --coverage",
|
|
71
|
+
"test:coverage:integration": "vitest run test/integration --coverage"
|
|
69
72
|
},
|
|
70
73
|
publishConfig: {
|
|
71
74
|
access: "public"
|
|
72
75
|
},
|
|
73
76
|
devDependencies: {
|
|
74
|
-
"@eslint/js": "^
|
|
75
|
-
"@vitest/coverage-v8": "^4.
|
|
76
|
-
eslint: "^
|
|
77
|
+
"@eslint/js": "^10.0.1",
|
|
78
|
+
"@vitest/coverage-v8": "^4.1.6",
|
|
79
|
+
eslint: "^10.4.0",
|
|
77
80
|
"eslint-config-prettier": "^10.1.8",
|
|
78
81
|
"eslint-plugin-prettier": "^5.5.5",
|
|
79
|
-
msw: "^2.
|
|
80
|
-
prettier: "^3.8.
|
|
82
|
+
msw: "^2.14.6",
|
|
83
|
+
prettier: "^3.8.3",
|
|
81
84
|
tsup: "^8.5.1",
|
|
82
|
-
typedoc: "^0.28.
|
|
83
|
-
typescript: "^
|
|
84
|
-
"typescript-eslint": "^8.
|
|
85
|
-
vitest: "^4.
|
|
85
|
+
typedoc: "^0.28.19",
|
|
86
|
+
typescript: "^6.0.3",
|
|
87
|
+
"typescript-eslint": "^8.59.3",
|
|
88
|
+
vitest: "^4.1.6"
|
|
86
89
|
},
|
|
87
90
|
dependencies: {
|
|
88
91
|
"@insurup/contracts": "workspace:*"
|
|
@@ -401,15 +404,7 @@ function mergeWithDefaults(options) {
|
|
|
401
404
|
|
|
402
405
|
// src/core/retry.ts
|
|
403
406
|
async function withRetry(fn, options) {
|
|
404
|
-
const {
|
|
405
|
-
retries,
|
|
406
|
-
factor,
|
|
407
|
-
minTimeout,
|
|
408
|
-
maxTimeout,
|
|
409
|
-
randomize,
|
|
410
|
-
backoffStrategy,
|
|
411
|
-
onFailedAttempt
|
|
412
|
-
} = options;
|
|
407
|
+
const { retries, factor, minTimeout, maxTimeout, randomize, backoffStrategy, onFailedAttempt } = options;
|
|
413
408
|
let attempt = 1;
|
|
414
409
|
while (true) {
|
|
415
410
|
try {
|
|
@@ -573,10 +568,7 @@ var HttpTransport = class {
|
|
|
573
568
|
);
|
|
574
569
|
} catch (interceptorError) {
|
|
575
570
|
if (this.options.logLevel !== "none") {
|
|
576
|
-
this.options.logger.warn(
|
|
577
|
-
"Response interceptor failed:",
|
|
578
|
-
interceptorError
|
|
579
|
-
);
|
|
571
|
+
this.options.logger.warn("Response interceptor failed:", interceptorError);
|
|
580
572
|
}
|
|
581
573
|
}
|
|
582
574
|
}
|
|
@@ -592,10 +584,7 @@ var HttpTransport = class {
|
|
|
592
584
|
);
|
|
593
585
|
} catch (interceptorError) {
|
|
594
586
|
if (this.options.logLevel !== "none") {
|
|
595
|
-
this.options.logger.warn(
|
|
596
|
-
"Response interceptor failed:",
|
|
597
|
-
interceptorError
|
|
598
|
-
);
|
|
587
|
+
this.options.logger.warn("Response interceptor failed:", interceptorError);
|
|
599
588
|
}
|
|
600
589
|
}
|
|
601
590
|
}
|
|
@@ -678,13 +667,7 @@ var HttpTransport = class {
|
|
|
678
667
|
* @returns Promise resolving to InsurUpResult (no data)
|
|
679
668
|
*/
|
|
680
669
|
async postNoContent(path, data, options) {
|
|
681
|
-
return this.sendInternal(
|
|
682
|
-
"POST",
|
|
683
|
-
path,
|
|
684
|
-
data,
|
|
685
|
-
options,
|
|
686
|
-
false
|
|
687
|
-
);
|
|
670
|
+
return this.sendInternal("POST", path, data, options, false);
|
|
688
671
|
}
|
|
689
672
|
/**
|
|
690
673
|
* PUT request expecting a response with data
|
|
@@ -704,13 +687,7 @@ var HttpTransport = class {
|
|
|
704
687
|
* @returns Promise resolving to InsurUpResult (no data)
|
|
705
688
|
*/
|
|
706
689
|
async putNoContent(path, data, options) {
|
|
707
|
-
return this.sendInternal(
|
|
708
|
-
"PUT",
|
|
709
|
-
path,
|
|
710
|
-
data,
|
|
711
|
-
options,
|
|
712
|
-
false
|
|
713
|
-
);
|
|
690
|
+
return this.sendInternal("PUT", path, data, options, false);
|
|
714
691
|
}
|
|
715
692
|
/**
|
|
716
693
|
* PATCH request expecting a response with data
|
|
@@ -730,13 +707,7 @@ var HttpTransport = class {
|
|
|
730
707
|
* @returns Promise resolving to InsurUpResult (no data)
|
|
731
708
|
*/
|
|
732
709
|
async patchNoContent(path, data, options) {
|
|
733
|
-
return this.sendInternal(
|
|
734
|
-
"PATCH",
|
|
735
|
-
path,
|
|
736
|
-
data,
|
|
737
|
-
options,
|
|
738
|
-
false
|
|
739
|
-
);
|
|
710
|
+
return this.sendInternal("PATCH", path, data, options, false);
|
|
740
711
|
}
|
|
741
712
|
/**
|
|
742
713
|
* DELETE request expecting a response with data
|
|
@@ -754,13 +725,7 @@ var HttpTransport = class {
|
|
|
754
725
|
* @returns Promise resolving to InsurUpResult (no data)
|
|
755
726
|
*/
|
|
756
727
|
async deleteNoContent(path, options) {
|
|
757
|
-
return this.sendInternal(
|
|
758
|
-
"DELETE",
|
|
759
|
-
path,
|
|
760
|
-
null,
|
|
761
|
-
options,
|
|
762
|
-
false
|
|
763
|
-
);
|
|
728
|
+
return this.sendInternal("DELETE", path, null, options, false);
|
|
764
729
|
}
|
|
765
730
|
/**
|
|
766
731
|
* Downloads a binary file as a Blob
|
|
@@ -816,10 +781,7 @@ var HttpTransport = class {
|
|
|
816
781
|
return await this.options.onResponse(networkError, requestConfig);
|
|
817
782
|
} catch (interceptorError) {
|
|
818
783
|
if (this.options.logLevel !== "none") {
|
|
819
|
-
this.options.logger.warn(
|
|
820
|
-
"Response interceptor failed:",
|
|
821
|
-
interceptorError
|
|
822
|
-
);
|
|
784
|
+
this.options.logger.warn("Response interceptor failed:", interceptorError);
|
|
823
785
|
}
|
|
824
786
|
}
|
|
825
787
|
}
|
|
@@ -836,10 +798,7 @@ var HttpTransport = class {
|
|
|
836
798
|
return await this.options.onResponse(serverError, requestConfig);
|
|
837
799
|
} catch (interceptorError) {
|
|
838
800
|
if (this.options.logLevel !== "none") {
|
|
839
|
-
this.options.logger.warn(
|
|
840
|
-
"Response interceptor failed:",
|
|
841
|
-
interceptorError
|
|
842
|
-
);
|
|
801
|
+
this.options.logger.warn("Response interceptor failed:", interceptorError);
|
|
843
802
|
}
|
|
844
803
|
}
|
|
845
804
|
}
|
|
@@ -853,10 +812,7 @@ var HttpTransport = class {
|
|
|
853
812
|
return await this.options.onResponse(result, requestConfig);
|
|
854
813
|
} catch (interceptorError) {
|
|
855
814
|
if (this.options.logLevel !== "none") {
|
|
856
|
-
this.options.logger.warn(
|
|
857
|
-
"Response interceptor failed:",
|
|
858
|
-
interceptorError
|
|
859
|
-
);
|
|
815
|
+
this.options.logger.warn("Response interceptor failed:", interceptorError);
|
|
860
816
|
}
|
|
861
817
|
}
|
|
862
818
|
}
|
|
@@ -865,16 +821,10 @@ var HttpTransport = class {
|
|
|
865
821
|
const deserializationError = createDeserializationError(error);
|
|
866
822
|
if (this.options.onResponse) {
|
|
867
823
|
try {
|
|
868
|
-
return await this.options.onResponse(
|
|
869
|
-
deserializationError,
|
|
870
|
-
requestConfig
|
|
871
|
-
);
|
|
824
|
+
return await this.options.onResponse(deserializationError, requestConfig);
|
|
872
825
|
} catch (interceptorError) {
|
|
873
826
|
if (this.options.logLevel !== "none") {
|
|
874
|
-
this.options.logger.warn(
|
|
875
|
-
"Response interceptor failed:",
|
|
876
|
-
interceptorError
|
|
877
|
-
);
|
|
827
|
+
this.options.logger.warn("Response interceptor failed:", interceptorError);
|
|
878
828
|
}
|
|
879
829
|
}
|
|
880
830
|
}
|
|
@@ -912,9 +862,7 @@ var HttpTransport = class {
|
|
|
912
862
|
* Checks if Content-Type header is present (case-insensitive)
|
|
913
863
|
*/
|
|
914
864
|
hasContentTypeHeader(headers) {
|
|
915
|
-
return Object.keys(headers).some(
|
|
916
|
-
(key) => key.toLowerCase() === "content-type"
|
|
917
|
-
);
|
|
865
|
+
return Object.keys(headers).some((key) => key.toLowerCase() === "content-type");
|
|
918
866
|
}
|
|
919
867
|
/**
|
|
920
868
|
* Checks if a content type is a valid JSON content type
|
|
@@ -948,9 +896,7 @@ var HttpTransport = class {
|
|
|
948
896
|
}
|
|
949
897
|
const contentType = response.headers.get("content-type");
|
|
950
898
|
if (contentType && !this.isJsonContentType(contentType)) {
|
|
951
|
-
return createDeserializationError(
|
|
952
|
-
new Error(`Expected JSON response but got ${contentType}`)
|
|
953
|
-
);
|
|
899
|
+
return createDeserializationError(new Error(`Expected JSON response but got ${contentType}`));
|
|
954
900
|
}
|
|
955
901
|
return this.parseSuccessResponse(responseText);
|
|
956
902
|
}
|
|
@@ -1016,16 +962,12 @@ var HttpTransport = class {
|
|
|
1016
962
|
} else if (this.options.logLevel === "detailed") {
|
|
1017
963
|
if (status === "SUCCESS") {
|
|
1018
964
|
const data = result.kind === "success" && "data" in result ? this.sanitizeResponseData(result.data) : void 0;
|
|
1019
|
-
this.options.logger.info(
|
|
1020
|
-
`Response: ${status} in ${duration}ms${attemptInfo}`,
|
|
1021
|
-
{ data }
|
|
1022
|
-
);
|
|
965
|
+
this.options.logger.info(`Response: ${status} in ${duration}ms${attemptInfo}`, { data });
|
|
1023
966
|
} else {
|
|
1024
967
|
const sanitizedError = this.sanitizeError(result);
|
|
1025
|
-
this.options.logger.error(
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
);
|
|
968
|
+
this.options.logger.error(`Response: ${status} in ${duration}ms${attemptInfo}`, {
|
|
969
|
+
error: sanitizedError
|
|
970
|
+
});
|
|
1029
971
|
}
|
|
1030
972
|
}
|
|
1031
973
|
}
|
|
@@ -1037,9 +979,7 @@ var HttpTransport = class {
|
|
|
1037
979
|
return;
|
|
1038
980
|
}
|
|
1039
981
|
const reason = result.kind === "server-error" ? `HTTP ${result.status}` : result.kind === "client-error" ? result.type : "Unknown error";
|
|
1040
|
-
this.options.logger.warn(
|
|
1041
|
-
`Retry attempt ${attemptNumber} failed due to: ${reason}`
|
|
1042
|
-
);
|
|
982
|
+
this.options.logger.warn(`Retry attempt ${attemptNumber} failed due to: ${reason}`);
|
|
1043
983
|
}
|
|
1044
984
|
/**
|
|
1045
985
|
* Sanitizes headers for logging (removes sensitive information)
|
|
@@ -1049,12 +989,7 @@ var HttpTransport = class {
|
|
|
1049
989
|
return void 0;
|
|
1050
990
|
}
|
|
1051
991
|
const sanitized = {};
|
|
1052
|
-
const sensitiveHeaders = [
|
|
1053
|
-
"authorization",
|
|
1054
|
-
"cookie",
|
|
1055
|
-
"x-api-key",
|
|
1056
|
-
"x-auth-token"
|
|
1057
|
-
];
|
|
992
|
+
const sensitiveHeaders = ["authorization", "cookie", "x-api-key", "x-auth-token"];
|
|
1058
993
|
for (const [key, value] of Object.entries(headers)) {
|
|
1059
994
|
const lowerKey = key.toLowerCase();
|
|
1060
995
|
if (sensitiveHeaders.includes(lowerKey)) {
|
|
@@ -1117,8 +1052,7 @@ var HttpTransport = class {
|
|
|
1117
1052
|
const keys = Object.keys(item);
|
|
1118
1053
|
propertyCount += keys.length;
|
|
1119
1054
|
for (const key of keys.slice(0, 10)) {
|
|
1120
|
-
if (countProperties(item[key], depth + 1))
|
|
1121
|
-
return true;
|
|
1055
|
+
if (countProperties(item[key], depth + 1)) return true;
|
|
1122
1056
|
}
|
|
1123
1057
|
}
|
|
1124
1058
|
return false;
|
|
@@ -1218,12 +1152,10 @@ function parseExtensions(raw) {
|
|
|
1218
1152
|
}
|
|
1219
1153
|
function parseGraphQLErrors(rawErrors) {
|
|
1220
1154
|
return rawErrors.map((error) => {
|
|
1221
|
-
const locations = error.locations?.map(
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
})
|
|
1226
|
-
);
|
|
1155
|
+
const locations = error.locations?.map((loc) => ({
|
|
1156
|
+
line: loc.line,
|
|
1157
|
+
column: loc.column
|
|
1158
|
+
}));
|
|
1227
1159
|
return {
|
|
1228
1160
|
message: error.message,
|
|
1229
1161
|
locations,
|
|
@@ -1248,11 +1180,7 @@ var GraphQLTransport = class {
|
|
|
1248
1180
|
query,
|
|
1249
1181
|
variables
|
|
1250
1182
|
};
|
|
1251
|
-
const result = await this.http.post(
|
|
1252
|
-
"graphql",
|
|
1253
|
-
payload,
|
|
1254
|
-
options
|
|
1255
|
-
);
|
|
1183
|
+
const result = await this.http.post("graphql", payload, options);
|
|
1256
1184
|
if (!result.isSuccess) {
|
|
1257
1185
|
return result;
|
|
1258
1186
|
}
|
|
@@ -1394,46 +1322,28 @@ var customers = {
|
|
|
1394
1322
|
},
|
|
1395
1323
|
getCustomer: {
|
|
1396
1324
|
definition: "customers/{CustomerId}",
|
|
1397
|
-
render: (customerId) => "customers/{CustomerId}".replace(
|
|
1398
|
-
"{CustomerId}",
|
|
1399
|
-
encodeURIComponent(customerId)
|
|
1400
|
-
)
|
|
1325
|
+
render: (customerId) => "customers/{CustomerId}".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1401
1326
|
},
|
|
1402
1327
|
updateCustomer: {
|
|
1403
1328
|
definition: "customers/{CustomerId}",
|
|
1404
|
-
render: (customerId) => "customers/{CustomerId}".replace(
|
|
1405
|
-
"{CustomerId}",
|
|
1406
|
-
encodeURIComponent(customerId)
|
|
1407
|
-
)
|
|
1329
|
+
render: (customerId) => "customers/{CustomerId}".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1408
1330
|
},
|
|
1409
1331
|
deleteCustomer: {
|
|
1410
1332
|
definition: "customers/{CustomerId}",
|
|
1411
|
-
render: (customerId) => "customers/{CustomerId}".replace(
|
|
1412
|
-
"{CustomerId}",
|
|
1413
|
-
encodeURIComponent(customerId)
|
|
1414
|
-
)
|
|
1333
|
+
render: (customerId) => "customers/{CustomerId}".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1415
1334
|
},
|
|
1416
1335
|
getHealthInfo: {
|
|
1417
1336
|
definition: "customers/{CustomerId}/health-info",
|
|
1418
|
-
render: (customerId) => "customers/{CustomerId}/health-info".replace(
|
|
1419
|
-
"{CustomerId}",
|
|
1420
|
-
encodeURIComponent(customerId)
|
|
1421
|
-
)
|
|
1337
|
+
render: (customerId) => "customers/{CustomerId}/health-info".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1422
1338
|
},
|
|
1423
1339
|
updateHealthInfo: {
|
|
1424
1340
|
definition: "customers/{CustomerId}/health-info",
|
|
1425
|
-
render: (customerId) => "customers/{CustomerId}/health-info".replace(
|
|
1426
|
-
"{CustomerId}",
|
|
1427
|
-
encodeURIComponent(customerId)
|
|
1428
|
-
)
|
|
1341
|
+
render: (customerId) => "customers/{CustomerId}/health-info".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1429
1342
|
},
|
|
1430
1343
|
emails: {
|
|
1431
1344
|
addCustomerEmail: {
|
|
1432
1345
|
definition: "customers/{CustomerId}/emails",
|
|
1433
|
-
render: (customerId) => "customers/{CustomerId}/emails".replace(
|
|
1434
|
-
"{CustomerId}",
|
|
1435
|
-
encodeURIComponent(customerId)
|
|
1436
|
-
)
|
|
1346
|
+
render: (customerId) => "customers/{CustomerId}/emails".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1437
1347
|
},
|
|
1438
1348
|
removeCustomerEmail: {
|
|
1439
1349
|
definition: "customers/{CustomerId}/emails/{Email}",
|
|
@@ -1445,10 +1355,7 @@ var customers = {
|
|
|
1445
1355
|
},
|
|
1446
1356
|
getCustomerEmails: {
|
|
1447
1357
|
definition: "customers/{CustomerId}/emails",
|
|
1448
|
-
render: (customerId) => "customers/{CustomerId}/emails".replace(
|
|
1449
|
-
"{CustomerId}",
|
|
1450
|
-
encodeURIComponent(customerId)
|
|
1451
|
-
)
|
|
1358
|
+
render: (customerId) => "customers/{CustomerId}/emails".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1452
1359
|
}
|
|
1453
1360
|
},
|
|
1454
1361
|
phoneNumbers: {
|
|
@@ -1461,17 +1368,11 @@ var customers = {
|
|
|
1461
1368
|
},
|
|
1462
1369
|
removeCustomerPhoneNumber: {
|
|
1463
1370
|
definition: "customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}",
|
|
1464
|
-
render: (request) => "customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}".replace("{CustomerId}", encodeURIComponent(request.customerId)).replace(
|
|
1465
|
-
"{CountryCode}",
|
|
1466
|
-
encodeURIComponent(request.countryCode.toString())
|
|
1467
|
-
).replace("{PhoneNumber}", encodeURIComponent(request.phoneNumber))
|
|
1371
|
+
render: (request) => "customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}".replace("{CustomerId}", encodeURIComponent(request.customerId)).replace("{CountryCode}", encodeURIComponent(request.countryCode.toString())).replace("{PhoneNumber}", encodeURIComponent(request.phoneNumber))
|
|
1468
1372
|
},
|
|
1469
1373
|
changePrimaryCustomerPhoneNumber: {
|
|
1470
1374
|
definition: "customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}/primary",
|
|
1471
|
-
render: (request) => "customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}/primary".replace("{CustomerId}", encodeURIComponent(request.customerId)).replace(
|
|
1472
|
-
"{CountryCode}",
|
|
1473
|
-
encodeURIComponent(request.countryCode.toString())
|
|
1474
|
-
).replace("{PhoneNumber}", encodeURIComponent(request.phoneNumber))
|
|
1375
|
+
render: (request) => "customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}/primary".replace("{CustomerId}", encodeURIComponent(request.customerId)).replace("{CountryCode}", encodeURIComponent(request.countryCode.toString())).replace("{PhoneNumber}", encodeURIComponent(request.phoneNumber))
|
|
1475
1376
|
},
|
|
1476
1377
|
getCustomerPhoneNumbers: {
|
|
1477
1378
|
definition: "customers/{CustomerId}/phone-numbers",
|
|
@@ -1517,26 +1418,17 @@ var customers = {
|
|
|
1517
1418
|
},
|
|
1518
1419
|
create: {
|
|
1519
1420
|
definition: "customers/{CustomerId}/contacts",
|
|
1520
|
-
render: (customerId) => "customers/{CustomerId}/contacts".replace(
|
|
1521
|
-
"{CustomerId}",
|
|
1522
|
-
encodeURIComponent(customerId)
|
|
1523
|
-
)
|
|
1421
|
+
render: (customerId) => "customers/{CustomerId}/contacts".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1524
1422
|
}
|
|
1525
1423
|
},
|
|
1526
1424
|
setCustomerBranch: {
|
|
1527
1425
|
definition: "customers/{CustomerId}/branch",
|
|
1528
|
-
render: (customerId) => "customers/{CustomerId}/branch".replace(
|
|
1529
|
-
"{CustomerId}",
|
|
1530
|
-
encodeURIComponent(customerId)
|
|
1531
|
-
)
|
|
1426
|
+
render: (customerId) => "customers/{CustomerId}/branch".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1532
1427
|
},
|
|
1533
1428
|
addresses: {
|
|
1534
1429
|
create: {
|
|
1535
1430
|
definition: "customers/{CustomerId}/addresses",
|
|
1536
|
-
render: (customerId) => "customers/{CustomerId}/addresses".replace(
|
|
1537
|
-
"{CustomerId}",
|
|
1538
|
-
encodeURIComponent(customerId)
|
|
1539
|
-
)
|
|
1431
|
+
render: (customerId) => "customers/{CustomerId}/addresses".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1540
1432
|
},
|
|
1541
1433
|
update: {
|
|
1542
1434
|
definition: "customers/{CustomerId}/addresses/{AddressId}",
|
|
@@ -1548,10 +1440,7 @@ var customers = {
|
|
|
1548
1440
|
},
|
|
1549
1441
|
getAll: {
|
|
1550
1442
|
definition: "customers/{CustomerId}/addresses",
|
|
1551
|
-
render: (customerId) => "customers/{CustomerId}/addresses".replace(
|
|
1552
|
-
"{CustomerId}",
|
|
1553
|
-
encodeURIComponent(customerId)
|
|
1554
|
-
)
|
|
1443
|
+
render: (customerId) => "customers/{CustomerId}/addresses".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1555
1444
|
},
|
|
1556
1445
|
delete: {
|
|
1557
1446
|
definition: "customers/{CustomerId}/addresses/{AddressId}",
|
|
@@ -1561,10 +1450,7 @@ var customers = {
|
|
|
1561
1450
|
consents: {
|
|
1562
1451
|
give: {
|
|
1563
1452
|
definition: "customers/{CustomerId}/consents",
|
|
1564
|
-
render: (customerId) => "customers/{CustomerId}/consents".replace(
|
|
1565
|
-
"{CustomerId}",
|
|
1566
|
-
encodeURIComponent(customerId)
|
|
1567
|
-
)
|
|
1453
|
+
render: (customerId) => "customers/{CustomerId}/consents".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1568
1454
|
},
|
|
1569
1455
|
revoke: {
|
|
1570
1456
|
definition: "customers/{CustomerId}/consents/revoke",
|
|
@@ -1575,10 +1461,7 @@ var customers = {
|
|
|
1575
1461
|
},
|
|
1576
1462
|
getAll: {
|
|
1577
1463
|
definition: "customers/{CustomerId}/consents",
|
|
1578
|
-
render: (customerId) => "customers/{CustomerId}/consents".replace(
|
|
1579
|
-
"{CustomerId}",
|
|
1580
|
-
encodeURIComponent(customerId)
|
|
1581
|
-
)
|
|
1464
|
+
render: (customerId) => "customers/{CustomerId}/consents".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1582
1465
|
}
|
|
1583
1466
|
}
|
|
1584
1467
|
};
|
|
@@ -1645,10 +1528,7 @@ var vehicles = {
|
|
|
1645
1528
|
},
|
|
1646
1529
|
create: {
|
|
1647
1530
|
definition: "customers/{CustomerId}/vehicles",
|
|
1648
|
-
render: (customerId) => "customers/{CustomerId}/vehicles".replace(
|
|
1649
|
-
"{CustomerId}",
|
|
1650
|
-
encodeURIComponent(customerId)
|
|
1651
|
-
)
|
|
1531
|
+
render: (customerId) => "customers/{CustomerId}/vehicles".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1652
1532
|
},
|
|
1653
1533
|
update: {
|
|
1654
1534
|
definition: "customers/{CustomerId}/vehicles/{VehicleId}",
|
|
@@ -1664,10 +1544,7 @@ var vehicles = {
|
|
|
1664
1544
|
},
|
|
1665
1545
|
getCustomerVehicles: {
|
|
1666
1546
|
definition: "customers/{CustomerId}/vehicles",
|
|
1667
|
-
render: (customerId) => "customers/{CustomerId}/vehicles".replace(
|
|
1668
|
-
"{CustomerId}",
|
|
1669
|
-
encodeURIComponent(customerId)
|
|
1670
|
-
)
|
|
1547
|
+
render: (customerId) => "customers/{CustomerId}/vehicles".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1671
1548
|
}
|
|
1672
1549
|
};
|
|
1673
1550
|
var insuranceServices = {
|
|
@@ -1679,17 +1556,11 @@ var properties = {
|
|
|
1679
1556
|
getCurrentCustomerProperties: "customers/me/properties",
|
|
1680
1557
|
getAll: {
|
|
1681
1558
|
definition: "customers/{CustomerId}/properties",
|
|
1682
|
-
render: (customerId) => "customers/{CustomerId}/properties".replace(
|
|
1683
|
-
"{CustomerId}",
|
|
1684
|
-
encodeURIComponent(customerId)
|
|
1685
|
-
)
|
|
1559
|
+
render: (customerId) => "customers/{CustomerId}/properties".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1686
1560
|
},
|
|
1687
1561
|
create: {
|
|
1688
1562
|
definition: "customers/{CustomerId}/properties",
|
|
1689
|
-
render: (customerId) => "customers/{CustomerId}/properties".replace(
|
|
1690
|
-
"{CustomerId}",
|
|
1691
|
-
encodeURIComponent(customerId)
|
|
1692
|
-
)
|
|
1563
|
+
render: (customerId) => "customers/{CustomerId}/properties".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1693
1564
|
},
|
|
1694
1565
|
getById: {
|
|
1695
1566
|
definition: "customers/{CustomerId}/properties/{PropertyId}",
|
|
@@ -1708,24 +1579,15 @@ var proposals = {
|
|
|
1708
1579
|
create: "proposals",
|
|
1709
1580
|
getProposalById: {
|
|
1710
1581
|
definition: "proposals/{ProposalId}",
|
|
1711
|
-
render: (proposalId) => "proposals/{ProposalId}".replace(
|
|
1712
|
-
"{ProposalId}",
|
|
1713
|
-
encodeURIComponent(proposalId)
|
|
1714
|
-
)
|
|
1582
|
+
render: (proposalId) => "proposals/{ProposalId}".replace("{ProposalId}", encodeURIComponent(proposalId))
|
|
1715
1583
|
},
|
|
1716
1584
|
getProposalSnapshot: {
|
|
1717
1585
|
definition: "proposals/{ProposalId}/snapshot",
|
|
1718
|
-
render: (proposalId) => "proposals/{ProposalId}/snapshot".replace(
|
|
1719
|
-
"{ProposalId}",
|
|
1720
|
-
encodeURIComponent(proposalId)
|
|
1721
|
-
)
|
|
1586
|
+
render: (proposalId) => "proposals/{ProposalId}/snapshot".replace("{ProposalId}", encodeURIComponent(proposalId))
|
|
1722
1587
|
},
|
|
1723
1588
|
getProposalCoverage: {
|
|
1724
1589
|
definition: "proposals/{ProposalId}/coverage",
|
|
1725
|
-
render: (proposalId) => "proposals/{ProposalId}/coverage".replace(
|
|
1726
|
-
"{ProposalId}",
|
|
1727
|
-
encodeURIComponent(proposalId)
|
|
1728
|
-
)
|
|
1590
|
+
render: (proposalId) => "proposals/{ProposalId}/coverage".replace("{ProposalId}", encodeURIComponent(proposalId))
|
|
1729
1591
|
},
|
|
1730
1592
|
getProposalProductCoverage: {
|
|
1731
1593
|
definition: "proposals/{ProposalId}/products/{ProposalProductId}/coverage",
|
|
@@ -1737,10 +1599,7 @@ var proposals = {
|
|
|
1737
1599
|
},
|
|
1738
1600
|
getProposalProductPremiumDetail: {
|
|
1739
1601
|
definition: "proposals/{ProposalId}/products/{ProposalProductId}/premium-detail/{InstallmentNumber}",
|
|
1740
|
-
render: (proposalId, proposalProductId, installmentNumber) => "proposals/{ProposalId}/products/{ProposalProductId}/premium-detail/{InstallmentNumber}".replace("{ProposalId}", encodeURIComponent(proposalId)).replace("{ProposalProductId}", encodeURIComponent(proposalProductId)).replace(
|
|
1741
|
-
"{InstallmentNumber}",
|
|
1742
|
-
encodeURIComponent(installmentNumber.toString())
|
|
1743
|
-
)
|
|
1602
|
+
render: (proposalId, proposalProductId, installmentNumber) => "proposals/{ProposalId}/products/{ProposalProductId}/premium-detail/{InstallmentNumber}".replace("{ProposalId}", encodeURIComponent(proposalId)).replace("{ProposalProductId}", encodeURIComponent(proposalProductId)).replace("{InstallmentNumber}", encodeURIComponent(installmentNumber.toString()))
|
|
1744
1603
|
},
|
|
1745
1604
|
purchaseProposalProductSync: {
|
|
1746
1605
|
definition: "proposals/{ProposalId}/products/{ProposalProductId}/purchase/sync",
|
|
@@ -1752,10 +1611,7 @@ var proposals = {
|
|
|
1752
1611
|
},
|
|
1753
1612
|
reviseProposal: {
|
|
1754
1613
|
definition: "proposals/{ProposalId}/revise",
|
|
1755
|
-
render: (proposalId) => "proposals/{ProposalId}/revise".replace(
|
|
1756
|
-
"{ProposalId}",
|
|
1757
|
-
encodeURIComponent(proposalId)
|
|
1758
|
-
)
|
|
1614
|
+
render: (proposalId) => "proposals/{ProposalId}/revise".replace("{ProposalId}", encodeURIComponent(proposalId))
|
|
1759
1615
|
},
|
|
1760
1616
|
reviseProposalProduct: {
|
|
1761
1617
|
definition: "proposals/{ProposalId}/products/{ProposalProductId}/revise",
|
|
@@ -1800,10 +1656,7 @@ var proposals = {
|
|
|
1800
1656
|
},
|
|
1801
1657
|
setProposalBranch: {
|
|
1802
1658
|
definition: "proposals/{ProposalId}/branch",
|
|
1803
|
-
render: (proposalId) => "proposals/{ProposalId}/branch".replace(
|
|
1804
|
-
"{ProposalId}",
|
|
1805
|
-
encodeURIComponent(proposalId)
|
|
1806
|
-
)
|
|
1659
|
+
render: (proposalId) => "proposals/{ProposalId}/branch".replace("{ProposalId}", encodeURIComponent(proposalId))
|
|
1807
1660
|
},
|
|
1808
1661
|
generateCustomerProposalDocumentPdf: {
|
|
1809
1662
|
definition: "proposals/{ProposalId}/customer-document-pdf",
|
|
@@ -1823,41 +1676,26 @@ var policies = {
|
|
|
1823
1676
|
},
|
|
1824
1677
|
fetchPolicyDocument: {
|
|
1825
1678
|
definition: "policies/{PolicyId}/document",
|
|
1826
|
-
render: (policyId) => "policies/{PolicyId}/document".replace(
|
|
1827
|
-
"{PolicyId}",
|
|
1828
|
-
encodeURIComponent(policyId)
|
|
1829
|
-
)
|
|
1679
|
+
render: (policyId) => "policies/{PolicyId}/document".replace("{PolicyId}", encodeURIComponent(policyId))
|
|
1830
1680
|
},
|
|
1831
1681
|
sendPolicyDocument: {
|
|
1832
1682
|
definition: "policies/{PolicyId}/document/send",
|
|
1833
|
-
render: (policyId) => "policies/{PolicyId}/document/send".replace(
|
|
1834
|
-
"{PolicyId}",
|
|
1835
|
-
encodeURIComponent(policyId)
|
|
1836
|
-
)
|
|
1683
|
+
render: (policyId) => "policies/{PolicyId}/document/send".replace("{PolicyId}", encodeURIComponent(policyId))
|
|
1837
1684
|
},
|
|
1838
1685
|
setPolicyRepresentative: {
|
|
1839
1686
|
definition: "policies/{PolicyId}/representative",
|
|
1840
|
-
render: (policyId) => "policies/{PolicyId}/representative".replace(
|
|
1841
|
-
"{PolicyId}",
|
|
1842
|
-
encodeURIComponent(policyId)
|
|
1843
|
-
)
|
|
1687
|
+
render: (policyId) => "policies/{PolicyId}/representative".replace("{PolicyId}", encodeURIComponent(policyId))
|
|
1844
1688
|
},
|
|
1845
1689
|
setPolicyBranch: {
|
|
1846
1690
|
definition: "policies/{PolicyId}/branch",
|
|
1847
|
-
render: (policyId) => "policies/{PolicyId}/branch".replace(
|
|
1848
|
-
"{PolicyId}",
|
|
1849
|
-
encodeURIComponent(policyId)
|
|
1850
|
-
)
|
|
1691
|
+
render: (policyId) => "policies/{PolicyId}/branch".replace("{PolicyId}", encodeURIComponent(policyId))
|
|
1851
1692
|
},
|
|
1852
1693
|
createManualPolicy: {
|
|
1853
1694
|
definition: "policies/manual"
|
|
1854
1695
|
},
|
|
1855
1696
|
updateManualPolicy: {
|
|
1856
1697
|
definition: "policies/manual/{PolicyId}",
|
|
1857
|
-
render: (policyId) => "policies/manual/{PolicyId}".replace(
|
|
1858
|
-
"{PolicyId}",
|
|
1859
|
-
encodeURIComponent(policyId)
|
|
1860
|
-
)
|
|
1698
|
+
render: (policyId) => "policies/manual/{PolicyId}".replace("{PolicyId}", encodeURIComponent(policyId))
|
|
1861
1699
|
},
|
|
1862
1700
|
getPolicyCountAndPremiumAnalytics: {
|
|
1863
1701
|
definition: "policies/analytics/count-and-premium"
|
|
@@ -1883,10 +1721,7 @@ var policyTransfers = {
|
|
|
1883
1721
|
},
|
|
1884
1722
|
getPolicyTransferTriggerDetail: {
|
|
1885
1723
|
definition: "policy-transfers/{PolicyTransferId}/triggers/{PolicyTransferTriggerId}",
|
|
1886
|
-
render: (policyTransferId, policyTransferTriggerId) => "policy-transfers/{PolicyTransferId}/triggers/{PolicyTransferTriggerId}".replace("{PolicyTransferId}", encodeURIComponent(policyTransferId)).replace(
|
|
1887
|
-
"{PolicyTransferTriggerId}",
|
|
1888
|
-
encodeURIComponent(policyTransferTriggerId)
|
|
1889
|
-
)
|
|
1724
|
+
render: (policyTransferId, policyTransferTriggerId) => "policy-transfers/{PolicyTransferId}/triggers/{PolicyTransferTriggerId}".replace("{PolicyTransferId}", encodeURIComponent(policyTransferId)).replace("{PolicyTransferTriggerId}", encodeURIComponent(policyTransferTriggerId))
|
|
1890
1725
|
},
|
|
1891
1726
|
triggerPolicyTransfer: {
|
|
1892
1727
|
definition: "policy-transfers/{PolicyTransferId}/trigger",
|
|
@@ -1938,10 +1773,7 @@ var agentSetupRequests = {
|
|
|
1938
1773
|
},
|
|
1939
1774
|
disableAgentSetupRequest: {
|
|
1940
1775
|
definition: "agent-setup-requests/{Id}/disable",
|
|
1941
|
-
render: (id) => "agent-setup-requests/{Id}/disable".replace(
|
|
1942
|
-
"{Id}",
|
|
1943
|
-
encodeURIComponent(id)
|
|
1944
|
-
)
|
|
1776
|
+
render: (id) => "agent-setup-requests/{Id}/disable".replace("{Id}", encodeURIComponent(id))
|
|
1945
1777
|
}
|
|
1946
1778
|
};
|
|
1947
1779
|
var agentUsers = {
|
|
@@ -1963,17 +1795,11 @@ var agentUsers = {
|
|
|
1963
1795
|
},
|
|
1964
1796
|
deactivate: {
|
|
1965
1797
|
definition: "agent-users/{AgentUserId}/deactivate",
|
|
1966
|
-
render: (userId) => "agent-users/{AgentUserId}/deactivate".replace(
|
|
1967
|
-
"{AgentUserId}",
|
|
1968
|
-
encodeURIComponent(userId)
|
|
1969
|
-
)
|
|
1798
|
+
render: (userId) => "agent-users/{AgentUserId}/deactivate".replace("{AgentUserId}", encodeURIComponent(userId))
|
|
1970
1799
|
},
|
|
1971
1800
|
activate: {
|
|
1972
1801
|
definition: "agent-users/{AgentUserId}/activate",
|
|
1973
|
-
render: (userId) => "agent-users/{AgentUserId}/activate".replace(
|
|
1974
|
-
"{AgentUserId}",
|
|
1975
|
-
encodeURIComponent(userId)
|
|
1976
|
-
)
|
|
1802
|
+
render: (userId) => "agent-users/{AgentUserId}/activate".replace("{AgentUserId}", encodeURIComponent(userId))
|
|
1977
1803
|
},
|
|
1978
1804
|
delete: {
|
|
1979
1805
|
definition: "agent-users/{UserId}",
|
|
@@ -1985,10 +1811,7 @@ var agentUsers = {
|
|
|
1985
1811
|
},
|
|
1986
1812
|
checkAgentUserInviteCode: {
|
|
1987
1813
|
definition: "agent-users/check-invite-code",
|
|
1988
|
-
render: (code) => "agent-users/check-invite-code?code={code}".replace(
|
|
1989
|
-
"{code}",
|
|
1990
|
-
encodeURIComponent(code)
|
|
1991
|
-
)
|
|
1814
|
+
render: (code) => "agent-users/check-invite-code?code={code}".replace("{code}", encodeURIComponent(code))
|
|
1992
1815
|
},
|
|
1993
1816
|
update: {
|
|
1994
1817
|
definition: "agent-users/{Id}",
|
|
@@ -1996,10 +1819,7 @@ var agentUsers = {
|
|
|
1996
1819
|
},
|
|
1997
1820
|
migrate: {
|
|
1998
1821
|
definition: "agent-users/{AgentUserId}/migrate",
|
|
1999
|
-
render: (agentUserId) => "agent-users/{AgentUserId}/migrate".replace(
|
|
2000
|
-
"{AgentUserId}",
|
|
2001
|
-
encodeURIComponent(agentUserId)
|
|
2002
|
-
)
|
|
1822
|
+
render: (agentUserId) => "agent-users/{AgentUserId}/migrate".replace("{AgentUserId}", encodeURIComponent(agentUserId))
|
|
2003
1823
|
},
|
|
2004
1824
|
migrateAll: "agent-users/migrate-all"
|
|
2005
1825
|
};
|
|
@@ -2037,17 +1857,11 @@ var webhooks = {
|
|
|
2037
1857
|
deliveries: {
|
|
2038
1858
|
getById: {
|
|
2039
1859
|
definition: "webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}",
|
|
2040
|
-
render: (webhookId, webhookDeliveryId) => "webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}".replace("{WebhookId}", encodeURIComponent(webhookId)).replace(
|
|
2041
|
-
"{WebhookDeliveryId}",
|
|
2042
|
-
encodeURIComponent(webhookDeliveryId)
|
|
2043
|
-
)
|
|
1860
|
+
render: (webhookId, webhookDeliveryId) => "webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}".replace("{WebhookId}", encodeURIComponent(webhookId)).replace("{WebhookDeliveryId}", encodeURIComponent(webhookDeliveryId))
|
|
2044
1861
|
},
|
|
2045
1862
|
redeliver: {
|
|
2046
1863
|
definition: "webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}/redeliver",
|
|
2047
|
-
render: (webhookId, webhookDeliveryId) => "webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}/redeliver".replace("{WebhookId}", encodeURIComponent(webhookId)).replace(
|
|
2048
|
-
"{WebhookDeliveryId}",
|
|
2049
|
-
encodeURIComponent(webhookDeliveryId)
|
|
2050
|
-
)
|
|
1864
|
+
render: (webhookId, webhookDeliveryId) => "webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}/redeliver".replace("{WebhookId}", encodeURIComponent(webhookId)).replace("{WebhookDeliveryId}", encodeURIComponent(webhookDeliveryId))
|
|
2051
1865
|
}
|
|
2052
1866
|
}
|
|
2053
1867
|
};
|
|
@@ -2222,10 +2036,7 @@ var InsurUpAgentClient = class {
|
|
|
2222
2036
|
* @returns Agent profile information / Acente profil bilgileri
|
|
2223
2037
|
*/
|
|
2224
2038
|
async getCurrentAgent(options) {
|
|
2225
|
-
return this.http.get(
|
|
2226
|
-
agents.getCurrentAgent,
|
|
2227
|
-
options
|
|
2228
|
-
);
|
|
2039
|
+
return this.http.get(agents.getCurrentAgent, options);
|
|
2229
2040
|
}
|
|
2230
2041
|
/**
|
|
2231
2042
|
* Updates the current agent's profile information such as business details, contact information, and operational preferences.
|
|
@@ -2260,13 +2071,8 @@ var InsurUpAgentClient = class {
|
|
|
2260
2071
|
* @returns Available product branches / Mevcut ürün dalları
|
|
2261
2072
|
*/
|
|
2262
2073
|
async getAgentInsuranceCompanyBranchesAsync(agentInsuranceCompanyId, options) {
|
|
2263
|
-
const endpoint = agents.insuranceCompanies.getBranches.render(
|
|
2264
|
-
|
|
2265
|
-
);
|
|
2266
|
-
return this.http.get(
|
|
2267
|
-
endpoint,
|
|
2268
|
-
options
|
|
2269
|
-
);
|
|
2074
|
+
const endpoint = agents.insuranceCompanies.getBranches.render(agentInsuranceCompanyId);
|
|
2075
|
+
return this.http.get(endpoint, options);
|
|
2270
2076
|
}
|
|
2271
2077
|
/**
|
|
2272
2078
|
* Retrieves the technical connection configuration and credentials for integrating with a specific insurance company's systems.
|
|
@@ -2277,13 +2083,8 @@ var InsurUpAgentClient = class {
|
|
|
2277
2083
|
* @returns Connection configuration details / Bağlantı yapılandırma detayları
|
|
2278
2084
|
*/
|
|
2279
2085
|
async getAgentInsuranceCompanyConnectionAsync(agentInsuranceCompanyId, options) {
|
|
2280
|
-
const endpoint = agents.insuranceCompanies.getConnection.render(
|
|
2281
|
-
|
|
2282
|
-
);
|
|
2283
|
-
return this.http.get(
|
|
2284
|
-
endpoint,
|
|
2285
|
-
options
|
|
2286
|
-
);
|
|
2086
|
+
const endpoint = agents.insuranceCompanies.getConnection.render(agentInsuranceCompanyId);
|
|
2087
|
+
return this.http.get(endpoint, options);
|
|
2287
2088
|
}
|
|
2288
2089
|
/**
|
|
2289
2090
|
* Establishes a new business relationship between the agent and an insurance company, enabling the agent to offer that company's products.
|
|
@@ -2309,9 +2110,7 @@ var InsurUpAgentClient = class {
|
|
|
2309
2110
|
* @returns Operation result / İşlem sonucu
|
|
2310
2111
|
*/
|
|
2311
2112
|
async removeAgentInsuranceCompany(agentInsuranceCompanyId, options) {
|
|
2312
|
-
const endpoint = agents.insuranceCompanies.remove.render(
|
|
2313
|
-
agentInsuranceCompanyId
|
|
2314
|
-
);
|
|
2113
|
+
const endpoint = agents.insuranceCompanies.remove.render(agentInsuranceCompanyId);
|
|
2315
2114
|
return this.http.deleteNoContent(endpoint, options);
|
|
2316
2115
|
}
|
|
2317
2116
|
/**
|
|
@@ -2364,10 +2163,7 @@ var InsurUpAgentClient = class {
|
|
|
2364
2163
|
* @returns List of B2C configuration fields
|
|
2365
2164
|
*/
|
|
2366
2165
|
async getB2CConfigFields(options) {
|
|
2367
|
-
return this.http.get(
|
|
2368
|
-
b2c.configFields.getAll,
|
|
2369
|
-
options
|
|
2370
|
-
);
|
|
2166
|
+
return this.http.get(b2c.configFields.getAll, options);
|
|
2371
2167
|
}
|
|
2372
2168
|
/**
|
|
2373
2169
|
* Updates all B2C configuration fields at once, allowing agents to customize their customer-facing interface settings and branding parameters.
|
|
@@ -2418,10 +2214,7 @@ var InsurUpAgentBranchClient = class {
|
|
|
2418
2214
|
* @returns List of all agent branches
|
|
2419
2215
|
*/
|
|
2420
2216
|
async getAgentBranches(options) {
|
|
2421
|
-
return this.http.get(
|
|
2422
|
-
agentBranches.getAll,
|
|
2423
|
-
options
|
|
2424
|
-
);
|
|
2217
|
+
return this.http.get(agentBranches.getAll, options);
|
|
2425
2218
|
}
|
|
2426
2219
|
/**
|
|
2427
2220
|
* Updates an existing agent branch's name or parent branch relationship to reflect changing organizational needs.
|
|
@@ -2527,11 +2320,7 @@ var InsurUpAgentSetupClient = class {
|
|
|
2527
2320
|
* @returns Setup process identifier and next steps / Kurulum süreci tanımlayıcısı ve sonraki adımlar
|
|
2528
2321
|
*/
|
|
2529
2322
|
async enterAgentSetupRequest(request, options) {
|
|
2530
|
-
return this.http.post(
|
|
2531
|
-
agentSetupRequests.enter,
|
|
2532
|
-
request,
|
|
2533
|
-
options
|
|
2534
|
-
);
|
|
2323
|
+
return this.http.post(agentSetupRequests.enter, request, options);
|
|
2535
2324
|
}
|
|
2536
2325
|
/**
|
|
2537
2326
|
* Finalizes the agent setup process by confirming all requirements are met and activating the agent's platform access.
|
|
@@ -2542,11 +2331,7 @@ var InsurUpAgentSetupClient = class {
|
|
|
2542
2331
|
* @returns Operation result / İşlem sonucu
|
|
2543
2332
|
*/
|
|
2544
2333
|
async completeAgentSetupRequest(request, options) {
|
|
2545
|
-
return this.http.postNoContent(
|
|
2546
|
-
agentSetupRequests.complete,
|
|
2547
|
-
request,
|
|
2548
|
-
options
|
|
2549
|
-
);
|
|
2334
|
+
return this.http.postNoContent(agentSetupRequests.complete, request, options);
|
|
2550
2335
|
}
|
|
2551
2336
|
};
|
|
2552
2337
|
|
|
@@ -2706,10 +2491,7 @@ var InsurUpAgentUserClient = class {
|
|
|
2706
2491
|
* @returns Agent user robot code / Acente kullanıcı robot kodu
|
|
2707
2492
|
*/
|
|
2708
2493
|
async getMyAgentUserRobotCode(options) {
|
|
2709
|
-
return this.http.get(
|
|
2710
|
-
agentUsers.meRobotCode,
|
|
2711
|
-
options
|
|
2712
|
-
);
|
|
2494
|
+
return this.http.get(agentUsers.meRobotCode, options);
|
|
2713
2495
|
}
|
|
2714
2496
|
/**
|
|
2715
2497
|
* Migrates an agent user from the legacy authentication system to the AuthServer.
|
|
@@ -2733,11 +2515,7 @@ var InsurUpAgentUserClient = class {
|
|
|
2733
2515
|
* @returns Response with the count of migrated users / Taşınan kullanıcı sayısı ile yanıt
|
|
2734
2516
|
*/
|
|
2735
2517
|
async migrateAllAgentUsers(options) {
|
|
2736
|
-
return this.http.post(
|
|
2737
|
-
agentUsers.migrateAll,
|
|
2738
|
-
void 0,
|
|
2739
|
-
options
|
|
2740
|
-
);
|
|
2518
|
+
return this.http.post(agentUsers.migrateAll, void 0, options);
|
|
2741
2519
|
}
|
|
2742
2520
|
// ============================================================================
|
|
2743
2521
|
// GRAPHQL QUERIES
|
|
@@ -2880,10 +2658,7 @@ var InsurUpCustomerClient = class {
|
|
|
2880
2658
|
* Retrieves the profile information of the currently authenticated customer.
|
|
2881
2659
|
*/
|
|
2882
2660
|
async getCurrentCustomer(options) {
|
|
2883
|
-
return this.http.get(
|
|
2884
|
-
endpoints.customers.getCurrentCustomer,
|
|
2885
|
-
options
|
|
2886
|
-
);
|
|
2661
|
+
return this.http.get(endpoints.customers.getCurrentCustomer, options);
|
|
2887
2662
|
}
|
|
2888
2663
|
/**
|
|
2889
2664
|
* Updates existing customer profile information.
|
|
@@ -2947,9 +2722,7 @@ var InsurUpCustomerClient = class {
|
|
|
2947
2722
|
*/
|
|
2948
2723
|
async getCustomerPhoneNumbers(customerId, options) {
|
|
2949
2724
|
return this.http.get(
|
|
2950
|
-
endpoints.customers.phoneNumbers.getCustomerPhoneNumbers.render(
|
|
2951
|
-
customerId
|
|
2952
|
-
),
|
|
2725
|
+
endpoints.customers.phoneNumbers.getCustomerPhoneNumbers.render(customerId),
|
|
2953
2726
|
options
|
|
2954
2727
|
);
|
|
2955
2728
|
}
|
|
@@ -2958,9 +2731,7 @@ var InsurUpCustomerClient = class {
|
|
|
2958
2731
|
*/
|
|
2959
2732
|
async addCustomerPhoneNumber(request, options) {
|
|
2960
2733
|
return this.http.postNoContent(
|
|
2961
|
-
endpoints.customers.phoneNumbers.addCustomerPhoneNumber.render(
|
|
2962
|
-
request.customerId
|
|
2963
|
-
),
|
|
2734
|
+
endpoints.customers.phoneNumbers.addCustomerPhoneNumber.render(request.customerId),
|
|
2964
2735
|
request,
|
|
2965
2736
|
options
|
|
2966
2737
|
);
|
|
@@ -2970,9 +2741,7 @@ var InsurUpCustomerClient = class {
|
|
|
2970
2741
|
*/
|
|
2971
2742
|
async removeCustomerPhoneNumber(request, options) {
|
|
2972
2743
|
return this.http.deleteNoContent(
|
|
2973
|
-
endpoints.customers.phoneNumbers.removeCustomerPhoneNumber.render(
|
|
2974
|
-
request
|
|
2975
|
-
),
|
|
2744
|
+
endpoints.customers.phoneNumbers.removeCustomerPhoneNumber.render(request),
|
|
2976
2745
|
options
|
|
2977
2746
|
);
|
|
2978
2747
|
}
|
|
@@ -2981,9 +2750,7 @@ var InsurUpCustomerClient = class {
|
|
|
2981
2750
|
*/
|
|
2982
2751
|
async changePrimaryCustomerPhoneNumber(request, options) {
|
|
2983
2752
|
return this.http.postNoContent(
|
|
2984
|
-
endpoints.customers.phoneNumbers.changePrimaryCustomerPhoneNumber.render(
|
|
2985
|
-
request
|
|
2986
|
-
),
|
|
2753
|
+
endpoints.customers.phoneNumbers.changePrimaryCustomerPhoneNumber.render(request),
|
|
2987
2754
|
void 0,
|
|
2988
2755
|
options
|
|
2989
2756
|
);
|
|
@@ -3039,10 +2806,7 @@ var InsurUpCustomerClient = class {
|
|
|
3039
2806
|
*/
|
|
3040
2807
|
async updateCustomerAddress(request, options) {
|
|
3041
2808
|
return this.http.putNoContent(
|
|
3042
|
-
endpoints.customers.addresses.update.render(
|
|
3043
|
-
request.customerId,
|
|
3044
|
-
request.addressId
|
|
3045
|
-
),
|
|
2809
|
+
endpoints.customers.addresses.update.render(request.customerId, request.addressId),
|
|
3046
2810
|
request,
|
|
3047
2811
|
options
|
|
3048
2812
|
);
|
|
@@ -3162,9 +2926,7 @@ var InsurUpCustomerClient = class {
|
|
|
3162
2926
|
*/
|
|
3163
2927
|
async createCustomerContactFlow(request, options) {
|
|
3164
2928
|
return this.http.postNoContent(
|
|
3165
|
-
endpoints.customers.contactFlows.createContactFlow.render(
|
|
3166
|
-
request.customerId
|
|
3167
|
-
),
|
|
2929
|
+
endpoints.customers.contactFlows.createContactFlow.render(request.customerId),
|
|
3168
2930
|
request,
|
|
3169
2931
|
options
|
|
3170
2932
|
);
|
|
@@ -3197,10 +2959,7 @@ var InsurUpCustomerClient = class {
|
|
|
3197
2959
|
*/
|
|
3198
2960
|
async getCustomerContactFlows(customerId, caseRef, options) {
|
|
3199
2961
|
return this.http.get(
|
|
3200
|
-
endpoints.customers.contactFlows.getCustomerContactFlows.render(
|
|
3201
|
-
customerId,
|
|
3202
|
-
caseRef
|
|
3203
|
-
),
|
|
2962
|
+
endpoints.customers.contactFlows.getCustomerContactFlows.render(customerId, caseRef),
|
|
3204
2963
|
options
|
|
3205
2964
|
);
|
|
3206
2965
|
}
|
|
@@ -3209,10 +2968,7 @@ var InsurUpCustomerClient = class {
|
|
|
3209
2968
|
*/
|
|
3210
2969
|
async getCustomerContacts(customerId, caseRef, options) {
|
|
3211
2970
|
return this.http.get(
|
|
3212
|
-
endpoints.customers.contacts.getCustomerContacts.render(
|
|
3213
|
-
customerId,
|
|
3214
|
-
caseRef
|
|
3215
|
-
),
|
|
2971
|
+
endpoints.customers.contacts.getCustomerContacts.render(customerId, caseRef),
|
|
3216
2972
|
options
|
|
3217
2973
|
);
|
|
3218
2974
|
}
|
|
@@ -3302,21 +3058,14 @@ var InsurUpCustomerClient = class {
|
|
|
3302
3058
|
if (requestOptions?.first === void 0 && requestOptions?.last === void 0) {
|
|
3303
3059
|
variables.first = 50;
|
|
3304
3060
|
} else {
|
|
3305
|
-
if (requestOptions?.first !== void 0)
|
|
3306
|
-
|
|
3307
|
-
if (requestOptions?.last !== void 0)
|
|
3308
|
-
variables.last = requestOptions.last;
|
|
3061
|
+
if (requestOptions?.first !== void 0) variables.first = requestOptions.first;
|
|
3062
|
+
if (requestOptions?.last !== void 0) variables.last = requestOptions.last;
|
|
3309
3063
|
}
|
|
3310
|
-
if (requestOptions?.after !== void 0)
|
|
3311
|
-
|
|
3312
|
-
if (requestOptions?.
|
|
3313
|
-
|
|
3314
|
-
if (requestOptions?.
|
|
3315
|
-
variables.search = requestOptions.search;
|
|
3316
|
-
if (requestOptions?.filter !== void 0)
|
|
3317
|
-
variables.filter = requestOptions.filter;
|
|
3318
|
-
if (requestOptions?.order !== void 0)
|
|
3319
|
-
variables.order = requestOptions.order;
|
|
3064
|
+
if (requestOptions?.after !== void 0) variables.after = requestOptions.after;
|
|
3065
|
+
if (requestOptions?.before !== void 0) variables.before = requestOptions.before;
|
|
3066
|
+
if (requestOptions?.search !== void 0) variables.search = requestOptions.search;
|
|
3067
|
+
if (requestOptions?.filter !== void 0) variables.filter = requestOptions.filter;
|
|
3068
|
+
if (requestOptions?.order !== void 0) variables.order = requestOptions.order;
|
|
3320
3069
|
const result = await this.graphql.query(query, variables, options);
|
|
3321
3070
|
if (!result.isSuccess) {
|
|
3322
3071
|
return result;
|
|
@@ -3359,10 +3108,7 @@ var InsurUpVehicleClient = class {
|
|
|
3359
3108
|
* @returns Operation result / İşlem sonucu
|
|
3360
3109
|
*/
|
|
3361
3110
|
async updateCustomerVehicle(request, options) {
|
|
3362
|
-
const path = endpoints.vehicles.update.render(
|
|
3363
|
-
request.customerId,
|
|
3364
|
-
request.vehicleId
|
|
3365
|
-
);
|
|
3111
|
+
const path = endpoints.vehicles.update.render(request.customerId, request.vehicleId);
|
|
3366
3112
|
return this.http.putNoContent(path, request, options);
|
|
3367
3113
|
}
|
|
3368
3114
|
/**
|
|
@@ -3387,9 +3133,7 @@ var InsurUpVehicleClient = class {
|
|
|
3387
3133
|
* @returns List of customer vehicles / Müşteri araçları listesi
|
|
3388
3134
|
*/
|
|
3389
3135
|
async getCustomerVehicles(request, options) {
|
|
3390
|
-
const path = endpoints.vehicles.getCustomerVehicles.render(
|
|
3391
|
-
request.customerId
|
|
3392
|
-
);
|
|
3136
|
+
const path = endpoints.vehicles.getCustomerVehicles.render(request.customerId);
|
|
3393
3137
|
return this.http.get(path, options);
|
|
3394
3138
|
}
|
|
3395
3139
|
/**
|
|
@@ -3451,11 +3195,7 @@ var InsurUpVehicleClient = class {
|
|
|
3451
3195
|
async queryVehicleByBrandCode(brandCode, options) {
|
|
3452
3196
|
const path = endpoints.insuranceServices.queryVehicleByBrandCode;
|
|
3453
3197
|
const request = { brandCode };
|
|
3454
|
-
return this.http.post(
|
|
3455
|
-
path,
|
|
3456
|
-
request,
|
|
3457
|
-
options
|
|
3458
|
-
);
|
|
3198
|
+
return this.http.post(path, request, options);
|
|
3459
3199
|
}
|
|
3460
3200
|
};
|
|
3461
3201
|
|
|
@@ -3473,10 +3213,7 @@ var InsurUpPropertyClient = class {
|
|
|
3473
3213
|
* @returns List of Turkish cities / Türk şehirleri listesi
|
|
3474
3214
|
*/
|
|
3475
3215
|
async queryCities(options) {
|
|
3476
|
-
return this.http.get(
|
|
3477
|
-
addressParameters.queryCities,
|
|
3478
|
-
options
|
|
3479
|
-
);
|
|
3216
|
+
return this.http.get(addressParameters.queryCities, options);
|
|
3480
3217
|
}
|
|
3481
3218
|
/**
|
|
3482
3219
|
* Retrieves all districts within a specific city following the Turkish administrative hierarchy.
|
|
@@ -3632,10 +3369,7 @@ var InsurUpPropertyClient = class {
|
|
|
3632
3369
|
* @returns Operation result / İşlem sonucu
|
|
3633
3370
|
*/
|
|
3634
3371
|
async deleteCustomerProperty(customerId, propertyId, options) {
|
|
3635
|
-
return this.http.deleteNoContent(
|
|
3636
|
-
properties.delete.render(customerId, propertyId),
|
|
3637
|
-
options
|
|
3638
|
-
);
|
|
3372
|
+
return this.http.deleteNoContent(properties.delete.render(customerId, propertyId), options);
|
|
3639
3373
|
}
|
|
3640
3374
|
/**
|
|
3641
3375
|
* Retrieves property address information using the official Turkish property registration number for verification purposes.
|
|
@@ -3868,9 +3602,7 @@ var InsurUpPolicyClient = class {
|
|
|
3868
3602
|
*/
|
|
3869
3603
|
async getPolicyTransferDetail(request, options) {
|
|
3870
3604
|
return this.http.get(
|
|
3871
|
-
endpoints.policyTransfers.getPolicyTransferDetail.render(
|
|
3872
|
-
request.policyTransferId
|
|
3873
|
-
),
|
|
3605
|
+
endpoints.policyTransfers.getPolicyTransferDetail.render(request.policyTransferId),
|
|
3874
3606
|
options
|
|
3875
3607
|
);
|
|
3876
3608
|
}
|
|
@@ -3900,11 +3632,7 @@ var InsurUpPolicyClient = class {
|
|
|
3900
3632
|
* @returns Created transfer identifier
|
|
3901
3633
|
*/
|
|
3902
3634
|
async createPolicyTransfer(request, options) {
|
|
3903
|
-
return this.http.post(
|
|
3904
|
-
endpoints.policyTransfers.create,
|
|
3905
|
-
request,
|
|
3906
|
-
options
|
|
3907
|
-
);
|
|
3635
|
+
return this.http.post(endpoints.policyTransfers.create, request, options);
|
|
3908
3636
|
}
|
|
3909
3637
|
/**
|
|
3910
3638
|
* Executes a prepared policy transfer, initiating the actual movement of policies according to the transfer configuration.
|
|
@@ -3916,9 +3644,7 @@ var InsurUpPolicyClient = class {
|
|
|
3916
3644
|
*/
|
|
3917
3645
|
async triggerPolicyTransfer(request, options) {
|
|
3918
3646
|
return this.http.postNoContent(
|
|
3919
|
-
endpoints.policyTransfers.triggerPolicyTransfer.render(
|
|
3920
|
-
request.policyTransferId
|
|
3921
|
-
),
|
|
3647
|
+
endpoints.policyTransfers.triggerPolicyTransfer.render(request.policyTransferId),
|
|
3922
3648
|
request,
|
|
3923
3649
|
options
|
|
3924
3650
|
);
|
|
@@ -3935,16 +3661,9 @@ var InsurUpPolicyClient = class {
|
|
|
3935
3661
|
*/
|
|
3936
3662
|
async createFilePolicyTransfer(request, file, fileName, options) {
|
|
3937
3663
|
const formData = new FormData();
|
|
3938
|
-
formData.append(
|
|
3939
|
-
"insuranceCompanyId",
|
|
3940
|
-
request.insuranceCompanyId.toString()
|
|
3941
|
-
);
|
|
3664
|
+
formData.append("insuranceCompanyId", request.insuranceCompanyId.toString());
|
|
3942
3665
|
formData.append("file", file, fileName);
|
|
3943
|
-
return this.http.postNoContent(
|
|
3944
|
-
endpoints.filePolicyTransfers.create,
|
|
3945
|
-
formData,
|
|
3946
|
-
options
|
|
3947
|
-
);
|
|
3666
|
+
return this.http.postNoContent(endpoints.filePolicyTransfers.create, formData, options);
|
|
3948
3667
|
}
|
|
3949
3668
|
/**
|
|
3950
3669
|
* Retrieves detailed information about a file-based policy transfer including processing status and results.
|
|
@@ -4285,11 +4004,7 @@ var InsurUpCaseClient = class {
|
|
|
4285
4004
|
* @returns Created case identifier / Oluşturulan talep tanımlayıcısı
|
|
4286
4005
|
*/
|
|
4287
4006
|
async createComplaintCase(request, options) {
|
|
4288
|
-
return await this.http.post(
|
|
4289
|
-
cases.createComplaint,
|
|
4290
|
-
request,
|
|
4291
|
-
options
|
|
4292
|
-
);
|
|
4007
|
+
return await this.http.post(cases.createComplaint, request, options);
|
|
4293
4008
|
}
|
|
4294
4009
|
/**
|
|
4295
4010
|
* Creates a cross-sale opportunity case to track potential additional insurance products for existing customers.
|
|
@@ -4300,11 +4015,7 @@ var InsurUpCaseClient = class {
|
|
|
4300
4015
|
* @returns Created case identifier / Oluşturulan talep tanımlayıcısı
|
|
4301
4016
|
*/
|
|
4302
4017
|
async createCrossSaleOpportunityCase(request, options) {
|
|
4303
|
-
return await this.http.post(
|
|
4304
|
-
cases.createCrossSaleOpportunity,
|
|
4305
|
-
request,
|
|
4306
|
-
options
|
|
4307
|
-
);
|
|
4018
|
+
return await this.http.post(cases.createCrossSaleOpportunity, request, options);
|
|
4308
4019
|
}
|
|
4309
4020
|
/**
|
|
4310
4021
|
* Creates an endorsement case for policy modifications or updates requested by the customer.
|
|
@@ -4315,11 +4026,7 @@ var InsurUpCaseClient = class {
|
|
|
4315
4026
|
* @returns Created case identifier / Oluşturulan talep tanımlayıcısı
|
|
4316
4027
|
*/
|
|
4317
4028
|
async createEndorsementCase(request, options) {
|
|
4318
|
-
return await this.http.post(
|
|
4319
|
-
cases.createEndorsement,
|
|
4320
|
-
request,
|
|
4321
|
-
options
|
|
4322
|
-
);
|
|
4029
|
+
return await this.http.post(cases.createEndorsement, request, options);
|
|
4323
4030
|
}
|
|
4324
4031
|
/**
|
|
4325
4032
|
* Creates a new sale opportunity case to track potential insurance sales to prospective customers.
|
|
@@ -4330,11 +4037,7 @@ var InsurUpCaseClient = class {
|
|
|
4330
4037
|
* @returns Created case identifier / Oluşturulan talep tanımlayıcısı
|
|
4331
4038
|
*/
|
|
4332
4039
|
async createNewSaleOpportunityCase(request, options) {
|
|
4333
|
-
return await this.http.post(
|
|
4334
|
-
cases.createNewSaleOpportunity,
|
|
4335
|
-
request,
|
|
4336
|
-
options
|
|
4337
|
-
);
|
|
4040
|
+
return await this.http.post(cases.createNewSaleOpportunity, request, options);
|
|
4338
4041
|
}
|
|
4339
4042
|
/**
|
|
4340
4043
|
* Retrieves all policies associated with a specific case for comprehensive case context and decision making.
|
|
@@ -4486,10 +4189,7 @@ var InsurUpCaseClient = class {
|
|
|
4486
4189
|
* @returns Available case priority templates / Mevcut talep öncelik şablonları
|
|
4487
4190
|
*/
|
|
4488
4191
|
async getCasePriorityTemplates(options) {
|
|
4489
|
-
return await this.http.get(
|
|
4490
|
-
cases.getPriorityTemplates,
|
|
4491
|
-
options
|
|
4492
|
-
);
|
|
4192
|
+
return await this.http.get(cases.getPriorityTemplates, options);
|
|
4493
4193
|
}
|
|
4494
4194
|
// ============================================================================
|
|
4495
4195
|
// GRAPHQL QUERIES
|
|
@@ -4604,11 +4304,7 @@ var InsurUpWebhookClient = class {
|
|
|
4604
4304
|
* @returns Created webhook information / Oluşturulan webhook bilgileri
|
|
4605
4305
|
*/
|
|
4606
4306
|
async createWebhook(request, options) {
|
|
4607
|
-
return this.http.post(
|
|
4608
|
-
webhooks.create,
|
|
4609
|
-
request,
|
|
4610
|
-
options
|
|
4611
|
-
);
|
|
4307
|
+
return this.http.post(webhooks.create, request, options);
|
|
4612
4308
|
}
|
|
4613
4309
|
/**
|
|
4614
4310
|
* Retrieves detailed information about a specific webhook including its configuration and current status.
|
|
@@ -4666,10 +4362,7 @@ var InsurUpWebhookClient = class {
|
|
|
4666
4362
|
* @returns Webhook delivery details / Webhook teslimat detayları
|
|
4667
4363
|
*/
|
|
4668
4364
|
async getWebhookDelivery(webhookId, webhookDeliveryId, options) {
|
|
4669
|
-
const endpoint = webhooks.deliveries.getById.render(
|
|
4670
|
-
webhookId,
|
|
4671
|
-
webhookDeliveryId
|
|
4672
|
-
);
|
|
4365
|
+
const endpoint = webhooks.deliveries.getById.render(webhookId, webhookDeliveryId);
|
|
4673
4366
|
return this.http.get(endpoint, options);
|
|
4674
4367
|
}
|
|
4675
4368
|
/**
|
|
@@ -4682,10 +4375,7 @@ var InsurUpWebhookClient = class {
|
|
|
4682
4375
|
* @returns Operation result / İşlem sonucu
|
|
4683
4376
|
*/
|
|
4684
4377
|
async redeliverWebhookEvent(webhookId, webhookDeliveryId, options) {
|
|
4685
|
-
const endpoint = webhooks.deliveries.redeliver.render(
|
|
4686
|
-
webhookId,
|
|
4687
|
-
webhookDeliveryId
|
|
4688
|
-
);
|
|
4378
|
+
const endpoint = webhooks.deliveries.redeliver.render(webhookId, webhookDeliveryId);
|
|
4689
4379
|
return this.http.postNoContent(endpoint, void 0, options);
|
|
4690
4380
|
}
|
|
4691
4381
|
// ============================================================================
|
|
@@ -4807,11 +4497,7 @@ var InsurUpCoverageClient = class {
|
|
|
4807
4497
|
* @returns Operation result / İşlem sonucu
|
|
4808
4498
|
*/
|
|
4809
4499
|
async updateCoverageGroup(request, options) {
|
|
4810
|
-
return this.http.putNoContent(
|
|
4811
|
-
coverageGroups.update.render(request.id),
|
|
4812
|
-
request,
|
|
4813
|
-
options
|
|
4814
|
-
);
|
|
4500
|
+
return this.http.putNoContent(coverageGroups.update.render(request.id), request, options);
|
|
4815
4501
|
}
|
|
4816
4502
|
/**
|
|
4817
4503
|
* Removes a coverage group from the system, ensuring proper cleanup of associated coverage configurations.
|
|
@@ -4822,10 +4508,7 @@ var InsurUpCoverageClient = class {
|
|
|
4822
4508
|
* @returns Operation result / İşlem sonucu
|
|
4823
4509
|
*/
|
|
4824
4510
|
async deleteCoverageGroup(request, options) {
|
|
4825
|
-
return this.http.deleteNoContent(
|
|
4826
|
-
coverageGroups.delete.render(request.id),
|
|
4827
|
-
options
|
|
4828
|
-
);
|
|
4511
|
+
return this.http.deleteNoContent(coverageGroups.delete.render(request.id), options);
|
|
4829
4512
|
}
|
|
4830
4513
|
/**
|
|
4831
4514
|
* Retrieves detailed information about a specific coverage group including its coverage options and configurations.
|
|
@@ -4836,10 +4519,7 @@ var InsurUpCoverageClient = class {
|
|
|
4836
4519
|
* @returns Coverage group details / Teminat grubu detayları
|
|
4837
4520
|
*/
|
|
4838
4521
|
async getCoverageGroupById(coverageGroupId, options) {
|
|
4839
|
-
return this.http.get(
|
|
4840
|
-
coverageGroups.getById.render(coverageGroupId),
|
|
4841
|
-
options
|
|
4842
|
-
);
|
|
4522
|
+
return this.http.get(coverageGroups.getById.render(coverageGroupId), options);
|
|
4843
4523
|
}
|
|
4844
4524
|
/**
|
|
4845
4525
|
* Retrieves all available coverage groups within the agency for comprehensive coverage management overview.
|
|
@@ -4860,13 +4540,8 @@ var InsurUpCoverageClient = class {
|
|
|
4860
4540
|
* @returns Kasko coverage choices grouped by insurance company / Sigorta şirketine göre gruplanmış Kasko teminat seçenekleri
|
|
4861
4541
|
*/
|
|
4862
4542
|
async getKaskoCoverageChoices(vehicleUtilizationStyle, options) {
|
|
4863
|
-
const endpoint = coverageChoices.getKaskoCoverageChoices.render(
|
|
4864
|
-
|
|
4865
|
-
);
|
|
4866
|
-
return this.http.get(
|
|
4867
|
-
endpoint,
|
|
4868
|
-
options
|
|
4869
|
-
);
|
|
4543
|
+
const endpoint = coverageChoices.getKaskoCoverageChoices.render(vehicleUtilizationStyle);
|
|
4544
|
+
return this.http.get(endpoint, options);
|
|
4870
4545
|
}
|
|
4871
4546
|
/**
|
|
4872
4547
|
* Retrieves available Konut (home/property insurance) coverage options including DASK earthquake insurance configurations.
|
|
@@ -4946,9 +4621,7 @@ var InsurUpInsuranceClient = class {
|
|
|
4946
4621
|
* @returns List of insurance products / Sigorta ürünleri listesi
|
|
4947
4622
|
*/
|
|
4948
4623
|
async getInsuranceCompanyProducts(insuranceCompanyId, options) {
|
|
4949
|
-
const path = endpoints.insuranceCompanies.getInsuranceCompanyProducts.render(
|
|
4950
|
-
insuranceCompanyId
|
|
4951
|
-
);
|
|
4624
|
+
const path = endpoints.insuranceCompanies.getInsuranceCompanyProducts.render(insuranceCompanyId);
|
|
4952
4625
|
return this.http.get(path, options);
|
|
4953
4626
|
}
|
|
4954
4627
|
/**
|
|
@@ -4959,10 +4632,7 @@ var InsurUpInsuranceClient = class {
|
|
|
4959
4632
|
* @returns List of all insurance products / Tüm sigorta ürünleri listesi
|
|
4960
4633
|
*/
|
|
4961
4634
|
async getAllProducts(options) {
|
|
4962
|
-
return this.http.get(
|
|
4963
|
-
endpoints.insuranceCompanies.getAllProducts,
|
|
4964
|
-
options
|
|
4965
|
-
);
|
|
4635
|
+
return this.http.get(endpoints.insuranceCompanies.getAllProducts, options);
|
|
4966
4636
|
}
|
|
4967
4637
|
/**
|
|
4968
4638
|
* Retrieves agent-specific connection fields and requirements for integrating with a particular insurance company's systems.
|
|
@@ -4976,10 +4646,7 @@ var InsurUpInsuranceClient = class {
|
|
|
4976
4646
|
const path = endpoints.insuranceCompanies.connectionFields.getAgentBasedConnectionFieldsByCompanyId.render(
|
|
4977
4647
|
insuranceCompanyId
|
|
4978
4648
|
);
|
|
4979
|
-
return this.http.get(
|
|
4980
|
-
path,
|
|
4981
|
-
options
|
|
4982
|
-
);
|
|
4649
|
+
return this.http.get(path, options);
|
|
4983
4650
|
}
|
|
4984
4651
|
/**
|
|
4985
4652
|
* Retrieves all platform release notes including new features, bug fixes, and important updates for system awareness.
|
|
@@ -4989,10 +4656,7 @@ var InsurUpInsuranceClient = class {
|
|
|
4989
4656
|
* @returns Platform release notes / Platform sürüm notları
|
|
4990
4657
|
*/
|
|
4991
4658
|
async getAllReleaseNotes(options) {
|
|
4992
|
-
return this.http.get(
|
|
4993
|
-
endpoints.releaseNotes.getAll,
|
|
4994
|
-
options
|
|
4995
|
-
);
|
|
4659
|
+
return this.http.get(endpoints.releaseNotes.getAll, options);
|
|
4996
4660
|
}
|
|
4997
4661
|
/**
|
|
4998
4662
|
* Retrieves all banks available for premium collection, policy financing, and customer payment processing operations.
|
|
@@ -5024,10 +4688,7 @@ var InsurUpInsuranceClient = class {
|
|
|
5024
4688
|
* @returns List of financial institutions / Finansal kurumlar listesi
|
|
5025
4689
|
*/
|
|
5026
4690
|
async getFinancialInstitutions(options) {
|
|
5027
|
-
return this.http.get(
|
|
5028
|
-
endpoints.financialInstitutions.getAll,
|
|
5029
|
-
options
|
|
5030
|
-
);
|
|
4691
|
+
return this.http.get(endpoints.financialInstitutions.getAll, options);
|
|
5031
4692
|
}
|
|
5032
4693
|
};
|
|
5033
4694
|
|
|
@@ -5050,11 +4711,7 @@ var InsurUpProposalClient = class {
|
|
|
5050
4711
|
* @returns Created proposal information / Oluşturulan teklif bilgileri
|
|
5051
4712
|
*/
|
|
5052
4713
|
async createProposal(request, options) {
|
|
5053
|
-
return this.http.post(
|
|
5054
|
-
endpoints.proposals.create,
|
|
5055
|
-
request,
|
|
5056
|
-
options
|
|
5057
|
-
);
|
|
4714
|
+
return this.http.post(endpoints.proposals.create, request, options);
|
|
5058
4715
|
}
|
|
5059
4716
|
/**
|
|
5060
4717
|
* Retries a failed proposal product calculation or processing to attempt resolution of temporary issues.
|
|
@@ -5071,10 +4728,7 @@ var InsurUpProposalClient = class {
|
|
|
5071
4728
|
proposalProductId
|
|
5072
4729
|
};
|
|
5073
4730
|
return this.http.postNoContent(
|
|
5074
|
-
endpoints.proposals.retryFailedProposalProduct.render(
|
|
5075
|
-
proposalId,
|
|
5076
|
-
proposalProductId
|
|
5077
|
-
),
|
|
4731
|
+
endpoints.proposals.retryFailedProposalProduct.render(proposalId, proposalProductId),
|
|
5078
4732
|
request,
|
|
5079
4733
|
options
|
|
5080
4734
|
);
|
|
@@ -5160,10 +4814,7 @@ var InsurUpProposalClient = class {
|
|
|
5160
4814
|
*/
|
|
5161
4815
|
async getProposalProductCoverage(proposalId, proposalProductId, options) {
|
|
5162
4816
|
return this.http.get(
|
|
5163
|
-
endpoints.proposals.getProposalProductCoverage.render(
|
|
5164
|
-
proposalId,
|
|
5165
|
-
proposalProductId
|
|
5166
|
-
),
|
|
4817
|
+
endpoints.proposals.getProposalProductCoverage.render(proposalId, proposalProductId),
|
|
5167
4818
|
options
|
|
5168
4819
|
);
|
|
5169
4820
|
}
|
|
@@ -5280,9 +4931,7 @@ var InsurUpProposalClient = class {
|
|
|
5280
4931
|
*/
|
|
5281
4932
|
async generateCompareProposalProductsPdf(request, options) {
|
|
5282
4933
|
return this.http.post(
|
|
5283
|
-
endpoints.proposals.generateCompareProposalProductsPdf.render(
|
|
5284
|
-
request.proposalId
|
|
5285
|
-
),
|
|
4934
|
+
endpoints.proposals.generateCompareProposalProductsPdf.render(request.proposalId),
|
|
5286
4935
|
request,
|
|
5287
4936
|
options
|
|
5288
4937
|
);
|
|
@@ -5297,9 +4946,7 @@ var InsurUpProposalClient = class {
|
|
|
5297
4946
|
*/
|
|
5298
4947
|
async sendCompareProposalProductsPdf(request, options) {
|
|
5299
4948
|
return this.http.postNoContent(
|
|
5300
|
-
endpoints.proposals.sendCompareProposalProductsPdf.render(
|
|
5301
|
-
request.proposalId
|
|
5302
|
-
),
|
|
4949
|
+
endpoints.proposals.sendCompareProposalProductsPdf.render(request.proposalId),
|
|
5303
4950
|
request,
|
|
5304
4951
|
options
|
|
5305
4952
|
);
|
|
@@ -5314,9 +4961,7 @@ var InsurUpProposalClient = class {
|
|
|
5314
4961
|
*/
|
|
5315
4962
|
async generateCustomerProposalDocumentPdf(request, options) {
|
|
5316
4963
|
return this.http.post(
|
|
5317
|
-
endpoints.proposals.generateCustomerProposalDocumentPdf.render(
|
|
5318
|
-
request.proposalId
|
|
5319
|
-
),
|
|
4964
|
+
endpoints.proposals.generateCustomerProposalDocumentPdf.render(request.proposalId),
|
|
5320
4965
|
request,
|
|
5321
4966
|
options
|
|
5322
4967
|
);
|
|
@@ -5483,11 +5128,7 @@ var InsurUpFileClient = class {
|
|
|
5483
5128
|
if (request.path) {
|
|
5484
5129
|
formData.append("path", request.path);
|
|
5485
5130
|
}
|
|
5486
|
-
return this.http.post(
|
|
5487
|
-
files.uploadPublicFile,
|
|
5488
|
-
formData,
|
|
5489
|
-
options
|
|
5490
|
-
);
|
|
5131
|
+
return this.http.post(files.uploadPublicFile, formData, options);
|
|
5491
5132
|
}
|
|
5492
5133
|
};
|
|
5493
5134
|
|
|
@@ -5527,10 +5168,7 @@ var InsurUpTemplateClient = class {
|
|
|
5527
5168
|
* @returns List of all template definitions
|
|
5528
5169
|
*/
|
|
5529
5170
|
async getTemplateDefinitions(options) {
|
|
5530
|
-
return this.http.get(
|
|
5531
|
-
templates.getDefinitions,
|
|
5532
|
-
options
|
|
5533
|
-
);
|
|
5171
|
+
return this.http.get(templates.getDefinitions, options);
|
|
5534
5172
|
}
|
|
5535
5173
|
/**
|
|
5536
5174
|
* Retrieves all available templates in the system with their metadata and content.
|