@insurup/sdk 0.1.12 → 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 +17 -14
- package/dist/index.d.cts +0 -4226
package/dist/index.cjs
CHANGED
|
@@ -58,7 +58,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
58
58
|
// package.json
|
|
59
59
|
var package_default = {
|
|
60
60
|
name: "@insurup/sdk",
|
|
61
|
-
version: "0.1.
|
|
61
|
+
version: "0.1.14",
|
|
62
62
|
description: "Type-safe TypeScript SDK for the InsurUp insurance platform with GraphQL support. Tree-shakeable, works everywhere.",
|
|
63
63
|
keywords: [
|
|
64
64
|
"insurup",
|
|
@@ -108,32 +108,35 @@ var package_default = {
|
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
scripts: {
|
|
111
|
-
build: "tsup",
|
|
112
|
-
"build:tsc": "tsc",
|
|
111
|
+
build: "tsup && tsc -p tsconfig.build.json",
|
|
113
112
|
"check-types": "tsc --noEmit",
|
|
114
113
|
dev: "tsup --watch",
|
|
115
114
|
docs: "typedoc",
|
|
116
115
|
lint: "eslint src test --max-warnings 0",
|
|
117
116
|
test: "vitest run",
|
|
117
|
+
"test:unit": "vitest run test/unit",
|
|
118
|
+
"test:integration": "vitest run test/integration",
|
|
118
119
|
"test:watch": "vitest",
|
|
119
|
-
"test:coverage": "vitest run --coverage"
|
|
120
|
+
"test:coverage": "vitest run --coverage",
|
|
121
|
+
"test:coverage:unit": "vitest run test/unit --coverage",
|
|
122
|
+
"test:coverage:integration": "vitest run test/integration --coverage"
|
|
120
123
|
},
|
|
121
124
|
publishConfig: {
|
|
122
125
|
access: "public"
|
|
123
126
|
},
|
|
124
127
|
devDependencies: {
|
|
125
|
-
"@eslint/js": "^
|
|
126
|
-
"@vitest/coverage-v8": "^4.
|
|
127
|
-
eslint: "^
|
|
128
|
+
"@eslint/js": "^10.0.1",
|
|
129
|
+
"@vitest/coverage-v8": "^4.1.6",
|
|
130
|
+
eslint: "^10.4.0",
|
|
128
131
|
"eslint-config-prettier": "^10.1.8",
|
|
129
132
|
"eslint-plugin-prettier": "^5.5.5",
|
|
130
|
-
msw: "^2.
|
|
131
|
-
prettier: "^3.8.
|
|
133
|
+
msw: "^2.14.6",
|
|
134
|
+
prettier: "^3.8.3",
|
|
132
135
|
tsup: "^8.5.1",
|
|
133
|
-
typedoc: "^0.28.
|
|
134
|
-
typescript: "^
|
|
135
|
-
"typescript-eslint": "^8.
|
|
136
|
-
vitest: "^4.
|
|
136
|
+
typedoc: "^0.28.19",
|
|
137
|
+
typescript: "^6.0.3",
|
|
138
|
+
"typescript-eslint": "^8.59.3",
|
|
139
|
+
vitest: "^4.1.6"
|
|
137
140
|
},
|
|
138
141
|
dependencies: {
|
|
139
142
|
"@insurup/contracts": "workspace:*"
|
|
@@ -452,15 +455,7 @@ function mergeWithDefaults(options) {
|
|
|
452
455
|
|
|
453
456
|
// src/core/retry.ts
|
|
454
457
|
async function withRetry(fn, options) {
|
|
455
|
-
const {
|
|
456
|
-
retries,
|
|
457
|
-
factor,
|
|
458
|
-
minTimeout,
|
|
459
|
-
maxTimeout,
|
|
460
|
-
randomize,
|
|
461
|
-
backoffStrategy,
|
|
462
|
-
onFailedAttempt
|
|
463
|
-
} = options;
|
|
458
|
+
const { retries, factor, minTimeout, maxTimeout, randomize, backoffStrategy, onFailedAttempt } = options;
|
|
464
459
|
let attempt = 1;
|
|
465
460
|
while (true) {
|
|
466
461
|
try {
|
|
@@ -624,10 +619,7 @@ var HttpTransport = class {
|
|
|
624
619
|
);
|
|
625
620
|
} catch (interceptorError) {
|
|
626
621
|
if (this.options.logLevel !== "none") {
|
|
627
|
-
this.options.logger.warn(
|
|
628
|
-
"Response interceptor failed:",
|
|
629
|
-
interceptorError
|
|
630
|
-
);
|
|
622
|
+
this.options.logger.warn("Response interceptor failed:", interceptorError);
|
|
631
623
|
}
|
|
632
624
|
}
|
|
633
625
|
}
|
|
@@ -643,10 +635,7 @@ var HttpTransport = class {
|
|
|
643
635
|
);
|
|
644
636
|
} catch (interceptorError) {
|
|
645
637
|
if (this.options.logLevel !== "none") {
|
|
646
|
-
this.options.logger.warn(
|
|
647
|
-
"Response interceptor failed:",
|
|
648
|
-
interceptorError
|
|
649
|
-
);
|
|
638
|
+
this.options.logger.warn("Response interceptor failed:", interceptorError);
|
|
650
639
|
}
|
|
651
640
|
}
|
|
652
641
|
}
|
|
@@ -729,13 +718,7 @@ var HttpTransport = class {
|
|
|
729
718
|
* @returns Promise resolving to InsurUpResult (no data)
|
|
730
719
|
*/
|
|
731
720
|
async postNoContent(path, data, options) {
|
|
732
|
-
return this.sendInternal(
|
|
733
|
-
"POST",
|
|
734
|
-
path,
|
|
735
|
-
data,
|
|
736
|
-
options,
|
|
737
|
-
false
|
|
738
|
-
);
|
|
721
|
+
return this.sendInternal("POST", path, data, options, false);
|
|
739
722
|
}
|
|
740
723
|
/**
|
|
741
724
|
* PUT request expecting a response with data
|
|
@@ -755,13 +738,7 @@ var HttpTransport = class {
|
|
|
755
738
|
* @returns Promise resolving to InsurUpResult (no data)
|
|
756
739
|
*/
|
|
757
740
|
async putNoContent(path, data, options) {
|
|
758
|
-
return this.sendInternal(
|
|
759
|
-
"PUT",
|
|
760
|
-
path,
|
|
761
|
-
data,
|
|
762
|
-
options,
|
|
763
|
-
false
|
|
764
|
-
);
|
|
741
|
+
return this.sendInternal("PUT", path, data, options, false);
|
|
765
742
|
}
|
|
766
743
|
/**
|
|
767
744
|
* PATCH request expecting a response with data
|
|
@@ -781,13 +758,7 @@ var HttpTransport = class {
|
|
|
781
758
|
* @returns Promise resolving to InsurUpResult (no data)
|
|
782
759
|
*/
|
|
783
760
|
async patchNoContent(path, data, options) {
|
|
784
|
-
return this.sendInternal(
|
|
785
|
-
"PATCH",
|
|
786
|
-
path,
|
|
787
|
-
data,
|
|
788
|
-
options,
|
|
789
|
-
false
|
|
790
|
-
);
|
|
761
|
+
return this.sendInternal("PATCH", path, data, options, false);
|
|
791
762
|
}
|
|
792
763
|
/**
|
|
793
764
|
* DELETE request expecting a response with data
|
|
@@ -805,13 +776,7 @@ var HttpTransport = class {
|
|
|
805
776
|
* @returns Promise resolving to InsurUpResult (no data)
|
|
806
777
|
*/
|
|
807
778
|
async deleteNoContent(path, options) {
|
|
808
|
-
return this.sendInternal(
|
|
809
|
-
"DELETE",
|
|
810
|
-
path,
|
|
811
|
-
null,
|
|
812
|
-
options,
|
|
813
|
-
false
|
|
814
|
-
);
|
|
779
|
+
return this.sendInternal("DELETE", path, null, options, false);
|
|
815
780
|
}
|
|
816
781
|
/**
|
|
817
782
|
* Downloads a binary file as a Blob
|
|
@@ -867,10 +832,7 @@ var HttpTransport = class {
|
|
|
867
832
|
return await this.options.onResponse(networkError, requestConfig);
|
|
868
833
|
} catch (interceptorError) {
|
|
869
834
|
if (this.options.logLevel !== "none") {
|
|
870
|
-
this.options.logger.warn(
|
|
871
|
-
"Response interceptor failed:",
|
|
872
|
-
interceptorError
|
|
873
|
-
);
|
|
835
|
+
this.options.logger.warn("Response interceptor failed:", interceptorError);
|
|
874
836
|
}
|
|
875
837
|
}
|
|
876
838
|
}
|
|
@@ -887,10 +849,7 @@ var HttpTransport = class {
|
|
|
887
849
|
return await this.options.onResponse(serverError, requestConfig);
|
|
888
850
|
} catch (interceptorError) {
|
|
889
851
|
if (this.options.logLevel !== "none") {
|
|
890
|
-
this.options.logger.warn(
|
|
891
|
-
"Response interceptor failed:",
|
|
892
|
-
interceptorError
|
|
893
|
-
);
|
|
852
|
+
this.options.logger.warn("Response interceptor failed:", interceptorError);
|
|
894
853
|
}
|
|
895
854
|
}
|
|
896
855
|
}
|
|
@@ -904,10 +863,7 @@ var HttpTransport = class {
|
|
|
904
863
|
return await this.options.onResponse(result, requestConfig);
|
|
905
864
|
} catch (interceptorError) {
|
|
906
865
|
if (this.options.logLevel !== "none") {
|
|
907
|
-
this.options.logger.warn(
|
|
908
|
-
"Response interceptor failed:",
|
|
909
|
-
interceptorError
|
|
910
|
-
);
|
|
866
|
+
this.options.logger.warn("Response interceptor failed:", interceptorError);
|
|
911
867
|
}
|
|
912
868
|
}
|
|
913
869
|
}
|
|
@@ -916,16 +872,10 @@ var HttpTransport = class {
|
|
|
916
872
|
const deserializationError = createDeserializationError(error);
|
|
917
873
|
if (this.options.onResponse) {
|
|
918
874
|
try {
|
|
919
|
-
return await this.options.onResponse(
|
|
920
|
-
deserializationError,
|
|
921
|
-
requestConfig
|
|
922
|
-
);
|
|
875
|
+
return await this.options.onResponse(deserializationError, requestConfig);
|
|
923
876
|
} catch (interceptorError) {
|
|
924
877
|
if (this.options.logLevel !== "none") {
|
|
925
|
-
this.options.logger.warn(
|
|
926
|
-
"Response interceptor failed:",
|
|
927
|
-
interceptorError
|
|
928
|
-
);
|
|
878
|
+
this.options.logger.warn("Response interceptor failed:", interceptorError);
|
|
929
879
|
}
|
|
930
880
|
}
|
|
931
881
|
}
|
|
@@ -963,9 +913,7 @@ var HttpTransport = class {
|
|
|
963
913
|
* Checks if Content-Type header is present (case-insensitive)
|
|
964
914
|
*/
|
|
965
915
|
hasContentTypeHeader(headers) {
|
|
966
|
-
return Object.keys(headers).some(
|
|
967
|
-
(key) => key.toLowerCase() === "content-type"
|
|
968
|
-
);
|
|
916
|
+
return Object.keys(headers).some((key) => key.toLowerCase() === "content-type");
|
|
969
917
|
}
|
|
970
918
|
/**
|
|
971
919
|
* Checks if a content type is a valid JSON content type
|
|
@@ -999,9 +947,7 @@ var HttpTransport = class {
|
|
|
999
947
|
}
|
|
1000
948
|
const contentType = response.headers.get("content-type");
|
|
1001
949
|
if (contentType && !this.isJsonContentType(contentType)) {
|
|
1002
|
-
return createDeserializationError(
|
|
1003
|
-
new Error(`Expected JSON response but got ${contentType}`)
|
|
1004
|
-
);
|
|
950
|
+
return createDeserializationError(new Error(`Expected JSON response but got ${contentType}`));
|
|
1005
951
|
}
|
|
1006
952
|
return this.parseSuccessResponse(responseText);
|
|
1007
953
|
}
|
|
@@ -1067,16 +1013,12 @@ var HttpTransport = class {
|
|
|
1067
1013
|
} else if (this.options.logLevel === "detailed") {
|
|
1068
1014
|
if (status === "SUCCESS") {
|
|
1069
1015
|
const data = result.kind === "success" && "data" in result ? this.sanitizeResponseData(result.data) : void 0;
|
|
1070
|
-
this.options.logger.info(
|
|
1071
|
-
`Response: ${status} in ${duration}ms${attemptInfo}`,
|
|
1072
|
-
{ data }
|
|
1073
|
-
);
|
|
1016
|
+
this.options.logger.info(`Response: ${status} in ${duration}ms${attemptInfo}`, { data });
|
|
1074
1017
|
} else {
|
|
1075
1018
|
const sanitizedError = this.sanitizeError(result);
|
|
1076
|
-
this.options.logger.error(
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
);
|
|
1019
|
+
this.options.logger.error(`Response: ${status} in ${duration}ms${attemptInfo}`, {
|
|
1020
|
+
error: sanitizedError
|
|
1021
|
+
});
|
|
1080
1022
|
}
|
|
1081
1023
|
}
|
|
1082
1024
|
}
|
|
@@ -1088,9 +1030,7 @@ var HttpTransport = class {
|
|
|
1088
1030
|
return;
|
|
1089
1031
|
}
|
|
1090
1032
|
const reason = result.kind === "server-error" ? `HTTP ${result.status}` : result.kind === "client-error" ? result.type : "Unknown error";
|
|
1091
|
-
this.options.logger.warn(
|
|
1092
|
-
`Retry attempt ${attemptNumber} failed due to: ${reason}`
|
|
1093
|
-
);
|
|
1033
|
+
this.options.logger.warn(`Retry attempt ${attemptNumber} failed due to: ${reason}`);
|
|
1094
1034
|
}
|
|
1095
1035
|
/**
|
|
1096
1036
|
* Sanitizes headers for logging (removes sensitive information)
|
|
@@ -1100,12 +1040,7 @@ var HttpTransport = class {
|
|
|
1100
1040
|
return void 0;
|
|
1101
1041
|
}
|
|
1102
1042
|
const sanitized = {};
|
|
1103
|
-
const sensitiveHeaders = [
|
|
1104
|
-
"authorization",
|
|
1105
|
-
"cookie",
|
|
1106
|
-
"x-api-key",
|
|
1107
|
-
"x-auth-token"
|
|
1108
|
-
];
|
|
1043
|
+
const sensitiveHeaders = ["authorization", "cookie", "x-api-key", "x-auth-token"];
|
|
1109
1044
|
for (const [key, value] of Object.entries(headers)) {
|
|
1110
1045
|
const lowerKey = key.toLowerCase();
|
|
1111
1046
|
if (sensitiveHeaders.includes(lowerKey)) {
|
|
@@ -1168,8 +1103,7 @@ var HttpTransport = class {
|
|
|
1168
1103
|
const keys = Object.keys(item);
|
|
1169
1104
|
propertyCount += keys.length;
|
|
1170
1105
|
for (const key of keys.slice(0, 10)) {
|
|
1171
|
-
if (countProperties(item[key], depth + 1))
|
|
1172
|
-
return true;
|
|
1106
|
+
if (countProperties(item[key], depth + 1)) return true;
|
|
1173
1107
|
}
|
|
1174
1108
|
}
|
|
1175
1109
|
return false;
|
|
@@ -1269,12 +1203,10 @@ function parseExtensions(raw) {
|
|
|
1269
1203
|
}
|
|
1270
1204
|
function parseGraphQLErrors(rawErrors) {
|
|
1271
1205
|
return rawErrors.map((error) => {
|
|
1272
|
-
const locations = error.locations?.map(
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
})
|
|
1277
|
-
);
|
|
1206
|
+
const locations = error.locations?.map((loc) => ({
|
|
1207
|
+
line: loc.line,
|
|
1208
|
+
column: loc.column
|
|
1209
|
+
}));
|
|
1278
1210
|
return {
|
|
1279
1211
|
message: error.message,
|
|
1280
1212
|
locations,
|
|
@@ -1299,11 +1231,7 @@ var GraphQLTransport = class {
|
|
|
1299
1231
|
query,
|
|
1300
1232
|
variables
|
|
1301
1233
|
};
|
|
1302
|
-
const result = await this.http.post(
|
|
1303
|
-
"graphql",
|
|
1304
|
-
payload,
|
|
1305
|
-
options
|
|
1306
|
-
);
|
|
1234
|
+
const result = await this.http.post("graphql", payload, options);
|
|
1307
1235
|
if (!result.isSuccess) {
|
|
1308
1236
|
return result;
|
|
1309
1237
|
}
|
|
@@ -1445,46 +1373,28 @@ var customers = {
|
|
|
1445
1373
|
},
|
|
1446
1374
|
getCustomer: {
|
|
1447
1375
|
definition: "customers/{CustomerId}",
|
|
1448
|
-
render: (customerId) => "customers/{CustomerId}".replace(
|
|
1449
|
-
"{CustomerId}",
|
|
1450
|
-
encodeURIComponent(customerId)
|
|
1451
|
-
)
|
|
1376
|
+
render: (customerId) => "customers/{CustomerId}".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1452
1377
|
},
|
|
1453
1378
|
updateCustomer: {
|
|
1454
1379
|
definition: "customers/{CustomerId}",
|
|
1455
|
-
render: (customerId) => "customers/{CustomerId}".replace(
|
|
1456
|
-
"{CustomerId}",
|
|
1457
|
-
encodeURIComponent(customerId)
|
|
1458
|
-
)
|
|
1380
|
+
render: (customerId) => "customers/{CustomerId}".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1459
1381
|
},
|
|
1460
1382
|
deleteCustomer: {
|
|
1461
1383
|
definition: "customers/{CustomerId}",
|
|
1462
|
-
render: (customerId) => "customers/{CustomerId}".replace(
|
|
1463
|
-
"{CustomerId}",
|
|
1464
|
-
encodeURIComponent(customerId)
|
|
1465
|
-
)
|
|
1384
|
+
render: (customerId) => "customers/{CustomerId}".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1466
1385
|
},
|
|
1467
1386
|
getHealthInfo: {
|
|
1468
1387
|
definition: "customers/{CustomerId}/health-info",
|
|
1469
|
-
render: (customerId) => "customers/{CustomerId}/health-info".replace(
|
|
1470
|
-
"{CustomerId}",
|
|
1471
|
-
encodeURIComponent(customerId)
|
|
1472
|
-
)
|
|
1388
|
+
render: (customerId) => "customers/{CustomerId}/health-info".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1473
1389
|
},
|
|
1474
1390
|
updateHealthInfo: {
|
|
1475
1391
|
definition: "customers/{CustomerId}/health-info",
|
|
1476
|
-
render: (customerId) => "customers/{CustomerId}/health-info".replace(
|
|
1477
|
-
"{CustomerId}",
|
|
1478
|
-
encodeURIComponent(customerId)
|
|
1479
|
-
)
|
|
1392
|
+
render: (customerId) => "customers/{CustomerId}/health-info".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1480
1393
|
},
|
|
1481
1394
|
emails: {
|
|
1482
1395
|
addCustomerEmail: {
|
|
1483
1396
|
definition: "customers/{CustomerId}/emails",
|
|
1484
|
-
render: (customerId) => "customers/{CustomerId}/emails".replace(
|
|
1485
|
-
"{CustomerId}",
|
|
1486
|
-
encodeURIComponent(customerId)
|
|
1487
|
-
)
|
|
1397
|
+
render: (customerId) => "customers/{CustomerId}/emails".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1488
1398
|
},
|
|
1489
1399
|
removeCustomerEmail: {
|
|
1490
1400
|
definition: "customers/{CustomerId}/emails/{Email}",
|
|
@@ -1496,10 +1406,7 @@ var customers = {
|
|
|
1496
1406
|
},
|
|
1497
1407
|
getCustomerEmails: {
|
|
1498
1408
|
definition: "customers/{CustomerId}/emails",
|
|
1499
|
-
render: (customerId) => "customers/{CustomerId}/emails".replace(
|
|
1500
|
-
"{CustomerId}",
|
|
1501
|
-
encodeURIComponent(customerId)
|
|
1502
|
-
)
|
|
1409
|
+
render: (customerId) => "customers/{CustomerId}/emails".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1503
1410
|
}
|
|
1504
1411
|
},
|
|
1505
1412
|
phoneNumbers: {
|
|
@@ -1512,17 +1419,11 @@ var customers = {
|
|
|
1512
1419
|
},
|
|
1513
1420
|
removeCustomerPhoneNumber: {
|
|
1514
1421
|
definition: "customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}",
|
|
1515
|
-
render: (request) => "customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}".replace("{CustomerId}", encodeURIComponent(request.customerId)).replace(
|
|
1516
|
-
"{CountryCode}",
|
|
1517
|
-
encodeURIComponent(request.countryCode.toString())
|
|
1518
|
-
).replace("{PhoneNumber}", encodeURIComponent(request.phoneNumber))
|
|
1422
|
+
render: (request) => "customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}".replace("{CustomerId}", encodeURIComponent(request.customerId)).replace("{CountryCode}", encodeURIComponent(request.countryCode.toString())).replace("{PhoneNumber}", encodeURIComponent(request.phoneNumber))
|
|
1519
1423
|
},
|
|
1520
1424
|
changePrimaryCustomerPhoneNumber: {
|
|
1521
1425
|
definition: "customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}/primary",
|
|
1522
|
-
render: (request) => "customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}/primary".replace("{CustomerId}", encodeURIComponent(request.customerId)).replace(
|
|
1523
|
-
"{CountryCode}",
|
|
1524
|
-
encodeURIComponent(request.countryCode.toString())
|
|
1525
|
-
).replace("{PhoneNumber}", encodeURIComponent(request.phoneNumber))
|
|
1426
|
+
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))
|
|
1526
1427
|
},
|
|
1527
1428
|
getCustomerPhoneNumbers: {
|
|
1528
1429
|
definition: "customers/{CustomerId}/phone-numbers",
|
|
@@ -1568,26 +1469,17 @@ var customers = {
|
|
|
1568
1469
|
},
|
|
1569
1470
|
create: {
|
|
1570
1471
|
definition: "customers/{CustomerId}/contacts",
|
|
1571
|
-
render: (customerId) => "customers/{CustomerId}/contacts".replace(
|
|
1572
|
-
"{CustomerId}",
|
|
1573
|
-
encodeURIComponent(customerId)
|
|
1574
|
-
)
|
|
1472
|
+
render: (customerId) => "customers/{CustomerId}/contacts".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1575
1473
|
}
|
|
1576
1474
|
},
|
|
1577
1475
|
setCustomerBranch: {
|
|
1578
1476
|
definition: "customers/{CustomerId}/branch",
|
|
1579
|
-
render: (customerId) => "customers/{CustomerId}/branch".replace(
|
|
1580
|
-
"{CustomerId}",
|
|
1581
|
-
encodeURIComponent(customerId)
|
|
1582
|
-
)
|
|
1477
|
+
render: (customerId) => "customers/{CustomerId}/branch".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1583
1478
|
},
|
|
1584
1479
|
addresses: {
|
|
1585
1480
|
create: {
|
|
1586
1481
|
definition: "customers/{CustomerId}/addresses",
|
|
1587
|
-
render: (customerId) => "customers/{CustomerId}/addresses".replace(
|
|
1588
|
-
"{CustomerId}",
|
|
1589
|
-
encodeURIComponent(customerId)
|
|
1590
|
-
)
|
|
1482
|
+
render: (customerId) => "customers/{CustomerId}/addresses".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1591
1483
|
},
|
|
1592
1484
|
update: {
|
|
1593
1485
|
definition: "customers/{CustomerId}/addresses/{AddressId}",
|
|
@@ -1599,10 +1491,7 @@ var customers = {
|
|
|
1599
1491
|
},
|
|
1600
1492
|
getAll: {
|
|
1601
1493
|
definition: "customers/{CustomerId}/addresses",
|
|
1602
|
-
render: (customerId) => "customers/{CustomerId}/addresses".replace(
|
|
1603
|
-
"{CustomerId}",
|
|
1604
|
-
encodeURIComponent(customerId)
|
|
1605
|
-
)
|
|
1494
|
+
render: (customerId) => "customers/{CustomerId}/addresses".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1606
1495
|
},
|
|
1607
1496
|
delete: {
|
|
1608
1497
|
definition: "customers/{CustomerId}/addresses/{AddressId}",
|
|
@@ -1612,10 +1501,7 @@ var customers = {
|
|
|
1612
1501
|
consents: {
|
|
1613
1502
|
give: {
|
|
1614
1503
|
definition: "customers/{CustomerId}/consents",
|
|
1615
|
-
render: (customerId) => "customers/{CustomerId}/consents".replace(
|
|
1616
|
-
"{CustomerId}",
|
|
1617
|
-
encodeURIComponent(customerId)
|
|
1618
|
-
)
|
|
1504
|
+
render: (customerId) => "customers/{CustomerId}/consents".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1619
1505
|
},
|
|
1620
1506
|
revoke: {
|
|
1621
1507
|
definition: "customers/{CustomerId}/consents/revoke",
|
|
@@ -1626,10 +1512,7 @@ var customers = {
|
|
|
1626
1512
|
},
|
|
1627
1513
|
getAll: {
|
|
1628
1514
|
definition: "customers/{CustomerId}/consents",
|
|
1629
|
-
render: (customerId) => "customers/{CustomerId}/consents".replace(
|
|
1630
|
-
"{CustomerId}",
|
|
1631
|
-
encodeURIComponent(customerId)
|
|
1632
|
-
)
|
|
1515
|
+
render: (customerId) => "customers/{CustomerId}/consents".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1633
1516
|
}
|
|
1634
1517
|
}
|
|
1635
1518
|
};
|
|
@@ -1696,10 +1579,7 @@ var vehicles = {
|
|
|
1696
1579
|
},
|
|
1697
1580
|
create: {
|
|
1698
1581
|
definition: "customers/{CustomerId}/vehicles",
|
|
1699
|
-
render: (customerId) => "customers/{CustomerId}/vehicles".replace(
|
|
1700
|
-
"{CustomerId}",
|
|
1701
|
-
encodeURIComponent(customerId)
|
|
1702
|
-
)
|
|
1582
|
+
render: (customerId) => "customers/{CustomerId}/vehicles".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1703
1583
|
},
|
|
1704
1584
|
update: {
|
|
1705
1585
|
definition: "customers/{CustomerId}/vehicles/{VehicleId}",
|
|
@@ -1715,10 +1595,7 @@ var vehicles = {
|
|
|
1715
1595
|
},
|
|
1716
1596
|
getCustomerVehicles: {
|
|
1717
1597
|
definition: "customers/{CustomerId}/vehicles",
|
|
1718
|
-
render: (customerId) => "customers/{CustomerId}/vehicles".replace(
|
|
1719
|
-
"{CustomerId}",
|
|
1720
|
-
encodeURIComponent(customerId)
|
|
1721
|
-
)
|
|
1598
|
+
render: (customerId) => "customers/{CustomerId}/vehicles".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1722
1599
|
}
|
|
1723
1600
|
};
|
|
1724
1601
|
var insuranceServices = {
|
|
@@ -1730,17 +1607,11 @@ var properties = {
|
|
|
1730
1607
|
getCurrentCustomerProperties: "customers/me/properties",
|
|
1731
1608
|
getAll: {
|
|
1732
1609
|
definition: "customers/{CustomerId}/properties",
|
|
1733
|
-
render: (customerId) => "customers/{CustomerId}/properties".replace(
|
|
1734
|
-
"{CustomerId}",
|
|
1735
|
-
encodeURIComponent(customerId)
|
|
1736
|
-
)
|
|
1610
|
+
render: (customerId) => "customers/{CustomerId}/properties".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1737
1611
|
},
|
|
1738
1612
|
create: {
|
|
1739
1613
|
definition: "customers/{CustomerId}/properties",
|
|
1740
|
-
render: (customerId) => "customers/{CustomerId}/properties".replace(
|
|
1741
|
-
"{CustomerId}",
|
|
1742
|
-
encodeURIComponent(customerId)
|
|
1743
|
-
)
|
|
1614
|
+
render: (customerId) => "customers/{CustomerId}/properties".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1744
1615
|
},
|
|
1745
1616
|
getById: {
|
|
1746
1617
|
definition: "customers/{CustomerId}/properties/{PropertyId}",
|
|
@@ -1759,24 +1630,15 @@ var proposals = {
|
|
|
1759
1630
|
create: "proposals",
|
|
1760
1631
|
getProposalById: {
|
|
1761
1632
|
definition: "proposals/{ProposalId}",
|
|
1762
|
-
render: (proposalId) => "proposals/{ProposalId}".replace(
|
|
1763
|
-
"{ProposalId}",
|
|
1764
|
-
encodeURIComponent(proposalId)
|
|
1765
|
-
)
|
|
1633
|
+
render: (proposalId) => "proposals/{ProposalId}".replace("{ProposalId}", encodeURIComponent(proposalId))
|
|
1766
1634
|
},
|
|
1767
1635
|
getProposalSnapshot: {
|
|
1768
1636
|
definition: "proposals/{ProposalId}/snapshot",
|
|
1769
|
-
render: (proposalId) => "proposals/{ProposalId}/snapshot".replace(
|
|
1770
|
-
"{ProposalId}",
|
|
1771
|
-
encodeURIComponent(proposalId)
|
|
1772
|
-
)
|
|
1637
|
+
render: (proposalId) => "proposals/{ProposalId}/snapshot".replace("{ProposalId}", encodeURIComponent(proposalId))
|
|
1773
1638
|
},
|
|
1774
1639
|
getProposalCoverage: {
|
|
1775
1640
|
definition: "proposals/{ProposalId}/coverage",
|
|
1776
|
-
render: (proposalId) => "proposals/{ProposalId}/coverage".replace(
|
|
1777
|
-
"{ProposalId}",
|
|
1778
|
-
encodeURIComponent(proposalId)
|
|
1779
|
-
)
|
|
1641
|
+
render: (proposalId) => "proposals/{ProposalId}/coverage".replace("{ProposalId}", encodeURIComponent(proposalId))
|
|
1780
1642
|
},
|
|
1781
1643
|
getProposalProductCoverage: {
|
|
1782
1644
|
definition: "proposals/{ProposalId}/products/{ProposalProductId}/coverage",
|
|
@@ -1788,10 +1650,7 @@ var proposals = {
|
|
|
1788
1650
|
},
|
|
1789
1651
|
getProposalProductPremiumDetail: {
|
|
1790
1652
|
definition: "proposals/{ProposalId}/products/{ProposalProductId}/premium-detail/{InstallmentNumber}",
|
|
1791
|
-
render: (proposalId, proposalProductId, installmentNumber) => "proposals/{ProposalId}/products/{ProposalProductId}/premium-detail/{InstallmentNumber}".replace("{ProposalId}", encodeURIComponent(proposalId)).replace("{ProposalProductId}", encodeURIComponent(proposalProductId)).replace(
|
|
1792
|
-
"{InstallmentNumber}",
|
|
1793
|
-
encodeURIComponent(installmentNumber.toString())
|
|
1794
|
-
)
|
|
1653
|
+
render: (proposalId, proposalProductId, installmentNumber) => "proposals/{ProposalId}/products/{ProposalProductId}/premium-detail/{InstallmentNumber}".replace("{ProposalId}", encodeURIComponent(proposalId)).replace("{ProposalProductId}", encodeURIComponent(proposalProductId)).replace("{InstallmentNumber}", encodeURIComponent(installmentNumber.toString()))
|
|
1795
1654
|
},
|
|
1796
1655
|
purchaseProposalProductSync: {
|
|
1797
1656
|
definition: "proposals/{ProposalId}/products/{ProposalProductId}/purchase/sync",
|
|
@@ -1803,10 +1662,7 @@ var proposals = {
|
|
|
1803
1662
|
},
|
|
1804
1663
|
reviseProposal: {
|
|
1805
1664
|
definition: "proposals/{ProposalId}/revise",
|
|
1806
|
-
render: (proposalId) => "proposals/{ProposalId}/revise".replace(
|
|
1807
|
-
"{ProposalId}",
|
|
1808
|
-
encodeURIComponent(proposalId)
|
|
1809
|
-
)
|
|
1665
|
+
render: (proposalId) => "proposals/{ProposalId}/revise".replace("{ProposalId}", encodeURIComponent(proposalId))
|
|
1810
1666
|
},
|
|
1811
1667
|
reviseProposalProduct: {
|
|
1812
1668
|
definition: "proposals/{ProposalId}/products/{ProposalProductId}/revise",
|
|
@@ -1851,10 +1707,7 @@ var proposals = {
|
|
|
1851
1707
|
},
|
|
1852
1708
|
setProposalBranch: {
|
|
1853
1709
|
definition: "proposals/{ProposalId}/branch",
|
|
1854
|
-
render: (proposalId) => "proposals/{ProposalId}/branch".replace(
|
|
1855
|
-
"{ProposalId}",
|
|
1856
|
-
encodeURIComponent(proposalId)
|
|
1857
|
-
)
|
|
1710
|
+
render: (proposalId) => "proposals/{ProposalId}/branch".replace("{ProposalId}", encodeURIComponent(proposalId))
|
|
1858
1711
|
},
|
|
1859
1712
|
generateCustomerProposalDocumentPdf: {
|
|
1860
1713
|
definition: "proposals/{ProposalId}/customer-document-pdf",
|
|
@@ -1874,41 +1727,26 @@ var policies = {
|
|
|
1874
1727
|
},
|
|
1875
1728
|
fetchPolicyDocument: {
|
|
1876
1729
|
definition: "policies/{PolicyId}/document",
|
|
1877
|
-
render: (policyId) => "policies/{PolicyId}/document".replace(
|
|
1878
|
-
"{PolicyId}",
|
|
1879
|
-
encodeURIComponent(policyId)
|
|
1880
|
-
)
|
|
1730
|
+
render: (policyId) => "policies/{PolicyId}/document".replace("{PolicyId}", encodeURIComponent(policyId))
|
|
1881
1731
|
},
|
|
1882
1732
|
sendPolicyDocument: {
|
|
1883
1733
|
definition: "policies/{PolicyId}/document/send",
|
|
1884
|
-
render: (policyId) => "policies/{PolicyId}/document/send".replace(
|
|
1885
|
-
"{PolicyId}",
|
|
1886
|
-
encodeURIComponent(policyId)
|
|
1887
|
-
)
|
|
1734
|
+
render: (policyId) => "policies/{PolicyId}/document/send".replace("{PolicyId}", encodeURIComponent(policyId))
|
|
1888
1735
|
},
|
|
1889
1736
|
setPolicyRepresentative: {
|
|
1890
1737
|
definition: "policies/{PolicyId}/representative",
|
|
1891
|
-
render: (policyId) => "policies/{PolicyId}/representative".replace(
|
|
1892
|
-
"{PolicyId}",
|
|
1893
|
-
encodeURIComponent(policyId)
|
|
1894
|
-
)
|
|
1738
|
+
render: (policyId) => "policies/{PolicyId}/representative".replace("{PolicyId}", encodeURIComponent(policyId))
|
|
1895
1739
|
},
|
|
1896
1740
|
setPolicyBranch: {
|
|
1897
1741
|
definition: "policies/{PolicyId}/branch",
|
|
1898
|
-
render: (policyId) => "policies/{PolicyId}/branch".replace(
|
|
1899
|
-
"{PolicyId}",
|
|
1900
|
-
encodeURIComponent(policyId)
|
|
1901
|
-
)
|
|
1742
|
+
render: (policyId) => "policies/{PolicyId}/branch".replace("{PolicyId}", encodeURIComponent(policyId))
|
|
1902
1743
|
},
|
|
1903
1744
|
createManualPolicy: {
|
|
1904
1745
|
definition: "policies/manual"
|
|
1905
1746
|
},
|
|
1906
1747
|
updateManualPolicy: {
|
|
1907
1748
|
definition: "policies/manual/{PolicyId}",
|
|
1908
|
-
render: (policyId) => "policies/manual/{PolicyId}".replace(
|
|
1909
|
-
"{PolicyId}",
|
|
1910
|
-
encodeURIComponent(policyId)
|
|
1911
|
-
)
|
|
1749
|
+
render: (policyId) => "policies/manual/{PolicyId}".replace("{PolicyId}", encodeURIComponent(policyId))
|
|
1912
1750
|
},
|
|
1913
1751
|
getPolicyCountAndPremiumAnalytics: {
|
|
1914
1752
|
definition: "policies/analytics/count-and-premium"
|
|
@@ -1934,10 +1772,7 @@ var policyTransfers = {
|
|
|
1934
1772
|
},
|
|
1935
1773
|
getPolicyTransferTriggerDetail: {
|
|
1936
1774
|
definition: "policy-transfers/{PolicyTransferId}/triggers/{PolicyTransferTriggerId}",
|
|
1937
|
-
render: (policyTransferId, policyTransferTriggerId) => "policy-transfers/{PolicyTransferId}/triggers/{PolicyTransferTriggerId}".replace("{PolicyTransferId}", encodeURIComponent(policyTransferId)).replace(
|
|
1938
|
-
"{PolicyTransferTriggerId}",
|
|
1939
|
-
encodeURIComponent(policyTransferTriggerId)
|
|
1940
|
-
)
|
|
1775
|
+
render: (policyTransferId, policyTransferTriggerId) => "policy-transfers/{PolicyTransferId}/triggers/{PolicyTransferTriggerId}".replace("{PolicyTransferId}", encodeURIComponent(policyTransferId)).replace("{PolicyTransferTriggerId}", encodeURIComponent(policyTransferTriggerId))
|
|
1941
1776
|
},
|
|
1942
1777
|
triggerPolicyTransfer: {
|
|
1943
1778
|
definition: "policy-transfers/{PolicyTransferId}/trigger",
|
|
@@ -1989,10 +1824,7 @@ var agentSetupRequests = {
|
|
|
1989
1824
|
},
|
|
1990
1825
|
disableAgentSetupRequest: {
|
|
1991
1826
|
definition: "agent-setup-requests/{Id}/disable",
|
|
1992
|
-
render: (id) => "agent-setup-requests/{Id}/disable".replace(
|
|
1993
|
-
"{Id}",
|
|
1994
|
-
encodeURIComponent(id)
|
|
1995
|
-
)
|
|
1827
|
+
render: (id) => "agent-setup-requests/{Id}/disable".replace("{Id}", encodeURIComponent(id))
|
|
1996
1828
|
}
|
|
1997
1829
|
};
|
|
1998
1830
|
var agentUsers = {
|
|
@@ -2014,17 +1846,11 @@ var agentUsers = {
|
|
|
2014
1846
|
},
|
|
2015
1847
|
deactivate: {
|
|
2016
1848
|
definition: "agent-users/{AgentUserId}/deactivate",
|
|
2017
|
-
render: (userId) => "agent-users/{AgentUserId}/deactivate".replace(
|
|
2018
|
-
"{AgentUserId}",
|
|
2019
|
-
encodeURIComponent(userId)
|
|
2020
|
-
)
|
|
1849
|
+
render: (userId) => "agent-users/{AgentUserId}/deactivate".replace("{AgentUserId}", encodeURIComponent(userId))
|
|
2021
1850
|
},
|
|
2022
1851
|
activate: {
|
|
2023
1852
|
definition: "agent-users/{AgentUserId}/activate",
|
|
2024
|
-
render: (userId) => "agent-users/{AgentUserId}/activate".replace(
|
|
2025
|
-
"{AgentUserId}",
|
|
2026
|
-
encodeURIComponent(userId)
|
|
2027
|
-
)
|
|
1853
|
+
render: (userId) => "agent-users/{AgentUserId}/activate".replace("{AgentUserId}", encodeURIComponent(userId))
|
|
2028
1854
|
},
|
|
2029
1855
|
delete: {
|
|
2030
1856
|
definition: "agent-users/{UserId}",
|
|
@@ -2036,10 +1862,7 @@ var agentUsers = {
|
|
|
2036
1862
|
},
|
|
2037
1863
|
checkAgentUserInviteCode: {
|
|
2038
1864
|
definition: "agent-users/check-invite-code",
|
|
2039
|
-
render: (code) => "agent-users/check-invite-code?code={code}".replace(
|
|
2040
|
-
"{code}",
|
|
2041
|
-
encodeURIComponent(code)
|
|
2042
|
-
)
|
|
1865
|
+
render: (code) => "agent-users/check-invite-code?code={code}".replace("{code}", encodeURIComponent(code))
|
|
2043
1866
|
},
|
|
2044
1867
|
update: {
|
|
2045
1868
|
definition: "agent-users/{Id}",
|
|
@@ -2047,10 +1870,7 @@ var agentUsers = {
|
|
|
2047
1870
|
},
|
|
2048
1871
|
migrate: {
|
|
2049
1872
|
definition: "agent-users/{AgentUserId}/migrate",
|
|
2050
|
-
render: (agentUserId) => "agent-users/{AgentUserId}/migrate".replace(
|
|
2051
|
-
"{AgentUserId}",
|
|
2052
|
-
encodeURIComponent(agentUserId)
|
|
2053
|
-
)
|
|
1873
|
+
render: (agentUserId) => "agent-users/{AgentUserId}/migrate".replace("{AgentUserId}", encodeURIComponent(agentUserId))
|
|
2054
1874
|
},
|
|
2055
1875
|
migrateAll: "agent-users/migrate-all"
|
|
2056
1876
|
};
|
|
@@ -2088,17 +1908,11 @@ var webhooks = {
|
|
|
2088
1908
|
deliveries: {
|
|
2089
1909
|
getById: {
|
|
2090
1910
|
definition: "webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}",
|
|
2091
|
-
render: (webhookId, webhookDeliveryId) => "webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}".replace("{WebhookId}", encodeURIComponent(webhookId)).replace(
|
|
2092
|
-
"{WebhookDeliveryId}",
|
|
2093
|
-
encodeURIComponent(webhookDeliveryId)
|
|
2094
|
-
)
|
|
1911
|
+
render: (webhookId, webhookDeliveryId) => "webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}".replace("{WebhookId}", encodeURIComponent(webhookId)).replace("{WebhookDeliveryId}", encodeURIComponent(webhookDeliveryId))
|
|
2095
1912
|
},
|
|
2096
1913
|
redeliver: {
|
|
2097
1914
|
definition: "webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}/redeliver",
|
|
2098
|
-
render: (webhookId, webhookDeliveryId) => "webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}/redeliver".replace("{WebhookId}", encodeURIComponent(webhookId)).replace(
|
|
2099
|
-
"{WebhookDeliveryId}",
|
|
2100
|
-
encodeURIComponent(webhookDeliveryId)
|
|
2101
|
-
)
|
|
1915
|
+
render: (webhookId, webhookDeliveryId) => "webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}/redeliver".replace("{WebhookId}", encodeURIComponent(webhookId)).replace("{WebhookDeliveryId}", encodeURIComponent(webhookDeliveryId))
|
|
2102
1916
|
}
|
|
2103
1917
|
}
|
|
2104
1918
|
};
|
|
@@ -2273,10 +2087,7 @@ var InsurUpAgentClient = class {
|
|
|
2273
2087
|
* @returns Agent profile information / Acente profil bilgileri
|
|
2274
2088
|
*/
|
|
2275
2089
|
async getCurrentAgent(options) {
|
|
2276
|
-
return this.http.get(
|
|
2277
|
-
agents.getCurrentAgent,
|
|
2278
|
-
options
|
|
2279
|
-
);
|
|
2090
|
+
return this.http.get(agents.getCurrentAgent, options);
|
|
2280
2091
|
}
|
|
2281
2092
|
/**
|
|
2282
2093
|
* Updates the current agent's profile information such as business details, contact information, and operational preferences.
|
|
@@ -2311,13 +2122,8 @@ var InsurUpAgentClient = class {
|
|
|
2311
2122
|
* @returns Available product branches / Mevcut ürün dalları
|
|
2312
2123
|
*/
|
|
2313
2124
|
async getAgentInsuranceCompanyBranchesAsync(agentInsuranceCompanyId, options) {
|
|
2314
|
-
const endpoint = agents.insuranceCompanies.getBranches.render(
|
|
2315
|
-
|
|
2316
|
-
);
|
|
2317
|
-
return this.http.get(
|
|
2318
|
-
endpoint,
|
|
2319
|
-
options
|
|
2320
|
-
);
|
|
2125
|
+
const endpoint = agents.insuranceCompanies.getBranches.render(agentInsuranceCompanyId);
|
|
2126
|
+
return this.http.get(endpoint, options);
|
|
2321
2127
|
}
|
|
2322
2128
|
/**
|
|
2323
2129
|
* Retrieves the technical connection configuration and credentials for integrating with a specific insurance company's systems.
|
|
@@ -2328,13 +2134,8 @@ var InsurUpAgentClient = class {
|
|
|
2328
2134
|
* @returns Connection configuration details / Bağlantı yapılandırma detayları
|
|
2329
2135
|
*/
|
|
2330
2136
|
async getAgentInsuranceCompanyConnectionAsync(agentInsuranceCompanyId, options) {
|
|
2331
|
-
const endpoint = agents.insuranceCompanies.getConnection.render(
|
|
2332
|
-
|
|
2333
|
-
);
|
|
2334
|
-
return this.http.get(
|
|
2335
|
-
endpoint,
|
|
2336
|
-
options
|
|
2337
|
-
);
|
|
2137
|
+
const endpoint = agents.insuranceCompanies.getConnection.render(agentInsuranceCompanyId);
|
|
2138
|
+
return this.http.get(endpoint, options);
|
|
2338
2139
|
}
|
|
2339
2140
|
/**
|
|
2340
2141
|
* Establishes a new business relationship between the agent and an insurance company, enabling the agent to offer that company's products.
|
|
@@ -2360,9 +2161,7 @@ var InsurUpAgentClient = class {
|
|
|
2360
2161
|
* @returns Operation result / İşlem sonucu
|
|
2361
2162
|
*/
|
|
2362
2163
|
async removeAgentInsuranceCompany(agentInsuranceCompanyId, options) {
|
|
2363
|
-
const endpoint = agents.insuranceCompanies.remove.render(
|
|
2364
|
-
agentInsuranceCompanyId
|
|
2365
|
-
);
|
|
2164
|
+
const endpoint = agents.insuranceCompanies.remove.render(agentInsuranceCompanyId);
|
|
2366
2165
|
return this.http.deleteNoContent(endpoint, options);
|
|
2367
2166
|
}
|
|
2368
2167
|
/**
|
|
@@ -2415,10 +2214,7 @@ var InsurUpAgentClient = class {
|
|
|
2415
2214
|
* @returns List of B2C configuration fields
|
|
2416
2215
|
*/
|
|
2417
2216
|
async getB2CConfigFields(options) {
|
|
2418
|
-
return this.http.get(
|
|
2419
|
-
b2c.configFields.getAll,
|
|
2420
|
-
options
|
|
2421
|
-
);
|
|
2217
|
+
return this.http.get(b2c.configFields.getAll, options);
|
|
2422
2218
|
}
|
|
2423
2219
|
/**
|
|
2424
2220
|
* Updates all B2C configuration fields at once, allowing agents to customize their customer-facing interface settings and branding parameters.
|
|
@@ -2469,10 +2265,7 @@ var InsurUpAgentBranchClient = class {
|
|
|
2469
2265
|
* @returns List of all agent branches
|
|
2470
2266
|
*/
|
|
2471
2267
|
async getAgentBranches(options) {
|
|
2472
|
-
return this.http.get(
|
|
2473
|
-
agentBranches.getAll,
|
|
2474
|
-
options
|
|
2475
|
-
);
|
|
2268
|
+
return this.http.get(agentBranches.getAll, options);
|
|
2476
2269
|
}
|
|
2477
2270
|
/**
|
|
2478
2271
|
* Updates an existing agent branch's name or parent branch relationship to reflect changing organizational needs.
|
|
@@ -2578,11 +2371,7 @@ var InsurUpAgentSetupClient = class {
|
|
|
2578
2371
|
* @returns Setup process identifier and next steps / Kurulum süreci tanımlayıcısı ve sonraki adımlar
|
|
2579
2372
|
*/
|
|
2580
2373
|
async enterAgentSetupRequest(request, options) {
|
|
2581
|
-
return this.http.post(
|
|
2582
|
-
agentSetupRequests.enter,
|
|
2583
|
-
request,
|
|
2584
|
-
options
|
|
2585
|
-
);
|
|
2374
|
+
return this.http.post(agentSetupRequests.enter, request, options);
|
|
2586
2375
|
}
|
|
2587
2376
|
/**
|
|
2588
2377
|
* Finalizes the agent setup process by confirming all requirements are met and activating the agent's platform access.
|
|
@@ -2593,11 +2382,7 @@ var InsurUpAgentSetupClient = class {
|
|
|
2593
2382
|
* @returns Operation result / İşlem sonucu
|
|
2594
2383
|
*/
|
|
2595
2384
|
async completeAgentSetupRequest(request, options) {
|
|
2596
|
-
return this.http.postNoContent(
|
|
2597
|
-
agentSetupRequests.complete,
|
|
2598
|
-
request,
|
|
2599
|
-
options
|
|
2600
|
-
);
|
|
2385
|
+
return this.http.postNoContent(agentSetupRequests.complete, request, options);
|
|
2601
2386
|
}
|
|
2602
2387
|
};
|
|
2603
2388
|
|
|
@@ -2755,10 +2540,7 @@ var InsurUpAgentUserClient = class {
|
|
|
2755
2540
|
* @returns Agent user robot code / Acente kullanıcı robot kodu
|
|
2756
2541
|
*/
|
|
2757
2542
|
async getMyAgentUserRobotCode(options) {
|
|
2758
|
-
return this.http.get(
|
|
2759
|
-
agentUsers.meRobotCode,
|
|
2760
|
-
options
|
|
2761
|
-
);
|
|
2543
|
+
return this.http.get(agentUsers.meRobotCode, options);
|
|
2762
2544
|
}
|
|
2763
2545
|
/**
|
|
2764
2546
|
* Migrates an agent user from the legacy authentication system to the AuthServer.
|
|
@@ -2782,11 +2564,7 @@ var InsurUpAgentUserClient = class {
|
|
|
2782
2564
|
* @returns Response with the count of migrated users / Taşınan kullanıcı sayısı ile yanıt
|
|
2783
2565
|
*/
|
|
2784
2566
|
async migrateAllAgentUsers(options) {
|
|
2785
|
-
return this.http.post(
|
|
2786
|
-
agentUsers.migrateAll,
|
|
2787
|
-
void 0,
|
|
2788
|
-
options
|
|
2789
|
-
);
|
|
2567
|
+
return this.http.post(agentUsers.migrateAll, void 0, options);
|
|
2790
2568
|
}
|
|
2791
2569
|
// ============================================================================
|
|
2792
2570
|
// GRAPHQL QUERIES
|
|
@@ -2926,10 +2704,7 @@ var InsurUpCustomerClient = class {
|
|
|
2926
2704
|
* Retrieves the profile information of the currently authenticated customer.
|
|
2927
2705
|
*/
|
|
2928
2706
|
async getCurrentCustomer(options) {
|
|
2929
|
-
return this.http.get(
|
|
2930
|
-
endpoints.customers.getCurrentCustomer,
|
|
2931
|
-
options
|
|
2932
|
-
);
|
|
2707
|
+
return this.http.get(endpoints.customers.getCurrentCustomer, options);
|
|
2933
2708
|
}
|
|
2934
2709
|
/**
|
|
2935
2710
|
* Updates existing customer profile information.
|
|
@@ -2993,9 +2768,7 @@ var InsurUpCustomerClient = class {
|
|
|
2993
2768
|
*/
|
|
2994
2769
|
async getCustomerPhoneNumbers(customerId, options) {
|
|
2995
2770
|
return this.http.get(
|
|
2996
|
-
endpoints.customers.phoneNumbers.getCustomerPhoneNumbers.render(
|
|
2997
|
-
customerId
|
|
2998
|
-
),
|
|
2771
|
+
endpoints.customers.phoneNumbers.getCustomerPhoneNumbers.render(customerId),
|
|
2999
2772
|
options
|
|
3000
2773
|
);
|
|
3001
2774
|
}
|
|
@@ -3004,9 +2777,7 @@ var InsurUpCustomerClient = class {
|
|
|
3004
2777
|
*/
|
|
3005
2778
|
async addCustomerPhoneNumber(request, options) {
|
|
3006
2779
|
return this.http.postNoContent(
|
|
3007
|
-
endpoints.customers.phoneNumbers.addCustomerPhoneNumber.render(
|
|
3008
|
-
request.customerId
|
|
3009
|
-
),
|
|
2780
|
+
endpoints.customers.phoneNumbers.addCustomerPhoneNumber.render(request.customerId),
|
|
3010
2781
|
request,
|
|
3011
2782
|
options
|
|
3012
2783
|
);
|
|
@@ -3016,9 +2787,7 @@ var InsurUpCustomerClient = class {
|
|
|
3016
2787
|
*/
|
|
3017
2788
|
async removeCustomerPhoneNumber(request, options) {
|
|
3018
2789
|
return this.http.deleteNoContent(
|
|
3019
|
-
endpoints.customers.phoneNumbers.removeCustomerPhoneNumber.render(
|
|
3020
|
-
request
|
|
3021
|
-
),
|
|
2790
|
+
endpoints.customers.phoneNumbers.removeCustomerPhoneNumber.render(request),
|
|
3022
2791
|
options
|
|
3023
2792
|
);
|
|
3024
2793
|
}
|
|
@@ -3027,9 +2796,7 @@ var InsurUpCustomerClient = class {
|
|
|
3027
2796
|
*/
|
|
3028
2797
|
async changePrimaryCustomerPhoneNumber(request, options) {
|
|
3029
2798
|
return this.http.postNoContent(
|
|
3030
|
-
endpoints.customers.phoneNumbers.changePrimaryCustomerPhoneNumber.render(
|
|
3031
|
-
request
|
|
3032
|
-
),
|
|
2799
|
+
endpoints.customers.phoneNumbers.changePrimaryCustomerPhoneNumber.render(request),
|
|
3033
2800
|
void 0,
|
|
3034
2801
|
options
|
|
3035
2802
|
);
|
|
@@ -3085,10 +2852,7 @@ var InsurUpCustomerClient = class {
|
|
|
3085
2852
|
*/
|
|
3086
2853
|
async updateCustomerAddress(request, options) {
|
|
3087
2854
|
return this.http.putNoContent(
|
|
3088
|
-
endpoints.customers.addresses.update.render(
|
|
3089
|
-
request.customerId,
|
|
3090
|
-
request.addressId
|
|
3091
|
-
),
|
|
2855
|
+
endpoints.customers.addresses.update.render(request.customerId, request.addressId),
|
|
3092
2856
|
request,
|
|
3093
2857
|
options
|
|
3094
2858
|
);
|
|
@@ -3208,9 +2972,7 @@ var InsurUpCustomerClient = class {
|
|
|
3208
2972
|
*/
|
|
3209
2973
|
async createCustomerContactFlow(request, options) {
|
|
3210
2974
|
return this.http.postNoContent(
|
|
3211
|
-
endpoints.customers.contactFlows.createContactFlow.render(
|
|
3212
|
-
request.customerId
|
|
3213
|
-
),
|
|
2975
|
+
endpoints.customers.contactFlows.createContactFlow.render(request.customerId),
|
|
3214
2976
|
request,
|
|
3215
2977
|
options
|
|
3216
2978
|
);
|
|
@@ -3243,10 +3005,7 @@ var InsurUpCustomerClient = class {
|
|
|
3243
3005
|
*/
|
|
3244
3006
|
async getCustomerContactFlows(customerId, caseRef, options) {
|
|
3245
3007
|
return this.http.get(
|
|
3246
|
-
endpoints.customers.contactFlows.getCustomerContactFlows.render(
|
|
3247
|
-
customerId,
|
|
3248
|
-
caseRef
|
|
3249
|
-
),
|
|
3008
|
+
endpoints.customers.contactFlows.getCustomerContactFlows.render(customerId, caseRef),
|
|
3250
3009
|
options
|
|
3251
3010
|
);
|
|
3252
3011
|
}
|
|
@@ -3255,10 +3014,7 @@ var InsurUpCustomerClient = class {
|
|
|
3255
3014
|
*/
|
|
3256
3015
|
async getCustomerContacts(customerId, caseRef, options) {
|
|
3257
3016
|
return this.http.get(
|
|
3258
|
-
endpoints.customers.contacts.getCustomerContacts.render(
|
|
3259
|
-
customerId,
|
|
3260
|
-
caseRef
|
|
3261
|
-
),
|
|
3017
|
+
endpoints.customers.contacts.getCustomerContacts.render(customerId, caseRef),
|
|
3262
3018
|
options
|
|
3263
3019
|
);
|
|
3264
3020
|
}
|
|
@@ -3348,21 +3104,14 @@ var InsurUpCustomerClient = class {
|
|
|
3348
3104
|
if (requestOptions?.first === void 0 && requestOptions?.last === void 0) {
|
|
3349
3105
|
variables.first = 50;
|
|
3350
3106
|
} else {
|
|
3351
|
-
if (requestOptions?.first !== void 0)
|
|
3352
|
-
|
|
3353
|
-
if (requestOptions?.last !== void 0)
|
|
3354
|
-
variables.last = requestOptions.last;
|
|
3107
|
+
if (requestOptions?.first !== void 0) variables.first = requestOptions.first;
|
|
3108
|
+
if (requestOptions?.last !== void 0) variables.last = requestOptions.last;
|
|
3355
3109
|
}
|
|
3356
|
-
if (requestOptions?.after !== void 0)
|
|
3357
|
-
|
|
3358
|
-
if (requestOptions?.
|
|
3359
|
-
|
|
3360
|
-
if (requestOptions?.
|
|
3361
|
-
variables.search = requestOptions.search;
|
|
3362
|
-
if (requestOptions?.filter !== void 0)
|
|
3363
|
-
variables.filter = requestOptions.filter;
|
|
3364
|
-
if (requestOptions?.order !== void 0)
|
|
3365
|
-
variables.order = requestOptions.order;
|
|
3110
|
+
if (requestOptions?.after !== void 0) variables.after = requestOptions.after;
|
|
3111
|
+
if (requestOptions?.before !== void 0) variables.before = requestOptions.before;
|
|
3112
|
+
if (requestOptions?.search !== void 0) variables.search = requestOptions.search;
|
|
3113
|
+
if (requestOptions?.filter !== void 0) variables.filter = requestOptions.filter;
|
|
3114
|
+
if (requestOptions?.order !== void 0) variables.order = requestOptions.order;
|
|
3366
3115
|
const result = await this.graphql.query(query, variables, options);
|
|
3367
3116
|
if (!result.isSuccess) {
|
|
3368
3117
|
return result;
|
|
@@ -3405,10 +3154,7 @@ var InsurUpVehicleClient = class {
|
|
|
3405
3154
|
* @returns Operation result / İşlem sonucu
|
|
3406
3155
|
*/
|
|
3407
3156
|
async updateCustomerVehicle(request, options) {
|
|
3408
|
-
const path = endpoints.vehicles.update.render(
|
|
3409
|
-
request.customerId,
|
|
3410
|
-
request.vehicleId
|
|
3411
|
-
);
|
|
3157
|
+
const path = endpoints.vehicles.update.render(request.customerId, request.vehicleId);
|
|
3412
3158
|
return this.http.putNoContent(path, request, options);
|
|
3413
3159
|
}
|
|
3414
3160
|
/**
|
|
@@ -3433,9 +3179,7 @@ var InsurUpVehicleClient = class {
|
|
|
3433
3179
|
* @returns List of customer vehicles / Müşteri araçları listesi
|
|
3434
3180
|
*/
|
|
3435
3181
|
async getCustomerVehicles(request, options) {
|
|
3436
|
-
const path = endpoints.vehicles.getCustomerVehicles.render(
|
|
3437
|
-
request.customerId
|
|
3438
|
-
);
|
|
3182
|
+
const path = endpoints.vehicles.getCustomerVehicles.render(request.customerId);
|
|
3439
3183
|
return this.http.get(path, options);
|
|
3440
3184
|
}
|
|
3441
3185
|
/**
|
|
@@ -3497,11 +3241,7 @@ var InsurUpVehicleClient = class {
|
|
|
3497
3241
|
async queryVehicleByBrandCode(brandCode, options) {
|
|
3498
3242
|
const path = endpoints.insuranceServices.queryVehicleByBrandCode;
|
|
3499
3243
|
const request = { brandCode };
|
|
3500
|
-
return this.http.post(
|
|
3501
|
-
path,
|
|
3502
|
-
request,
|
|
3503
|
-
options
|
|
3504
|
-
);
|
|
3244
|
+
return this.http.post(path, request, options);
|
|
3505
3245
|
}
|
|
3506
3246
|
};
|
|
3507
3247
|
|
|
@@ -3519,10 +3259,7 @@ var InsurUpPropertyClient = class {
|
|
|
3519
3259
|
* @returns List of Turkish cities / Türk şehirleri listesi
|
|
3520
3260
|
*/
|
|
3521
3261
|
async queryCities(options) {
|
|
3522
|
-
return this.http.get(
|
|
3523
|
-
addressParameters.queryCities,
|
|
3524
|
-
options
|
|
3525
|
-
);
|
|
3262
|
+
return this.http.get(addressParameters.queryCities, options);
|
|
3526
3263
|
}
|
|
3527
3264
|
/**
|
|
3528
3265
|
* Retrieves all districts within a specific city following the Turkish administrative hierarchy.
|
|
@@ -3678,10 +3415,7 @@ var InsurUpPropertyClient = class {
|
|
|
3678
3415
|
* @returns Operation result / İşlem sonucu
|
|
3679
3416
|
*/
|
|
3680
3417
|
async deleteCustomerProperty(customerId, propertyId, options) {
|
|
3681
|
-
return this.http.deleteNoContent(
|
|
3682
|
-
properties.delete.render(customerId, propertyId),
|
|
3683
|
-
options
|
|
3684
|
-
);
|
|
3418
|
+
return this.http.deleteNoContent(properties.delete.render(customerId, propertyId), options);
|
|
3685
3419
|
}
|
|
3686
3420
|
/**
|
|
3687
3421
|
* Retrieves property address information using the official Turkish property registration number for verification purposes.
|
|
@@ -3908,9 +3642,7 @@ var InsurUpPolicyClient = class {
|
|
|
3908
3642
|
*/
|
|
3909
3643
|
async getPolicyTransferDetail(request, options) {
|
|
3910
3644
|
return this.http.get(
|
|
3911
|
-
endpoints.policyTransfers.getPolicyTransferDetail.render(
|
|
3912
|
-
request.policyTransferId
|
|
3913
|
-
),
|
|
3645
|
+
endpoints.policyTransfers.getPolicyTransferDetail.render(request.policyTransferId),
|
|
3914
3646
|
options
|
|
3915
3647
|
);
|
|
3916
3648
|
}
|
|
@@ -3940,11 +3672,7 @@ var InsurUpPolicyClient = class {
|
|
|
3940
3672
|
* @returns Created transfer identifier
|
|
3941
3673
|
*/
|
|
3942
3674
|
async createPolicyTransfer(request, options) {
|
|
3943
|
-
return this.http.post(
|
|
3944
|
-
endpoints.policyTransfers.create,
|
|
3945
|
-
request,
|
|
3946
|
-
options
|
|
3947
|
-
);
|
|
3675
|
+
return this.http.post(endpoints.policyTransfers.create, request, options);
|
|
3948
3676
|
}
|
|
3949
3677
|
/**
|
|
3950
3678
|
* Executes a prepared policy transfer, initiating the actual movement of policies according to the transfer configuration.
|
|
@@ -3956,9 +3684,7 @@ var InsurUpPolicyClient = class {
|
|
|
3956
3684
|
*/
|
|
3957
3685
|
async triggerPolicyTransfer(request, options) {
|
|
3958
3686
|
return this.http.postNoContent(
|
|
3959
|
-
endpoints.policyTransfers.triggerPolicyTransfer.render(
|
|
3960
|
-
request.policyTransferId
|
|
3961
|
-
),
|
|
3687
|
+
endpoints.policyTransfers.triggerPolicyTransfer.render(request.policyTransferId),
|
|
3962
3688
|
request,
|
|
3963
3689
|
options
|
|
3964
3690
|
);
|
|
@@ -3975,16 +3701,9 @@ var InsurUpPolicyClient = class {
|
|
|
3975
3701
|
*/
|
|
3976
3702
|
async createFilePolicyTransfer(request, file, fileName, options) {
|
|
3977
3703
|
const formData = new FormData();
|
|
3978
|
-
formData.append(
|
|
3979
|
-
"insuranceCompanyId",
|
|
3980
|
-
request.insuranceCompanyId.toString()
|
|
3981
|
-
);
|
|
3704
|
+
formData.append("insuranceCompanyId", request.insuranceCompanyId.toString());
|
|
3982
3705
|
formData.append("file", file, fileName);
|
|
3983
|
-
return this.http.postNoContent(
|
|
3984
|
-
endpoints.filePolicyTransfers.create,
|
|
3985
|
-
formData,
|
|
3986
|
-
options
|
|
3987
|
-
);
|
|
3706
|
+
return this.http.postNoContent(endpoints.filePolicyTransfers.create, formData, options);
|
|
3988
3707
|
}
|
|
3989
3708
|
/**
|
|
3990
3709
|
* Retrieves detailed information about a file-based policy transfer including processing status and results.
|
|
@@ -4323,11 +4042,7 @@ var InsurUpCaseClient = class {
|
|
|
4323
4042
|
* @returns Created case identifier / Oluşturulan talep tanımlayıcısı
|
|
4324
4043
|
*/
|
|
4325
4044
|
async createComplaintCase(request, options) {
|
|
4326
|
-
return await this.http.post(
|
|
4327
|
-
cases.createComplaint,
|
|
4328
|
-
request,
|
|
4329
|
-
options
|
|
4330
|
-
);
|
|
4045
|
+
return await this.http.post(cases.createComplaint, request, options);
|
|
4331
4046
|
}
|
|
4332
4047
|
/**
|
|
4333
4048
|
* Creates a cross-sale opportunity case to track potential additional insurance products for existing customers.
|
|
@@ -4338,11 +4053,7 @@ var InsurUpCaseClient = class {
|
|
|
4338
4053
|
* @returns Created case identifier / Oluşturulan talep tanımlayıcısı
|
|
4339
4054
|
*/
|
|
4340
4055
|
async createCrossSaleOpportunityCase(request, options) {
|
|
4341
|
-
return await this.http.post(
|
|
4342
|
-
cases.createCrossSaleOpportunity,
|
|
4343
|
-
request,
|
|
4344
|
-
options
|
|
4345
|
-
);
|
|
4056
|
+
return await this.http.post(cases.createCrossSaleOpportunity, request, options);
|
|
4346
4057
|
}
|
|
4347
4058
|
/**
|
|
4348
4059
|
* Creates an endorsement case for policy modifications or updates requested by the customer.
|
|
@@ -4353,11 +4064,7 @@ var InsurUpCaseClient = class {
|
|
|
4353
4064
|
* @returns Created case identifier / Oluşturulan talep tanımlayıcısı
|
|
4354
4065
|
*/
|
|
4355
4066
|
async createEndorsementCase(request, options) {
|
|
4356
|
-
return await this.http.post(
|
|
4357
|
-
cases.createEndorsement,
|
|
4358
|
-
request,
|
|
4359
|
-
options
|
|
4360
|
-
);
|
|
4067
|
+
return await this.http.post(cases.createEndorsement, request, options);
|
|
4361
4068
|
}
|
|
4362
4069
|
/**
|
|
4363
4070
|
* Creates a new sale opportunity case to track potential insurance sales to prospective customers.
|
|
@@ -4368,11 +4075,7 @@ var InsurUpCaseClient = class {
|
|
|
4368
4075
|
* @returns Created case identifier / Oluşturulan talep tanımlayıcısı
|
|
4369
4076
|
*/
|
|
4370
4077
|
async createNewSaleOpportunityCase(request, options) {
|
|
4371
|
-
return await this.http.post(
|
|
4372
|
-
cases.createNewSaleOpportunity,
|
|
4373
|
-
request,
|
|
4374
|
-
options
|
|
4375
|
-
);
|
|
4078
|
+
return await this.http.post(cases.createNewSaleOpportunity, request, options);
|
|
4376
4079
|
}
|
|
4377
4080
|
/**
|
|
4378
4081
|
* Retrieves all policies associated with a specific case for comprehensive case context and decision making.
|
|
@@ -4524,10 +4227,7 @@ var InsurUpCaseClient = class {
|
|
|
4524
4227
|
* @returns Available case priority templates / Mevcut talep öncelik şablonları
|
|
4525
4228
|
*/
|
|
4526
4229
|
async getCasePriorityTemplates(options) {
|
|
4527
|
-
return await this.http.get(
|
|
4528
|
-
cases.getPriorityTemplates,
|
|
4529
|
-
options
|
|
4530
|
-
);
|
|
4230
|
+
return await this.http.get(cases.getPriorityTemplates, options);
|
|
4531
4231
|
}
|
|
4532
4232
|
// ============================================================================
|
|
4533
4233
|
// GRAPHQL QUERIES
|
|
@@ -4640,11 +4340,7 @@ var InsurUpWebhookClient = class {
|
|
|
4640
4340
|
* @returns Created webhook information / Oluşturulan webhook bilgileri
|
|
4641
4341
|
*/
|
|
4642
4342
|
async createWebhook(request, options) {
|
|
4643
|
-
return this.http.post(
|
|
4644
|
-
webhooks.create,
|
|
4645
|
-
request,
|
|
4646
|
-
options
|
|
4647
|
-
);
|
|
4343
|
+
return this.http.post(webhooks.create, request, options);
|
|
4648
4344
|
}
|
|
4649
4345
|
/**
|
|
4650
4346
|
* Retrieves detailed information about a specific webhook including its configuration and current status.
|
|
@@ -4702,10 +4398,7 @@ var InsurUpWebhookClient = class {
|
|
|
4702
4398
|
* @returns Webhook delivery details / Webhook teslimat detayları
|
|
4703
4399
|
*/
|
|
4704
4400
|
async getWebhookDelivery(webhookId, webhookDeliveryId, options) {
|
|
4705
|
-
const endpoint = webhooks.deliveries.getById.render(
|
|
4706
|
-
webhookId,
|
|
4707
|
-
webhookDeliveryId
|
|
4708
|
-
);
|
|
4401
|
+
const endpoint = webhooks.deliveries.getById.render(webhookId, webhookDeliveryId);
|
|
4709
4402
|
return this.http.get(endpoint, options);
|
|
4710
4403
|
}
|
|
4711
4404
|
/**
|
|
@@ -4718,10 +4411,7 @@ var InsurUpWebhookClient = class {
|
|
|
4718
4411
|
* @returns Operation result / İşlem sonucu
|
|
4719
4412
|
*/
|
|
4720
4413
|
async redeliverWebhookEvent(webhookId, webhookDeliveryId, options) {
|
|
4721
|
-
const endpoint = webhooks.deliveries.redeliver.render(
|
|
4722
|
-
webhookId,
|
|
4723
|
-
webhookDeliveryId
|
|
4724
|
-
);
|
|
4414
|
+
const endpoint = webhooks.deliveries.redeliver.render(webhookId, webhookDeliveryId);
|
|
4725
4415
|
return this.http.postNoContent(endpoint, void 0, options);
|
|
4726
4416
|
}
|
|
4727
4417
|
// ============================================================================
|
|
@@ -4843,11 +4533,7 @@ var InsurUpCoverageClient = class {
|
|
|
4843
4533
|
* @returns Operation result / İşlem sonucu
|
|
4844
4534
|
*/
|
|
4845
4535
|
async updateCoverageGroup(request, options) {
|
|
4846
|
-
return this.http.putNoContent(
|
|
4847
|
-
coverageGroups.update.render(request.id),
|
|
4848
|
-
request,
|
|
4849
|
-
options
|
|
4850
|
-
);
|
|
4536
|
+
return this.http.putNoContent(coverageGroups.update.render(request.id), request, options);
|
|
4851
4537
|
}
|
|
4852
4538
|
/**
|
|
4853
4539
|
* Removes a coverage group from the system, ensuring proper cleanup of associated coverage configurations.
|
|
@@ -4858,10 +4544,7 @@ var InsurUpCoverageClient = class {
|
|
|
4858
4544
|
* @returns Operation result / İşlem sonucu
|
|
4859
4545
|
*/
|
|
4860
4546
|
async deleteCoverageGroup(request, options) {
|
|
4861
|
-
return this.http.deleteNoContent(
|
|
4862
|
-
coverageGroups.delete.render(request.id),
|
|
4863
|
-
options
|
|
4864
|
-
);
|
|
4547
|
+
return this.http.deleteNoContent(coverageGroups.delete.render(request.id), options);
|
|
4865
4548
|
}
|
|
4866
4549
|
/**
|
|
4867
4550
|
* Retrieves detailed information about a specific coverage group including its coverage options and configurations.
|
|
@@ -4872,10 +4555,7 @@ var InsurUpCoverageClient = class {
|
|
|
4872
4555
|
* @returns Coverage group details / Teminat grubu detayları
|
|
4873
4556
|
*/
|
|
4874
4557
|
async getCoverageGroupById(coverageGroupId, options) {
|
|
4875
|
-
return this.http.get(
|
|
4876
|
-
coverageGroups.getById.render(coverageGroupId),
|
|
4877
|
-
options
|
|
4878
|
-
);
|
|
4558
|
+
return this.http.get(coverageGroups.getById.render(coverageGroupId), options);
|
|
4879
4559
|
}
|
|
4880
4560
|
/**
|
|
4881
4561
|
* Retrieves all available coverage groups within the agency for comprehensive coverage management overview.
|
|
@@ -4896,13 +4576,8 @@ var InsurUpCoverageClient = class {
|
|
|
4896
4576
|
* @returns Kasko coverage choices grouped by insurance company / Sigorta şirketine göre gruplanmış Kasko teminat seçenekleri
|
|
4897
4577
|
*/
|
|
4898
4578
|
async getKaskoCoverageChoices(vehicleUtilizationStyle, options) {
|
|
4899
|
-
const endpoint = coverageChoices.getKaskoCoverageChoices.render(
|
|
4900
|
-
|
|
4901
|
-
);
|
|
4902
|
-
return this.http.get(
|
|
4903
|
-
endpoint,
|
|
4904
|
-
options
|
|
4905
|
-
);
|
|
4579
|
+
const endpoint = coverageChoices.getKaskoCoverageChoices.render(vehicleUtilizationStyle);
|
|
4580
|
+
return this.http.get(endpoint, options);
|
|
4906
4581
|
}
|
|
4907
4582
|
/**
|
|
4908
4583
|
* Retrieves available Konut (home/property insurance) coverage options including DASK earthquake insurance configurations.
|
|
@@ -4982,9 +4657,7 @@ var InsurUpInsuranceClient = class {
|
|
|
4982
4657
|
* @returns List of insurance products / Sigorta ürünleri listesi
|
|
4983
4658
|
*/
|
|
4984
4659
|
async getInsuranceCompanyProducts(insuranceCompanyId, options) {
|
|
4985
|
-
const path = endpoints.insuranceCompanies.getInsuranceCompanyProducts.render(
|
|
4986
|
-
insuranceCompanyId
|
|
4987
|
-
);
|
|
4660
|
+
const path = endpoints.insuranceCompanies.getInsuranceCompanyProducts.render(insuranceCompanyId);
|
|
4988
4661
|
return this.http.get(path, options);
|
|
4989
4662
|
}
|
|
4990
4663
|
/**
|
|
@@ -4995,10 +4668,7 @@ var InsurUpInsuranceClient = class {
|
|
|
4995
4668
|
* @returns List of all insurance products / Tüm sigorta ürünleri listesi
|
|
4996
4669
|
*/
|
|
4997
4670
|
async getAllProducts(options) {
|
|
4998
|
-
return this.http.get(
|
|
4999
|
-
endpoints.insuranceCompanies.getAllProducts,
|
|
5000
|
-
options
|
|
5001
|
-
);
|
|
4671
|
+
return this.http.get(endpoints.insuranceCompanies.getAllProducts, options);
|
|
5002
4672
|
}
|
|
5003
4673
|
/**
|
|
5004
4674
|
* Retrieves agent-specific connection fields and requirements for integrating with a particular insurance company's systems.
|
|
@@ -5012,10 +4682,7 @@ var InsurUpInsuranceClient = class {
|
|
|
5012
4682
|
const path = endpoints.insuranceCompanies.connectionFields.getAgentBasedConnectionFieldsByCompanyId.render(
|
|
5013
4683
|
insuranceCompanyId
|
|
5014
4684
|
);
|
|
5015
|
-
return this.http.get(
|
|
5016
|
-
path,
|
|
5017
|
-
options
|
|
5018
|
-
);
|
|
4685
|
+
return this.http.get(path, options);
|
|
5019
4686
|
}
|
|
5020
4687
|
/**
|
|
5021
4688
|
* Retrieves all platform release notes including new features, bug fixes, and important updates for system awareness.
|
|
@@ -5025,10 +4692,7 @@ var InsurUpInsuranceClient = class {
|
|
|
5025
4692
|
* @returns Platform release notes / Platform sürüm notları
|
|
5026
4693
|
*/
|
|
5027
4694
|
async getAllReleaseNotes(options) {
|
|
5028
|
-
return this.http.get(
|
|
5029
|
-
endpoints.releaseNotes.getAll,
|
|
5030
|
-
options
|
|
5031
|
-
);
|
|
4695
|
+
return this.http.get(endpoints.releaseNotes.getAll, options);
|
|
5032
4696
|
}
|
|
5033
4697
|
/**
|
|
5034
4698
|
* Retrieves all banks available for premium collection, policy financing, and customer payment processing operations.
|
|
@@ -5060,10 +4724,7 @@ var InsurUpInsuranceClient = class {
|
|
|
5060
4724
|
* @returns List of financial institutions / Finansal kurumlar listesi
|
|
5061
4725
|
*/
|
|
5062
4726
|
async getFinancialInstitutions(options) {
|
|
5063
|
-
return this.http.get(
|
|
5064
|
-
endpoints.financialInstitutions.getAll,
|
|
5065
|
-
options
|
|
5066
|
-
);
|
|
4727
|
+
return this.http.get(endpoints.financialInstitutions.getAll, options);
|
|
5067
4728
|
}
|
|
5068
4729
|
};
|
|
5069
4730
|
|
|
@@ -5084,11 +4745,7 @@ var InsurUpProposalClient = class {
|
|
|
5084
4745
|
* @returns Created proposal information / Oluşturulan teklif bilgileri
|
|
5085
4746
|
*/
|
|
5086
4747
|
async createProposal(request, options) {
|
|
5087
|
-
return this.http.post(
|
|
5088
|
-
endpoints.proposals.create,
|
|
5089
|
-
request,
|
|
5090
|
-
options
|
|
5091
|
-
);
|
|
4748
|
+
return this.http.post(endpoints.proposals.create, request, options);
|
|
5092
4749
|
}
|
|
5093
4750
|
/**
|
|
5094
4751
|
* Retries a failed proposal product calculation or processing to attempt resolution of temporary issues.
|
|
@@ -5105,10 +4762,7 @@ var InsurUpProposalClient = class {
|
|
|
5105
4762
|
proposalProductId
|
|
5106
4763
|
};
|
|
5107
4764
|
return this.http.postNoContent(
|
|
5108
|
-
endpoints.proposals.retryFailedProposalProduct.render(
|
|
5109
|
-
proposalId,
|
|
5110
|
-
proposalProductId
|
|
5111
|
-
),
|
|
4765
|
+
endpoints.proposals.retryFailedProposalProduct.render(proposalId, proposalProductId),
|
|
5112
4766
|
request,
|
|
5113
4767
|
options
|
|
5114
4768
|
);
|
|
@@ -5194,10 +4848,7 @@ var InsurUpProposalClient = class {
|
|
|
5194
4848
|
*/
|
|
5195
4849
|
async getProposalProductCoverage(proposalId, proposalProductId, options) {
|
|
5196
4850
|
return this.http.get(
|
|
5197
|
-
endpoints.proposals.getProposalProductCoverage.render(
|
|
5198
|
-
proposalId,
|
|
5199
|
-
proposalProductId
|
|
5200
|
-
),
|
|
4851
|
+
endpoints.proposals.getProposalProductCoverage.render(proposalId, proposalProductId),
|
|
5201
4852
|
options
|
|
5202
4853
|
);
|
|
5203
4854
|
}
|
|
@@ -5314,9 +4965,7 @@ var InsurUpProposalClient = class {
|
|
|
5314
4965
|
*/
|
|
5315
4966
|
async generateCompareProposalProductsPdf(request, options) {
|
|
5316
4967
|
return this.http.post(
|
|
5317
|
-
endpoints.proposals.generateCompareProposalProductsPdf.render(
|
|
5318
|
-
request.proposalId
|
|
5319
|
-
),
|
|
4968
|
+
endpoints.proposals.generateCompareProposalProductsPdf.render(request.proposalId),
|
|
5320
4969
|
request,
|
|
5321
4970
|
options
|
|
5322
4971
|
);
|
|
@@ -5331,9 +4980,7 @@ var InsurUpProposalClient = class {
|
|
|
5331
4980
|
*/
|
|
5332
4981
|
async sendCompareProposalProductsPdf(request, options) {
|
|
5333
4982
|
return this.http.postNoContent(
|
|
5334
|
-
endpoints.proposals.sendCompareProposalProductsPdf.render(
|
|
5335
|
-
request.proposalId
|
|
5336
|
-
),
|
|
4983
|
+
endpoints.proposals.sendCompareProposalProductsPdf.render(request.proposalId),
|
|
5337
4984
|
request,
|
|
5338
4985
|
options
|
|
5339
4986
|
);
|
|
@@ -5348,9 +4995,7 @@ var InsurUpProposalClient = class {
|
|
|
5348
4995
|
*/
|
|
5349
4996
|
async generateCustomerProposalDocumentPdf(request, options) {
|
|
5350
4997
|
return this.http.post(
|
|
5351
|
-
endpoints.proposals.generateCustomerProposalDocumentPdf.render(
|
|
5352
|
-
request.proposalId
|
|
5353
|
-
),
|
|
4998
|
+
endpoints.proposals.generateCustomerProposalDocumentPdf.render(request.proposalId),
|
|
5354
4999
|
request,
|
|
5355
5000
|
options
|
|
5356
5001
|
);
|
|
@@ -5517,11 +5162,7 @@ var InsurUpFileClient = class {
|
|
|
5517
5162
|
if (request.path) {
|
|
5518
5163
|
formData.append("path", request.path);
|
|
5519
5164
|
}
|
|
5520
|
-
return this.http.post(
|
|
5521
|
-
files.uploadPublicFile,
|
|
5522
|
-
formData,
|
|
5523
|
-
options
|
|
5524
|
-
);
|
|
5165
|
+
return this.http.post(files.uploadPublicFile, formData, options);
|
|
5525
5166
|
}
|
|
5526
5167
|
};
|
|
5527
5168
|
|
|
@@ -5561,10 +5202,7 @@ var InsurUpTemplateClient = class {
|
|
|
5561
5202
|
* @returns List of all template definitions
|
|
5562
5203
|
*/
|
|
5563
5204
|
async getTemplateDefinitions(options) {
|
|
5564
|
-
return this.http.get(
|
|
5565
|
-
templates.getDefinitions,
|
|
5566
|
-
options
|
|
5567
|
-
);
|
|
5205
|
+
return this.http.get(templates.getDefinitions, options);
|
|
5568
5206
|
}
|
|
5569
5207
|
/**
|
|
5570
5208
|
* Retrieves all available templates in the system with their metadata and content.
|