@insurup/sdk 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7,14 +7,15 @@ var __export = (target, all) => {
7
7
  // package.json
8
8
  var package_default = {
9
9
  name: "@insurup/sdk",
10
- version: "0.1.1",
11
- description: "Type-safe TypeScript SDK for the InsurUp insurance platform. Zero dependencies, tree-shakeable, works everywhere.",
10
+ version: "0.1.3",
11
+ description: "Type-safe TypeScript SDK for the InsurUp insurance platform with GraphQL support. Tree-shakeable, works everywhere.",
12
12
  keywords: [
13
13
  "insurup",
14
14
  "insurance",
15
15
  "sdk",
16
16
  "typescript",
17
17
  "api-client",
18
+ "graphql",
18
19
  "policy",
19
20
  "claims",
20
21
  "coverage",
@@ -23,13 +24,13 @@ var package_default = {
23
24
  ],
24
25
  author: "InsurUp Team",
25
26
  license: "MIT",
26
- homepage: "https://github.com/InsurUp/ts-sdk#readme",
27
+ homepage: "https://github.com/InsurUp/ts-toolkit#readme",
27
28
  repository: {
28
29
  type: "git",
29
- url: "git+https://github.com/InsurUp/ts-sdk.git"
30
+ url: "git+https://github.com/InsurUp/ts-toolkit.git"
30
31
  },
31
32
  bugs: {
32
- url: "https://github.com/InsurUp/ts-sdk/issues"
33
+ url: "https://github.com/InsurUp/ts-toolkit/issues"
33
34
  },
34
35
  engines: {
35
36
  node: ">=18"
@@ -47,6 +48,10 @@ var package_default = {
47
48
  types: "./dist/index.d.ts",
48
49
  import: "./dist/index.js",
49
50
  require: "./dist/index.cjs"
51
+ },
52
+ "./browser": {
53
+ types: "./dist/index.d.ts",
54
+ import: "./dist/index.browser.js"
50
55
  }
51
56
  },
52
57
  scripts: {
@@ -60,6 +65,9 @@ var package_default = {
60
65
  "test:watch": "vitest",
61
66
  "test:coverage": "vitest run --coverage"
62
67
  },
68
+ publishConfig: {
69
+ access: "public"
70
+ },
63
71
  devDependencies: {
64
72
  "@eslint/js": "^9.39.2",
65
73
  "@vitest/coverage-v8": "^4.0.17",
@@ -74,7 +82,9 @@ var package_default = {
74
82
  "typescript-eslint": "^8.53.1",
75
83
  vitest: "^4.0.17"
76
84
  },
77
- dependencies: {}
85
+ dependencies: {
86
+ "@insurup/contracts": "workspace:*"
87
+ }
78
88
  };
79
89
 
80
90
  // src/version.ts
@@ -89,6 +99,7 @@ var InsurUpClientErrorType = /* @__PURE__ */ ((InsurUpClientErrorType2) => {
89
99
  InsurUpClientErrorType2["Timeout"] = "Timeout";
90
100
  InsurUpClientErrorType2["HttpRequestFailed"] = "HttpRequestFailed";
91
101
  InsurUpClientErrorType2["UnexpectedNoContent"] = "UnexpectedNoContent";
102
+ InsurUpClientErrorType2["GraphQLError"] = "GraphQLError";
92
103
  return InsurUpClientErrorType2;
93
104
  })(InsurUpClientErrorType || {});
94
105
  var InsurUpServerErrorType = /* @__PURE__ */ ((InsurUpServerErrorType2) => {
@@ -107,6 +118,21 @@ var InsurUpServerErrorType = /* @__PURE__ */ ((InsurUpServerErrorType2) => {
107
118
  InsurUpServerErrorType2["Upstream"] = "Upstream";
108
119
  return InsurUpServerErrorType2;
109
120
  })(InsurUpServerErrorType || {});
121
+ var InsurUpGraphQLErrorCode = /* @__PURE__ */ ((InsurUpGraphQLErrorCode2) => {
122
+ InsurUpGraphQLErrorCode2["Forbidden"] = "FORBIDDEN";
123
+ InsurUpGraphQLErrorCode2["Unauthorized"] = "UNAUTHORIZED";
124
+ InsurUpGraphQLErrorCode2["NotFound"] = "NOT_FOUND";
125
+ InsurUpGraphQLErrorCode2["BadRequest"] = "BAD_REQUEST";
126
+ InsurUpGraphQLErrorCode2["Conflict"] = "CONFLICT";
127
+ InsurUpGraphQLErrorCode2["NotSupported"] = "NOT_SUPPORTED";
128
+ InsurUpGraphQLErrorCode2["UpstreamError"] = "UPSTREAM_ERROR";
129
+ InsurUpGraphQLErrorCode2["InternalError"] = "INTERNAL_ERROR";
130
+ InsurUpGraphQLErrorCode2["ValidationError"] = "VALIDATION_ERROR";
131
+ InsurUpGraphQLErrorCode2["FilterRequired"] = "FILTER_REQUIRED";
132
+ InsurUpGraphQLErrorCode2["FilterMaxSpanExceeded"] = "FILTER_MAX_SPAN_EXCEEDED";
133
+ InsurUpGraphQLErrorCode2["Unknown"] = "UNKNOWN";
134
+ return InsurUpGraphQLErrorCode2;
135
+ })(InsurUpGraphQLErrorCode || {});
110
136
 
111
137
  // src/core/errors.ts
112
138
  var ERROR_TYPE_URLS = {
@@ -246,7 +272,7 @@ function extractError(error) {
246
272
  }
247
273
  var InsurUpError = class extends Error {
248
274
  /**
249
- * The original client or server error object
275
+ * The original client, server, or GraphQL error object
250
276
  */
251
277
  error;
252
278
  constructor(error) {
@@ -284,6 +310,26 @@ function throwIfError(result) {
284
310
  }
285
311
  throw new InsurUpError(result);
286
312
  }
313
+ function getGraphQLDataOrThrow(result) {
314
+ if (result.isSuccess) {
315
+ return result.data;
316
+ }
317
+ throw new InsurUpError(result);
318
+ }
319
+ function throwIfGraphQLError(result) {
320
+ if (result.isSuccess) {
321
+ return;
322
+ }
323
+ throw new InsurUpError(result);
324
+ }
325
+ function createGraphQLErrors(errors) {
326
+ return {
327
+ kind: "graphql-error",
328
+ isSuccess: false,
329
+ message: errors[0]?.message ?? "Unknown GraphQL error",
330
+ errors
331
+ };
332
+ }
287
333
 
288
334
  // src/core/config.ts
289
335
  var DEFAULT_RETRY_OPTIONS = {
@@ -842,7 +888,8 @@ var HttpTransport = class {
842
888
  ...this.options.customHeaders,
843
889
  ...additionalHeaders
844
890
  };
845
- if (typeof window === "undefined" && this.options.userAgent) {
891
+ const isBrowser = typeof globalThis === "object" && "window" in globalThis;
892
+ if (!isBrowser && this.options.userAgent) {
846
893
  headers["User-Agent"] = this.options.userAgent;
847
894
  }
848
895
  if (this.options.tokenProvider) {
@@ -1119,6 +1166,108 @@ var HttpTransport = class {
1119
1166
  }
1120
1167
  };
1121
1168
 
1169
+ // src/client/graphql.ts
1170
+ function mapGraphQLErrorCode(code) {
1171
+ if (typeof code !== "string") {
1172
+ return "UNKNOWN" /* Unknown */;
1173
+ }
1174
+ const upperCode = code.toUpperCase();
1175
+ switch (upperCode) {
1176
+ case "FORBIDDEN":
1177
+ return "FORBIDDEN" /* Forbidden */;
1178
+ case "UNAUTHORIZED":
1179
+ return "UNAUTHORIZED" /* Unauthorized */;
1180
+ case "NOT_FOUND":
1181
+ return "NOT_FOUND" /* NotFound */;
1182
+ case "BAD_REQUEST":
1183
+ return "BAD_REQUEST" /* BadRequest */;
1184
+ case "CONFLICT":
1185
+ return "CONFLICT" /* Conflict */;
1186
+ case "NOT_SUPPORTED":
1187
+ return "NOT_SUPPORTED" /* NotSupported */;
1188
+ case "UPSTREAM_ERROR":
1189
+ return "UPSTREAM_ERROR" /* UpstreamError */;
1190
+ case "INTERNAL_ERROR":
1191
+ return "INTERNAL_ERROR" /* InternalError */;
1192
+ case "VALIDATION_ERROR":
1193
+ return "VALIDATION_ERROR" /* ValidationError */;
1194
+ case "FILTER_REQUIRED":
1195
+ return "FILTER_REQUIRED" /* FilterRequired */;
1196
+ case "FILTER_MAX_SPAN_EXCEEDED":
1197
+ return "FILTER_MAX_SPAN_EXCEEDED" /* FilterMaxSpanExceeded */;
1198
+ default:
1199
+ return "UNKNOWN" /* Unknown */;
1200
+ }
1201
+ }
1202
+ function parseExtensions(raw) {
1203
+ if (!raw) {
1204
+ return void 0;
1205
+ }
1206
+ const extensions = {
1207
+ ...raw,
1208
+ code: mapGraphQLErrorCode(raw.code),
1209
+ traceId: typeof raw.traceId === "string" ? raw.traceId : void 0,
1210
+ codes: Array.isArray(raw.codes) ? raw.codes.filter((c) => typeof c === "string") : void 0,
1211
+ template: typeof raw.template === "string" ? raw.template : void 0,
1212
+ templateArgs: typeof raw.templateArgs === "object" && raw.templateArgs !== null ? raw.templateArgs : void 0,
1213
+ suggestions: Array.isArray(raw.suggestions) ? raw.suggestions.filter((s) => typeof s === "string") : void 0
1214
+ };
1215
+ return extensions;
1216
+ }
1217
+ function parseGraphQLErrors(rawErrors) {
1218
+ return rawErrors.map((error) => {
1219
+ const locations = error.locations?.map(
1220
+ (loc) => ({
1221
+ line: loc.line,
1222
+ column: loc.column
1223
+ })
1224
+ );
1225
+ return {
1226
+ message: error.message,
1227
+ locations,
1228
+ path: error.path,
1229
+ extensions: parseExtensions(error.extensions)
1230
+ };
1231
+ });
1232
+ }
1233
+ var GraphQLTransport = class {
1234
+ constructor(http) {
1235
+ this.http = http;
1236
+ }
1237
+ /**
1238
+ * Executes a GraphQL query or mutation
1239
+ * @param query The GraphQL query string
1240
+ * @param variables Optional variables for the query
1241
+ * @param options Optional request options
1242
+ * @returns Promise resolving to InsurUpGraphQLResult<T>
1243
+ */
1244
+ async query(query, variables, options) {
1245
+ const payload = {
1246
+ query,
1247
+ variables
1248
+ };
1249
+ const result = await this.http.post(
1250
+ "graphql",
1251
+ payload,
1252
+ options
1253
+ );
1254
+ if (!result.isSuccess) {
1255
+ return result;
1256
+ }
1257
+ const response = result.data;
1258
+ if (response.errors && response.errors.length > 0) {
1259
+ const parsedErrors = parseGraphQLErrors(response.errors);
1260
+ return createGraphQLErrors(parsedErrors);
1261
+ }
1262
+ if (!response.data) {
1263
+ return createDeserializationError(
1264
+ new Error("GraphQL response contained no data and no errors")
1265
+ );
1266
+ }
1267
+ return createSuccess(response.data);
1268
+ }
1269
+ };
1270
+
1122
1271
  // src/core/endpoints.ts
1123
1272
  var endpoints_exports = {};
1124
1273
  __export(endpoints_exports, {
@@ -2400,9 +2549,14 @@ var InsurUpAgentSetupClient = class {
2400
2549
  };
2401
2550
 
2402
2551
  // src/clients/agentUser.ts
2552
+ import {
2553
+ ALL_AGENT_USER_FIELDS
2554
+ } from "@insurup/contracts";
2555
+ import { buildFieldSelection } from "@insurup/contracts";
2403
2556
  var InsurUpAgentUserClient = class {
2404
- constructor(http) {
2557
+ constructor(http, graphql) {
2405
2558
  this.http = http;
2559
+ this.graphql = graphql;
2406
2560
  }
2407
2561
  /**
2408
2562
  * Retrieves the current agent user's profile information including personal details and platform settings.
@@ -2583,20 +2737,130 @@ var InsurUpAgentUserClient = class {
2583
2737
  options
2584
2738
  );
2585
2739
  }
2740
+ // ============================================================================
2741
+ // GRAPHQL QUERIES
2742
+ // ============================================================================
2743
+ /**
2744
+ * Queries agent users using GraphQL with advanced filtering, searching, sorting, and field selection.
2745
+ * Supports cursor-based pagination and type-safe field selection.
2746
+ *
2747
+ * Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak acente kullanıcılarını sorgular.
2748
+ * İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
2749
+ *
2750
+ * @example
2751
+ * // Basic query with all fields
2752
+ * const result = await client.agentUsers.getAgentUsers({ first: 10 });
2753
+ *
2754
+ * @example
2755
+ * // Type-safe field selection
2756
+ * const result = await client.agentUsers.getAgentUsers({
2757
+ * select: ['id', 'email', 'name', 'state'] as const,
2758
+ * first: 10,
2759
+ * filter: { state: { eq: AgentUserState.Active } }
2760
+ * });
2761
+ *
2762
+ * @param requestOptions Query options including pagination, filters, search, and field selection
2763
+ * @returns Paginated connection of agent users with type-narrowed fields
2764
+ */
2765
+ async getAgentUsers(requestOptions, options) {
2766
+ if (!this.graphql) {
2767
+ throw new Error(
2768
+ "GraphQL transport is not available. Ensure the client is properly initialized."
2769
+ );
2770
+ }
2771
+ const fields = requestOptions?.select ?? ALL_AGENT_USER_FIELDS;
2772
+ const fieldSelection = buildFieldSelection(fields);
2773
+ const query = `
2774
+ query GetAgentUsers(
2775
+ $first: Int
2776
+ $after: String
2777
+ $last: Int
2778
+ $before: String
2779
+ $search: searching_QueryAgentUserResultFilterInput
2780
+ $filter: filtering_QueryAgentUserResultFilterInput
2781
+ $order: [sorting_QueryAgentUserResultSortInput!]
2782
+ ) {
2783
+ agentUsersNew(
2784
+ first: $first
2785
+ after: $after
2786
+ last: $last
2787
+ before: $before
2788
+ search: $search
2789
+ filter: $filter
2790
+ order: $order
2791
+ ) {
2792
+ pageInfo {
2793
+ hasNextPage
2794
+ hasPreviousPage
2795
+ startCursor
2796
+ endCursor
2797
+ }
2798
+ totalCount
2799
+ edges {
2800
+ cursor
2801
+ node {
2802
+ ${fieldSelection}
2803
+ }
2804
+ }
2805
+ }
2806
+ }
2807
+ `;
2808
+ const variables = {
2809
+ first: requestOptions?.first,
2810
+ after: requestOptions?.after,
2811
+ last: requestOptions?.last,
2812
+ before: requestOptions?.before,
2813
+ search: requestOptions?.search,
2814
+ filter: requestOptions?.filter,
2815
+ order: requestOptions?.order
2816
+ };
2817
+ const result = await this.graphql.query(query, variables, options);
2818
+ if (!result.isSuccess) {
2819
+ return result;
2820
+ }
2821
+ const edges = result.data.agentUsersNew.edges;
2822
+ const nodes = edges?.map((edge) => edge?.node ?? null) ?? null;
2823
+ return {
2824
+ ...result,
2825
+ data: {
2826
+ ...result.data.agentUsersNew,
2827
+ nodes
2828
+ }
2829
+ };
2830
+ }
2586
2831
  };
2587
2832
 
2588
2833
  // src/clients/customer.ts
2834
+ import {
2835
+ ALL_CUSTOMER_FIELDS,
2836
+ CustomerType
2837
+ } from "@insurup/contracts";
2838
+ import { buildFieldSelection as buildFieldSelection2 } from "@insurup/contracts";
2589
2839
  var InsurUpCustomerClient = class {
2590
- constructor(http) {
2840
+ constructor(http, graphql) {
2591
2841
  this.http = http;
2842
+ this.graphql = graphql;
2592
2843
  }
2593
2844
  /**
2594
2845
  * Creates a new customer profile with essential personal and contact information.
2595
2846
  */
2596
2847
  async createCustomer(request, options) {
2848
+ const { type, ...rest } = request;
2849
+ let $type;
2850
+ switch (type) {
2851
+ case CustomerType.Individual:
2852
+ $type = "individual";
2853
+ break;
2854
+ case CustomerType.Company:
2855
+ $type = "company";
2856
+ break;
2857
+ case CustomerType.Foreign:
2858
+ $type = "foreign";
2859
+ break;
2860
+ }
2597
2861
  return this.http.post(
2598
2862
  endpoints.customers.createCustomer,
2599
- request,
2863
+ { $type, ...rest },
2600
2864
  options
2601
2865
  );
2602
2866
  }
@@ -2959,6 +3223,110 @@ var InsurUpCustomerClient = class {
2959
3223
  options
2960
3224
  );
2961
3225
  }
3226
+ // ============================================
3227
+ // GraphQL Methods
3228
+ // ============================================
3229
+ /**
3230
+ * Retrieves a paginated list of customers using GraphQL with type-safe field selection.
3231
+ *
3232
+ * GraphQL kullanarak tip güvenli alan seçimi ile sayfalanmış müşteri listesi getirir.
3233
+ *
3234
+ * @example
3235
+ * // Get all fields
3236
+ * const result = await client.customers.getCustomers({ first: 10 });
3237
+ *
3238
+ * @example
3239
+ * // Type-safe field selection
3240
+ * const result = await client.customers.getCustomers({
3241
+ * select: ['id', 'name', 'type', 'primaryEmail'] as const,
3242
+ * first: 10,
3243
+ * filter: { type: { eq: CustomerType.INDIVIDUAL } }
3244
+ * });
3245
+ * // result.data.nodes[0].id - ✓ string
3246
+ * // result.data.nodes[0].name - ✓ string | null
3247
+ * // result.data.nodes[0].type - ✓ CustomerType
3248
+ * // result.data.nodes[0].birthDate - ✗ TypeScript Error!
3249
+ *
3250
+ * @param requestOptions Query options including pagination, filters, search, and field selection
3251
+ * @returns Paginated connection of customers with type-narrowed fields
3252
+ */
3253
+ async getCustomers(requestOptions, options) {
3254
+ if (!this.graphql) {
3255
+ throw new Error(
3256
+ "GraphQL transport is not available. Ensure the client is properly initialized."
3257
+ );
3258
+ }
3259
+ const fields = requestOptions?.select ?? ALL_CUSTOMER_FIELDS;
3260
+ const fieldSelection = buildFieldSelection2(fields);
3261
+ const includeTotalCount = requestOptions?.includeTotalCount !== false;
3262
+ const query = `
3263
+ query GetCustomers(
3264
+ $first: Int
3265
+ $after: String
3266
+ $last: Int
3267
+ $before: String
3268
+ $search: searching_QueryCustomerModelFilterInput
3269
+ $filter: filtering_QueryCustomerModelFilterInput
3270
+ $order: [sorting_QueryCustomerModelSortInput!]
3271
+ ) {
3272
+ customersNew(
3273
+ first: $first
3274
+ after: $after
3275
+ last: $last
3276
+ before: $before
3277
+ search: $search
3278
+ filter: $filter
3279
+ order: $order
3280
+ ) {
3281
+ pageInfo {
3282
+ hasNextPage
3283
+ hasPreviousPage
3284
+ startCursor
3285
+ endCursor
3286
+ }
3287
+ ${includeTotalCount ? "totalCount" : ""}
3288
+ edges {
3289
+ cursor
3290
+ node {
3291
+ ${fieldSelection}
3292
+ }
3293
+ }
3294
+ }
3295
+ }
3296
+ `;
3297
+ const variables = {};
3298
+ if (requestOptions?.first === void 0 && requestOptions?.last === void 0) {
3299
+ variables.first = 50;
3300
+ } else {
3301
+ if (requestOptions?.first !== void 0)
3302
+ variables.first = requestOptions.first;
3303
+ if (requestOptions?.last !== void 0)
3304
+ variables.last = requestOptions.last;
3305
+ }
3306
+ if (requestOptions?.after !== void 0)
3307
+ variables.after = requestOptions.after;
3308
+ if (requestOptions?.before !== void 0)
3309
+ variables.before = requestOptions.before;
3310
+ if (requestOptions?.search !== void 0)
3311
+ variables.search = requestOptions.search;
3312
+ if (requestOptions?.filter !== void 0)
3313
+ variables.filter = requestOptions.filter;
3314
+ if (requestOptions?.order !== void 0)
3315
+ variables.order = requestOptions.order;
3316
+ const result = await this.graphql.query(query, variables, options);
3317
+ if (!result.isSuccess) {
3318
+ return result;
3319
+ }
3320
+ const edges = result.data.customersNew.edges;
3321
+ const nodes = edges?.map((edge) => edge?.node ?? null) ?? null;
3322
+ return {
3323
+ ...result,
3324
+ data: {
3325
+ ...result.data.customersNew,
3326
+ nodes
3327
+ }
3328
+ };
3329
+ }
2962
3330
  };
2963
3331
 
2964
3332
  // src/clients/vehicle.ts
@@ -3300,9 +3668,20 @@ var InsurUpPropertyClient = class {
3300
3668
  };
3301
3669
 
3302
3670
  // src/clients/policy.ts
3671
+ import {
3672
+ ALL_POLICY_FIELDS
3673
+ } from "@insurup/contracts";
3674
+ import {
3675
+ ALL_POLICY_TRANSFER_FIELDS
3676
+ } from "@insurup/contracts";
3677
+ import {
3678
+ ALL_FILE_POLICY_TRANSFER_FIELDS
3679
+ } from "@insurup/contracts";
3680
+ import { buildFieldSelection as buildFieldSelection3 } from "@insurup/contracts";
3303
3681
  var InsurUpPolicyClient = class {
3304
- constructor(http) {
3682
+ constructor(http, graphql) {
3305
3683
  this.http = http;
3684
+ this.graphql = graphql;
3306
3685
  }
3307
3686
  /**
3308
3687
  * Retrieves comprehensive details of a specific policy including coverage information, premium details, and current status.
@@ -3579,12 +3958,269 @@ var InsurUpPolicyClient = class {
3579
3958
  options
3580
3959
  );
3581
3960
  }
3961
+ // ============================================================================
3962
+ // GRAPHQL QUERIES
3963
+ // ============================================================================
3964
+ /**
3965
+ * Queries policies using GraphQL with advanced filtering, searching, sorting, and field selection.
3966
+ * Supports cursor-based pagination and type-safe field selection.
3967
+ *
3968
+ * Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak poliçeleri sorgular.
3969
+ * İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
3970
+ *
3971
+ * @example
3972
+ * // Basic query with all fields
3973
+ * const result = await client.policies.getPolicies({ first: 10 });
3974
+ *
3975
+ * @example
3976
+ * // Type-safe field selection
3977
+ * const result = await client.policies.getPolicies({
3978
+ * select: ['id', 'productBranch', 'grossPremium', 'state'] as const,
3979
+ * first: 10,
3980
+ * filter: { state: { eq: PolicyState.Active } }
3981
+ * });
3982
+ *
3983
+ * @param requestOptions Query options including pagination, filters, search, and field selection
3984
+ * @returns Paginated connection of policies with type-narrowed fields
3985
+ */
3986
+ async getPolicies(requestOptions, options) {
3987
+ if (!this.graphql) {
3988
+ throw new Error(
3989
+ "GraphQL transport is not available. Ensure the client is properly initialized."
3990
+ );
3991
+ }
3992
+ const fields = requestOptions?.select ?? ALL_POLICY_FIELDS;
3993
+ const fieldSelection = buildFieldSelection3(fields);
3994
+ const includeTotalCount = requestOptions?.includeTotalCount !== false;
3995
+ const query = `
3996
+ query GetPolicies(
3997
+ $first: Int
3998
+ $after: String
3999
+ $last: Int
4000
+ $before: String
4001
+ $search: searching_QueryPoliciesResultFilterInput
4002
+ $filter: filtering_QueryPoliciesResultFilterInput
4003
+ $order: [sorting_QueryPoliciesResultSortInput!]
4004
+ ) {
4005
+ policiesNew(
4006
+ first: $first
4007
+ after: $after
4008
+ last: $last
4009
+ before: $before
4010
+ search: $search
4011
+ filter: $filter
4012
+ order: $order
4013
+ ) {
4014
+ pageInfo {
4015
+ hasNextPage
4016
+ hasPreviousPage
4017
+ startCursor
4018
+ endCursor
4019
+ }
4020
+ ${includeTotalCount ? "totalCount" : ""}
4021
+ edges {
4022
+ cursor
4023
+ node {
4024
+ ${fieldSelection}
4025
+ }
4026
+ }
4027
+ }
4028
+ }
4029
+ `;
4030
+ const variables = {
4031
+ first: requestOptions?.first,
4032
+ after: requestOptions?.after,
4033
+ last: requestOptions?.last,
4034
+ before: requestOptions?.before,
4035
+ search: requestOptions?.search,
4036
+ filter: requestOptions?.filter,
4037
+ order: requestOptions?.order
4038
+ };
4039
+ const result = await this.graphql.query(query, variables, options);
4040
+ if (!result.isSuccess) {
4041
+ return result;
4042
+ }
4043
+ const edges = result.data.policiesNew.edges;
4044
+ const nodes = edges?.map((edge) => edge?.node ?? null) ?? null;
4045
+ return {
4046
+ ...result,
4047
+ data: {
4048
+ ...result.data.policiesNew,
4049
+ nodes
4050
+ }
4051
+ };
4052
+ }
4053
+ /**
4054
+ * Queries policy transfers using GraphQL with advanced filtering, searching, sorting, and field selection.
4055
+ * Supports cursor-based pagination and type-safe field selection.
4056
+ *
4057
+ * Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak poliçe transferlerini sorgular.
4058
+ * İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
4059
+ *
4060
+ * @example
4061
+ * // Basic query with all fields
4062
+ * const result = await client.policies.getPolicyTransfers({ first: 10 });
4063
+ *
4064
+ * @param requestOptions Query options including pagination, filters, search, and field selection
4065
+ * @returns Paginated connection of policy transfers with type-narrowed fields
4066
+ */
4067
+ async getPolicyTransfers(requestOptions, options) {
4068
+ if (!this.graphql) {
4069
+ throw new Error(
4070
+ "GraphQL transport is not available. Ensure the client is properly initialized."
4071
+ );
4072
+ }
4073
+ const fields = requestOptions?.select ?? ALL_POLICY_TRANSFER_FIELDS;
4074
+ const fieldSelection = buildFieldSelection3(fields);
4075
+ const query = `
4076
+ query GetPolicyTransfers(
4077
+ $first: Int
4078
+ $after: String
4079
+ $last: Int
4080
+ $before: String
4081
+ $search: searching_QueryPolicyTransfersResultFilterInput
4082
+ $filter: filtering_QueryPolicyTransfersResultFilterInput
4083
+ $order: [sorting_QueryPolicyTransfersResultSortInput!]
4084
+ ) {
4085
+ policyTransfersNew(
4086
+ first: $first
4087
+ after: $after
4088
+ last: $last
4089
+ before: $before
4090
+ search: $search
4091
+ filter: $filter
4092
+ order: $order
4093
+ ) {
4094
+ pageInfo {
4095
+ hasNextPage
4096
+ hasPreviousPage
4097
+ startCursor
4098
+ endCursor
4099
+ }
4100
+ totalCount
4101
+ edges {
4102
+ cursor
4103
+ node {
4104
+ ${fieldSelection}
4105
+ }
4106
+ }
4107
+ }
4108
+ }
4109
+ `;
4110
+ const variables = {
4111
+ first: requestOptions?.first,
4112
+ after: requestOptions?.after,
4113
+ last: requestOptions?.last,
4114
+ before: requestOptions?.before,
4115
+ search: requestOptions?.search,
4116
+ filter: requestOptions?.filter,
4117
+ order: requestOptions?.order
4118
+ };
4119
+ const result = await this.graphql.query(query, variables, options);
4120
+ if (!result.isSuccess) {
4121
+ return result;
4122
+ }
4123
+ const edges = result.data.policyTransfersNew.edges;
4124
+ const nodes = edges?.map((edge) => edge?.node ?? null) ?? null;
4125
+ return {
4126
+ ...result,
4127
+ data: {
4128
+ ...result.data.policyTransfersNew,
4129
+ nodes
4130
+ }
4131
+ };
4132
+ }
4133
+ /**
4134
+ * Queries file policy transfers using GraphQL with advanced filtering, searching, sorting, and field selection.
4135
+ * Supports cursor-based pagination and type-safe field selection.
4136
+ *
4137
+ * Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak dosya bazlı poliçe transferlerini sorgular.
4138
+ * İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
4139
+ *
4140
+ * @example
4141
+ * // Basic query with all fields
4142
+ * const result = await client.policies.getFilePolicyTransfers({ first: 10 });
4143
+ *
4144
+ * @param requestOptions Query options including pagination, filters, search, and field selection
4145
+ * @returns Paginated connection of file policy transfers with type-narrowed fields
4146
+ */
4147
+ async getFilePolicyTransfers(requestOptions, options) {
4148
+ if (!this.graphql) {
4149
+ throw new Error(
4150
+ "GraphQL transport is not available. Ensure the client is properly initialized."
4151
+ );
4152
+ }
4153
+ const fields = requestOptions?.select ?? ALL_FILE_POLICY_TRANSFER_FIELDS;
4154
+ const fieldSelection = buildFieldSelection3(fields);
4155
+ const query = `
4156
+ query GetFilePolicyTransfers(
4157
+ $first: Int
4158
+ $after: String
4159
+ $last: Int
4160
+ $before: String
4161
+ $search: searching_QueryFilePolicyTransfersResultFilterInput
4162
+ $filter: filtering_QueryFilePolicyTransfersResultFilterInput
4163
+ $order: [sorting_QueryFilePolicyTransfersResultSortInput!]
4164
+ ) {
4165
+ filePolicyTransfersNew(
4166
+ first: $first
4167
+ after: $after
4168
+ last: $last
4169
+ before: $before
4170
+ search: $search
4171
+ filter: $filter
4172
+ order: $order
4173
+ ) {
4174
+ pageInfo {
4175
+ hasNextPage
4176
+ hasPreviousPage
4177
+ startCursor
4178
+ endCursor
4179
+ }
4180
+ totalCount
4181
+ edges {
4182
+ cursor
4183
+ node {
4184
+ ${fieldSelection}
4185
+ }
4186
+ }
4187
+ }
4188
+ }
4189
+ `;
4190
+ const variables = {
4191
+ first: requestOptions?.first,
4192
+ after: requestOptions?.after,
4193
+ last: requestOptions?.last,
4194
+ before: requestOptions?.before,
4195
+ search: requestOptions?.search,
4196
+ filter: requestOptions?.filter,
4197
+ order: requestOptions?.order
4198
+ };
4199
+ const result = await this.graphql.query(query, variables, options);
4200
+ if (!result.isSuccess) {
4201
+ return result;
4202
+ }
4203
+ const edges = result.data.filePolicyTransfersNew.edges;
4204
+ const nodes = edges?.map((edge) => edge?.node ?? null) ?? null;
4205
+ return {
4206
+ ...result,
4207
+ data: {
4208
+ ...result.data.filePolicyTransfersNew,
4209
+ nodes
4210
+ }
4211
+ };
4212
+ }
3582
4213
  };
3583
4214
 
3584
4215
  // src/clients/case.ts
4216
+ import {
4217
+ ALL_CASE_FIELDS
4218
+ } from "@insurup/contracts";
4219
+ import { buildFieldSelection as buildFieldSelection4 } from "@insurup/contracts";
3585
4220
  var InsurUpCaseClient = class {
3586
- constructor(http) {
4221
+ constructor(http, graphql) {
3587
4222
  this.http = http;
4223
+ this.graphql = graphql;
3588
4224
  }
3589
4225
  /**
3590
4226
  * Assigns a case representative to handle a specific customer case, ensuring proper ownership and accountability.
@@ -3786,8 +4422,9 @@ var InsurUpCaseClient = class {
3786
4422
  * @returns Funnel analytics response / Huni analitiği yanıtı
3787
4423
  */
3788
4424
  async getSalesOpportunityFunnelAnalytics(request, options) {
3789
- return await this.http.get(
4425
+ return await this.http.post(
3790
4426
  cases.getSalesOpportunityFunnelAnalytics.definition,
4427
+ request,
3791
4428
  options
3792
4429
  );
3793
4430
  }
@@ -3847,12 +4484,108 @@ var InsurUpCaseClient = class {
3847
4484
  options
3848
4485
  );
3849
4486
  }
4487
+ // ============================================================================
4488
+ // GRAPHQL QUERIES
4489
+ // ============================================================================
4490
+ /**
4491
+ * Queries cases using GraphQL with advanced filtering, searching, sorting, and field selection.
4492
+ * Supports cursor-based pagination and type-safe field selection.
4493
+ *
4494
+ * Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak talepleri sorgular.
4495
+ * İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
4496
+ *
4497
+ * @example
4498
+ * // Basic query with all fields
4499
+ * const result = await client.cases.getCases({ first: 10 });
4500
+ *
4501
+ * @example
4502
+ * // Type-safe field selection
4503
+ * const result = await client.cases.getCases({
4504
+ * select: ['id', 'ref', 'type', 'status', 'mainState'] as const,
4505
+ * first: 10,
4506
+ * filter: { type: { eq: CaseType.NewSaleOpportunity } }
4507
+ * });
4508
+ *
4509
+ * @param requestOptions Query options including pagination, filters, search, and field selection
4510
+ * @returns Paginated connection of cases with type-narrowed fields
4511
+ */
4512
+ async getCases(requestOptions, options) {
4513
+ if (!this.graphql) {
4514
+ throw new Error(
4515
+ "GraphQL transport is not available. Ensure the client is properly initialized."
4516
+ );
4517
+ }
4518
+ const fields = requestOptions?.select ?? ALL_CASE_FIELDS;
4519
+ const fieldSelection = buildFieldSelection4(fields);
4520
+ const query = `
4521
+ query GetCases(
4522
+ $first: Int
4523
+ $after: String
4524
+ $last: Int
4525
+ $before: String
4526
+ $search: searching_QueryCaseModelFilterInput
4527
+ $filter: filtering_QueryCaseModelFilterInput
4528
+ $order: [sorting_QueryCaseModelSortInput!]
4529
+ ) {
4530
+ casesNew(
4531
+ first: $first
4532
+ after: $after
4533
+ last: $last
4534
+ before: $before
4535
+ search: $search
4536
+ filter: $filter
4537
+ order: $order
4538
+ ) {
4539
+ pageInfo {
4540
+ hasNextPage
4541
+ hasPreviousPage
4542
+ startCursor
4543
+ endCursor
4544
+ }
4545
+ totalCount
4546
+ edges {
4547
+ cursor
4548
+ node {
4549
+ ${fieldSelection}
4550
+ }
4551
+ }
4552
+ }
4553
+ }
4554
+ `;
4555
+ const variables = {
4556
+ first: requestOptions?.first,
4557
+ after: requestOptions?.after,
4558
+ last: requestOptions?.last,
4559
+ before: requestOptions?.before,
4560
+ search: requestOptions?.search,
4561
+ filter: requestOptions?.filter,
4562
+ order: requestOptions?.order
4563
+ };
4564
+ const result = await this.graphql.query(query, variables, options);
4565
+ if (!result.isSuccess) {
4566
+ return result;
4567
+ }
4568
+ const edges = result.data.casesNew.edges;
4569
+ const nodes = edges?.map((edge) => edge?.node ?? null) ?? null;
4570
+ return {
4571
+ ...result,
4572
+ data: {
4573
+ ...result.data.casesNew,
4574
+ nodes
4575
+ }
4576
+ };
4577
+ }
3850
4578
  };
3851
4579
 
3852
4580
  // src/clients/webhook.ts
4581
+ import {
4582
+ ALL_WEBHOOK_DELIVERY_FIELDS
4583
+ } from "@insurup/contracts";
4584
+ import { buildFieldSelection as buildFieldSelection5 } from "@insurup/contracts";
3853
4585
  var InsurUpWebhookClient = class {
3854
- constructor(http) {
4586
+ constructor(http, graphql) {
3855
4587
  this.http = http;
4588
+ this.graphql = graphql;
3856
4589
  }
3857
4590
  /**
3858
4591
  * Creates a new webhook configuration to receive event notifications from the InsurUp platform.
@@ -3947,6 +4680,97 @@ var InsurUpWebhookClient = class {
3947
4680
  );
3948
4681
  return this.http.postNoContent(endpoint, void 0, options);
3949
4682
  }
4683
+ // ============================================================================
4684
+ // GRAPHQL QUERIES
4685
+ // ============================================================================
4686
+ /**
4687
+ * Queries webhook deliveries using GraphQL with advanced filtering, searching, sorting, and field selection.
4688
+ * Supports cursor-based pagination and type-safe field selection.
4689
+ *
4690
+ * Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak webhook teslimatlarını sorgular.
4691
+ * İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
4692
+ *
4693
+ * @example
4694
+ * // Basic query with all fields
4695
+ * const result = await client.webhooks.getWebhookDeliveries({ first: 10 });
4696
+ *
4697
+ * @example
4698
+ * // Type-safe field selection with filter
4699
+ * const result = await client.webhooks.getWebhookDeliveries({
4700
+ * select: ['id', 'webhookId', 'event', 'state'] as const,
4701
+ * first: 10,
4702
+ * filter: { state: { eq: WebhookDeliveryState.Failed } }
4703
+ * });
4704
+ *
4705
+ * @param requestOptions Query options including pagination, filters, search, and field selection
4706
+ * @returns Paginated connection of webhook deliveries with type-narrowed fields
4707
+ */
4708
+ async getWebhookDeliveries(requestOptions, options) {
4709
+ if (!this.graphql) {
4710
+ throw new Error(
4711
+ "GraphQL transport is not available. Ensure the client is properly initialized."
4712
+ );
4713
+ }
4714
+ const fields = requestOptions?.select ?? ALL_WEBHOOK_DELIVERY_FIELDS;
4715
+ const fieldSelection = buildFieldSelection5(fields);
4716
+ const query = `
4717
+ query GetWebhookDeliveries(
4718
+ $first: Int
4719
+ $after: String
4720
+ $last: Int
4721
+ $before: String
4722
+ $search: searching_QueryWebhookDeliveryResultFilterInput
4723
+ $filter: filtering_QueryWebhookDeliveryResultFilterInput
4724
+ $order: [sorting_QueryWebhookDeliveryResultSortInput!]
4725
+ ) {
4726
+ webhookDeliveriesNew(
4727
+ first: $first
4728
+ after: $after
4729
+ last: $last
4730
+ before: $before
4731
+ search: $search
4732
+ filter: $filter
4733
+ order: $order
4734
+ ) {
4735
+ pageInfo {
4736
+ hasNextPage
4737
+ hasPreviousPage
4738
+ startCursor
4739
+ endCursor
4740
+ }
4741
+ totalCount
4742
+ edges {
4743
+ cursor
4744
+ node {
4745
+ ${fieldSelection}
4746
+ }
4747
+ }
4748
+ }
4749
+ }
4750
+ `;
4751
+ const variables = {
4752
+ first: requestOptions?.first,
4753
+ after: requestOptions?.after,
4754
+ last: requestOptions?.last,
4755
+ before: requestOptions?.before,
4756
+ search: requestOptions?.search,
4757
+ filter: requestOptions?.filter,
4758
+ order: requestOptions?.order
4759
+ };
4760
+ const result = await this.graphql.query(query, variables, options);
4761
+ if (!result.isSuccess) {
4762
+ return result;
4763
+ }
4764
+ const edges = result.data.webhookDeliveriesNew.edges;
4765
+ const nodes = edges?.map((edge) => edge?.node ?? null) ?? null;
4766
+ return {
4767
+ ...result,
4768
+ data: {
4769
+ ...result.data.webhookDeliveriesNew,
4770
+ nodes
4771
+ }
4772
+ };
4773
+ }
3950
4774
  };
3951
4775
 
3952
4776
  // src/clients/coverage.ts
@@ -4199,9 +5023,14 @@ var InsurUpInsuranceClient = class {
4199
5023
  };
4200
5024
 
4201
5025
  // src/clients/proposal.ts
5026
+ import {
5027
+ ALL_PROPOSAL_FIELDS
5028
+ } from "@insurup/contracts";
5029
+ import { buildFieldSelection as buildFieldSelection6 } from "@insurup/contracts";
4202
5030
  var InsurUpProposalClient = class {
4203
- constructor(http) {
5031
+ constructor(http, graphql) {
4204
5032
  this.http = http;
5033
+ this.graphql = graphql;
4205
5034
  }
4206
5035
  /**
4207
5036
  * Creates a new insurance proposal with customer information, coverage selections, and product options for quotation.
@@ -4528,6 +5357,97 @@ var InsurUpProposalClient = class {
4528
5357
  options
4529
5358
  );
4530
5359
  }
5360
+ // ============================================================================
5361
+ // GRAPHQL QUERIES
5362
+ // ============================================================================
5363
+ /**
5364
+ * Queries proposals using GraphQL with advanced filtering, searching, sorting, and field selection.
5365
+ * Supports cursor-based pagination and type-safe field selection.
5366
+ *
5367
+ * Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak teklifleri sorgular.
5368
+ * İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
5369
+ *
5370
+ * @example
5371
+ * // Basic query with all fields
5372
+ * const result = await client.proposals.getProposals({ first: 10 });
5373
+ *
5374
+ * @example
5375
+ * // Type-safe field selection
5376
+ * const result = await client.proposals.getProposals({
5377
+ * select: ['id', 'productBranch', 'state', 'insuredCustomerName'] as const,
5378
+ * first: 10,
5379
+ * filter: { state: { eq: ProposalState.Active } }
5380
+ * });
5381
+ *
5382
+ * @param requestOptions Query options including pagination, filters, search, and field selection
5383
+ * @returns Paginated connection of proposals with type-narrowed fields
5384
+ */
5385
+ async getProposals(requestOptions, options) {
5386
+ if (!this.graphql) {
5387
+ throw new Error(
5388
+ "GraphQL transport is not available. Ensure the client is properly initialized."
5389
+ );
5390
+ }
5391
+ const fields = requestOptions?.select ?? ALL_PROPOSAL_FIELDS;
5392
+ const fieldSelection = buildFieldSelection6(fields);
5393
+ const query = `
5394
+ query GetProposals(
5395
+ $first: Int
5396
+ $after: String
5397
+ $last: Int
5398
+ $before: String
5399
+ $search: searching_QueryProposalsResultFilterInput
5400
+ $filter: filtering_QueryProposalsResultFilterInput
5401
+ $order: [sorting_QueryProposalsResultSortInput!]
5402
+ ) {
5403
+ proposalsNew(
5404
+ first: $first
5405
+ after: $after
5406
+ last: $last
5407
+ before: $before
5408
+ search: $search
5409
+ filter: $filter
5410
+ order: $order
5411
+ ) {
5412
+ pageInfo {
5413
+ hasNextPage
5414
+ hasPreviousPage
5415
+ startCursor
5416
+ endCursor
5417
+ }
5418
+ totalCount
5419
+ edges {
5420
+ cursor
5421
+ node {
5422
+ ${fieldSelection}
5423
+ }
5424
+ }
5425
+ }
5426
+ }
5427
+ `;
5428
+ const variables = {
5429
+ first: requestOptions?.first,
5430
+ after: requestOptions?.after,
5431
+ last: requestOptions?.last,
5432
+ before: requestOptions?.before,
5433
+ search: requestOptions?.search,
5434
+ filter: requestOptions?.filter,
5435
+ order: requestOptions?.order
5436
+ };
5437
+ const result = await this.graphql.query(query, variables, options);
5438
+ if (!result.isSuccess) {
5439
+ return result;
5440
+ }
5441
+ const edges = result.data.proposalsNew.edges;
5442
+ const nodes = edges?.map((edge) => edge?.node ?? null) ?? null;
5443
+ return {
5444
+ ...result,
5445
+ data: {
5446
+ ...result.data.proposalsNew,
5447
+ nodes
5448
+ }
5449
+ };
5450
+ }
4531
5451
  };
4532
5452
 
4533
5453
  // src/clients/file.ts
@@ -4662,6 +5582,7 @@ var InsurUpTemplateClient = class {
4662
5582
  // src/client/client.ts
4663
5583
  var DefaultInsurUpClient = class {
4664
5584
  http;
5585
+ graphql;
4665
5586
  /**
4666
5587
  * Agent Management Client
4667
5588
  *
@@ -4784,696 +5705,34 @@ var DefaultInsurUpClient = class {
4784
5705
  options;
4785
5706
  constructor(options) {
4786
5707
  this.http = new HttpTransport(options);
5708
+ this.graphql = new GraphQLTransport(this.http);
4787
5709
  this.options = options || {};
4788
5710
  this.agents = new InsurUpAgentClient(this.http);
4789
5711
  this.agentBranches = new InsurUpAgentBranchClient(this.http);
4790
5712
  this.agentRoles = new InsurUpAgentRoleClient(this.http);
4791
5713
  this.agentSetup = new InsurUpAgentSetupClient(this.http);
4792
- this.agentUsers = new InsurUpAgentUserClient(this.http);
4793
- this.customers = new InsurUpCustomerClient(this.http);
5714
+ this.agentUsers = new InsurUpAgentUserClient(this.http, this.graphql);
5715
+ this.customers = new InsurUpCustomerClient(this.http, this.graphql);
4794
5716
  this.vehicles = new InsurUpVehicleClient(this.http);
4795
5717
  this.properties = new InsurUpPropertyClient(this.http);
4796
- this.policies = new InsurUpPolicyClient(this.http);
4797
- this.cases = new InsurUpCaseClient(this.http);
4798
- this.webhooks = new InsurUpWebhookClient(this.http);
5718
+ this.policies = new InsurUpPolicyClient(this.http, this.graphql);
5719
+ this.cases = new InsurUpCaseClient(this.http, this.graphql);
5720
+ this.webhooks = new InsurUpWebhookClient(this.http, this.graphql);
4799
5721
  this.coverage = new InsurUpCoverageClient(this.http);
4800
5722
  this.insurance = new InsurUpInsuranceClient(this.http);
4801
- this.proposals = new InsurUpProposalClient(this.http);
5723
+ this.proposals = new InsurUpProposalClient(this.http, this.graphql);
4802
5724
  this.files = new InsurUpFileClient(this.http);
4803
5725
  this.languages = new InsurUpLanguageClient(this.http);
4804
5726
  this.templates = new InsurUpTemplateClient(this.http);
4805
5727
  }
4806
5728
  };
4807
5729
 
4808
- // src/contracts/common.base.ts
4809
- var Channel = /* @__PURE__ */ ((Channel2) => {
4810
- Channel2["Unknown"] = "UNKNOWN";
4811
- Channel2["Manual"] = "MANUAL";
4812
- Channel2["Website"] = "WEBSITE";
4813
- Channel2["GoogleAds"] = "GOOGLE_ADS";
4814
- Channel2["CallCenter"] = "CALL_CENTER";
4815
- Channel2["SocialMedia"] = "SOCIAL_MEDIA";
4816
- Channel2["MobileApp"] = "MOBILE_APP";
4817
- Channel2["OfflineProposalForm"] = "OFFLINE_PROPOSAL_FORM";
4818
- Channel2["Field"] = "FIELD";
4819
- Channel2["PrintMedia"] = "PRINT_MEDIA";
4820
- Channel2["FairEvent"] = "FAIR_EVENT";
4821
- Channel2["BusinessPartner"] = "BUSINESS_PARTNER";
4822
- Channel2["Chatbot"] = "CHATBOT";
4823
- return Channel2;
4824
- })(Channel || {});
4825
- var AssetType = /* @__PURE__ */ ((AssetType2) => {
4826
- AssetType2["Vehicle"] = "VEHICLE";
4827
- AssetType2["Property"] = "PROPERTY";
4828
- return AssetType2;
4829
- })(AssetType || {});
4830
- var CustomerType = /* @__PURE__ */ ((CustomerType2) => {
4831
- CustomerType2["Individual"] = "INDIVIDUAL";
4832
- CustomerType2["Company"] = "COMPANY";
4833
- CustomerType2["Foreign"] = "FOREIGN";
4834
- return CustomerType2;
4835
- })(CustomerType || {});
4836
- var ProductBranch = /* @__PURE__ */ ((ProductBranch2) => {
4837
- ProductBranch2["Kasko"] = "KASKO";
4838
- ProductBranch2["Dask"] = "DASK";
4839
- ProductBranch2["Konut"] = "KONUT";
4840
- ProductBranch2["Trafik"] = "TRAFIK";
4841
- ProductBranch2["Tss"] = "TSS";
4842
- ProductBranch2["Imm"] = "IMM";
4843
- ProductBranch2["YesilKart"] = "YESIL_KART";
4844
- ProductBranch2["FerdiKaza"] = "FERDI_KAZA";
4845
- ProductBranch2["GrupHayat"] = "GRUP_HAYAT";
4846
- ProductBranch2["Saglik"] = "SAGLIK";
4847
- ProductBranch2["KartKimlikKoruma"] = "KART_KIMLIK_KORUMA";
4848
- ProductBranch2["UcuncuSahisMaliSorumluluk"] = "UCUNCU_SAHIS_MALI_SORUMLULUK";
4849
- ProductBranch2["IsyeriYangin"] = "ISYERI_YANGIN";
4850
- ProductBranch2["Seyahat"] = "SEYAHAT";
4851
- ProductBranch2["ElektronikCihaz"] = "ELEKTRONIK_CIHAZ";
4852
- ProductBranch2["Pet"] = "PET";
4853
- ProductBranch2["Bes"] = "BES";
4854
- ProductBranch2["InsaatAllRisk"] = "INSAAT_ALL_RISK";
4855
- ProductBranch2["LeasingAllRisk"] = "LEASING_ALL_RISK";
4856
- ProductBranch2["MontajAllRisk"] = "MONTAJ_ALL_RISK";
4857
- ProductBranch2["Nakliyat"] = "NAKLIYAT";
4858
- ProductBranch2["OzelGuvenlikMaliSorumluluk"] = "OZEL_GUVENLIK_MALI_SORUMLULUK";
4859
- ProductBranch2["AkilliTelefon"] = "AKILLI_TELEFON";
4860
- ProductBranch2["TehlikeliMaddelerMaliSorumluluk"] = "TEHLIKELI_MADDELER_MALI_SORUMLULUK";
4861
- ProductBranch2["YatGemiGezintiTeknesi"] = "YAT_GEMI_GEZINTI_TEKNESI";
4862
- ProductBranch2["Tarim"] = "TARIM";
4863
- ProductBranch2["MeslekiSorumluluk"] = "MESLEKI_SORUMLULUK";
4864
- ProductBranch2["Alacak"] = "ALACAK";
4865
- ProductBranch2["IsverenMaliMesuliyet"] = "ISVEREN_MALI_MESULIYET";
4866
- ProductBranch2["Muhendislik"] = "MUHENDISLIK";
4867
- ProductBranch2["HukuksalKoruma"] = "HUKUKSAL_KORUMA";
4868
- ProductBranch2["IlkAtesKonut"] = "ILK_ATES_KONUT";
4869
- ProductBranch2["Kefalet"] = "KEFALET";
4870
- return ProductBranch2;
4871
- })(ProductBranch || {});
4872
- var Currency = /* @__PURE__ */ ((Currency2) => {
4873
- Currency2["Unknown"] = "UNKNOWN";
4874
- Currency2["TurkishLira"] = "TURKISH_LIRA";
4875
- Currency2["UnitedStatesDollar"] = "UNITED_STATES_DOLLAR";
4876
- Currency2["Euro"] = "EURO";
4877
- return Currency2;
4878
- })(Currency || {});
4879
- var PaymentOption = /* @__PURE__ */ ((PaymentOption2) => {
4880
- PaymentOption2["Unknown"] = "UNKNOWN";
4881
- PaymentOption2["SyncCreditCard"] = "SYNC_CREDIT_CARD";
4882
- PaymentOption2["SyncOpenAccount"] = "SYNC_OPEN_ACCOUNT";
4883
- PaymentOption2["Async3dSecure"] = "ASYNC_3D_SECURE";
4884
- PaymentOption2["AsyncInsuranceCompanyRedirect"] = "ASYNC_INSURANCE_COMPANY_REDIRECT";
4885
- PaymentOption2["AsyncThirdParty3dSecure"] = "ASYNC_THIRD_PARTY_3D_SECURE";
4886
- return PaymentOption2;
4887
- })(PaymentOption || {});
4888
- var PolicyState = /* @__PURE__ */ ((PolicyState2) => {
4889
- PolicyState2["Active"] = "ACTIVE";
4890
- PolicyState2["EndOfLife"] = "END_OF_LIFE";
4891
- PolicyState2["Cancelled"] = "CANCELLED";
4892
- return PolicyState2;
4893
- })(PolicyState || {});
4894
- var InsuranceProductType = /* @__PURE__ */ ((InsuranceProductType2) => {
4895
- InsuranceProductType2["WebService"] = "WEB_SERVICE";
4896
- InsuranceProductType2["Robot"] = "ROBOT";
4897
- return InsuranceProductType2;
4898
- })(InsuranceProductType || {});
4899
-
4900
- // src/contracts/common.coverage.ts
4901
- var OnarimServisTuru = /* @__PURE__ */ ((OnarimServisTuru2) => {
4902
- OnarimServisTuru2["Belirsiz"] = "BELIRSIZ";
4903
- OnarimServisTuru2["AnlasmaliOzelServis"] = "ANLASMALI_OZEL_SERVIS";
4904
- OnarimServisTuru2["AnlasmaliYetkiliServis"] = "ANLASMALI_YETKILI_SERVIS";
4905
- OnarimServisTuru2["YetkiliServis"] = "YETKILI_SERVIS";
4906
- OnarimServisTuru2["OzelServis"] = "OZEL_SERVIS";
4907
- OnarimServisTuru2["SigortaliBelirler"] = "SIGORTALI_BELIRLER";
4908
- return OnarimServisTuru2;
4909
- })(OnarimServisTuru || {});
4910
- var YedekParcaTuru = /* @__PURE__ */ ((YedekParcaTuru2) => {
4911
- YedekParcaTuru2["Belirsiz"] = "BELIRSIZ";
4912
- YedekParcaTuru2["OrijinalParca"] = "ORIJINAL_PARCA";
4913
- YedekParcaTuru2["EsdegerParca"] = "ESDEGER_PARCA";
4914
- return YedekParcaTuru2;
4915
- })(YedekParcaTuru || {});
4916
- var AracSegment = /* @__PURE__ */ ((AracSegment2) => {
4917
- AracSegment2["A"] = "A";
4918
- AracSegment2["B"] = "B";
4919
- AracSegment2["C"] = "C";
4920
- AracSegment2["D"] = "D";
4921
- AracSegment2["E"] = "E";
4922
- AracSegment2["F"] = "F";
4923
- AracSegment2["SegmenteSegment"] = "SEGMENTE_SEGMENT";
4924
- return AracSegment2;
4925
- })(AracSegment || {});
4926
- var HastaneAgi = /* @__PURE__ */ ((HastaneAgi2) => {
4927
- HastaneAgi2["Bilinmiyor"] = "BILINMIYOR";
4928
- HastaneAgi2["DarKapsam"] = "DAR_KAPSAM";
4929
- HastaneAgi2["StandartKapsam"] = "STANDART_KAPSAM";
4930
- HastaneAgi2["GenisKapsam"] = "GENIS_KAPSAM";
4931
- return HastaneAgi2;
4932
- })(HastaneAgi || {});
4933
- var SaglikPaketiTedaviSekli = /* @__PURE__ */ ((SaglikPaketiTedaviSekli2) => {
4934
- SaglikPaketiTedaviSekli2["Bilinmiyor"] = "BILINMIYOR";
4935
- SaglikPaketiTedaviSekli2["Yatarak"] = "YATARAK";
4936
- SaglikPaketiTedaviSekli2["YatarakAyakta"] = "YATARAK_AYAKTA";
4937
- return SaglikPaketiTedaviSekli2;
4938
- })(SaglikPaketiTedaviSekli || {});
4939
- var TasinanYuk = /* @__PURE__ */ ((TasinanYuk2) => {
4940
- TasinanYuk2["Belirsiz"] = "BELIRSIZ";
4941
- TasinanYuk2["Yok"] = "YOK";
4942
- TasinanYuk2["AgacKutukleriveKereste"] = "AGAC_KUTUKLERIVE_KERESTE";
4943
- TasinanYuk2["Akaryakit"] = "AKARYAKIT";
4944
- TasinanYuk2["AyakkabiSaraciye"] = "AYAKKABI_SARACIYE";
4945
- TasinanYuk2["BakkaliyeveSharkuteriUrunleri"] = "BAKKALIYE_VE_SHARKUTERI_URUNLERI";
4946
- TasinanYuk2["BilumumKirtasiyeMalzemeleri"] = "BILUMUM_KIRTASIYE_MALZEMELERI";
4947
- TasinanYuk2["DokmeSuveSut"] = "DOKME_SU_VE_SUT";
4948
- TasinanYuk2["HaliveKilim"] = "HALI_VE_KILIM";
4949
- TasinanYuk2["HamYariMamulveMamulKagit"] = "HAM_YARI_MAMUL_VE_MAMUL_KAGIT";
4950
- TasinanYuk2["HazirBeton"] = "HAZIR_BETON";
4951
- TasinanYuk2["HerNeviEvAletleri"] = "HER_NEVI_EV_ALETLERI";
4952
- TasinanYuk2["HerTurluDokmeKomurvOdun"] = "HER_TURLU_DOKME_KOMUR_V_ODUN";
4953
- TasinanYuk2["HububatveBakliyat"] = "HUBUBAT_VE_BAKLIYAT";
4954
- TasinanYuk2["KabaInsaatMalzemeleri"] = "KABA_INSAAT_MALZEMELERI";
4955
- TasinanYuk2["LastikKaucukUrunleri"] = "LASTIK_KAUCUK_URUNLERI";
4956
- TasinanYuk2["LikidKimyeviMadde"] = "LIKID_KIMYEVI_MADDE";
4957
- TasinanYuk2["LpgGazTupu"] = "LPG_GAZ_TUPU";
4958
- TasinanYuk2["MakineAksamveYedekleri"] = "MAKINE_AKSAM_VE_YEDEKLERI";
4959
- TasinanYuk2["MobilyaMalzemesi"] = "MOBILYA_MALZEMESI";
4960
- TasinanYuk2["MuhtelifEvEsyasi"] = "MUHTELIF_EV_ESYASI";
4961
- TasinanYuk2["OtoYedekParcalari"] = "OTO_YEDEK_PARCALARI";
4962
- TasinanYuk2["PlastikMamulleri"] = "PLASTIK_MAMULLERI";
4963
- TasinanYuk2["SentetikElyafUrunleri"] = "SENTETIK_ELYAF_URUNLERI";
4964
- TasinanYuk2["SentetikPlastikBoyaUrunleri"] = "SENTETIK_PLASTIK_BOYA_URUNLERI";
4965
- TasinanYuk2["TekstilUrunleri"] = "TEKSTIL_URUNLERI";
4966
- TasinanYuk2["TemizlikMaddeleri"] = "TEMIZLIK_MADDELERI";
4967
- TasinanYuk2["YasMeyveveSebze"] = "YAS_MEYVE_VE_SEBZE";
4968
- return TasinanYuk2;
4969
- })(TasinanYuk || {});
4970
- function isCoverageValue(value) {
4971
- return typeof value === "object" && value !== null && "$type" in value && typeof value.$type === "string";
4972
- }
4973
- function mergeCoverage(...coverages) {
4974
- if (coverages.length === 0) {
4975
- throw new Error("Cannot merge empty coverage array");
4976
- }
4977
- const validCoverages = coverages.filter(
4978
- (coverage) => coverage != null
4979
- );
4980
- if (validCoverages.length === 0) {
4981
- throw new Error("No valid coverages to merge");
4982
- }
4983
- const firstCoverage = validCoverages[0];
4984
- const productBranch = firstCoverage.productBranch;
4985
- for (const coverage of validCoverages) {
4986
- if (coverage.productBranch !== productBranch) {
4987
- throw new Error(
4988
- `All coverages must have the same productBranch. Expected: ${productBranch}, but found: ${coverage.productBranch}`
4989
- );
4990
- }
4991
- }
4992
- const mergeCoverageValue = (values) => {
4993
- const definedValues = values.filter(
4994
- (value) => value != null
4995
- );
4996
- if (definedValues.length === 0) {
4997
- return void 0;
4998
- }
4999
- const nonUndefinedValues = definedValues.filter(
5000
- (value) => value.$type !== "UNDEFINED"
5001
- );
5002
- if (nonUndefinedValues.length > 0) {
5003
- return nonUndefinedValues[nonUndefinedValues.length - 1];
5004
- }
5005
- return { $type: "UNDEFINED" };
5006
- };
5007
- const mergeProperty = (values) => {
5008
- const definedValues = values.filter((value) => value != null);
5009
- return definedValues.length > 0 ? definedValues[definedValues.length - 1] : void 0;
5010
- };
5011
- const allKeys = /* @__PURE__ */ new Set();
5012
- for (const coverage of validCoverages) {
5013
- Object.keys(coverage).forEach((key) => {
5014
- if (key !== "productBranch") {
5015
- allKeys.add(key);
5016
- }
5017
- });
5018
- }
5019
- const merged = {
5020
- productBranch
5021
- };
5022
- for (const key of allKeys) {
5023
- const values = validCoverages.map(
5024
- (coverage) => coverage[key]
5025
- );
5026
- const sampleValue = values.find((v) => v != null);
5027
- if (isCoverageValue(sampleValue)) {
5028
- merged[key] = mergeCoverageValue(values);
5029
- } else {
5030
- merged[key] = mergeProperty(values);
5031
- }
5032
- }
5033
- return merged;
5034
- }
5035
-
5036
- // src/contracts/common.policy.ts
5037
- var PolicyTransferTriggerStatus = /* @__PURE__ */ ((PolicyTransferTriggerStatus2) => {
5038
- PolicyTransferTriggerStatus2["Succeeded"] = "SUCCEEDED";
5039
- PolicyTransferTriggerStatus2["Failed"] = "TRIGGER_STATUS_FAILED";
5040
- return PolicyTransferTriggerStatus2;
5041
- })(PolicyTransferTriggerStatus || {});
5042
- var PolicyTransferCompanyFailureReason = /* @__PURE__ */ ((PolicyTransferCompanyFailureReason2) => {
5043
- PolicyTransferCompanyFailureReason2["Unknown"] = "UNKNOWN";
5044
- PolicyTransferCompanyFailureReason2["CouldNotFetchPolicies"] = "COULD_NOT_FETCH_POLICIES";
5045
- return PolicyTransferCompanyFailureReason2;
5046
- })(PolicyTransferCompanyFailureReason || {});
5047
- var TransferredPolicyStatus = /* @__PURE__ */ ((TransferredPolicyStatus2) => {
5048
- TransferredPolicyStatus2["Success"] = "SUCCESS";
5049
- TransferredPolicyStatus2["Failed"] = "TRANSFER_FAILED";
5050
- TransferredPolicyStatus2["Skipped"] = "TRANSFER_SKIPPED";
5051
- return TransferredPolicyStatus2;
5052
- })(TransferredPolicyStatus || {});
5053
- var TransferredPolicySkipReason = /* @__PURE__ */ ((TransferredPolicySkipReason2) => {
5054
- TransferredPolicySkipReason2["Unknown"] = "UNKNOWN";
5055
- TransferredPolicySkipReason2["AlreadyTransferred"] = "SKIP_ALREADY_TRANSFERRED";
5056
- TransferredPolicySkipReason2["PreviousVersionNotFound"] = "PREVIOUS_VERSION_NOT_FOUND";
5057
- TransferredPolicySkipReason2["ProductBranchNotSupported"] = "PRODUCT_BRANCH_NOT_SUPPORTED";
5058
- TransferredPolicySkipReason2["ProductNotSupported"] = "PRODUCT_NOT_SUPPORTED";
5059
- return TransferredPolicySkipReason2;
5060
- })(TransferredPolicySkipReason || {});
5061
- var TransferredPolicyFailureReason = /* @__PURE__ */ ((TransferredPolicyFailureReason2) => {
5062
- TransferredPolicyFailureReason2["Unknown"] = "UNKNOWN";
5063
- TransferredPolicyFailureReason2["InvalidCustomerIdentityNumber"] = "INVALID_CUSTOMER_IDENTITY_NUMBER";
5064
- TransferredPolicyFailureReason2["InvalidCustomerCompanyTitle"] = "INVALID_CUSTOMER_COMPANY_TITLE";
5065
- TransferredPolicyFailureReason2["InvalidCustomerTaxNumber"] = "INVALID_CUSTOMER_TAX_NUMBER";
5066
- TransferredPolicyFailureReason2["InvalidCustomerType"] = "INVALID_CUSTOMER_TYPE";
5067
- TransferredPolicyFailureReason2["InvalidVehicle"] = "INVALID_VEHICLE";
5068
- TransferredPolicyFailureReason2["InvalidProperty"] = "INVALID_PROPERTY";
5069
- TransferredPolicyFailureReason2["InvalidEndDate"] = "INVALID_END_DATE";
5070
- TransferredPolicyFailureReason2["InvalidStartDate"] = "INVALID_START_DATE";
5071
- TransferredPolicyFailureReason2["InvalidProposalNumber"] = "INVALID_PROPOSAL_NUMBER";
5072
- TransferredPolicyFailureReason2["InvalidPremium"] = "INVALID_PREMIUM";
5073
- TransferredPolicyFailureReason2["InvalidCommission"] = "INVALID_COMMISSION";
5074
- TransferredPolicyFailureReason2["InvalidPaymentType"] = "INVALID_PAYMENT_TYPE";
5075
- TransferredPolicyFailureReason2["InvalidInsuredCustomer"] = "INVALID_INSURED_CUSTOMER";
5076
- TransferredPolicyFailureReason2["InvalidInsurerCustomer"] = "INVALID_INSURER_CUSTOMER";
5077
- return TransferredPolicyFailureReason2;
5078
- })(TransferredPolicyFailureReason || {});
5079
-
5080
- // src/contracts/common.property.ts
5081
- var PropertyStructure = /* @__PURE__ */ ((PropertyStructure2) => {
5082
- PropertyStructure2["Unknown"] = "UNKNOWN";
5083
- PropertyStructure2["SteelReinforcedConcrete"] = "STEEL_REINFORCED_CONCRETE";
5084
- PropertyStructure2["Other"] = "OTHER";
5085
- return PropertyStructure2;
5086
- })(PropertyStructure || {});
5087
- var PropertyDamageStatus = /* @__PURE__ */ ((PropertyDamageStatus2) => {
5088
- PropertyDamageStatus2["Unknown"] = "UNKNOWN";
5089
- PropertyDamageStatus2["None"] = "NONE";
5090
- PropertyDamageStatus2["SlightlyDamaged"] = "SLIGHTLY_DAMAGED";
5091
- PropertyDamageStatus2["ModeratelyDamaged"] = "MODERATELY_DAMAGED";
5092
- PropertyDamageStatus2["SeverelyDamaged"] = "SEVERELY_DAMAGED";
5093
- return PropertyDamageStatus2;
5094
- })(PropertyDamageStatus || {});
5095
- var PropertyUtilizationStyle = /* @__PURE__ */ ((PropertyUtilizationStyle2) => {
5096
- PropertyUtilizationStyle2["Unknown"] = "UNKNOWN";
5097
- PropertyUtilizationStyle2["House"] = "HOUSE";
5098
- PropertyUtilizationStyle2["Business"] = "BUSINESS";
5099
- PropertyUtilizationStyle2["Other"] = "OTHER";
5100
- return PropertyUtilizationStyle2;
5101
- })(PropertyUtilizationStyle || {});
5102
- var PropertyOwnershipType = /* @__PURE__ */ ((PropertyOwnershipType2) => {
5103
- PropertyOwnershipType2["Unknown"] = "UNKNOWN";
5104
- PropertyOwnershipType2["Proprietor"] = "PROPRIETOR";
5105
- PropertyOwnershipType2["Tenant"] = "TENANT";
5106
- return PropertyOwnershipType2;
5107
- })(PropertyOwnershipType || {});
5108
- var LossPayeeClauseType = /* @__PURE__ */ ((LossPayeeClauseType2) => {
5109
- LossPayeeClauseType2["Bank"] = "BANK";
5110
- LossPayeeClauseType2["FinancialInstitution"] = "FINANCIAL_INSTITUTION";
5111
- return LossPayeeClauseType2;
5112
- })(LossPayeeClauseType || {});
5113
-
5114
- // src/contracts/common.vehicle.ts
5115
- var VehicleUtilizationStyle = /* @__PURE__ */ ((VehicleUtilizationStyle2) => {
5116
- VehicleUtilizationStyle2["Unknown"] = "UNKNOWN";
5117
- VehicleUtilizationStyle2["PrivateCar"] = "PRIVATE_CAR";
5118
- VehicleUtilizationStyle2["Taxi"] = "TAXI";
5119
- VehicleUtilizationStyle2["RouteBasedMinibus"] = "ROUTE_BASED_MINIBUS";
5120
- VehicleUtilizationStyle2["MediumBus"] = "MEDIUM_BUS";
5121
- VehicleUtilizationStyle2["LargeBus"] = "LARGE_BUS";
5122
- VehicleUtilizationStyle2["PickupTruck"] = "PICKUP_TRUCK";
5123
- VehicleUtilizationStyle2["PanelVan"] = "PANEL_VAN";
5124
- VehicleUtilizationStyle2["Truck"] = "TRUCK";
5125
- VehicleUtilizationStyle2["Tractor"] = "TRACTOR";
5126
- VehicleUtilizationStyle2["Motorcycle"] = "MOTORCYCLE";
5127
- VehicleUtilizationStyle2["RentalCar"] = "RENTAL_CAR";
5128
- VehicleUtilizationStyle2["ArmoredVehicle"] = "ARMORED_VEHICLE";
5129
- VehicleUtilizationStyle2["MinibusSharedTaxi"] = "MINIBUS_SHARED_TAXI";
5130
- VehicleUtilizationStyle2["Jeep"] = "JEEP";
5131
- VehicleUtilizationStyle2["JeepSAV"] = "JEEP_SAV";
5132
- VehicleUtilizationStyle2["JeepSUV"] = "JEEP_SUV";
5133
- VehicleUtilizationStyle2["Hearse"] = "HEARSE";
5134
- VehicleUtilizationStyle2["ChauffeuredRentalCar"] = "CHAUFFEURED_RENTAL_CAR";
5135
- VehicleUtilizationStyle2["OperationalRental"] = "OPERATIONAL_RENTAL";
5136
- VehicleUtilizationStyle2["PrivateMinibus"] = "PRIVATE_MINIBUS";
5137
- VehicleUtilizationStyle2["RouteMinibus"] = "ROUTE_MINIBUS";
5138
- VehicleUtilizationStyle2["ServiceMinibus"] = "SERVICE_MINIBUS";
5139
- return VehicleUtilizationStyle2;
5140
- })(VehicleUtilizationStyle || {});
5141
- var VehicleFuelType = /* @__PURE__ */ ((VehicleFuelType2) => {
5142
- VehicleFuelType2["Gasoline"] = "GASOLINE";
5143
- VehicleFuelType2["Diesel"] = "DIESEL";
5144
- VehicleFuelType2["Lpg"] = "LPG";
5145
- VehicleFuelType2["Electric"] = "ELECTRIC";
5146
- VehicleFuelType2["LpgGasoline"] = "LPG_GASOLINE";
5147
- VehicleFuelType2["Hybrid"] = "HYBRID";
5148
- return VehicleFuelType2;
5149
- })(VehicleFuelType || {});
5150
- var VehicleAccessoryType = /* @__PURE__ */ ((VehicleAccessoryType2) => {
5151
- VehicleAccessoryType2["Audio"] = "audio";
5152
- VehicleAccessoryType2["Display"] = "display";
5153
- VehicleAccessoryType2["Other"] = "other";
5154
- return VehicleAccessoryType2;
5155
- })(VehicleAccessoryType || {});
5156
-
5157
- // src/contracts/customers.ts
5158
- var Gender = /* @__PURE__ */ ((Gender2) => {
5159
- Gender2["Unknown"] = "UNKNOWN";
5160
- Gender2["Male"] = "MALE";
5161
- Gender2["Female"] = "FEMALE";
5162
- Gender2["Other"] = "OTHER";
5163
- return Gender2;
5164
- })(Gender || {});
5165
- var EducationStatus = /* @__PURE__ */ ((EducationStatus2) => {
5166
- EducationStatus2["Unknown"] = "UNKNOWN";
5167
- EducationStatus2["PrimarySchool"] = "PRIMARY_SCHOOL";
5168
- EducationStatus2["MiddleSchool"] = "MIDDLE_SCHOOL";
5169
- EducationStatus2["HighSchool"] = "HIGH_SCHOOL";
5170
- EducationStatus2["University"] = "UNIVERSITY";
5171
- EducationStatus2["Postgraduate"] = "POSTGRADUATE";
5172
- EducationStatus2["Doctorate"] = "DOCTORATE";
5173
- EducationStatus2["Other"] = "OTHER";
5174
- return EducationStatus2;
5175
- })(EducationStatus || {});
5176
- var Nationality = /* @__PURE__ */ ((Nationality2) => {
5177
- Nationality2["Unknown"] = "UNKNOWN";
5178
- Nationality2["Turk"] = "TURK";
5179
- Nationality2["Other"] = "OTHER";
5180
- return Nationality2;
5181
- })(Nationality || {});
5182
- var MaritalStatus = /* @__PURE__ */ ((MaritalStatus2) => {
5183
- MaritalStatus2["Unknown"] = "UNKNOWN";
5184
- MaritalStatus2["Single"] = "SINGLE";
5185
- MaritalStatus2["Married"] = "MARRIED";
5186
- return MaritalStatus2;
5187
- })(MaritalStatus || {});
5188
- var Job = /* @__PURE__ */ ((Job2) => {
5189
- Job2["Unknown"] = "UNKNOWN";
5190
- Job2["Banker"] = "BANKER";
5191
- Job2["CorporateEmployee"] = "CORPORATE_EMPLOYEE";
5192
- Job2["LtdEmployee"] = "LTD_EMPLOYEE";
5193
- Job2["Police"] = "POLICE";
5194
- Job2["MilitaryPersonnel"] = "MILITARY_PERSONNEL";
5195
- Job2["RetiredSpouse"] = "RETIRED_SPOUSE";
5196
- Job2["Teacher"] = "TEACHER";
5197
- Job2["Doctor"] = "DOCTOR";
5198
- Job2["Pharmacist"] = "PHARMACIST";
5199
- Job2["Nurse"] = "NURSE";
5200
- Job2["HealthcareWorker"] = "HEALTHCARE_WORKER";
5201
- Job2["Lawyer"] = "LAWYER";
5202
- Job2["Judge"] = "JUDGE";
5203
- Job2["Prosecutor"] = "PROSECUTOR";
5204
- Job2["Freelancer"] = "FREELANCER";
5205
- Job2["Farmer"] = "FARMER";
5206
- Job2["Instructor"] = "INSTRUCTOR";
5207
- Job2["ReligiousOfficial"] = "RELIGIOUS_OFFICIAL";
5208
- Job2["AssociationManager"] = "ASSOCIATION_MANAGER";
5209
- Job2["Officer"] = "OFFICER";
5210
- Job2["Retired"] = "RETIRED";
5211
- Job2["Housewife"] = "HOUSEWIFE";
5212
- return Job2;
5213
- })(Job || {});
5214
- var ContactFlowState = /* @__PURE__ */ ((ContactFlowState2) => {
5215
- ContactFlowState2["Active"] = "ACTIVE";
5216
- ContactFlowState2["Succeeded"] = "SUCCEEDED";
5217
- ContactFlowState2["Failed"] = "FAILED";
5218
- return ContactFlowState2;
5219
- })(ContactFlowState || {});
5220
- var ContactType = /* @__PURE__ */ ((ContactType2) => {
5221
- ContactType2["PhoneCall"] = "PHONE_CALL";
5222
- return ContactType2;
5223
- })(ContactType || {});
5224
- var ContactState = /* @__PURE__ */ ((ContactState2) => {
5225
- ContactState2["Planned"] = "PLANNED";
5226
- ContactState2["Occurred"] = "OCCURRED";
5227
- ContactState2["NotOccurred"] = "NOT_OCCURRED";
5228
- return ContactState2;
5229
- })(ContactState || {});
5230
- var Surgery = /* @__PURE__ */ ((Surgery2) => {
5231
- Surgery2["Other"] = "OTHER";
5232
- Surgery2["OrganTransplant"] = "ORGAN_TRANSPLANT";
5233
- Surgery2["BoneMarrowTransplant"] = "BONE_MARROW_TRANSPLANT";
5234
- Surgery2["HeartSurgery"] = "HEART_SURGERY";
5235
- Surgery2["BrainSurgery"] = "BRAIN_SURGERY";
5236
- return Surgery2;
5237
- })(Surgery || {});
5238
- var Disease = /* @__PURE__ */ ((Disease2) => {
5239
- Disease2["Other"] = "OTHER";
5240
- Disease2["KidneyFailure"] = "KIDNEY_FAILURE";
5241
- Disease2["Cancer"] = "CANCER";
5242
- Disease2["LiverDisease"] = "LIVER_DISEASE";
5243
- Disease2["HeartFailure"] = "HEART_FAILURE";
5244
- Disease2["HeartRhythmAndConductionDisorders"] = "HEART_RHYTHM_AND_CONDUCTION_DISORDERS";
5245
- Disease2["ImmuneSystemDisorders"] = "IMMUNE_SYSTEM_DISORDERS";
5246
- return Disease2;
5247
- })(Disease || {});
5248
-
5249
- // src/contracts/cases.ts
5250
- var CaseType = /* @__PURE__ */ ((CaseType2) => {
5251
- CaseType2["SaleOpportunity"] = "SALE_OPPORTUNITY";
5252
- CaseType2["Endorsement"] = "ENDORSEMENT";
5253
- CaseType2["Cancel"] = "CANCEL";
5254
- CaseType2["Complaint"] = "COMPLAINT";
5255
- return CaseType2;
5256
- })(CaseType || {});
5257
- var CaseMainState = /* @__PURE__ */ ((CaseMainState2) => {
5258
- CaseMainState2["Fail"] = "FAIL";
5259
- CaseMainState2["Open"] = "OPEN";
5260
- CaseMainState2["InProgress"] = "IN_PROGRESS";
5261
- CaseMainState2["Success"] = "SUCCESS";
5262
- return CaseMainState2;
5263
- })(CaseMainState || {});
5264
- var CaseSubState = /* @__PURE__ */ ((CaseSubState2) => {
5265
- CaseSubState2["FailNoResponse"] = "FAIL_NO_RESPONSE";
5266
- CaseSubState2["FailInvalidCase"] = "FAIL_INVALID_CASE";
5267
- CaseSubState2["FailCustomerWithdrawn"] = "FAIL_CUSTOMER_WITHDRAWN";
5268
- CaseSubState2["FailPaymentError"] = "FAIL_PAYMENT_ERROR";
5269
- CaseSubState2["FailDeclinedCardInformation"] = "FAIL_DECLINED_CARD_INFORMATION";
5270
- CaseSubState2["FailForeignUser"] = "FAIL_FOREIGN_USER";
5271
- CaseSubState2["FailTakenElsewhere"] = "FAIL_TAKEN_ELSEWHERE";
5272
- CaseSubState2["FailPriceTooHigh"] = "FAIL_PRICE_TOO_HIGH";
5273
- CaseSubState2["FailAssetAcquisition"] = "FAIL_ASSET_ACQUISITION";
5274
- CaseSubState2["FailAssetSold"] = "FAIL_ASSET_SOLD";
5275
- CaseSubState2["FailUnresolved"] = "FAIL_UNRESOLVED";
5276
- CaseSubState2["FailReferredToLegal"] = "FAIL_REFERRED_TO_LEGAL";
5277
- CaseSubState2["FailCustomerUnsatisfied"] = "FAIL_CUSTOMER_UNSATISFIED";
5278
- CaseSubState2["FailMissingDocuments"] = "FAIL_MISSING_DOCUMENTS";
5279
- CaseSubState2["FailInsurerDenied"] = "FAIL_INSURER_DENIED";
5280
- CaseSubState2["FailConditionsNotMet"] = "FAIL_CONDITIONS_NOT_MET";
5281
- CaseSubState2["OpenInitial"] = "OPEN_INITIAL";
5282
- CaseSubState2["OpenCollectingInformation"] = "OPEN_COLLECTING_INFORMATION";
5283
- CaseSubState2["OpenDelayed"] = "OPEN_DELAYED";
5284
- CaseSubState2["OpenWaiting"] = "OPEN_WAITING";
5285
- CaseSubState2["InProgressUnderAnalysis"] = "IN_PROGRESS_UNDER_ANALYSIS";
5286
- CaseSubState2["InProgressProposalPrepared"] = "IN_PROGRESS_PROPOSAL_PREPARED";
5287
- CaseSubState2["InProgressAwaitingApproval"] = "IN_PROGRESS_AWAITING_APPROVAL";
5288
- CaseSubState2["InProgressToBeRecontacted"] = "IN_PROGRESS_TO_BE_RECONTACTED";
5289
- CaseSubState2["SuccessCompleted"] = "SUCCESS_COMPLETED";
5290
- return CaseSubState2;
5291
- })(CaseSubState || {});
5292
- var CaseStatus = /* @__PURE__ */ ((CaseStatus2) => {
5293
- CaseStatus2["Open"] = "OPEN";
5294
- CaseStatus2["Delayed"] = "DELAYED";
5295
- CaseStatus2["Success"] = "SUCCESS";
5296
- CaseStatus2["Fail"] = "FAIL";
5297
- return CaseStatus2;
5298
- })(CaseStatus || {});
5299
- var SaleOpportunityCaseSubType = /* @__PURE__ */ ((SaleOpportunityCaseSubType2) => {
5300
- SaleOpportunityCaseSubType2["NewSale"] = "NEW_SALE";
5301
- SaleOpportunityCaseSubType2["CrossSale"] = "CROSS_SALE";
5302
- SaleOpportunityCaseSubType2["Renewal"] = "RENEWAL";
5303
- return SaleOpportunityCaseSubType2;
5304
- })(SaleOpportunityCaseSubType || {});
5305
- var CancelCaseSubType = /* @__PURE__ */ ((CancelCaseSubType2) => {
5306
- CancelCaseSubType2["OnlineCancellationRefund"] = "ONLINE_CANCELLATION_REFUND";
5307
- CancelCaseSubType2["MebCancellation"] = "MEB_CANCELLATION";
5308
- CancelCaseSubType2["PartialCancellation"] = "PARTIAL_CANCELLATION";
5309
- CancelCaseSubType2["CancellationFromSale"] = "CANCELLATION_FROM_SALE";
5310
- CancelCaseSubType2["CancellationDueToCollection"] = "CANCELLATION_DUE_TO_COLLECTION";
5311
- CancelCaseSubType2["CancellationDueToDamage"] = "CANCELLATION_DUE_TO_DAMAGE";
5312
- return CancelCaseSubType2;
5313
- })(CancelCaseSubType || {});
5314
- var ComplaintCaseSubType = /* @__PURE__ */ ((ComplaintCaseSubType2) => {
5315
- ComplaintCaseSubType2["ConsultantError"] = "CONSULTANT_ERROR";
5316
- ComplaintCaseSubType2["PolicyOperations"] = "POLICY_OPERATIONS";
5317
- ComplaintCaseSubType2["Collection"] = "COLLECTION";
5318
- ComplaintCaseSubType2["DueToFrequentCalls"] = "DUE_TO_FREQUENT_CALLS";
5319
- ComplaintCaseSubType2["Fraud"] = "FRAUD";
5320
- ComplaintCaseSubType2["Damage"] = "DAMAGE";
5321
- ComplaintCaseSubType2["ErroneousTransaction"] = "ERRONEOUS_TRANSACTION";
5322
- ComplaintCaseSubType2["DelayInOperations"] = "DELAY_IN_OPERATIONS";
5323
- ComplaintCaseSubType2["OnlineTransactionErrors"] = "ONLINE_TRANSACTION_ERRORS";
5324
- ComplaintCaseSubType2["DelayInCancellationPeriod"] = "DELAY_IN_CANCELLATION_PERIOD";
5325
- ComplaintCaseSubType2["NonReceiptOfPolicyOrEndorsement"] = "NON_RECEIPT_OF_POLICY_OR_ENDORSEMENT";
5326
- ComplaintCaseSubType2["NonProductionOfPolicyOrEndorsement"] = "NON_PRODUCTION_OF_POLICY_OR_ENDORSEMENT";
5327
- ComplaintCaseSubType2["DelayInEndorsementOperations"] = "DELAY_IN_ENDORSEMENT_OPERATIONS";
5328
- ComplaintCaseSubType2["ErroneousPremiumCollection"] = "ERRONEOUS_PREMIUM_COLLECTION";
5329
- ComplaintCaseSubType2["NonDeliveryOfRefundReceipt"] = "NON_DELIVERY_OF_REFUND_RECEIPT";
5330
- ComplaintCaseSubType2["NonRefundOfPremium"] = "NON_REFUND_OF_PREMIUM";
5331
- ComplaintCaseSubType2["StaffAttitude"] = "STAFF_ATTITUDE";
5332
- ComplaintCaseSubType2["InsufficientOrErroneousInformation"] = "INSUFFICIENT_OR_ERRONEOUS_INFORMATION";
5333
- ComplaintCaseSubType2["NoTimelyResponse"] = "NO_TIMELY_RESPONSE";
5334
- return ComplaintCaseSubType2;
5335
- })(ComplaintCaseSubType || {});
5336
- var EndorsementCaseSubType = /* @__PURE__ */ ((EndorsementCaseSubType2) => {
5337
- EndorsementCaseSubType2["VehicleChange"] = "VEHICLE_CHANGE";
5338
- EndorsementCaseSubType2["ValueIncrease"] = "VALUE_INCREASE";
5339
- EndorsementCaseSubType2["NoClaimBonusTransfer"] = "NO_CLAIM_BONUS_TRANSFER";
5340
- EndorsementCaseSubType2["CoverageChange"] = "COVERAGE_CHANGE";
5341
- EndorsementCaseSubType2["UsageTypeChange"] = "USAGE_TYPE_CHANGE";
5342
- EndorsementCaseSubType2["TransferRequest"] = "TRANSFER_REQUEST";
5343
- EndorsementCaseSubType2["LicensePlateChange"] = "LICENSE_PLATE_CHANGE";
5344
- EndorsementCaseSubType2["BrandModelChange"] = "BRAND_MODEL_CHANGE";
5345
- EndorsementCaseSubType2["EngineChassisNumberChange"] = "ENGINE_CHASSIS_NUMBER_CHANGE";
5346
- EndorsementCaseSubType2["ContactAddressChange"] = "CONTACT_ADDRESS_CHANGE";
5347
- EndorsementCaseSubType2["Other"] = "OTHER";
5348
- EndorsementCaseSubType2["PledgeeCorrectionAddition"] = "PLEDGEE_CORRECTION_ADDITION";
5349
- return EndorsementCaseSubType2;
5350
- })(EndorsementCaseSubType || {});
5351
- var CaseActivityAction = /* @__PURE__ */ ((CaseActivityAction2) => {
5352
- CaseActivityAction2["Created"] = "CREATED";
5353
- CaseActivityAction2["Updated"] = "UPDATED";
5354
- CaseActivityAction2["StateChanged"] = "STATE_CHANGED";
5355
- CaseActivityAction2["ChannelChanged"] = "CHANNEL_CHANGED";
5356
- CaseActivityAction2["RepresentativeAssigned"] = "REPRESENTATIVE_ASSIGNED";
5357
- CaseActivityAction2["NoteAdded"] = "NOTE_ADDED";
5358
- CaseActivityAction2["AssetSet"] = "ASSET_SET";
5359
- CaseActivityAction2["PolicyAdded"] = "POLICY_ADDED";
5360
- CaseActivityAction2["ProposalAdded"] = "PROPOSAL_ADDED";
5361
- CaseActivityAction2["PolicyEndDateSet"] = "POLICY_END_DATE_SET";
5362
- CaseActivityAction2["CustomerUpdated"] = "CUSTOMER_UPDATED";
5363
- CaseActivityAction2["AssetUpdated"] = "ASSET_UPDATED";
5364
- CaseActivityAction2["PriorityAssessed"] = "PRIORITY_ASSESSED";
5365
- CaseActivityAction2["ProposalProductPurchaseAttempted"] = "PROPOSAL_PRODUCT_PURCHASE_ATTEMPTED";
5366
- return CaseActivityAction2;
5367
- })(CaseActivityAction || {});
5368
-
5369
- // src/contracts/agents.ts
5370
- var RobotMode = /* @__PURE__ */ ((RobotMode2) => {
5371
- RobotMode2["None"] = "NONE";
5372
- RobotMode2["Desktop"] = "DESKTOP";
5373
- RobotMode2["Server"] = "SERVER";
5374
- return RobotMode2;
5375
- })(RobotMode || {});
5376
- var CaseRepresentativeAssignmentMode = /* @__PURE__ */ ((CaseRepresentativeAssignmentMode2) => {
5377
- CaseRepresentativeAssignmentMode2["None"] = "NONE";
5378
- CaseRepresentativeAssignmentMode2["Random"] = "RANDOM";
5379
- CaseRepresentativeAssignmentMode2["RoundRobin"] = "ROUND_ROBIN";
5380
- CaseRepresentativeAssignmentMode2["BranchImportanceBalance"] = "BRANCH_IMPORTANCE_BALANCE";
5381
- return CaseRepresentativeAssignmentMode2;
5382
- })(CaseRepresentativeAssignmentMode || {});
5383
- var InsuranceSyncState = /* @__PURE__ */ ((InsuranceSyncState2) => {
5384
- InsuranceSyncState2["Pending"] = "PENDING";
5385
- InsuranceSyncState2["Failed"] = "FAILED";
5386
- InsuranceSyncState2["Succeed"] = "SUCCEED";
5387
- return InsuranceSyncState2;
5388
- })(InsuranceSyncState || {});
5389
- var AgentInsuranceCompanyType = /* @__PURE__ */ ((AgentInsuranceCompanyType2) => {
5390
- AgentInsuranceCompanyType2["WebService"] = "WEB_SERVICE";
5391
- AgentInsuranceCompanyType2["Robot"] = "ROBOT";
5392
- return AgentInsuranceCompanyType2;
5393
- })(AgentInsuranceCompanyType || {});
5394
- var SmsImplementation = /* @__PURE__ */ ((SmsImplementation2) => {
5395
- SmsImplementation2["Default"] = "Default";
5396
- SmsImplementation2["Teknomart"] = "Teknomart";
5397
- SmsImplementation2["ArtiKurumsal"] = "ArtiKurumsal";
5398
- SmsImplementation2["Verimor"] = "Verimor";
5399
- return SmsImplementation2;
5400
- })(SmsImplementation || {});
5401
- var CallCenterImplementation = /* @__PURE__ */ ((CallCenterImplementation2) => {
5402
- CallCenterImplementation2["None"] = "None";
5403
- CallCenterImplementation2["AloTech"] = "AloTech";
5404
- return CallCenterImplementation2;
5405
- })(CallCenterImplementation || {});
5406
- var B2CConfigFieldType = /* @__PURE__ */ ((B2CConfigFieldType2) => {
5407
- B2CConfigFieldType2[B2CConfigFieldType2["Object"] = 1] = "Object";
5408
- B2CConfigFieldType2[B2CConfigFieldType2["Array"] = 2] = "Array";
5409
- B2CConfigFieldType2[B2CConfigFieldType2["Text"] = 3] = "Text";
5410
- B2CConfigFieldType2[B2CConfigFieldType2["Number"] = 4] = "Number";
5411
- B2CConfigFieldType2[B2CConfigFieldType2["Boolean"] = 5] = "Boolean";
5412
- B2CConfigFieldType2[B2CConfigFieldType2["File"] = 6] = "File";
5413
- B2CConfigFieldType2[B2CConfigFieldType2["Color"] = 7] = "Color";
5414
- B2CConfigFieldType2[B2CConfigFieldType2["ProductBranch"] = 8] = "ProductBranch";
5415
- B2CConfigFieldType2[B2CConfigFieldType2["Icon"] = 9] = "Icon";
5416
- B2CConfigFieldType2[B2CConfigFieldType2["InsuranceCompany"] = 10] = "InsuranceCompany";
5417
- B2CConfigFieldType2[B2CConfigFieldType2["MultiLineText"] = 11] = "MultiLineText";
5418
- B2CConfigFieldType2[B2CConfigFieldType2["InsuranceProduct"] = 12] = "InsuranceProduct";
5419
- return B2CConfigFieldType2;
5420
- })(B2CConfigFieldType || {});
5421
-
5422
- // src/contracts/webhooks.ts
5423
- var WebhookEvent = /* @__PURE__ */ ((WebhookEvent2) => {
5424
- WebhookEvent2["ProposalPremiumReceived"] = "proposal_premium.received";
5425
- WebhookEvent2["ProposalPremiumPurchasing"] = "proposal_premium.purchasing";
5426
- WebhookEvent2["ProposalPremiumPurchased"] = "proposal_premium.purchased";
5427
- WebhookEvent2["ProposalPremiumPurchaseFailed"] = "proposal_premium.purchase_failed";
5428
- WebhookEvent2["PolicyCreated"] = "policy.created";
5429
- WebhookEvent2["PolicyUpdated"] = "policy.updated";
5430
- return WebhookEvent2;
5431
- })(WebhookEvent || {});
5432
-
5433
- // src/contracts/proposals.ts
5434
- var ProposalState = /* @__PURE__ */ ((ProposalState2) => {
5435
- ProposalState2["Waiting"] = "WAITING";
5436
- ProposalState2["Active"] = "ACTIVE";
5437
- ProposalState2["Purchasing"] = "PURCHASING";
5438
- ProposalState2["Purchased"] = "PURCHASED";
5439
- ProposalState2["Failed"] = "FAILED";
5440
- return ProposalState2;
5441
- })(ProposalState || {});
5442
- var ProposalProductState = /* @__PURE__ */ ((ProposalProductState2) => {
5443
- ProposalProductState2["Waiting"] = "WAITING";
5444
- ProposalProductState2["Failed"] = "FAILED";
5445
- ProposalProductState2["Active"] = "ACTIVE";
5446
- ProposalProductState2["Purchasing"] = "PURCHASING";
5447
- ProposalProductState2["Purchased"] = "PURCHASED";
5448
- return ProposalProductState2;
5449
- })(ProposalProductState || {});
5730
+ // src/index.ts
5731
+ export * from "@insurup/contracts";
5450
5732
  export {
5451
- AgentInsuranceCompanyType,
5452
- AracSegment,
5453
- AssetType,
5454
- B2CConfigFieldType,
5455
- CallCenterImplementation,
5456
- CancelCaseSubType,
5457
- CaseActivityAction,
5458
- CaseMainState,
5459
- CaseRepresentativeAssignmentMode,
5460
- CaseStatus,
5461
- CaseSubState,
5462
- CaseType,
5463
- Channel,
5464
- ComplaintCaseSubType,
5465
- ContactFlowState,
5466
- ContactState,
5467
- ContactType,
5468
- Currency,
5469
- CustomerType,
5470
5733
  DefaultInsurUpClient,
5471
- Disease,
5472
- EducationStatus,
5473
- EndorsementCaseSubType,
5474
5734
  endpoints_exports as Endpoints,
5475
- Gender,
5476
- HastaneAgi,
5735
+ GraphQLTransport,
5477
5736
  InsurUpAgentBranchClient,
5478
5737
  InsurUpAgentClient,
5479
5738
  InsurUpAgentRoleClient,
@@ -5485,6 +5744,7 @@ export {
5485
5744
  InsurUpCustomerClient,
5486
5745
  InsurUpError,
5487
5746
  InsurUpFileClient,
5747
+ InsurUpGraphQLErrorCode,
5488
5748
  InsurUpInsuranceClient,
5489
5749
  InsurUpLanguageClient,
5490
5750
  InsurUpPolicyClient,
@@ -5494,42 +5754,12 @@ export {
5494
5754
  InsurUpTemplateClient,
5495
5755
  InsurUpVehicleClient,
5496
5756
  InsurUpWebhookClient,
5497
- InsuranceProductType,
5498
- InsuranceSyncState,
5499
- Job,
5500
- LossPayeeClauseType,
5501
- MaritalStatus,
5502
- Nationality,
5503
- OnarimServisTuru,
5504
- PaymentOption,
5505
- PolicyState,
5506
- PolicyTransferCompanyFailureReason,
5507
- PolicyTransferTriggerStatus,
5508
- ProductBranch,
5509
- PropertyDamageStatus,
5510
- PropertyOwnershipType,
5511
- PropertyStructure,
5512
- PropertyUtilizationStyle,
5513
- ProposalProductState,
5514
- ProposalState,
5515
- RobotMode,
5516
- SaglikPaketiTedaviSekli,
5517
- SaleOpportunityCaseSubType,
5518
- SmsImplementation,
5519
- Surgery,
5520
- TasinanYuk,
5521
- TransferredPolicyFailureReason,
5522
- TransferredPolicySkipReason,
5523
- TransferredPolicyStatus,
5524
5757
  VERSION,
5525
- VehicleAccessoryType,
5526
- VehicleFuelType,
5527
- VehicleUtilizationStyle,
5528
- WebhookEvent,
5529
- YedekParcaTuru,
5758
+ createGraphQLErrors,
5530
5759
  extractError,
5531
5760
  getDataOrThrow,
5532
- mergeCoverage,
5533
- throwIfError
5761
+ getGraphQLDataOrThrow,
5762
+ throwIfError,
5763
+ throwIfGraphQLError
5534
5764
  };
5535
5765
  //# sourceMappingURL=index.js.map