@cookiemunch/sdk 0.33.0 → 0.34.0
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.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -572,7 +572,7 @@ async function exchangeOperatorToken(input) {
|
|
|
572
572
|
}
|
|
573
573
|
|
|
574
574
|
// src/index.ts
|
|
575
|
-
var SDK_VERSION = "0.
|
|
575
|
+
var SDK_VERSION = "0.34.0";
|
|
576
576
|
var CookieMunchApiError = class extends Error {
|
|
577
577
|
constructor(status, message, code, body) {
|
|
578
578
|
super(message);
|
|
@@ -672,7 +672,8 @@ function createCookieMunch(opts) {
|
|
|
672
672
|
partnerLinks: {
|
|
673
673
|
list: (o) => get(`/partner_links${metaQs(o)}`),
|
|
674
674
|
create: (input) => request("POST", "/partner_links", input),
|
|
675
|
-
revoke: (id) => request("DELETE", `/partner_links/${enc(id)}`)
|
|
675
|
+
revoke: (id) => request("DELETE", `/partner_links/${enc(id)}`),
|
|
676
|
+
update: (id, input, o) => request("PATCH", `/partner_links/${enc(id)}${qs({ dryRun: o?.dryRun ? "1" : void 0 })}`, input)
|
|
676
677
|
},
|
|
677
678
|
provisionEnv: (ref) => get(`/provision/env${qs({ ref })}`),
|
|
678
679
|
sites: {
|
|
@@ -687,6 +688,7 @@ function createCookieMunch(opts) {
|
|
|
687
688
|
listPartners: (cbid) => get(`/sites/${enc(cbid)}/partners`),
|
|
688
689
|
linkPartner: (cbid, input, o) => request("POST", `/sites/${enc(cbid)}/partners${qs({ dryRun: o?.dryRun ? "1" : void 0 })}`, input),
|
|
689
690
|
unlinkPartner: (cbid, linkId) => request("DELETE", `/sites/${enc(cbid)}/partners/${enc(linkId)}`),
|
|
691
|
+
updatePartner: (cbid, linkId, input, o) => request("PATCH", `/sites/${enc(cbid)}/partners/${enc(linkId)}${qs({ dryRun: o?.dryRun ? "1" : void 0 })}`, input),
|
|
690
692
|
getConfig: (cbid) => get(`/sites/${enc(cbid)}/config`),
|
|
691
693
|
putConfig: (cbid, config, opts2) => request("PUT", `/sites/${enc(cbid)}/config${qs({ keep: opts2?.keep })}`, config),
|
|
692
694
|
patchConfig: (cbid, config) => request("PATCH", `/sites/${enc(cbid)}/config`, config),
|