@insurup/sdk 0.1.15 → 0.1.16
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/clients/customer.d.ts +3 -3
- package/dist/clients/customer.d.ts.map +1 -1
- package/dist/core/endpoints.d.ts +5 -4
- package/dist/core/endpoints.d.ts.map +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +8 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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.16",
|
|
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",
|
|
@@ -1655,11 +1655,8 @@ var customers = {
|
|
|
1655
1655
|
render: (customerId) => "customers/{CustomerId}/consents".replace("{CustomerId}", encodeURIComponent(customerId))
|
|
1656
1656
|
},
|
|
1657
1657
|
revoke: {
|
|
1658
|
-
definition: "customers/{CustomerId}/consents/
|
|
1659
|
-
render: (customerId) => "customers/{CustomerId}/consents/
|
|
1660
|
-
"{CustomerId}",
|
|
1661
|
-
encodeURIComponent(customerId)
|
|
1662
|
-
)
|
|
1658
|
+
definition: "customers/{CustomerId}/consents/{ConsentType}",
|
|
1659
|
+
render: (customerId, consentType) => "customers/{CustomerId}/consents/{ConsentType}".replace("{CustomerId}", encodeURIComponent(customerId)).replace("{ConsentType}", encodeURIComponent(consentType))
|
|
1663
1660
|
},
|
|
1664
1661
|
getAll: {
|
|
1665
1662
|
definition: "customers/{CustomerId}/consents",
|
|
@@ -3237,7 +3234,7 @@ var InsurUpCustomerClient = class {
|
|
|
3237
3234
|
async giveCustomerConsent(customerId, request, options) {
|
|
3238
3235
|
return this.http.postNoContent(
|
|
3239
3236
|
endpoints.customers.consents.give.render(customerId),
|
|
3240
|
-
request,
|
|
3237
|
+
{ ...request, customerId },
|
|
3241
3238
|
options
|
|
3242
3239
|
);
|
|
3243
3240
|
}
|
|
@@ -3247,13 +3244,12 @@ var InsurUpCustomerClient = class {
|
|
|
3247
3244
|
* Müşteri veri hakları uyarınca önceden verilmiş bir müşteri iznini geri çeker.
|
|
3248
3245
|
*
|
|
3249
3246
|
* @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
|
|
3250
|
-
* @param
|
|
3247
|
+
* @param consentType Type of consent to revoke / Geri çekilecek izin türü
|
|
3251
3248
|
* @returns Operation result / İşlem sonucu
|
|
3252
3249
|
*/
|
|
3253
|
-
async revokeCustomerConsent(customerId,
|
|
3254
|
-
return this.http.
|
|
3255
|
-
endpoints.customers.consents.revoke.render(customerId),
|
|
3256
|
-
request,
|
|
3250
|
+
async revokeCustomerConsent(customerId, consentType, options) {
|
|
3251
|
+
return this.http.deleteNoContent(
|
|
3252
|
+
endpoints.customers.consents.revoke.render(customerId, consentType),
|
|
3257
3253
|
options
|
|
3258
3254
|
);
|
|
3259
3255
|
}
|