@insurup/sdk 0.1.8 → 0.1.10
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.browser.js +34 -34
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +25 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +25 -17
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var __export = (target, all) => {
|
|
|
7
7
|
// package.json
|
|
8
8
|
var package_default = {
|
|
9
9
|
name: "@insurup/sdk",
|
|
10
|
-
version: "0.1.
|
|
10
|
+
version: "0.1.10",
|
|
11
11
|
description: "Type-safe TypeScript SDK for the InsurUp insurance platform with GraphQL support. Tree-shakeable, works everywhere.",
|
|
12
12
|
keywords: [
|
|
13
13
|
"insurup",
|
|
@@ -2772,6 +2772,7 @@ var InsurUpAgentUserClient = class {
|
|
|
2772
2772
|
}
|
|
2773
2773
|
const fields = requestOptions?.select ?? ALL_AGENT_USER_FIELDS;
|
|
2774
2774
|
const fieldSelection = buildFieldSelection(fields);
|
|
2775
|
+
const hasFieldSelection = fieldSelection.length > 0;
|
|
2775
2776
|
const query = `
|
|
2776
2777
|
query GetAgentUsers(
|
|
2777
2778
|
$first: Int
|
|
@@ -2798,12 +2799,12 @@ var InsurUpAgentUserClient = class {
|
|
|
2798
2799
|
endCursor
|
|
2799
2800
|
}
|
|
2800
2801
|
totalCount
|
|
2801
|
-
edges {
|
|
2802
|
+
${hasFieldSelection ? `edges {
|
|
2802
2803
|
cursor
|
|
2803
2804
|
node {
|
|
2804
2805
|
${fieldSelection}
|
|
2805
2806
|
}
|
|
2806
|
-
}
|
|
2807
|
+
}` : ""}
|
|
2807
2808
|
}
|
|
2808
2809
|
}
|
|
2809
2810
|
`;
|
|
@@ -3260,6 +3261,7 @@ var InsurUpCustomerClient = class {
|
|
|
3260
3261
|
}
|
|
3261
3262
|
const fields = requestOptions?.select ?? ALL_CUSTOMER_FIELDS;
|
|
3262
3263
|
const fieldSelection = buildFieldSelection2(fields);
|
|
3264
|
+
const hasFieldSelection = fieldSelection.length > 0;
|
|
3263
3265
|
const includeTotalCount = requestOptions?.includeTotalCount !== false;
|
|
3264
3266
|
const query = `
|
|
3265
3267
|
query GetCustomers(
|
|
@@ -3287,12 +3289,12 @@ var InsurUpCustomerClient = class {
|
|
|
3287
3289
|
endCursor
|
|
3288
3290
|
}
|
|
3289
3291
|
${includeTotalCount ? "totalCount" : ""}
|
|
3290
|
-
edges {
|
|
3292
|
+
${hasFieldSelection ? `edges {
|
|
3291
3293
|
cursor
|
|
3292
3294
|
node {
|
|
3293
3295
|
${fieldSelection}
|
|
3294
3296
|
}
|
|
3295
|
-
}
|
|
3297
|
+
}` : ""}
|
|
3296
3298
|
}
|
|
3297
3299
|
}
|
|
3298
3300
|
`;
|
|
@@ -3993,6 +3995,7 @@ var InsurUpPolicyClient = class {
|
|
|
3993
3995
|
}
|
|
3994
3996
|
const fields = requestOptions?.select ?? ALL_POLICY_FIELDS;
|
|
3995
3997
|
const fieldSelection = buildFieldSelection3(fields);
|
|
3998
|
+
const hasFieldSelection = fieldSelection.length > 0;
|
|
3996
3999
|
const includeTotalCount = requestOptions?.includeTotalCount !== false;
|
|
3997
4000
|
const query = `
|
|
3998
4001
|
query GetPolicies(
|
|
@@ -4020,12 +4023,12 @@ var InsurUpPolicyClient = class {
|
|
|
4020
4023
|
endCursor
|
|
4021
4024
|
}
|
|
4022
4025
|
${includeTotalCount ? "totalCount" : ""}
|
|
4023
|
-
edges {
|
|
4026
|
+
${hasFieldSelection ? `edges {
|
|
4024
4027
|
cursor
|
|
4025
4028
|
node {
|
|
4026
4029
|
${fieldSelection}
|
|
4027
4030
|
}
|
|
4028
|
-
}
|
|
4031
|
+
}` : ""}
|
|
4029
4032
|
}
|
|
4030
4033
|
}
|
|
4031
4034
|
`;
|
|
@@ -4074,6 +4077,7 @@ var InsurUpPolicyClient = class {
|
|
|
4074
4077
|
}
|
|
4075
4078
|
const fields = requestOptions?.select ?? ALL_POLICY_TRANSFER_FIELDS;
|
|
4076
4079
|
const fieldSelection = buildFieldSelection3(fields);
|
|
4080
|
+
const hasFieldSelection = fieldSelection.length > 0;
|
|
4077
4081
|
const query = `
|
|
4078
4082
|
query GetPolicyTransfers(
|
|
4079
4083
|
$first: Int
|
|
@@ -4100,12 +4104,12 @@ var InsurUpPolicyClient = class {
|
|
|
4100
4104
|
endCursor
|
|
4101
4105
|
}
|
|
4102
4106
|
totalCount
|
|
4103
|
-
edges {
|
|
4107
|
+
${hasFieldSelection ? `edges {
|
|
4104
4108
|
cursor
|
|
4105
4109
|
node {
|
|
4106
4110
|
${fieldSelection}
|
|
4107
4111
|
}
|
|
4108
|
-
}
|
|
4112
|
+
}` : ""}
|
|
4109
4113
|
}
|
|
4110
4114
|
}
|
|
4111
4115
|
`;
|
|
@@ -4154,6 +4158,7 @@ var InsurUpPolicyClient = class {
|
|
|
4154
4158
|
}
|
|
4155
4159
|
const fields = requestOptions?.select ?? ALL_FILE_POLICY_TRANSFER_FIELDS;
|
|
4156
4160
|
const fieldSelection = buildFieldSelection3(fields);
|
|
4161
|
+
const hasFieldSelection = fieldSelection.length > 0;
|
|
4157
4162
|
const query = `
|
|
4158
4163
|
query GetFilePolicyTransfers(
|
|
4159
4164
|
$first: Int
|
|
@@ -4180,12 +4185,12 @@ var InsurUpPolicyClient = class {
|
|
|
4180
4185
|
endCursor
|
|
4181
4186
|
}
|
|
4182
4187
|
totalCount
|
|
4183
|
-
edges {
|
|
4188
|
+
${hasFieldSelection ? `edges {
|
|
4184
4189
|
cursor
|
|
4185
4190
|
node {
|
|
4186
4191
|
${fieldSelection}
|
|
4187
4192
|
}
|
|
4188
|
-
}
|
|
4193
|
+
}` : ""}
|
|
4189
4194
|
}
|
|
4190
4195
|
}
|
|
4191
4196
|
`;
|
|
@@ -4519,6 +4524,7 @@ var InsurUpCaseClient = class {
|
|
|
4519
4524
|
}
|
|
4520
4525
|
const fields = requestOptions?.select ?? ALL_CASE_FIELDS;
|
|
4521
4526
|
const fieldSelection = buildFieldSelection4(fields);
|
|
4527
|
+
const hasFieldSelection = fieldSelection.length > 0;
|
|
4522
4528
|
const query = `
|
|
4523
4529
|
query GetCases(
|
|
4524
4530
|
$first: Int
|
|
@@ -4545,12 +4551,12 @@ var InsurUpCaseClient = class {
|
|
|
4545
4551
|
endCursor
|
|
4546
4552
|
}
|
|
4547
4553
|
totalCount
|
|
4548
|
-
edges {
|
|
4554
|
+
${hasFieldSelection ? `edges {
|
|
4549
4555
|
cursor
|
|
4550
4556
|
node {
|
|
4551
4557
|
${fieldSelection}
|
|
4552
4558
|
}
|
|
4553
|
-
}
|
|
4559
|
+
}` : ""}
|
|
4554
4560
|
}
|
|
4555
4561
|
}
|
|
4556
4562
|
`;
|
|
@@ -4715,6 +4721,7 @@ var InsurUpWebhookClient = class {
|
|
|
4715
4721
|
}
|
|
4716
4722
|
const fields = requestOptions?.select ?? ALL_WEBHOOK_DELIVERY_FIELDS;
|
|
4717
4723
|
const fieldSelection = buildFieldSelection5(fields);
|
|
4724
|
+
const hasFieldSelection = fieldSelection.length > 0;
|
|
4718
4725
|
const query = `
|
|
4719
4726
|
query GetWebhookDeliveries(
|
|
4720
4727
|
$first: Int
|
|
@@ -4741,12 +4748,12 @@ var InsurUpWebhookClient = class {
|
|
|
4741
4748
|
endCursor
|
|
4742
4749
|
}
|
|
4743
4750
|
totalCount
|
|
4744
|
-
edges {
|
|
4751
|
+
${hasFieldSelection ? `edges {
|
|
4745
4752
|
cursor
|
|
4746
4753
|
node {
|
|
4747
4754
|
${fieldSelection}
|
|
4748
4755
|
}
|
|
4749
|
-
}
|
|
4756
|
+
}` : ""}
|
|
4750
4757
|
}
|
|
4751
4758
|
}
|
|
4752
4759
|
`;
|
|
@@ -5392,6 +5399,7 @@ var InsurUpProposalClient = class {
|
|
|
5392
5399
|
}
|
|
5393
5400
|
const fields = requestOptions?.select ?? ALL_PROPOSAL_FIELDS;
|
|
5394
5401
|
const fieldSelection = buildFieldSelection6(fields);
|
|
5402
|
+
const hasFieldSelection = fieldSelection.length > 0;
|
|
5395
5403
|
const query = `
|
|
5396
5404
|
query GetProposals(
|
|
5397
5405
|
$first: Int
|
|
@@ -5418,12 +5426,12 @@ var InsurUpProposalClient = class {
|
|
|
5418
5426
|
endCursor
|
|
5419
5427
|
}
|
|
5420
5428
|
totalCount
|
|
5421
|
-
edges {
|
|
5429
|
+
${hasFieldSelection ? `edges {
|
|
5422
5430
|
cursor
|
|
5423
5431
|
node {
|
|
5424
5432
|
${fieldSelection}
|
|
5425
5433
|
}
|
|
5426
|
-
}
|
|
5434
|
+
}` : ""}
|
|
5427
5435
|
}
|
|
5428
5436
|
}
|
|
5429
5437
|
`;
|